]> gcc.gnu.org Git - gcc.git/blame - gcc/ada/ChangeLog
sem_ch10.adb: Minor comment fix.
[gcc.git] / gcc / ada / ChangeLog
CommitLineData
fc1b906a
AC
12008-08-04 Robert Dewar <dewar@adacore.com>
2
3 * restrict.adb: Improved messages for restriction warnings
4
5 * restrict.ads: Improved messages for restriction messages
6
7 * s-rident.ads (Profile_Name): Add No_Profile
8
92008-08-04 Robert Dewar <dewar@adacore.com>
10
11 * system-darwin-x86.ads: Correct bad definition of Max_Nonbinary_Modulus
12
132008-08-04 Robert Dewar <dewar@adacore.com>
14
15 * freeze.adb (Freeze_Entity): Check for size clause for boolean warning
16
172008-08-04 Vincent Celier <celier@adacore.com>
18
19 * prj-proc.adb:
20 (Copy_Package_Declarations): When inheriting package Naming from a
21 project being extended, do not inherit source exception names.
22
232008-08-04 Ed Schonberg <schonberg@adacore.com>
24
25 * sem_prag.adb (Check_Precondition_Postcondition): When scanning the
26 list of declaration to find previous subprogram, do not go to the
27 original node of a generic unit.
28
d2143736
EB
292008-08-02 Eric Botcazou <ebotcazou@adacore.com>
30
31 * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR, MINUS_EXPR>:
32 New case. Convert BOOLEAN_TYPE operation to the default integer type.
33
a981c964
EB
342008-08-01 Eric Botcazou <ebotcazou@adacore.com>
35
36 * gcc-interface/ada-tree.h (DECL_PARM_ALT): Now DECL_PARM_ALT_TYPE.
37 * gcc-interface/decl.c (gnat_to_gnu_param): Fix formatting, simplify
38 and adjust for above renaming.
39 * gcc-interface/utils.c (convert_vms_descriptor): Likewise. Add new
40 gnu_expr_alt_type parameter. Convert the expression to it instead
41 of changing its type in place.
42 (build_function_stub): Adjust call to above function.
43
8df2e902
EB
442008-08-01 Eric Botcazou <ebotcazou@adacore.com>
45
46 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Remove dead
47 code. Do not get full definition of deferred constants with address
48 clause for a use. Do not ignore deferred constant definitions with
49 address clause. Ignore constant definitions already marked with the
50 error node.
51 <object>: Remove obsolete comment. For a deferred constant with
52 address clause, get the initializer from the full view.
53 * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Definition_Clause>:
54 Rework and remove obsolete comment.
55 <N_Object_Declaration>: For a deferred constant with address clause,
56 mark the full view with the error node.
57 * gcc-interface/utils.c (convert_to_fat_pointer): Rework and fix
58 formatting nits.
59
585df50b
AC
602008-08-01 Hristian Kirtchev <kirtchev@adacore.com>
61
62 * rtsfind.ads: Add block IO versions of stream routines for Strings.
63
64 * bindgen.adb, gnat_rm.texi, gnat_ugn.texi, opt.ads,
65 sem_prag.adb, snames.adb, snames.ads, snames.h,
66 par-prag.adb: Undo previous stream related changes.
67
68 * s-rident.ads: Add new restriction No_Stream_Optimizations.
69
70 * s-ststop.ads, s-ststop.adb: Comment reformatting.
71 Define enumeration type to designate different IO mechanisms.
72 Enchance generic package Stream_Ops_Internal to include an
73 implementation of Input and Output.
74
75 * exp_attr.adb (Find_Stream_Subprogram): If restriction
76 No_Stream_Optimization is active, choose the default byte IO
77 implementations of stream attributes for Strings.
78 Otherwise use the corresponding block IO version.
79
2eee5152
OH
802008-08-01 Olivier Hainque <hainque@adacore.com>
81
585df50b
AC
82 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>: Do not
83 turn Ada Pure into GCC const, now implicitely implying nothrow as well.
84
852008-08-01 Robert Dewar <dewar@adacore.com>
86
87 * par-ch3.adb (P_Defining_Identifier): Avoid repeated attempt to
88 convert plain identifier into defining identifier.
2eee5152 89
2b747305
AC
902008-08-01 Robert Dewar <dewar@adacore.com>
91
92 * sem_prag.adb (Check_Form_Of_Interface_Name): Refine and improve
93 warnings
94
95 * lib-xref.adb: Add error defense.
96
972008-08-01 Bob Duff <duff@adacore.com>
98
99 * ioexcept.ads, sequenio.ads, directio.ads: Correct comment.
100
0c246603
AC
1012008-08-01 Gary Dismukes <dismukes@adacore.com>
102
103 * exp_ch6.adb (Expand_Call): Adjustment to previous fix for passing
104 correct accessibility levels. In the "when others" case, retrieve the
105 access level of the Etype of Prev rather than Prev_Orig, because the
106 original exression has not always been analyzed.
107
1082008-08-01 Robert Dewar <dewar@adacore.com>
109
110 * prj-nmsc.adb: Minor reformatting
111
112 * sem_ch4.adb: Minor reformatting
113 Minor code reorganization
114
115 * prj.ads: Minor reformatting
116
117 * s-os_lib.adb: Minor reformatting
118
119 * par-prag.adb (Prag, case Wide_Character_Encoding): Deal with upper
120 half encodings
121
122 * scans.ads: Minor reformatting.
123
124 * sem_prag.adb (Analyze_Pragma): Put entries in alpha order
125 (Analyze_Pragma): Make sure all GNAT pragmas call GNAT_Pragma
126
127 * sem_res.adb:
128 (Resolve_Call): Check violation of No_Specific_Termination_Handlers
129
130 * sem_ch12.adb: Minor comment reformatting
131
132 * par-ch3.adb (P_Type_Declaration): Properly handle missing type
133 keyword
134
1cb17b78
AC
1352008-08-01 Robert Dewar <dewar@adacore.com>
136
137 * sem_ch6.adb (Process_PPCs): Don't copy spec PPC to body if not
138 generating code
139
1402008-08-01 Ed Schonberg <schonberg@adacore.com>
141
142 * checks.adb (Apply_Float_Conversion_Check): If the expression to be
143 converted is a real literal and the target type has static bounds,
144 perform the conversion exactly to prevent floating-point anomalies on
145 some targets.
146
1472008-08-01 Vincent Celier <celier@adacore.com>
148
149 * prj-attr.adb: New attribute Compiler'Name_Syntax (<lang>)
150
151 * prj-nmsc.adb (Process_Compiler): Recognize attribute Name_Syntax
152
153 * prj.adb (Object_Exist_For): Use Object_Generated, not
154 Objects_Generated that is removed and was never modified anyway.
155
156 * prj.ads:
157 (Path_Syntax_Kind): New enumeration type
158 (Language_Config): New component Path_Syntax, defaulted to Host.
159 Components PIC_Option and Objects_Generated removed, as they are not
160 used.
161
162 * snames.adb: New standard name Path_Syntax
163
164 * snames.ads: New standard name Path_Syntax
165
1662008-08-01 Vincent Celier <celier@adacore.com>
167
168 * mlib-utl.adb:
169 (Adalib_Path): New variable to store the path of the adalib directory
170 when procedure Specify_Adalib_Dir is called.
171 (Lib_Directory): If Adalib_Path is not null, return its value
172 (Specify_Adalib_Dir): New procedure
173
174 * mlib-utl.ads (Specify_Adalib_Dir): New procedure
175
1762008-08-01 Ed Schonberg <schonberg@adacore.com>
177
178 * sem_prag.adb:
179 (Check_Precondition_Postcondition): If not generating code, analyze the
180 expression in a postcondition that appears in a subprogram body, so that
181 it is properly decorated for ASIS use.
182
1832008-08-01 Gary Dismukes <dismukes@adacore.com>
184
185 * exp_ch6.adb (Expand_Call): Remove ugly special-case code that resets
186 Orig_Prev to Prev in the case where the actual is N_Function_Call or
187 N_Identifier. This was interfering with other cases that are rewritten
188 as N_Identifier, such as allocators, resulting in passing of the wrong
189 accessibility level, and based on testing this code is apparently no
190 longer needed at all.
191
1922008-08-01 Ed Schonberg <schonberg@adacore.com>
193
194 * sem_ch4.adb (Analyze_One_Call): Handle complex overloading of a
195 procedure call whose prefix
196 is a parameterless function call that returns an access_to_procedure.
197
d1b4f87d
AC
1982008-08-01 Jose Ruiz <ruiz@adacore.com>
199
200 * adaint.c (__gnat_tmp_name): Refine the generation of temporary names
201 for RTX. Adding a suffix that is incremented at each iteration.
202
2032008-08-01 Robert Dewar <dewar@adacore.com>
204
205 * sem_ch6.adb (Analyze_Subprogram_Body): Remove special casing of
206 Raise_Exception
207
2082008-08-01 Jerome Lambourg <lambourg@adacore.com>
209
210 * s-os_lib.adb (Normalize_Pathname): Take care of double-quotes in
211 paths, which are authorized by Windows but can lead to errors when used
212 elsewhere.
213
cfb02ad1
AC
2142008-08-01 Ed Schonberg <schonberg@adacore.com>
215
216 * sem_ch12.ads (Need_Subprogram_Instance_Body): new function, to create
217 a pending instantiation for the body of a subprogram that is to be
218 inlined.
219
220 * sem_ch12.adb:
221 (Analyze_Subprogram_Instantiation): use Need_Subprogram_Instance_Body.
222
223 * sem_prag.adb (Make_Inline): If the pragma applies to an instance,
224 create a pending instance for its body, so that calls to the subprogram
225 can be inlined by the back-end.
226
2272008-08-01 Jose Ruiz <ruiz@adacore.com>
228
229 * gnat_ugn.texi: Document the RTX run times (rts-rtx-rtss and
230 rts-rtx-w32).
231
e1bb4e71
AC
2322008-08-01 Robert Dewar <dewar@adacore.com>
233
234 * scng.adb (Error_Illegal_Wide_Character): Bump scan pointer
235
2362008-08-01 Doug Rupp <rupp@adacore.com>
237
238 * gnat_rm.texi: Document new mechanism Short_Descriptor.
239
240 * types.ads (Mechanism_Type): Modify range for new Short_Descriptor
241 mechanism values.
242
243 * sem_prag.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
244 mechanism and Short_Descriptor mechanism values.
245
246 * snames.adb (preset_names): Add short_descriptor entry.
247
248 * snames.ads: Add Name_Short_Descriptor.
249
250 * types.h: Add new By_Short_Descriptor mechanism values.
251
252 * sem_mech.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
253 mechanism and Short_Descriptor mechanism values.
254
255 * sem_mech.ads (Mechanism_Type): Add new By_Short_Descriptor mechanism
256 values.
257 (Descriptor_Codes): Modify range for new mechanism values.
258
259 * treepr.adb (Print_Entity_Enfo): Handle new By_Short_Descriptor
260 mechanism values.
261
262 * gcc-interface/decl.c (gnat_to_gnu_entity): Handle By_Short_Descriptor.
263 (gnat_to_gnu_param): Handle By_Short_Descriptor.
264
265 * gcc-interface/gigi.h (build_vms_descriptor64): Remove prototype.
266 (build_vms_descriptor32): New prototype.
267 (fill_vms_descriptor): Remove unneeded gnat_actual parameter.
268
269 * gcc-interface/trans.c (call_to_gnu): Removed unneeded gnat_actual
270 argument in call fill_vms_descriptor.
271
272 * gcc-interface/utils.c (build_vms_descriptor32): Renamed from
273 build_vms_descriptor and enhanced to hande Short_Descriptor mechanism.
274 (build_vms_descriptor): Renamed from build_vms_descriptor64.
275 (convert_vms_descriptor32): New function.
276 (convert_vms_descriptor64): New function.
277 (convert_vms_descriptor): Rewrite to handle both 32bit and 64bit
278 descriptors.
279
280 * gcc-interface/utils2.c (fill_vms_descriptor): Revert previous changes,
281 no longer needed.
282
2832008-08-01 Jose Ruiz <ruiz@adacore.com>
284
285 * adaint.c (__gnat_tmp_name): RTSS applications do not support tempnam
286 nor tmpnam, so we always use c:\WINDOWS\Temp\gnat-XXXXXX as temporary
287 name.
288
bca3ab79
AC
2892008-08-01 Jose Ruiz <ruiz@adacore.com>
290
291 * cstreams.c (__gnat_full_name): RTSS applications cannot ask for the
292 current directory so only fully qualified names are allowed.
293
2942008-08-01 Robert Dewar <dewar@adacore.com>
295
296 * gnat_ugn.texi:
297 Minor editing, remove uncomfortable use of semicolon
298
299 * s-ststop.adb: Add some ??? comments
300
301 * sem_ch10.adb: Minor reformatting
302
303 * snames.ads:
304 Minor comment fixes, some pragmas were not properly
305 categorized in the comments, documentation change only
306
307 * xref_lib.adb: Minor reformatting
308
309 * sinput.adb: Minor reformatting
310
311 * gnatchop.adb: Minor reformatting
312
313 * sem_util.ads: Minor reformatting.
314
315 * opt.ads: Minor documentation fix
316
317 * scng.adb: Minor reformatting
318
319 * prj-part.adb: Update comments
320
3212008-08-01 Ed Schonberg <schonberg@adacore.com>
322
323 * exp_disp.adb (Expand_Interface_Conversion): If the target type is a
324 tagged synchronized type, use corresponding record type.
325
3262008-08-01 Doug Rupp <rupp@adacore.com>
327
328 * mlib-tgt-specific-vms-alpha.adb (Build_Dynamic_Library): Output a
329 dummy transfer address for debugging.
330
331 * mlib-tgt-specific-vms-ia64.adb (Build_Dynamic_Library): Likewise.
332
333 * vms_data.ads: vms_data.ads: New qualfier /MACHINE_CODE_LISTING
334
4c5a0615
EB
3352008-07-31 Eric Botcazou <ebotcazou@adacore.com>
336
337 * gcc-interface/decl.c (gnat_to_gnu_entity): Fix formatting.
338 * gcc-interface/utils.c (create_field_decl): Avoid superfluous work.
339
964771d9
AC
3402008-07-31 Pascal Obry <obry@adacore.com>
341
342 * prj-nmsc.adb: Keep Object and Exec directory casing.
343
3442008-07-31 Jose Ruiz <ruiz@adacore.com>
345
346 * system-rtx-rtss.ads
347 Change the default stack size. It is important to set the commit part.
348
349 * s-taprop-rtx.adb
350 (Initialize): Get the clock resolution.
351 (RT_Resolution): Return the clock resolution that is indicated by the
352 system.
353
354 * s-parame-vxworks.adb
355 Document that this body is used for RTX in RTSS (kernel) mode.
356
357 * gcc-interface/Makefile.in
358 (LIBGNAT_TARGET_PAIRS for the rtx_rtss run time): Use the
359 s-parame-vxworks.adb body in order to have reasonable stack sizes in
360 RTX RTSS kernel mode. Virtual memory is not used in that case, so we
361 cannot ask for too big values.
362
3632008-07-31 Robert Dewar <dewar@adacore.com>
364
365 * exp_aggr.adb: Minor reformatting
366
367 * makeutl.adb: Minor reformatting
368
369 * prj-env.adb: Minor reformatting
370
1e0f7ffb
AC
3712008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
372
373 * exp_disp.adb (Prim_Op_Kind): Retrieve the full view when a private
374 tagged type is completed by a concurrent type.
375
3762008-07-31 Gary Dismukes <dismukes@adacore.com>
377
378 * sem_aggr.adb:
379 (Resolve_Record_Aggregate): Bypass error that a type without
380 components must have a "null record" aggregate when compiling for Ada
381 2005, since it's legal to give an aggregate of form (others => <>)
382 for such a type.
383
fa4bc5ab
AC
3842008-07-31 Javier Miranda <miranda@adacore.com>
385
386 * sem_ch4.adb (Valid_First_Argument_Of): Complete its functionality to
387 handle synchronized types. Required to handle well the object.operation
388 notation applied to synchronized types.
389
3902008-07-31 Quentin Ochem <ochem@adacore.com>
391
392 * s-stausa.adb (Fill_Stack): Stack_Used_When_Filling is now stored
393 anymore - just used internally.
394 Added handling of very small tasks - when the theoretical size is
395 already full at the point of the call.
396 (Report_Result): Fixed result computation, Stack_Used_When_Filling does
397 not need to be added to the result.
398
3992008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
400
401 * sem_ch6.adb (Disambiguate_Spec): Continue the disambiguation if the
402 corresponding spec is a primitive wrapper. Update comment.
403
4042008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
405
406 * bindgen.adb Comment reformatting. Update the list of run-time globals.
407 (Gen_Adainit_Ada): Add the declaration, import and value set for
408 configuration flag Canonical_Streams.
409 (Gen_Adainit_C): Add the declaration and initial value of external
410 symbol __gl_canonical_streams.
411
412 * init.c: Update the list of global values computed by the binder.
413
414 * opt.ads: Add flag Canonical_Streams.
415
416 * par-prag.adb (Prag): Include Pragma_Canonical_Streams to the list of
417 semantically handled pragmas.
418
419 * sem_prag.adb: Add an entry into enumeration type Sig_Flags.
420 (Analyze_Pragma): Add case for pragma Canonical_Streams.
421
422 * snames.adb: Add character value for name Canonical_Streams.
423
424 * snames.ads:
425 Add Name_Canonical_Streams to the list of configuration pragmas.
426 Add Pragma_Canonical_Streams to enumeration type Pragma_Id.
427
428 * snames.h: Add a definition for Pragma_Canonical_Streams.
429
430 * s-ststop.adb:
431 Add a flag and import to seize the value of external symbol
432 __gl_canonical_streams. Update comment and initial value of constant
433 Use_Block_IO.
434
435 * gnat_rm.texi: Add section of pragma Canonical_Streams.
436
437 * gnat_ugn.texi:
438 Add pragma Canonical_Streams to the list of configuration pragmas.
439
4402008-07-31 Ed Schonberg <schonberg@adacore.com>
441
442 * sem_ch10.adb (Build_Unit_Name): If the unit name in a with_clause
443 has the form A.B.C and B is a unit renaming, analyze its compilation
444 unit and add a with_clause on A.b to the context.
445
f32b9cd1
AC
4462008-07-31 Vincent Celier <celier@adacore.com>
447
448 * makeutl.adb (Executable_Prefix_Path): If Locate_Exec_On_Path fails,
449 return the empty string, instead of raising Constraint_Error.
450
4512008-07-31 Gary Dismukes <dismukes@adacore.com>
452
453 * checks.ads (Apply_Accessibility_Check): Add parameter Insert_Node.
454
455 * checks.adb (Apply_Accessibility_Check): Insert the check on
456 Insert_Node.
457
458 * exp_attr.adb:
459 (Expand_N_Attribute_Refernce, Attribute_Access): Pass attribute node
460 to new parameter Insert_Node on call to Apply_Accessibility_Check.
461 Necessary to distinguish the insertion node because the dereferenced
462 formal may come from a rename, but the check must be inserted in
463 front of the attribute.
464
465 * exp_ch4.adb:
466 (Expand_N_Allocator): Pass actual for new Insert_Node parameter on
467 call to Apply_Accessibility_Check.
468 (Expand_N_Type_Conversion): Pass actual for new Insert_Node parameter
469 on call to Apply_Accessibility_Check.
470 Minor reformatting
471
4722008-07-31 Javier Miranda <miranda@adacore.com>
473
474 * sem_type.adb (Has_Compatible_Type): Complete support for synchronized
475 types when the candidate type is a synchronized type.
476
477 * sem_res.adb (Resolve_Actuals): Reorganize code handling synchronized
478 types, and complete management of synchronized types adding missing
479 code to handle formal that is a synchronized type.
480
481 * sem_ch4.adb (Try_Primitive_Operation): Avoid testing attributes that
482 are not available and cause the compiler to blowup. Found compiling
483 test with switch -gnatc
484
485 * sem_ch6.adb (Check_Synchronized_Overriding): Remove local subprogram
486 Has_Correct_Formal_Mode plus code cleanup.
487
e92c92b2
AC
4882008-07-31 Bob Duff <duff@adacore.com>
489
490 * sinput.adb (Skip_Line_Terminators): Fix handling of LF/CR -- it was
491 recognized as two end-of-lines, but it should be just one.
492
4932008-07-31 Thomas Quinot <quinot@adacore.com>
494
495 * exp_ch9.adb: Minor reformatting
496
497 * tbuild.ads: Fix several occurrences of incorrectly referring to
498 Name_Find as Find_Name.
499
5002008-07-31 Ed Schonberg <schonberg@adacore.com>
501
502 * exp_aggr.adb (Aggr_Size_OK): If the aggregate has a single component
503 and the context is an object declaration with non-static bounds, treat
504 the aggregate as non-static.
505
5062008-07-31 Vincent Celier <celier@adacore.com>
507
508 * prj-part.adb, prj-part.ads, prj.adb, prj.ads, prj-env.adb:
509 Move back spec of Parse_Single_Project to body, as it is not called
510 outside of package Prj.Part.
511 (Project_Data): Remove components Linker_Name, Linker_Path and
512 Minimum_Linker_Options as they are no longer set.
513 Remove function There_Are_Ada_Sources from package Prj and move code
514 in the only place it was used, in Prj.Env.Set_Ada_Paths.
515
ee5d7272
AC
5162008-07-31 Arnaud Charlet <charlet@adacore.com>
517
518 * mlib-utl.ads: Fix typo.
519
5202008-07-31 Robert Dewar <dewar@adacore.com>
521
522 * sem_ch12.adb: Minor reformatting
523
5242008-07-31 Sergey Rybin <rybin@adacore.com>
525
526 * gnat_ugn.texi: Change the description of the
527 Overly_Nested_Control_Structures: now the rule always requires a
528 positive parameter for '+R' option
529
5302008-07-31 Thomas Quinot <quinot@adacore.com>
531
532 * g-pehage.adb: Minor reformatting
533
5342008-07-31 Pascal Obry <obry@adacore.com>
535
536 * s-finimp.ads: Minor reformatting.
537
5382008-07-31 Vincent Celier <celier@adacore.com>
539
540 * s-regexp.ads: Minor comment fix
541
5422008-07-31 Arnaud Charlet <charlet@adacore.com>
543
544 * s-direio.adb (Reset): Replace pragma Unmodified by Warnings (Off),
545 so that we can compile this file successfully with -gnatc.
546
5472008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
548
549 * exp_attr.adb (Find_Stream_Subprogram): Check the base type instead
550 of the type when looking for stream subprograms for type String,
551 Wide_String and Wide_Wide_String.
552
553 * s-ststop.adb: Change the initialization expression of constant
554 Use_Block_IO.
555
5562008-07-31 Geert Bosch <bosch@adacore.com>
557
558 * arit64.c:
559 New file implementing __gnat_mulv64 signed integer multiplication with
560 overflow checking
561
562 * fe.h (Backend_Overflow_Checks_On_Target): Define for use by Gigi
563
564 * gcc-interface/gigi.h:
565 (standard_types): Add ADT_mulv64_decl
566 (mulv64_decl): Define subprogram declaration for __gnat_mulv64
567
568 * gcc-interface/utils.c:
569 (init_gigi_decls): Add initialization of mulv64_decl
570
571 * gcc-interface/trans.c:
572 (build_unary_op_trapv): New function
573 (build_binary_op_trapv): New function
574 (gnat_to_gnu): Use the above functions instead of
575 build_{unary,binary}_op
576
577 * gcc-interface/Makefile.in
578 (LIBGNAT_SRCS): Add arit64.c
579 (LIBGNAT_OBJS): Add arit64.o
580
5812008-07-31 Vincent Celier <celier@adacore.com>
582
583 * prj-nmsc.adb (Check_Library_Attributes): Check if Linker'Switches or
584 Linker'Default_Switches are declared. Warn if they are declared.
585
5862008-07-31 Ed Schonberg <schonberg@adacore.com>
587
588 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Use
589 Insert_Actions to place the pointer declaration in the code, rather
590 than Insert_Before_And_Analyze, so that insertions of temporaries are
591 kept in the proper order when transient scopes are present.
592
593
b38c3c9e
AC
5942008-07-31 Robert Dewar <dewar@adacore.com>
595
596 * einfo.adb (Spec_PPC): Now defined for generic subprograms
597
598 * einfo.ads (Spec_PPC): Now defined for generic subprograms
599
600 * sem_prag.adb (Check_Precondition_Postcondition): Handle generic
601 subprogram case
602
6032008-07-31 Vincent Celier <celier@adacore.com>
604
605 * s-os_lib.adb: Minor comment fix
606
6072008-07-31 Ed Schonberg <schonberg@adacore.com>
608
609 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): After analysis,
610 transfer pre/postconditions from generic copy to original tree, so that
611 they will appear in each instance.
612 (Process_PPCs): Do not transform postconditions into a procedure in a
613 generic context, to prevent double expansion of check pragmas.
614
615 * sem_attr.adb: In an instance, the prefix of the 'result attribute
616 can be the renaming of the
617 current instance, so check validity of the name accordingly.
618
024238a2
AC
6192008-07-31 Robert Dewar <dewar@adacore.com>
620
621 * mlib-utl.ads: Minor reformatting
622
6232008-07-31 Ed Schonberg <schonberg@adacore.com>
624
625 sem_attr.adb: 'Result can have an ambiguous prefix, and is resolved
626 from context. This attribute must be usable in Ada95 mode.
627 The attribute can appear in the body of a function marked
628 Inline_Always, but in this case the postocondition is not enforced.
629
630 sem_prag.adb (Check_Precondition_Postcondition): within the expansion
631 of an inlined call pre- and postconditions are legal
632
6332008-07-31 Vincent Celier <celier@adacore.com>
634
635 * prj.adb, prj.ads, clean.adb, prj-nmsc.adb: Remove declarations that
636 were for gprmake only
637
6382008-07-31 Robert Dewar <dewar@adacore.com>
639
640 * gnat_ugn.texi: Update -gnatN documentation.
641
642 * gnat_rm.texi: Add note about pre/postcondition
643 pragmas not checked in conjunction with front-end inlining.
644
035b2a77
AC
6452008-07-31 Robert Dewar <dewar@adacore.com>
646
647 * g-pehage.adb, g-pehage.ads: Minor reformatting
648
6492008-07-31 Arnaud Charlet <charlet@adacore.com>
650
651 * mlib-utl.ads, prj-makr.ads: Add comments.
652
636b71b9
AL
6532008-07-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
654
655 * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS)
656 [WINDOWS]: Add s-winext.o.
657
01ddebf2
EB
6582008-07-30 Eric Botcazou <ebotcazou@adacore.com>
659
660 PR ada/36554
661 * back_end.adb (Call_Back_End): Pass Standard_Boolean to gigi.
662 * gcc-interface/gigi.h (gigi): Take new standard_boolean parameter.
663 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Subtype>:
664 Set precision to 1 for subtype of BOOLEAN_TYPE.
665 (set_rm_size): Set TYPE_RM_SIZE_NUM for BOOLEAN_TYPE.
666 (make_type_from_size): Deal with BOOLEAN_TYPE.
667 * gcc-interface/misc.c (gnat_print_type): Likewise.
668 * gcc-interface/trans.c (gigi): Take new standard_boolean parameter.
669 Set boolean_type_node as its translation in the table, as well
670 as boolean_false_node for False and boolean_true_node for True.
671 * gcc-interface/utils.c (gnat_init_decl_processing): Create custom
672 8-bit boolean_type_node and set its TYPE_RM_SIZE_NUM.
673 (create_param_decl): Deal with BOOLEAN_TYPE.
674 (build_vms_descriptor): Likewise.
675 (build_vms_descriptor64): Likewise.
676 (convert): Deal with BOOLEAN_TYPE like with ENUMERAL_TYPE.
677
2a9cc4de
AC
6782008-07-30 Robert Dewar <dewar@adacore.com>
679
680 * exp_ch9.adb: Minor reformatting
681
682 * exp_util.ads (Find_Prim_Op): Document that Program_Error is raised
683 if no primitive operation is found.
684
685 * exp_util.adb: (Find_Prim_Op): Add comments for previous change
686
687 * sem_ch8.adb: Minor reformatting
688
6892008-07-30 Laurent Pautet <pautet@adacore.com>
690
691 * g-pehage.adb:
692 Remove a limitation on the length of the words handled by the minimal
693 perfect hash function generator.
694
695 * g-pehage.ads:
696 Detail the use of subprograms Insert, Initialize, Compute and Finalize.
697 Fix some typos.
698
5cc6fa41
AC
6992008-07-30 Robert Dewar <dewar@adacore.com>
700
701 * gnatlink.adb: Minor reformatting
702
7032008-07-30 Thomas Quinot <quinot@adacore.com>
704
705 * rtsfind.adb (Check_RPC): Check version consistency even when not
706 generating RCI stubs. Provide more detailed error message in case of
707 mismatch.
708
7092008-07-30 Ed Schonberg <schonberg@adacore.com>
710
711 * sem_ch8.adb (Analyze_Subprogram_Renaming): When renaming an attribute
712 as a actual in an instance, check for a missing attribute to prevent
713 program_error on an illegal program.
714
715 * exp_util.adb (Find_Prim_Op): Rather than Assert (False), raise program
716 error if primitive is not found, so that exception can be handled
717 elsewhere on illegal programs.
718
7192008-07-30 Robert Dewar <dewar@adacore.com>
720
721 * uintp.adb (UI_GCD): Fix potential overflow
722
7232008-07-30 Hristian Kirtchev <kirtchev@adacore.com>
724
725 * einfo.adb: Flag245 is now used.
726 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Relax the assertion
727 check to include functions.
728 (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
729 (Wrapped_Entity, Set_Wrapped_Entity): Relax the assertion check to
730 include functions.
731 (Write_Entity_Flags): Move flag Is_Primitive, add Is_Private_Primitive
732 to the list of displayed flags.
733
734 * einfo.ads: Update comment on the usage of Is_Primitive_Wrapper and
735 Wrapped_Entity. These two flags are now present in functions.
736 New flag Is_Private_Primitive.
737 (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
738
739 * exp_ch9.adb:
740 (Build_Wrapper_Bodies): New subprogram.
741 (Build_Wrapper_Body): The spec and body have been moved to in
742 Build_Wrapper_ Bodies. Code cleanup.
743 (Build_Wrapper_Spec): Moved to the spec of Exp_Ch9. Code cleanup.
744 Wrappers are now generated for primitives declared between the private
745 and full view of a concurrent type that implements an interface.
746 (Build_Wrapper_Specs): New subprogram.
747 (Expand_N_Protected_Body): Code reformatting. Replace the wrapper body
748 creation mechanism with a call to Build_Wrapper_Bodies.
749 (Expand_N_Protected_Type_Declaration): Code reformatting. Replace the
750 wrapper spec creation mechanism with a call to Build_Wrapper_Specs.
751 (Expand_N_Task_Body): Replace the wrapper body creation
752 mechanism with a call to Build_Wrapper_Bodies.
753 (Expand_N_Task_Type_Declaration): Replace the wrapper spec
754 creation mechanism with a call to Build_Wrapper_Specs.
755 (Is_Private_Primitive_Subprogram): New subprogram.
756 (Overriding_Possible): Code cleanup.
757 (Replicate_Entry_Formals): Renamed to Replicate_Formals, code cleanup.
758
759 * exp_ch9.ads (Build_Wrapper_Spec): Moved from the body of Exp_Ch9.
760
761 * sem_ch3.adb: Add with and use clause for Exp_Ch9.
762 (Process_Full_View): Build wrapper specs for all primitives
763 that belong to a private view completed by a concurrent type
764 implementing an interface.
765
766 * sem_ch6.adb (Analyze_Subprogram_Body): When the current subprogram
767 is a primitive of a
768 concurrent type with a private view that implements an interface, try to
769 find the proper spec.
770 (Analyze_Subprogram_Declaration): Mark a subprogram as a private
771 primitive if the type of its first parameter is a non-generic tagged
772 private type.
773 (Analyze_Subprogram_Specification): Code reformatting.
774 (Disambiguate_Spec): New routine.
775 (Find_Corresponding_Spec): Add a flag to controll the output of errors.
776 (Is_Private_Concurrent_Primitive): New routine.
777
778 * sem_ch6.ads:
779 (Find_Corresponding_Spec): Add a formal to control the output of errors.
780
6ca2b0a0
DR
7812008-07-30 Doug Rupp <rupp@adacore.com>
782
783 * gigi.h (build_vms_descriptor64): New function prototype.
784 (fill_vms_descriptor): Modified function prototype.
785
786 * utils.c (build_vms_descriptor64): New function.
787
788 * utils2.c (fill_vms_descriptor): Fix handling on 32bit systems.
789
790 * trans.c (call_to_gnu): Call fill_vms_descriptor with new third
791 argument.
792
793 * decl.c (gnat_to_gnu_tree): For By_Descriptor mech, build both a
794 64bit and 32bit descriptor and save the 64bit version as an alternate
795 TREE_TYPE in the parameter.
796 (make_type_from_size) <RECORD_TYPE>: Use the appropriate mode for the
797 thin pointer.
798
799 * ada-tree.h (DECL_PARM_ALT, SET_DECL_PARM_ALT): New macros.
800
002b2ad6
AC
8012008-07-30 Robert Dewar <dewar@adacore.com>
802
803 * make.adb: Minor reformatting
804
805 * mlib-utl.adb: Minor reformatting
806
807 * osint.ads: Minor reformatting
808
8092008-07-30 Jose Ruiz <ruiz@adacore.com>
810
811 * adaint.c
812 (__gnat_file_exists): Do not use __gnat_stat for RTX.
813 (__main for RTX in RTSS mode): Create this dummy procedure symbol to
814 avoid the use of this symbol from libgcc.a in RTX kernel mode.
815
816 * cio.c
817 (put_int, put_int_stderr, put_char, put_char_stderr): For RTX we call
818 the function RtPrintf for console output.
819
820 * argv.c Do not use the environ variable for RTX.
821
822 * gnatlink.adb (gnatlink): The part that handles the --RTS option has
823 been moved before the call to Osint.Add_Default_Search_Dirs in order
824 to take into account the flags in system.ads (RTX_RTSS_Kernel_Module)
825 from the appropriate run time.
826
827 * targparm.ads
828 (RTX_RTSS_Kernel_Module_On_Target): Add this flag that is set to True if
829 target is a RTSS module for RTX.
830
831 * targparm.adb (Targparm_Tags, RTX_Str, Targparm_Str): Add tag RTX for
832 RTX_RTSS_Kernel_Module
833 (Get_Target_Parameters): Add processing of RTX_RTSS_Kernel_Module flag.
834
835 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for RTX): Use gcc
836 exception handling mechanism for Windows and RTX in Win32 mode, but
837 not for RTX in kernel mode (RTSS).
838 (LIBGNAT_SRCS): Remove ada.h
839
00afcaa0
PB
8402008-07-30 Paolo Bonzini <bonzini@gnu.org>
841
842 * gcc-interface/Make-lang.in (ALL_ADAFLAGS): Remove X_ADAFLAGS and
843 T_ADAFLAGS, replace ALL_ADA_CFLAGS with ADA_CFLAGS.
844 (ALL_ADA_CFLAGS): Remove, replace throughout with ADA_CFLAGS.
845 * gcc-interface/Makefile.in (XCFLAGS, X_CFLAGS, X_CPPFLAGS, T_CPPFLAGS,
846 X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS, ADA_CFLAGS,
847 ALL_ADA_CFLAGS): Remove.
848 (ALL_ADAFLAGS, MOST_ADAFLAGS): Remove X_ADAFLAGS and T_ADAFLAGS,
849 replace ALL_ADA_CFLAGS with ADA_CFLAGS.
850 (GCC_CFLAGS): Remove X_CFLAGS.
851 (LOOSE_CFLAGS): Remove X_CFLAGS and XCFLAGS.
852 (ALL_CPPFLAGS): Remove X_CPPFLAGS and T_CPPFLAGS.
853 (ADA_CFLAGS): Substitute.
854
a7dafa20
LG
8552008-07-30 Laurent Guerby <laurent@guerby.net>
856
857 PR ada/5911
858 * gcc-interface/Makefile.in (MULTISUBDIR, RTSDIR): New variables.
859 Pass MULTISUBDIR to recursive make. Use $(RTSDIR) instead of rts.
860 Replace stamp-gnatlib* by stamp-gnatlib*-rts.
861 * gcc-interface/Make-lang.in: Replace stamp-gnatlib2
862 by stamp-gnatlib2-rts.
863
70b1e376
RW
8642008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
865
866 PR documentation/15479
867 * gnat-style.texi: Remove AdaCore copyright statement and GPL
868 statement for GNAT. Add @copying stanza, use it. Update to
869 GFDL 1.2. Do not list GFDL as Invariant Section, do not list
870 title as Front-Cover Text.
871 * gnat_rm.texi: Likewise.
872 * gnat_ugn.texi: Likewise.
873
343eba42
JH
8742008-07-29 Jan Hubicka <jh@suse.cz>
875
876 * trans.c (process_inlined_subprograms): Remove tree_really_inline
877 check.
878
ebf5ba04
AC
8792008-07-29 Arnaud Charlet <charlet@adacore.com>
880
881 * gcc-interface: New directory.
882
883 * ada-tree.def, cuintp.c, gigi.h, Makefile.in, targtyps.c, ada.h,
884 utils.c, ada-tree.h, decl.c, lang.opt, Make-lang.in, trans.c,
885 config-lang.in, deftarg.c, lang-specs.h, misc.c, utils2.c: Moved
886 to gcc-interface subdirectory.
887
46897370
AL
8882008-07-29 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
889
890 * Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS): Remove extra s-win32.o.
891
e90acd93
JH
8922008-07-28 Jan Hubicka <jh@suse.cz>
893
894 * misc.c (gnat_post_options): Do not set flag_no_inline.
895
726a989a
RB
8962008-07-28 Richard Guenther <rguenther@suse.de>
897
898 Merge from gimple-tuples-branch.
899
900 2008-07-22 Olivier Hainque <hainque@adacore.com>
901
902 * gigi.h (end_subprog_body): New ELAB_P argument, saying if
903 this is called for an elab proc to be discarded if empty.
904 * utils.c (end_subprog_body): Honor ELAB_P.
905 (build_function_stub): Adjust call to end_subprog_body.
906 * trans.c (Subprogram_Body_to_gnu): Likewise.
907 (gigi): Reorganize processing of elab procs to prevent
908 gimplifying twice, using the new end_subprog_body argument.
909
910 2008-07-19 Richard Guenther <rguenther@suse.de>
911
912 * Make-lang.in (trans.o): Add tree-iterator.h dependency.
913 (utils.o): Likewise.
914 * trans.c: Include tree-iterator.h.
915 (gnat_gimplify_expr): Adjust prototype. Fix typo.
916 (gnat_gimplify_stmt): Use SET_EXPR_LOCATION.
917 (set_expr_location_from_node): Likewise.
918 (gigi): Tuplify.
919 * ada-tree.h (union lang_tree_node): Use TREE_CHAIN instead
920 of GENERIC_NEXT.
921 * utils.c: Include tree-iterator.h.
922 * gigi.h (gnat_gimplify_expr): Adjust prototype.
923
924 2008-07-18 Aldy Hernandez <aldyh@redhat.com>
925
926 * trans.c: Include gimple.h instead of tree-gimple.h.
927 * utils.c: Same.
928
929 2008-07-14 Aldy Hernandez <aldyh@redhat.com>
930
931 * trans.c (gnat_gimplify_expr): Use gimplify_assign.
932
8ae3959e 9332008-07-25 Jan Hubicka <jh@suse.cz>
7e8b322a 934
8ae3959e
EB
935 * utils.c (end_subprog_body): Remove inline trees check.
936 * misc.c (gnat_post_options): Do not set flag_inline_trees.
7e8b322a 937
4a7bb85b
RO
9382008-07-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
939
940 * raise-gcc.c: Move tsystem.h before tm.h.
941
ec45d105
AC
9422008-07-20 Arnaud Charlet <charlet@adacore.com>
943
944 * gnathtml.pl: New file.
945
95331614 9462008-07-19 Olivier Hainque <hainque@adacore.com>
8ae3959e 947
95331614
OH
948 * targtyps.c (get_target_default_allocator_alignment): Use
949 MALLOC_ABI_ALIGNMENT.
950
dd7ac716
OH
9512008-07-17 Olivier Hainque <hainque@adacore.com>
952
953 * adaint.c (__MINGW32__ section): Include ctype.h and define
954 a fallback ISALPHA if IN_RTS.
955 (__gnat_is_absolute_path): Use ISALPHA instead of isalpha.
956
a7a46bb2
OH
9572008-07-17 Olivier Hainque <hainque@adacore.com>
958
959 * utils.c (create_var_decl_1): Relax expectations on the PUBLIC_FLAG
960 argument, to apply to references in addition to definitions. Prevent
961 setting TREE_STATIC on externals.
962 (gnat_pushdecl): Always clear DECL_CONTEXT on public externals.
963
66bfd481
RW
9642008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
965
966 PR documentation/15479
967 * gnat_ugn.texi (@ovar): New macro, from autoconf.texi.
968 Replace backets around optional parameters with @ovar
969 where possible, use @r{[}, @r{]} otherwise.
970 Replace some @r, @i, and @emph with @var where appropriate.
971
7a803dd8
EB
9722008-07-02 Eric Botcazou <ebotcazou@adacore.com>
973
974 * decl.c (make_type_from_size) <INTEGER_TYPE>: Fix typo and tidy up.
975
7d71283c
KG
9762008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
977
978 * ada-tree.h (SET_TYPE_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Fix
979 -Wc++-compat warnings.
980 * adaint.c (__gnat_locate_regular_file, __gnat_locate_exec,
981 __gnat_locate_exec_on_path): Likewise.
982 * decl.c (annotate_value): Likewise.
983 * misc.c (gnat_handle_option): Likewise.
984 * trans.c (gnat_to_gnu, extract_encoding, decode_name,
985 post_error_ne_tree): Likewise.
986
d9338c67
EB
9872008-06-27 Eric Botcazou <ebotcazou@adacore.com>
988
989 * utils.c (convert) <CONSTRUCTOR>: When converting it to a packable
990 version of its type, attempt to first convert its elements.
991
b4b010ad
CP
9922008-06-26 Chris Proctor <chrisp_42@bigpond.com>
993
994 * Makefile.in: Fix *86 kfreebsd target specific pairs.
995
0ee61065
ST
9962008-06-25 Samuel Tardieu <sam@rfc1149.net>
997
998 * Makefile.in: Use mlib-tgt-specific-linux.adb for sh4 as well.
999
324ed5a6
EB
10002008-06-24 Eric Botcazou <ebotcazou@adacore.com>
1001
1002 * utils2.c (known_alignment): Derive the alignment from pointed-to
1003 types only if it is otherwise unknown.
1004 <INTEGER_CST>: Tidy.
1005 <MULT_EXPR>: Likewise.
1006 <POINTER_PLUS_EXPR>: If the alignment of the offset is unknown, use
1007 that of the base.
1008
2d31e498
JDA
10092008-06-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1010
1011 PR ada/36573
1012 * s-osinte-hpux-dce.ads (SA_ONSTACK): Define.
1013
6ccde948
RW
10142008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1015
1016 * gnat_rm.texi (Implementation Defined Characteristics)
1017 (Standard Library Routines): Use @smallexample for indented
1018 text. Drop Indentation outside examples.
1019 * gnat_ugn.texi: Likewise.
1020
d8612af2
OH
10212008-06-13 Olivier Hainque <hainque@adacore.com>
1022
1023 * decl.c (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Define to 0
1024 if undefined.
1025 (gnat_to_gnu_entity) <case E_Function/Procedure>: Request stack
1026 realignment with force_align_arg_pointer attribute on foreign
1027 convention subprograms if FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
1028
ca789c7f
OH
10292008-06-13 Olivier Hainque <hainque@adacore.com>
1030
1031 * utils.c (rest_of_record_type_compilation): When computing
1032 encodings for the components of a variable size type, early
1033 strip conversions on the current position expression to make
1034 sure it's shape is visible. Use remove_conversions for this
1035 purpose.
1036
1dd4a3e6
EB
10372008-06-12 Eric Botcazou <ebotcazou@adacore.com>
1038
1039 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: In the case of a
1040 constrained subtype of a discriminated type, discard the fields that
1041 are beyond its limits according to its size.
1042
12ae9b26
OH
10432008-06-10 Olivier Hainque <hainque@adacore.com>
1044
1045 * utils.c (create_subprog_decl): If this is for the 'main' entry
1046 point according to the asm name, redirect main_identifier_node.
1047
912cb442
EB
10482008-06-09 Eric Botcazou <ebotcazou@adacore.com>
1049
1050 * decl.c (components_to_record): Adjust the packedness for the
1051 qualified union as well.
1052
4a598c32
AC
10532008-06-09 Arnaud Charlet <charlet@adacore.com>
1054
1055 * Make-lang.in: Use -gnatwns instead of -gnatws to make sytyle
1056 checks non fatal.
1057
4b92fd3c
ST
10582008-06-07 Samuel Tardieu <sam@rfc1149.net>
1059
1060 * sem_res.adb (Large_Storage_Type): A type is large if it
1061 requires as many bits as Positive to store its values and its
1062 bounds are known at compile time.
1063 * sem_ch13.adb (Minimum_Size): Note that this function returns
1064 0 if the size is not known at compile time.
1065
968c8001
OH
10662008-06-06 Nicolas Setton <setton@adacore.com>
1067 Olivier Hainque <hainque@adacore.com>
1068
1069 * ada-tree.h (DECL_PARALLEL_TYPE): New language specific
1070 attribute, parallel descriptive type attached to another
1071 type for debug info generation purposes.
1072 * utils.c (add_parallel_type): New function, register
1073 parallel type to be attached to a type.
1074 (get_parallel_type): New function, fetch a registered
1075 parallel type, if any.
1076 (rest_of_record_type_compilation): Register the parallel
1077 type we make for variable size records.
1078 * gigi.h (add_parallel_type, get_parallel_type): Declare.
1079 * decl.c (gnat_to_gnu_entity, maybe_pad_type): Register the
1080 parallel debug types we make.
1081 * trans.c (extract_encoding, decode_name): New functions.
1082 (gigi): If the DWARF attribute extensions are available, setup
1083 to use them.
1084 * lang.opt: Register language specific processing request
1085 for -gdwarf+.
1086 * misc.c (gnat_dwarf_extensions): New global variable. How much
1087 do we want of our DWARF extensions. 0 by default.
1088 (gnat_handle_option) <OPT_gdwarf_>: Increment gnat_dwarf_extensions.
1089 (gnat_post_options): Map gnat_dwarf_extensions to the
1090 commonuse_gnu_debug_info_extensions for later processing.
1091
b30199b8
ST
10922008-06-04 Samuel Tardieu <sam@rfc1149.net>
1093
1094 * einfo.ads, einfo.adb: Remove unused flag Function_Returns_With_DSP.
1095
30783513
RW
10962008-06-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1097
1098 * Makefile.in (common_tools): Fix typos in $(exeext) extension.
1099 * gnat_ugn.texi (Style Checking)
1100 (Adding the Results of Compiler Checks to gnatcheck Output)
1101 (Example of Binder Output File): Fix typos.
1102 * ali.ads, einfo.ads, exp_ch4.adb, exp_ch6.adb,
1103 exp_dbug.ads, exp_dist.adb, exp_smem.adb, g-socket.ads,
1104 s-osinte-rtems.ads, s-shasto.ads, s-stausa.adb,
1105 s-stausa.ads, sem_cat.adb, sem_ch12.adb, sem_ch3.adb,
1106 sem_ch4.adb, sem_ch6.adb, sem_ch8.adb, sem_util.ads,
1107 sinfo.ads, utils.c: Fix typos in comments.
1108 * sem_ch6.adb, vms_data.ads: Fix typos in strings.
1109
fb8368fd
AC
11102008-05-29 Thomas Quinot <quinot@adacore.com>
1111
1112 * sem_eval.adb: Minor reformatting
1113
11142008-05-29 Ed Schonberg <schonberg@adacore.com>
1115
1116 * sem_ch6.adb (Analyze_Subprogram_Specification): if the return type
1117 is abstract, do not apply abstractness check on subprogram if this is
1118 a renaming declaration.
1119
11202008-05-29 Arnaud Charlet <charlet@adacore.com>
1121
1122 PR ada/864
1123 * osint.ads, osint.adb (Program_Name): New parameter "Prog" to
1124 allow recognition of program suffix in addition to prefix.
1125
1126 * gnatchop.adb (Locate_Executable): Add support for prefix.
1127
1128 * make.adb, gnatcmd.adb, gnatlink.adb, prj-makr.adb,
1129 mlib-utl.adb: Adjust calls to Program_Name.
1130
fff3f472
AC
11312008-05-29 Robert Dewar <dewar@adacore.com>
1132
1133 * sem_ch3.adb: Minor reformatting
1134 * sem_prag.adb: Minor reformatting
1135 * sem_res.adb: Minor reformatting
1136 * sinput-p.ads: Minor reformatting
1137
11382008-05-29 Javier Miranda <miranda@adacore.com>
1139
1140 * sem_util.adb:
1141 (Abstract_Interface_List): Add missing support for full type-declaration
1142 associated with synchronized types.
1143
11442008-05-29 Robert Dewar <dewar@adacore.com>
1145
1146 * sem_eval.adb (Is_Same_Value): Take care of several more cases
1147
acca98c0
AC
11482008-05-28 Ed Schonberg <schonberg@adacore.com>
1149
1150 * sem_ch5.adb (Analyze_Assignment): If the name is of a local anonymous
1151 access type, wrap the expression in a conversion to force an
1152 accessibility check.
1153
1154 * sem_aggr.adb (Aggegate_Constraint_Checks): Apply conversion to force
1155 accessibility checks even when expansion is disabled in order to
1156 generate messages in the presence of previous errors or in
1157 semantics-only mode.
1158
11592008-05-28 Eric Botcazou <ebotcazou@adacore.com>
1160
1161 * system-lynxos-ppc.ads (Always_Compatible_Rep): Set to False.
1162 * system-lynxos-x86.ads (Always_Compatible_Rep): Set to False.
1163
11642008-05-28 Vincent Celier <celier@adacore.com>
1165
1166 PR ada/34446
1167 * gnat_ugn.texi: Document restriction introduced on 2007-04-20 in
1168 preprocessing expressions
1169
11702008-05-28 Vincent Celier <celier@adacore.com>
1171
1172 * sinput-p.adb (Source_File_Is_Subunit): Allow special character used
1173 for preprocessing
1174
1175 * sinput-p.ads: Minor comment update and reformatting
1176
11772008-05-28 Ed Schonberg <schonberg@adacore.com>
1178
1179 * sem_res.adb (Valid_Conversion): An anonymous access_to_subprogram
1180 type has a deeper level than any master only when it is the type of an
1181 access parameter.
1182
8250171b
AC
11832008-05-28 Javier Miranda <miranda@adacore.com>
1184
1185 * sem_ch3.adb (Derive_Progenitor_Subprograms): Add documentation.
1186
11872008-05-28 Javier Miranda <miranda@adacore.com>
1188
1189 * sem_util.ads (Find_Overridden_Synchronized_Primitive): Removed.
1190 * sem_util.adb (Find_Overridden_Synchronized_Primitive): Removed.
1191 * sem_ch6.adb (Check_Synchronized_Overriding): Remove one formal.
1192 Add code that was previously located in
1193 Find_Overridden_Synchronized_Primitive because it is only used here.
1194
11952008-05-28 Sergey Rybin <rybin@adacore.com>
1196
1197 * sem_prag.adb (Process_Extended_Import_Export_Subprogram_Pragma): Set
1198 Entity field for formal_parameter_NAME in MECHANISM_ASSOCIATION.
1199
00ea9517
RD
12002008-05-28 Robert Dewar <dewar@adacore.com>
1201
1202 * restrict.ads:
1203 Add missing restrictions, and properly label all GNAT defined ones
1204
1205 * rtsfind.ads:
1206 Add entry for Ada_Real_Time.Timing_Events.Timing_Event
1207 Add entry for Ada.Task_Termination.Set_Specific_Handler
1208 Add entry for Ada.Task_Termination.Specific_Handler
1209
1210 * s-rident.ads:
1211 Add missing restrictions and properly mark all gnat defined ones
1212
1213 * sem_ch3.adb:
1214 (Analyze_Object_Declaration): Check No_Local_Timing_Events restriction
1215
1216 * sem_res.adb:
1217 (Resolve_Call): Check violation of No_Specific_Termination_Handlers
1218
1219 * gnat_rm.texi: Add missing restrictions, and properly label all
1220 GNAT defined ones
1221
12222008-05-28 Robert Dewar <dewar@adacore.com>
1223
1224 * restrict.adb:
1225 (Check_Restriction): violation of restriction No_Finalization is
1226 treated as a serious error to stop expansion
1227
12282008-05-28 Robert Dewar <dewar@adacore.com>
1229
1230 * exp_util.adb: Minor reformatting
1231 * exp_util.ads: Minor reformatting.
1232
0b795892
AC
12332008-05-28 Arnaud Charlet <charlet@adacore.com>
1234
1235 * Make-lang.in: Remove gprmake.
1236
1237 * gprmake.adb, makegpr.ads, makegpr.adb: Removed.
1238
5840819a
AC
12392008-05-28 Ed Schonberg <schonberg@adacore.com>
1240
1241 * sem_ch3.adb (Diagnose_Interface): Cleanup error messages involving
1242 improper progenitor names, and avoid cascaded errors.
1243
12442008-05-28 Robert Dewar <dewar@adacore.com>
1245
1246 * gnat_rm.texi: Add note on Old giving warning when applied to constant
1247
1248 * sem_attr.adb (Analyze_Attribute, case Old): Give warning if prefix is
1249 a constant
1250
12512008-05-28 Robert Dewar <dewar@adacore.com>
1252
1253 * exp_fixd.adb (Build_Multiply): Correct one-off error in computing
1254 size
1255
12562008-05-28 Robert Dewar <dewar@adacore.com>
1257
1258 * exp_ch5.adb:
1259 (Expand_Simple_Function_Return): Copy unaligned result into temporary
1260
8c3dd7a8
JM
12612008-05-28 Javier Miranda <miranda@adacore.com>
1262
1263 * sem_ch3.adb (Derive_Progenitor_Primitives): Add missing support
1264 for user-defined predefined primitives.
1265
1266 * sem_util.adb (Matches_Prefixed_View_Profile): Ditto.
1267 (Find_Overridden_Synchronized_Primitive): Ditto.
1268
1269 * sem_ch6.adb (Check_Synchronized_Overriding): Ditto.
1270
35b80405
AC
12712008-05-27 Arnaud Charlet <charlet@adacore.com>
1272
1273 * a-ststio.adb, s-direio.adb:
1274 Further code clean up of previous change.
1275 Update comments.
1276
12772008-05-27 Vincent Celier <celier@adacore.com>
1278
1279 * prj-nmsc.adb: Minor reformatting
1280
12812008-05-27 Bob Duff <duff@adacore.com>
1282
1283 * sem_ch3.adb (Build_Incomplete_Type_Declaration): In the case of an
1284 untagged private type with a tagged full type, where the full type has
1285 a self reference, create the corresponding class-wide type early, in
1286 case the self reference is "access T'Class".
1287
12882008-05-27 Ed Schonberg <schonberg@adacore.com>
1289
1290 * exp_aggr.adb (Build_Array_Aggr_Code): If component type includes
1291 tasks and context is an object declaration. create master entity before
1292 expansion.
1293
12942008-05-27 Robert Dewar <dewar@adacore.com>
1295
1296 * mlib-prj.adb: Minor reformatting
1297
1298 * prj-part.adb: Minor reformatting
1299
1300 * prj.ads: Minor reformatting
1301
1302 * exp_ch3.adb: Minor reformatting.
1303
1304 * sem_ch3.ads: Minor reformatting
1305
1306 * sem_eval.adb: Minor reformatting
1307
d5c998a9
AC
13082008-05-27 Vincent Celier <celier@adacore.com>
1309
1310 * gnatcmd.adb:
1311 <prefix>-gnat stack spawns gnatstack, not <prefix>-gnatstack
1312
13132008-05-27 Ed Schonberg <schonberg@adacore.com>
1314
1315 * exp_aggr.adb (Expand_Array_Aggregate): If the aggregate contains
1316 tasks, create an activation chain now, before the expansion into
1317 assignments and build-in-place calls that require the presence of an
1318 activation chain.
1319 (Backend_Processing_Possible): If the component type is inherently
1320 limited, the aggregate must be expanded into individual built-in-place
1321 assignments.
1322
1323 * sem_ch6.adb (Build_Extra_Formals): Use underlying type of result to
1324 determine whether an allocation extra parameter must be built, to
1325 handle case of a private type whose full type is a discriminated type
1326 with defaults.
1327
13282008-05-27 Bob Duff <duff@adacore.com>
1329
1330 * gnat_rm.texi:
1331 Document the new behavior regarding trampolines.
1332
13332008-05-27 Arnaud Charlet <charlet@adacore.com>
1334
1335 * a-direio.adb, a-sequio.adb: Replace address clause by
1336 unrestricted_access, simpler and compatible with .NET.
1337
13382008-05-27 Vincent Celier <celier@adacore.com>
1339
1340 * prj-part.adb:
1341 (Project_Path_Name_Of.Try_Path): Do not use Locate_Regular_File to find
1342 a project file, so that symbolic links are not resolved.
1343
13442008-05-27 Arnaud Charlet <charlet@adacore.com>
1345
1346 * a-ztexio.adb, a-textio.adb, a-witeio.adb, s-direio.adb:
1347 Replace heavy address clause by 'Unrestricted_Access, cleaner and more
1348 portable across GNAT targets, since this kind of address clause is not
1349 supported by VM back-ends (.NET/JGNAT).
1350
79d2a727
AC
13512008-05-27 Arnaud Charlet <charlet@adacore.com>
1352
1353 * bindgen.adb: Update comments.
1354
1355 * s-tasinf-mingw.adb: Add "with" of System.OS_Interface
1356
13572008-05-27 Vincent Celier <celier@adacore.com>
1358
1359 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb,
1360 prj.ads, makegpr.adb, makeutl.adb, clean.adb, prj-nmsc.adb,
1361 mlib-tgt.adb, prj-env.adb, prj-env.ads:
1362 (Path_Information): New record type
1363 Use component of type Path_Information when there are two paths, one in
1364 canonical format and one in display format.
1365 Update the project manager to these new components.
1366
0f99f391
AC
13672008-05-27 Robert Dewar <dewar@adacore.com>
1368
1369 * makeutl.adb: Minor reformatting
1370 * prj-nmsc.adb: Minor reformatting
1371 * s-stausa.adb: Minor reformatting
1372 * s-stausa.ads: Minor reformatting
1373 * sem_ch6.adb: Minor reformatting
1374
13752008-05-27 Thomas Quinot <quinot@adacore.com>
1376
1377 * sem_res.adb: Minor comment fixes
1378
d18af35f
AC
13792008-05-27 Thomas Quinot <quinot@adacore.com>
1380
1381 * makeutl.adb: Minor code reorganization
1382
1383 * exp_aggr.adb: Add ??? comment
1384 Fix typo
1385
1386 * exp_ch6.adb: Minor reformatting
1387
13882008-05-27 Quentin Ochem <ochem@adacore.com>
1389
1390 * s-stausa.adb (Initialize): Updated result initialization, and
1391 initialization of environment stack.
1392 (Fill_Stack): Improved computation of the pattern zone, taking into
1393 account already filled at the calling point.
1394 (Get_Usage_Range): Now uses Min_Measure and Max_Measure instead of
1395 Measure and Overflow_Guard.
1396 (Report_Result): Fixed computation of the result using new fields of
1397 Stack_Analyzer.
1398
1399 * s-stausa.ads (Initialize_Analyzer): Replaced Size / Overflow_Guard
1400 params by more explicit Stack_Size / Max_Pattern_Size params.
1401 (Stack_Analyzer): Added distinct Stack_Size & Pattern_Size fields.
1402 Added Stack_Used_When_Filling field.
1403 (Task_Result): Replaced Measure / Overflow_Guard by more explicit
1404 Min_Measure and Max_Measure fields.
1405
1406 * s-tassta.adb (Task_Wrapper): Updated call to Initialize_Analyzer.
1407
14082008-05-27 Vincent Celier <celier@adacore.com>
1409
1410 * prj-nmsc.adb:
1411 (Check_File): Make sure that a unit that replaces the same unit in a
1412 project being extended is properly processed.
1413
14142008-05-27 Ed Schonberg <schonberg@adacore.com>
1415
1416 * sem_ch3.adb:
1417 (Get_Discr_Value): Remove obsolete code that failed to find the value
1418 of a discriminant for an inherited task component appearing in a type
1419 extension.
1420
14212008-05-27 Thomas Quinot <quinot@adacore.com>
1422
1423 (System.File_IO.{Close, Delete, Reset}):
1424 Change File parameter from "in out AFCB_Ptr" to "access AFCB_Ptr".
1425
1426 (Ada.*_IO.{Close, Delete, Reset, Set_Mode}):
1427 Pass File parameter by reference.
1428
aeff280b
AC
14292008-05-27 Vincent Celier <celier@adacore.com>
1430
1431 * prj-nmsc.adb:
1432 (Process_Sources_In_Multi_Language_Mode): Check that there are not two
1433 sources of the same project that have the same object file name.
1434 (Find_Explicit_Sources): Always remove a source exception that was not
1435 found.
1436
14372008-05-27 Thomas Quinot <quinot@adacore.com>
1438
1439 * sem_ch3.adb: Minor reformatting
1440
14412008-05-27 Ed Schonberg <schonberg@adacore.com>
1442
1443 * sem_ch6.adb:
1444 (Is_Interface_Conformant): Handle properly a primitive operation that
1445 overrides an interface function with a controlling access result.
1446 (Type_Conformance): If Skip_Controlling_Formals is true, when matching
1447 inherited and overriding operations, omit as well the conformance check
1448 on result types, to prevent spurious errors.
1449
14502008-05-27 Vincent Celier <celier@adacore.com>
1451
1452 * makeutl.ads, makeutl.adb:
1453 (Set_Location): New procedure
1454 (Get_Location): New function
1455 (Update_Main): New procedure
1456
7bf402c1
AC
14572008-05-27 Vincent Celier <celier@adacore.com>
1458
1459 * prj-nmsc.adb:
1460 (Check_Library): Allow standard project to be extended as a static
1461 library project.
1462 (Get_Mains): Do not inherit attribute Main in an extending library
1463 project.
1464
14652008-05-27 Eric Botcazou <ebotcazou@adacore.com>
1466
1467 * system-darwin-ppc.ads (Always_Compatible_Rep): Set to False.
1468 * system-darwin-x86.ads (Always_Compatible_Rep): Likewise.
1469 * system-freebsd-x86.ads (Always_Compatible_Rep): Likewise.
1470 * system-linux-ppc.ads (Always_Compatible_Rep): Likewise.
1471 * system-linux-x86_64.ads (Always_Compatible_Rep): Likewise.
1472 * system-linux-x86.ads (Always_Compatible_Rep): Likewise.
1473 * system-mingw.ads (Always_Compatible_Rep): Likewise.
1474 * system-solaris-sparc.ads (Always_Compatible_Rep): Likewise.
1475 * system-solaris-sparcv9.ads (Always_Compatible_Rep): Likewise.
1476 * system-solaris-x86.ads (Always_Compatible_Rep): Likewise.
1477
52268145
AC
14782008-05-27 Ed Schonberg <schonberg@adacore.com>
1479
1480 * sem_attr.adb: add guard to previous patch.
1481
14822008-05-27 Ed Schonberg <schonberg@adacore.com>
1483
1484 * exp_disp.adb (Build_Dispatch_Tables): For a private type completed by
1485 a synchronized tagged type, do not attempt to build dispatch table for
1486 full view. The table is built for the corresponding record type, which
1487 has its own declaration.
1488
14892008-05-27 Gary Dismukes <dismukes@adacore.com>
1490
1491 * sem_ch3.adb (Fixup_Bad_Constraint): Set the Etype on the bad subtype
1492 to the known type entity E, rather than setting it to Any_Type. Fixes
1493 possible blowup in function Base_Init_Proc, as called from Freeze_Entity
1494 for objects whose type had an illegal constraint.
1495
14962008-05-27 Vincent Celier <celier@adacore.com>
1497
1498 * gnat_ugn.texi:
1499 Add succinct documentation for attribute Excluded_Source_List_File
1500
15012008-05-27 Vincent Celier <celier@adacore.com>
1502
1503 * prj-attr.adb: Add new project level attribute Map_File_Option
1504
1505 * prj-nmsc.adb (Process_Linker): Process new attribute Map_File_Option
1506
1507 * prj.ads: Minor reformatting and comment update
1508 (Project_Configuration): New component Map_File_Option
1509
1510 * snames.adb: New standard name Map_File_Option
1511
1512 * snames.ads: New standard name Map_File_Option
1513
15142008-05-27 Vincent Celier <celier@adacore.com>
1515
1516 * xsnames.adb: Remove unused variable Oname
1517
15182008-05-27 Doug Rupp <rupp@adacore.com>
1519
1520 * exp_ch6.adb:
1521 (Expand_N_Function_Call): Fix comments. Minor reformatting.
1522
1523 * exp_vfpt.ads:
1524 (Expand_Vax_Foreign_Return): Fix comments.
1525
15262008-05-27 Thomas Quinot <quinot@adacore.com>
1527
1528 * exp_dist.adb: Minor reformating
1529
094d7cfa
AC
15302008-05-26 Gary Dismukes <dismukes@adacore.com>
1531
1532 * exp_ch3.adb (Expand_N_Object_Declaration): Remove checks for
1533 No_Default_Initialization, which is now delayed until the freeze point
1534 of the object. Add a comment about deferral of the check.
1535
1536 * freeze.adb (Freeze_Entity): The check for No_Default_Initialization
1537 on objects is moved here.
1538
15392008-05-26 Eric Botcazou <ebotcazou@adacore.com>
1540
1541 * s-casi16.adb (Uhalf): Rewrite it as integer with small alignment.
1542 (Compare_Array_S16): Adjust for above change.
1543 * s-casi32.adb (Uword): Likewise.
1544 (Compare_Array_S32): Likewise.
1545 * s-casi64.adb (Uword): Likewise.
1546 (Compare_Array_S64): Likewise.
1547 * s-caun16.adb (Uhalf): Likewise.
1548 (Compare_Array_U16): Likewise.
1549 * s-caun32.adb (Uword): Likewise.
1550 (Compare_Array_U32): Likewise.
1551 * s-caun64.adb (Uword): Likewise.
1552 (Compare_Array_U64): Likewise.
1553
15542008-05-26 Robert Dewar <dewar@adacore.com>
1555
1556 * exp_ch6.adb: Add ??? comment for previous change
1557
1558 * exp_vfpt.adb: Minor reformatting
1559
1560 * exp_vfpt.ads: Add ??? comment for last change
1561
1562 * sem_attr.adb: Add some ??? comments for previous change
1563
1564 * s-vaflop.ads: Add comments for previous change
1565
15662008-05-26 Doug Rupp <rupp@adacore.com>
1567
1568 * s-vaflop-vms-alpha.adb:
1569 Remove System.IO use clause, to prevent spurious ambiguities when
1570 package is access through rtsfind.
1571
15722008-05-26 Sergey Rybin <rybin@adacore.com>
1573
1574 * tree_io.ads (ASIS_Version_Number): Update because of the changes
1575 made in front-end
1576
9019f3fc
AC
15772008-05-26 Ed Schonberg <schonberg@adacore.com>
1578
1579 * sem_attr.adb:
1580 (Resolve_Attribute, case 'address): S (A .. B)' address can be safely
1581 converted to S (A)'address only if A .. B is known to be a non-null
1582 range.
1583
15842008-05-26 Doug Rupp <rupp@adacore.com>
1585
1586 * s-vaflop.adb:
1587 (Return_D, Return_F, Return_G): New functions.
1588
1589 * s-vaflop.ads:
1590 (Return_D, Return_F, Return_G): New functions.
1591
1592 * exp_vfpt.adb:
1593 (Expand_Vax_Foreign_Return): New procedure
1594
1595 * exp_vfpt.ads:
1596 (Expand_Vax_Foreign_Return): New procedure
1597
1598 * rtsfind.ads:
1599 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Ids
1600 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Unit_Table elements
1601
1602 * exp_ch6.adb:
1603 Import Exp_Vfpt
1604 (Expand_N_Function_Call): Call Expand_Vax_Foreign_Return.
1605
1606 * s-vaflop-vms-alpha.adb:
1607 (Return_D, Return_F, Return_G): New functions.
1608
16092008-05-26 Gary Dismukes <dismukes@adacore.com>
1610
1611 * exp_ch3.adb (Build_Array_Init_Proc): Only set Init_Proc to a dummy
1612 init proc entity when there is actual default initialization associated
1613 with the component type, to avoid spurious errors on objects of scalar
1614 array types that are marked Is_Public when No_Default_Initialization
1615 applies.
1616
d693e39d
TQ
16172008-05-26 Thomas Quinot <quinot@adacore.com>
1618
1619 * rtsfind.ads, rtsfind.adb:
1620 (RE_Get_RACW): New runtime library entity provided by PolyORB s-parint.
1621 (Check_RPC): Support per-PCS-kind API versioning.
1622
1623 exp_dist.ads, exp_dist.adb:
1624 (Build_Stub_Tag, Get_Stub_Elements): New utility subprograms.
1625 (PolyORB_Support.Add_RACW_From_Any): Offload common code to new runtime
1626 library function Get_RACW.
1627 (PolyORB_Support.Add_RACW_To_Any): Offload common code to new runtime
1628 library function Get_Reference.
1629 (PolyORB_Support.Add_RACW_Read_Attribute): Use Get_RACW instead of going
1630 through an intermediate Any.
1631 (PolyORB_Support.Add_RACW_Write_Attribute): Use Get_Reference instead of
1632 going through an intermediate Any.
1633
1634 * sem_dist.adb: Minor reformatting.
1635
ad89bc8d
AC
16362008-05-26 Javier Miranda <miranda@adacore.com>
1637
1638 * einfo.ads (Abstract_Interface_Alias): Renamed as Interface_Alias.
1639 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
1640 (Is_Internal): Adding documentation on internal entities that have
1641 attribute Interface_Alias (old attribute Abstract_Interface_Alias)
1642
1643 * einfo.adb (Abstract_Interface_Alias): Renamed as Interface_Alias.
1644 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
1645 Added assertion to force entities with this attribute to have
1646 attribute Is_Internal set to True.
1647 (Next_Tag_Component): Simplify assertion using attribute Is_Tag.
1648
1649 * sem_ch3.adb (Derive_Interface_Subprograms): This subprogram has been
1650 renamed as Derive_Progenitor_Subprograms. In addition, its code is
1651 a new implementation.
1652 (Add_Interface_Tag_Components): Remove special management of
1653 synchronized interfaces.
1654 (Analyze_Interface_Declaration): Minor reformating
1655 (Build_Derived_Record_Type): Minor reformating
1656 (Check_Abstract_Overriding): Avoid reporting error in case of abstract
1657 predefined primitive inherited from interface type because the body of
1658 internally generated predefined primitives of tagged types are generated
1659 later by Freeze_Type
1660 (Derive_Subprogram): Avoid generating an internal name if the parent
1661 subprogram overrides an interface primitive.
1662 (Derive_Subprograms): New implementation that keeps separate the
1663 management of tagged types not implementing interfaces, from tagged
1664 types that implement interfaces.
1665 (Is_Progenitor): New implementation.
1666 (Process_Full_View): Add documentation
1667 (Record_Type_Declaration): Replace call to Derive_Interface_Subprograms
1668 by call to Derive_Progenitor_Subprograms.
1669
1670 * sem_ch6.ads (Is_Interface_Conformant): New subprogram.
1671 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
1672 Skip_Controlling_Formals.
1673
1674 * sem_ch6.adb (Is_Interface_Conformant): New subprogram.
1675 (Check_Conventions): New implementation. Remove local subprogram
1676 Skip_Check. Remove formal Search_From of routine Check_Convention.
1677 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
1678 Skip_Controlling_Formals.
1679 (New_Overloaded_Entity): Enable addition of predefined dispatching
1680 operations.
1681
1682 * sem_disp.ads
1683 (Find_Primitive_Covering_Interface): New subprogram.
1684
1685 * sem_disp.adb (Check_Dispatching_Operation): Disable registering
1686 the task body procedure as a primitive of the corresponding tagged
1687 type.
1688 (Check_Operation_From_Private_Type): Avoid adding twice an entity
1689 to the list of primitives.
1690 (Find_Primitive_Covering_Interface): New subprogram.
1691 (Override_Dispatching_Operation): Add documentation.
1692
1693 * sem_type.adb (Covers): Minor reformatings
1694
1695 * sem_util.ads (Collect_Abstract_Interfaces): Renamed as
1696 Collect_Interfaces.
1697 Rename formal.
1698 (Has_Abstract_Interfaces): Renamed as Has_Interfaces.
1699 (Implements_Interface): New subprogram.
1700 (Is_Parent): Removed.
1701 (Primitive_Names_Match): New subprogram.
1702 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
1703 (Ultimate_Alias): New subprogram.
1704
1705 * sem_util.adb (Collect_Abstract_Interfaces): Renamed as
1706 Collect_Interfaces.
1707 Remove special management for synchronized types. Rename formal. Remove
1708 internal subprograms Interface_Present_In_Parent and Add_Interface.
1709 (Has_Abstract_Interfaces): Renamed as Has_Interfaces. Replace assertion
1710 on non-record types by code to return false in such case.
1711 (Implements_Interface): New subprogram.
1712 (Is_Parent): Removed. No special management is now required for
1713 synchronized types covering interfaces.
1714 (Primitive_Names_Match): New subprogram.
1715 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
1716 (Ultimate_Alias): New subprogram.
1717
1718 * exp_ch3.adb (Add_Internal_Interface_Entities): New subprogram.
1719 Add internal entities associated with secondary dispatch tables to
1720 the list of tagged type primitives that are not interfaces.
1721 (Freeze_Record_Type): Add new call to Add_Internal_Interface_Entities
1722 (Make_Predefined_Primitive_Specs): Code reorganization to improve
1723 the management of predefined equality operator. In addition, if
1724 the type has an equality function corresponding with a primitive
1725 defined in an interface type, the inherited equality is abstract
1726 as well, and no body can be created for it.
1727
1728 * exp_disp.ads (Is_Predefined_Dispatching_Operation): Moved from
1729 exp_util to exp_disp.
1730 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if
1731 an entity corresponds with one of the predefined primitives required
1732 to implement interfaces.
1733 Update copyright notice.
1734
1735 * exp_disp.adb (Set_All_DT_Position): Add assertion. Exclude from the
1736 final check on abstract subprograms all the primitives associated with
1737 interface primitives because they must be visible in the public and
1738 private part.
1739 (Write_DT): Use Find_Dispatching_Type to locate the name of the
1740 interface type. This allows the use of this routine, for debugging
1741 purposes, when the tagged type is not fully decorated.
1742 (Is_Predefined_Dispatching_Operation): Moved from exp_util to exp_disp.
1743 Factorize code calling new subprogram Is_Predefined_Interface_Primitive.
1744 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if an
1745 entity corresponds with one of the predefined primitives required to
1746 implement interfaces.
1747
1748 * exp_util.adb (Find_Interface_ADT): New implementation
1749 (Find_Interface): Removed.
1750
1751 * sprint.adb (Sprint_Node_Actual): Generate missing output for the
1752 list of interfaces associated with nodes
1753 N_Formal_Derived_Type_Definition and N_Private_Extension_Declaration.
1754
17552008-05-26 Thomas Quinot <quinot@adacore.com>
1756
1757 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add missing guard on
1758 condition for assignment to temporary.
1759
c878b2ef
AC
17602008-05-26 Ed Schonberg <schonberg@adacore.com>
1761
1762 * exp_ch4.adb (Expand_Concatenate_Other): Add explicit constraint
1763 checks on the upper bound if the index type is a modular type, to
1764 prevent wrap-around computations when size is close to upper bound of
1765 type.
1766
17672008-05-26 Robert Dewar <dewar@adacore.com>
1768
1769 * sem_ch3.adb: Minor reformatting
1770
39281edf
AC
17712008-05-26 Ed Schonberg <schonberg@adacore.com>
1772
1773 * sem_ch12.adb (Remove_Parent): Use specification of instance
1774 to retrieve generic parent,
1775 to handle properly the case where the instance is a child unit.
1776 Add guard to handle properly wrapper packages.
1777 Minor reformatting
1778
17792008-05-26 Thomas Quinot <quinot@adacore.com>
1780
1781 * sinfo.ads: Minor reformatting
1782
17832008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
1784
1785 * exp_ch4.adb (Expand_N_Type_Conversion): Minor code reformatting.
1786 Generate a tag check when the result subtype of a function, defined by
1787 an access definition, designates a specific tagged type.
1788 (Make_Tag_Check): New routine.
1789
d6ca724c
AC
17902008-05-26 Arnaud Charlet <charlet@adacore.com>
1791
1792 * ceinfo.adb, csinfo.adb: Remove warnings. Update headers.
1793
c654b659
EB
17942008-05-26 Eric Botcazou <ebotcazou@adacore.com>
1795
1796 * gigi.h (gigi): Remove bogus ATTRIBUTE_UNUSED marker.
1797 (builtin_decl_for): Likewise.
1798 * trans.c (gigi): Likewise.
1799 * utils.c (def_builtin_1): Fix formatting.
1800
1c331d2d
AC
18012008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
1802
1803 * exp_ch3.adb (Build_Init_Statements): Alphabetize local variables.
1804 Create the statements which map a string name to protected or task
1805 entry indix.
1806
1807 * exp_ch9.adb: Add with and use clause for Stringt.
1808 Minor code reformatting.
1809 (Build_Entry_Names): New routine.
1810 (Make_Initialize_Protection, Make_Task_Create_Call): Generate a value
1811 for flag Build_Entry_Names which controls the allocation of the data
1812 structure for the string names of entries.
1813
1814 * exp_ch9.ads (Build_Entry_Names): New subprogram.
1815
1816 * exp_util.adb (Entry_Names_OK): New function.
1817
1818 * exp_util.ads (Entry_Names_OK): New function.
1819
1820 * rtsfind.ads: Add RO_PE_Set_Entry_Name and RO_TS_Set_Entry_Name to
1821 enumerations RE_Id and RE_Unit_Table.
1822
1823 * s-taskin.adb Add with and use clause for Ada.Unchecked_Deallocation.
1824 (Free_Entry_Names_Array): New routine.
1825
1826 * s-taskin.ads: Comment reformatting.
1827 Add types String_Access, Entry_Names_Array, Entry_Names_Array_Access.
1828 Add component Entry_Names to record Ada_Task_Control_Block.
1829 (Free_Entry_Names_Array): New routine.
1830
1831 * s-tassta.adb (Create_Task): If flag Build_Entry_Names is set,
1832 dynamically allocate an array
1833 of string pointers. This structure holds string entry names.
1834 (Free_Entry_Names): New routine.
1835 (Free_Task, Vulnerable_Free_Task): Deallocate the entry names array.
1836 (Set_Entry_Names): New routine.
1837
1838 * s-tassta.ads:
1839 (Create_Task): Add formal Build_Entry_Names. The flag is used to
1840 control the allocation of the data structure which stores entry names.
1841 (Set_Entry_Name): New routine.
1842
1843 * s-tpoben.adb:
1844 Add with and use clause for Ada.Unchecked_Conversion.
1845 (Finalize): Deallocate the entry names array.
1846 (Free_Entry_Names): New routine.
1847 (Initialize_Protection_Entries): When flag Build_Entry_Names is set,
1848 create an array of string pointers to hold the entry names.
1849 (Set_Entry_Name): New routine.
1850
1851 * s-tpoben.ads:
1852 Add field Entry_Names to record Protection_Entries.
1853 (Initialize_Protection_Entries): Add formal Build_Entry_Names.
1854 (Set_Entry_Name): New routine.
1855
18562008-05-26 Vincent Celier <celier@adacore.com>
1857
1858 * prj-nmsc.adb:
1859 (Process_Project_Level_Simple_Attributes): process attribute Library_GCC
1860
1861 * prj.ads:
1862 (Project_Configuration): New component Shared_Lib_Driver
1863
18642008-05-26 Ed Schonberg <schonberg@adacore.com>
1865
1866 * inline.adb:
1867 (Cleanup_Scopes): For a protected operation, transfer finalization list
1868 to protected body subprogram, to force cleanup actions when needed.
1869
18702008-05-26 Robert Dewar <dewar@adacore.com>
1871
1872 * sem_cat.adb: Minor reformatting
1873
1874 * gnatname.adb: Minor reformatting
1875
1876 * osint.ads: Minor reformatting
1877
1878 * s-carun8.ads: Minor reformatting
1879
1880 * g-heasor.ads: Minor comment fix (unit is now pure)
1881
18822008-05-26 Robert Dewar <dewar@adacore.com>
1883
1884 * exp_ch2.adb:
1885 (Expand_Current_Value): Properly type generated integer literal
1886
18872008-05-26 Sergey Rybin <rybin@adacore.com>
1888
1889 * gnat_ugn.texi: Add description for the new gnatcheck rule -
1890 Separate_Numeric_Error_Handlers.
1891
18922008-05-26 Pascal Obry <obry@adacore.com>
1893
1894 * sem_aggr.adb: Minor reformatting.
1895
18962008-05-26 Jose Ruiz <ruiz@adacore.com>
1897
1898 * s-osinte-aix.adb:
1899 (To_Target_Priority): Setting the time slice value to 0 or greater sets
1900 the scheduling policy to FIFO within priorities or round-robin
1901 respectively.
1902 Hence, the priority must be set in this case to the one selected by the
1903 user.
1904
19052008-05-26 Ed Schonberg <schonberg@adacore.com>
1906
1907 * sem_ch12.adb:
1908 (Remove_Parent): If the enclosing scope is an instance whose generic
1909 parent is declared within some parent scope of the just completed
1910 instance, make full views of the entities in that parent visible, when
1911 applicable.
1912
a28e8f45
KT
19132008-05-26 Kai Tietz <kai.tietz@onevision.com>
1914
1915 * mingw32.h (STD_MINGW): Set to true for target w64.
1916
3651f7ad
EB
19172008-05-25 Eric Botcazou <ebotcazou@adacore.com>
1918
1919 * trans.c (Attribute_to_gnu) <Code_Address>: Set TREE_NO_TRAMPOLINE
1920 instead of TREE_STATIC on the ADDR_EXPR.
1921
58272d79
EB
19222008-05-24 Eric Botcazou <ebotcazou@adacore.com>
1923
1924 * trans.c (gnat_to_gnu): Do not set source location info on NOP_EXPRs.
1925 (Sloc_to_locus): Do not overwrite known GCC locations when translating
1926 GNAT standard locations.
1927
4c8125f4
EB
19282008-05-23 Eric Botcazou <ebotcazou@adacore.com>
1929
1930 * gigi.h (mark_visited): Declare.
1931 * decl.c (gnat_to_gnu_entity): Use mark_visited instead of marking
1932 only the topmost node of expressions.
b86c6d94 1933 (elaborate_expression_1): Look deeper for read-only variables.
4c8125f4
EB
1934 * trans.c (add_decl_expr): Use mark_visited instead of marking by hand.
1935 (mark_visited): Move logic to mark_visited_r. Invoke walk_tree.
1936 (mark_visited_r): New function.
1937
d1ba4e42
AC
19382008-05-23 Vincent Celier <celier@adacore.com>
1939
b86c6d94 1940 * snames.adb: New standard name Excluded_Source_List_File.
d1ba4e42 1941
b86c6d94 1942 * snames.ads: New standard name Excluded_Source_List_File.
d1ba4e42 1943
b86c6d94 1944 * prj-attr.adb: New project level attribute Excluded_Source_List_File.
d1ba4e42 1945
b86c6d94 1946 * prj-nmsc.adb: (Find_Excluded_Sources): New parameter Project.
d1ba4e42
AC
1947 Get excluded sources from
1948 file indicated by attribute Excluded_Source_List_File, when present and
1949 neither Excluded_Source_Files nor Locally_Removed_Files are declared.
1950
19512008-05-23 Robert Dewar <dewar@adacore.com>
1952
1953 * exp_dist.adb: Minor reformatting
1954
19552008-05-23 Ed Schonberg <schonberg@adacore.com>
1956
1957 * sem_attr.adb (Resolve_Attribute, case 'address): If the prefix is a
1958 slice, convert it to an indexed component, which is equivalent, more
1959 efficient, and usable even if the slice itself is not addressable.
1960
19612008-05-23 Olivier Hainque <hainque@adacore.com>
1962
1963 * gnat_ugn.texi (Calling Conventions): Document that the Intrinsic
1964 convention also allows access to named compiler built-in subprograms
1965 such as the GCC __builtin family.
1966
ffd0dd6c
AC
19672008-05-23 Vincent Celier <celier@adacore.com>
1968
1969 * prj-nmsc.adb (Check_Naming_Schemes): Check a file for spec, body and
1970 sep. If there are several possibilities, choose the one with the
1971 longer prefix.
1972
19732008-05-23 Vincent Celier <celier@adacore.com>
1974
1975 * gnatlink.adb (Process_Args): Do not disable scanning of ALI file for
1976 back end switches when executable specified with --GCC= is same as
1977 default, even if there are additional options.
1978
1979 * gnat_ugn.texi:
1980 Document when the back end switches from the ALI file are taken into
1981 account when gnatlink is invoked with --GCC=
1982
19832008-05-23 Thomas Quinot <quinot@adacore.com>
1984
1985 * s-os_lib.adb:
1986 (copy_File): Do not open destination file if source file is unreadable.
1987
3fda3252
EB
19882008-05-23 Eric Botcazou <ebotcazou@adacore.com>
1989
1990 * utils.c (handle_type_generic_attribute): Adjust to accept
1991 fixed arguments before an elipsis.
1992
92c708d2
TQ
19932008-05-21 Thomas Quinot <quinot@adacore.com>
1994
1995 * g-sothco.ads, g-sothco.adb: New files.
1996
93a7c573
AC
19972008-05-20 Thomas Quinot <quinot@adacore.com>
1998
1999 * Makefile.rtl (GNAT.Sockets.Thin_Common): New unit.
2000
2001 * g-sttsne-vxworks.adb: Add missing dependency on Sockets.Constants.
2002 Add missing "with" of Ada.Unchecked_Conversion
2003
2004 * g-soccon-linux-ppc.ads, g-soccon-linux-64.ads, g-soccon-lynxos.ads,
2005 g-soccon-linux-x86.ads, g-soccon-hpux-ia64.ads,
2006 g-soccon-solaris-64.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
2007 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
2008 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
2009 g-socthi-vxworks.adb, g-soccon-freebsd.ads, g-soccon.ads:
2010 Move common code out of GNAT.Sockets.Thin implementations and into
2011 Thin_Common.
2012 New constant SIZEOF_fd_set
2013 New flag Has_Sockaddr_Len
2014 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
2015
2016 * g-stsifd-sockets.adb
2017 (Create): Remove call to Set_Length; use Set_Family to set the family
2018 and (on appropriate platforms) length fields in struct sockaddr.
2019
2020 * g-socthi.adb, g-socthi.ads, g-socthi-vms.ads, g-socthi-vms.adb,
2021 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.adb,
2022 g-soccon-darwin.ads, g-soccon-darwin.ads: New constant SIZEOF_fd_set
2023 Move common code out of GNAT.Sockets.Thin implementations and into
2024 Thin_Common.
2025
2026 * g-socket.ads, g-socket.adb:
2027 Move common code out of GNAT.Sockets.Thin implementations and into
2028 Thin_Common.
2029 (Connect_Socket, Accept_Socket): Provide new versions of these two
2030 routines that operate with a user specified timeout.
2031 (Bind_Socket, Connect_Socket, Send_Socket): Remove calls to Set_Length,
2032 this is now handled automatically by Set_Family on platforms that
2033 require it.
2034
2035 * gen-soccon.c:
2036 Move common code out of GNAT.Sockets.Thin implementations and into
2037 Thin_Common.
2038 (SIZEOF_sockaddr_in6): On platforms where IPv6 is not supported, define
2039 this constant to 0 (not -1) because we use it to initialize an
2040 unsigned_char value.
2041 Align values for numeric constants only.
2042 Handle the case of systems that do not support AF_INET6.
2043 New constant SIZEOF_fd_set
2044 New flag Has_Sockaddr_Len
2045 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
2046
2047 * gsocket.h: New flag Has_Sockaddr_Len
2048 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
2049
20502008-05-20 Santiago Uruena <uruena@adacore.com>
2051
2052 * i-cobol.ads: Interfaces.COBOL should be preelaborate.
2053
20542008-05-20 Arnaud Charlet <charlet@adacore.com>
2055
2056 * s-linux-hppa.ads (atomic_lock_t): Put back proper alignment now that
2057 the underlying issue with malloc/free has been fixed. Remove associated
2058 comments.
2059 Minor reformatting.
2060 Related to PR ada/24533
2061
20622008-05-20 Robert Dewar <dewar@adacore.com>
2063
2064 * ali.adb: Correct casing of ASCII.NUL
2065
2066 * styleg-c.adb (Check_Identifier): Handle case of names in ASCII
2067 properly.
2068
20692008-05-20 Robert Dewar <dewar@adacore.com>
2070 Gary Dismukes <dismukes@adacore.com>
2071
2072 * checks.adb (Apply_Arithmetic_Overflow_Check): Avoid intermediate
2073 overflow if result converted to wider integer type.
2074 (Apply_Type_Conversion_Checks): Don't emit checks on conversions to
2075 discriminated types when discriminant checks are suppressed.
2076
20772008-05-20 Vincent Celier <celier@adacore.com>
2078
2079 * cstand.adb (Print_Standard): Issue the correct Size clause for type
2080 Wide_Wide_Character.
2081
20822008-05-20 Tristan Gingold <gingold@adacore.com>
2083
2084 * decl.c: Do not emit a variable for a object that has an address
2085 representation clause whose value is known at compile time.
2086 When a variable has an address clause whose value is known at compile
2087 time, refer to this variable by using directly the address instead of
2088 dereferencing a pointer.
2089
20902008-05-20 Robert Dewar <dewar@adacore.com>
2091
2092 PR ada/30740
2093 * einfo.ads, einfo.adb (Non_Binary_Modulus): Applies to all types and
2094 subtypes, always False for non-modular types.
2095 Shared_Var_Assign_Proc (node22) and Shared_Var_Read_Proc (node 15)
2096 entry nodes have been replaced by Shared_Var_Procs_Instance (node22)
2097 for Shared_Storage package.
2098 (Is_RACW_Stub_Type): New entity flag.
2099
2100 * exp_ch4.adb
2101 (Expand_N_Op_Expon): Avoid incorrect optimization of a*(2**b) in the
2102 case where we have a modular type with a non-binary modules.
2103 Comments reformattings.
2104
2105 * sem_intr.adb: Simplify code not that Non_Binary_Modulus applies to
2106 all types.
2107
21082008-05-20 Javier Miranda <miranda@adacore.com>
2109
2110 * exp_aggr.adb
2111 (Build_Record_Aggr_Code): Fix wrong tests checking progenitors. Previous
2112 tests did not covered the case in which the type of the aggregate has
2113 no progenitors but some its parents has progenitors.
2114
21152008-05-20 Gary Dismukes <dismukes@adacore.com>
2116 Hristian Kirtchev <kirtchev@adacore.com>
2117
2118 * exp_ch3.adb
2119 (Expand_N_Object_Declaration): Correct the condition which triggers the
2120 generation of a call to Displace when initializing a class-wide object.
2121 (Build_Dcheck_Functions): Build discriminant-checking for null variants
2122 when Frontend_Layout_On_Target is true to ensure that they're available
2123 for calling when a record variant size function is built in Layout.
2124
21252008-05-20 Ed Schonberg <schonberg@adacore.com>
2126
2127 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
2128 procedure for a derived type retrieve the discriminant values from the
2129 parent using the corresponding discriminant.
2130 (Expand_N_Assignment_Statement): Skip generation of implicit
2131 if-statement associated with controlled types if we are
2132 compiling with restriction No_Finalization.
2133
21342008-05-20 Vincent Celier <celier@adacore.com>
2135
2136 * prj.adb (Hash (Project_Id)): New function
2137 (Project_Empty): Add new component Interfaces_Defined
2138
2139 * prj.ads (Source_Data): New component Object_Linked
2140 (Language_Config): New components Object_Generated and Objects_Linked
2141 (Hash (Project_Id)): New function
2142 (Source_Data): New Boolean components In_Interfaces and
2143 Declared_In_Interfaces.
2144 (Project_Data): New Boolean component Interfaces_Defined
2145
2146 * prj-attr.adb:
2147 New project level attribute Object_Generated and Objects_Linked
2148 Add new project level attribute Interfaces
2149
2150 * prj-dect.adb: Use functions Present and No throughout
2151 (Parse_Variable_Declaration): If a string type is specified as a simple
2152 name and is not found in the current project, look for it also in the
2153 ancestors of the project.
2154
2155 * prj-makr.adb:
2156 Replace procedure Make with procedures Initialize, Process and Finalize
2157 to implement H414-023: process different directories with different
2158 patterns.
2159 Use functions Present and No throughout
2160
2161 * prj-makr.ads:
2162 Replace procedure Make with procedures Initialize, Process and Finalize
2163
2164 * prj-nmsc.adb
2165 (Add_Source): Set component Object_Exists and Object_Linked accordnig to
2166 the language configuration.
2167 (Process_Project_Level_Array_Attributes): Process new attributes
2168 Object_Generated and Object_Linked.
2169 (Report_No_Sources): New Boolean parameter Continuation, defaulted to
2170 False, to indicate that the erreor/warning is a continuation.
2171 (Check): Call Report_No_Sources with Contnuation = True after the first
2172 call.
2173 (Error_Msg): Process successively contnuation character and warning
2174 character.
2175 (Find_Explicit_Sources): Check that all declared sources have been found
2176 (Check_File): Indicate in hash table Source_Names when a declared source
2177 is found.
2178 (Check_File): Set Other_Part when found
2179 (Find_Explicit_Sources): In multi language mode, check if all exceptions
2180 to the naming scheme have been found. For Ada, report an error if an
2181 exception has not been found. Otherwise, disregard the exception.
2182 (Check_Interfaces): New procedure
2183 (Add_Source): When Other_Part is defined, set mutual pointers in spec
2184 and body.
2185 (Check): In multi-language mode, call Check_Interfaces
2186 (Process_Sources_In_Multi_Language_Mode): Set In_Interfaces to False
2187 for an excluded source.
2188 (Remove_Source): A source replacing a source in the interfaces is also
2189 in the interfaces.
2190
2191 * prj-pars.adb: Use function Present
2192
2193 * prj-part.adb: Use functions Present and No throughout
2194 (Parse_Single_Project): Set the parent project for child projects
2195 (Create_Virtual_Extending_Project): Register project with no qualifier
2196 (Parse_Single_Project): Allow an abstract project to be extend several
2197 times. Do not allow an abstract project to extend a non abstract
2198 project.
2199
2200 * prj-pp.adb: Use functions Present and No throughout
2201 (Print): Take into account the full associative array attribute
2202 declarations.
2203
2204 * prj-proc.adb: Use functions Present and No throughout
2205 (Expression): Call itself with the same From_Project_Node for the
2206 default value of an external reference.
2207
2208 * prj-strt.adb: Use functions Present and No throughout
2209 (Parse_Variable_Reference): If a variable is specified as a simple name
2210 and is not found in the current project, look for it also in the
2211 ancestors of the project.
2212
2213 * prj-tree.ads, prj-tree.adb (Present): New function
2214 (No): New function
2215 Use functions Present and No throughout
2216 (Parent_Project_Of): New function
2217 (Set_Parent_Project_Of): New procedure
2218
2219 * snames.ads, snames.adb:
2220 Add new standard names Object_Generated and Objects_Linked
2221
22222008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
2223
2224 * exp_ch6.adb (Expand_Call): Add guard to ensure that both the parent
2225 and the derived type are of the same kind.
2226 (Expand_Call): Generate type conversions for actuals of
2227 record or array types when the parent and the derived types differ in
2228 size and/or packed status.
2229
22302008-05-20 Javier Miranda <miranda@adacore.com>
2231 Ed Schonberg <schonberg@adacore.com>
2232
2233 * exp_disp.adb (Make_DT, Make_Secondary_DT, Make_Tags): Avoid
2234 generating dispatch tables of locally defined tagged types statically.
2235 Remove implicit if-statement that is no longer required.
2236 (Expand_Dispatching_Call): If this is a call to an instance of the
2237 generic dispatching constructor, the type of the first argument may be
2238 a subtype of Tag, so always use the base type to recognize this case.
2239
22402008-05-20 Thomas Quinot <quinot@adacore.com>
2241
2242 * exp_dist.adb
2243 (GARLIC_Support.Add_RACW_Read_Attribute): When a zero value is received,
2244 and the RACW is null-excluding, raise CONSTRAINT_ERROR instead of
2245 assigning NULL into the result, to avoid a spurious warning.
2246 (Add_RACW_Features, case Same_Scope): Add assertion that designated type
2247 is not frozen.
2248 (Add_Stub_Type): Set entity flag Is_RACW_Stub_Type on generated stub
2249 type.
2250 (Build_From_Any_Function, Build_To_Any_Function,
2251 Build_TypeCode_Function): For a type that has user-specified stream
2252 attributes, use an opaque sequence of octets as the representation.
2253
22542008-05-20 Kevin Pouget <pouget@adacore.com>
2255
2256 * exp_smem.ads, exp_smem.adb: Construction of access and assign
2257 routines has been replaced by an instantiation of
2258 System.Shared_Storage.Shared_Var_Procs generic package, while expanding
2259 shared variable declaration.
2260 Calls to access and assign routines have been replaced by calls to
2261 Read/Write routines of System.Shared_Storage.Shared_Var_Procs
2262 instantiated package.
2263
2264 * rtsfind.ads: RE_Shared_Var_Procs entry has been added in RE_Unit_Table
2265 It identifies the new generic package added in s-shasto.
2266
2267 * s-shasto.adb, s-shasto.ads: A new generic package has been added, it
2268 is instantiated for each shared passive variable. It provides
2269 supporting procedures called upon each read or write access by the
2270 expanded code.
2271
2272 * sem_attr.adb:
2273 For this runtime unit (always compiled in GNAT mode), we allow
2274 stream attributes references for limited types for the case where
2275 shared passive objects are implemented using stream attributes,
2276 which is the default in GNAT's persistent storage implementation.
2277
22782008-05-20 Ed Schonberg <schonberg@adacore.com>
2279
2280 * freeze.adb
2281 (Freeze_Enumeration_Type): For a subtype that inherits a foreign
2282 convention from its base type, do not set the type to that of integer,
2283 because it may inherit a size clause.
2284 Warn on a size clause with a size different
2285 from that of Integer, if the type has convention C.
2286
22872008-05-20 Vincent Celier <celier@adacore.com>
2288
2289 * gnatname.adb
2290 (Scan_Args): Rewrite to take into account new switch --and to separate
2291 arguments into sections.
2292 (Gnatname): Call Prj.Makr.Initialize, then Prj.Makr.Process for each
2293 section, then Finalize.
2294
22952008-05-20 Tristan Gingold <gingold@adacore.com>
2296
2297 * init.c: Enable stack probing on ppc-linux.
2298
2299 * tracebak.c: Add symbolic traceback for ppc-linux.
2300
2301 * system-linux-ppc.ads: Enable stack probing on ppc-linux.
2302
23032008-05-20 Arnaud Charlet <charlet@adacore.com>
2304
2305 * Makefile.in
2306 (common-tools): New rule, to avoid parallel build failure on gnat tools.
2307 Reenable parallel builds on this Makefile.
2308
2309 * Make-lang.in: Update dependencies.
2310
23112008-05-20 Robert Dewar <dewar@adacore.com>
2312
2313 * opt.ads (Treat_Restrictions_As_Warnings): New switch
2314
2315 * sem_prag.adb, par-prag.adb, restrict.ads: Implement flag
2316 Treat_Restrictions_As_Warnings.
2317
2318 * switch-c.adb: Recognize new switch -gnatr
2319
2320 * usage.adb: Add line for -gnatr
2321
23222008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
2323
2324 * par-ch3.adb
2325 (P_Access_Definition): Change the error message when parsing "access
2326 all" in Ada 95 mode. The message no longer forces the user to recompile
2327 in 05 mode only to discover that anonymous access types are not allowed
2328 to have "all".
2329
23302008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
2331
2332 * par-ch9.adb
2333 (P_Protected): Update the error message on missing "-gnat05" switch when
2334 using interfaces in conjunction with protected types. Remove the
2335 incorrect error message associated with the presence of "private" after
2336 a "with".
2337
23382008-05-20 Ed Schonberg <schonberg@adacore.com>
2339
2340 * sem_aggr.adb: Update comments.
2341 Improve previous change for PR ada/17985
2342
23432008-05-20 Thomas Quinot <quinot@adacore.com>
2344
2345 * sem_cat.adb
2346 (Set_Categorization_From_Scope): Do not set In_Remote_Types unless in
2347 the visible part of the spec of a remote types unit.
2348 (Validate_Remote_Access_Object_Type_Declaration):
2349 New local subprogram Is_Valid_Remote_Object_Type, replaces
2350 Is_Recursively_Limited_Private.
2351 (Validate_RACW_Primitives): Enforce E.2.2(14) rules: the types of all
2352 non-controlling formals (and the return type, even though this is not
2353 explicit in the standard) must support external streaming.
2354 (Validate_RCI_Subprogram_Declaration): Enforce E.2.3(14) rules: same
2355 as above for of RAS types and RCI subprograms. (The return type is not
2356 checked yet).
2357 Update comments related to RACWs designating limited interfaces per
2358 ARG ruling on AI05-060.
2359
2360 * sem_util.ads, sem_util.adb
2361 (Is_Remote_Access_To_Class_Wide_Type): Only rely on Is_Remote_Types and
2362 Is_Remote_Call_Interface to identify RACW types in a stable and
2363 consistent way. We used to rely in this predicate on the privateness of
2364 the designated type and its ancestors, but depending on the currently
2365 visible private parts, this caused false negatives. We now uniformly
2366 rely on checks made at the point where the RACW type is declared.
2367 (Inspect_Deferred_Constant_Completion): Moved from Sem_Ch7.
2368
23692008-05-20 Javier Miranda <miranda@adacore.com>
2370 Ed Schonberg <schonberg@adacore.com>
2371 Hristian Kirtchev <kirtchev@adacore.com>
2372
2373 * sem_ch3.adb
2374 (Analyze_Object_Declaration): Fix over-conservative condition
2375 restricting use of predefined assignment with tagged types that have
2376 convention CPP.
2377 (Analyze_Object_Declaration): Relax the check regarding deferred
2378 constants declared in scopes other than packages since they can be
2379 completed with pragma Import.
2380 Add missing escaping of all-caps word 'CPP' in error messages.
2381 (Build_Discriminated_Subtype): Do not inherit representation clauses
2382 from parent type if subtype already carries them, because they are
2383 inherited earlier during derivation and already include those that may
2384 come from a partial view.
2385
2386 * sem_ch9.adb, sem_ch5.adb, sem_ch6.adb (Analyze_Subprogram_Body):
2387 Check the declarations of a subprogram body for proper deferred
2388 constant completion.
2389
2390 * sem_ch7.ads, sem_ch7.adb
2391 (Inspect_Deferred_Constant_Completion): Moved to sem_util.
2392
23932008-05-20 Ed Schonberg <schonberg@adacore.com>
2394 Thomas Quinot <quinot@adacore.com>
2395
2396 * sem_ch4.adb
2397 (Try_Indexed_Call): Handle properly a construct of the form F(S) where
2398 F is a parameterless function that returns an array, and S is a subtype
2399 mark.
2400 (Analyze_Call): Insert dereference when the prefix is a parameterless
2401 function that returns an access to subprogram and the call has
2402 parameters.
2403 Reject a non-overloaded call whose name resolves to denote
2404 a primitive operation of the stub type generated to support a remote
2405 access-to-class-wide type.
2406
24072008-05-20 Ed Schonberg <schonberg@adacore.com>
2408
2409 * sem_ch8.adb
2410 (Note_Redundant_Use): Diagnose a redundant use within a subprogram body
2411 when there is a use clause for the same entity in the context.
2412 (Analyze_Subprogram_Renaming): A renaming_as_body is legal if it is
2413 created for a stream attribute of an abstract type or interface type.
2414
24152008-05-20 Thomas Quinot <quinot@adacore.com>
2416
2417 * sem_dist.ads, sem_dist.adb (Is_RACW_Stub_Type_Operation): New
2418 subprogram.
2419
2420 * sem_type.adb
2421 (Add_One_Interp): Ignore any interpretation that is a primitive
2422 operation of an RACW stub type (these primitives are only executed
2423 through dispatching, never through static calls).
2424 (Collect_Interps): When only one interpretation has been found, set N's
2425 Entity and Etype to that interpretation, otherwise Entity and Etype may
2426 still refer to an interpretation that was ignored by Add_One_Interp,
2427 in which case would end up with being marked as not overloaded but with
2428 an Entity attribute not pointing to its (unique) correct interpretation.
2429
24302008-05-20 Ed Schonberg <schonberg@adacore.com>
2431
2432 * sem_eval.adb
2433 (Eval_Slice): Warn when a slice whose discrete range is a subtype name
2434 denotes the whole array of its prefix.
2435
24362008-05-20 Robert Dewar <dewar@adacore.com>
2437
2438 * sem_res.adb (Resolve_Op_Not): Warn on double negation
2439
24402008-05-20 Ed Schonberg <schonberg@adacore.com>
2441
2442 * sprint.adb
2443 (Print_Itype): Do not modify the sloc of the component type of a
2444 (packed) array itype, because it is an unrelated type whose source
2445 location is independent of the point of creation of the itype itself.
2446
24472008-05-20 Thomas Quinot <quinot@adacore.com>
2448
2449 * uintp.adb, urealp.adb: Replace calls to Increment_Last + Set with
2450 Append.
2451
24522008-05-20 Robert Dewar <dewar@adacore.com>
2453 Vincent Celier <celier@adacore.com>
2454
2455 * vms_data.ads: Add entry for -gnatr
2456 Put GNAT SYNC section in proper alpha order
2457 Add VMS qualifier /DISPLAY_PROGRESS equivalent to gnatmake switch -d
2458
2459 * gnat_ugn.texi: Add documentation for new gnatname switch --and
2460 Update the style checks section
2461 Add documentation of -gnatr
2462 Add to the "Adding the Results of Compiler Checks to gnatcheck Output"
2463 subsection the explanation how compiler checks should be disabled for
2464 gnatcheck.
2465 Update the list of Ada 95 reserved words used by in the project language
2466 Add documentation for project qualifiers.
2467 Document that abstract projects may be extended by different projects in
2468 the same project tree.
2469 Add documentation for gnatmake switch -d
2470
2471 * ug_words: Add -gnatyy VMS equivalence string.
2472 Add entry for -gnatr
2473
24742008-05-20 Bob Duff <duff@adacore.com>
2475
2476 * a-rttiev.adb
2477 (Set_Handler): Remove code from both of these that implements
2478 RM-D.15(15/2), because it causes a race condition and potential
2479 deadlock.
2480 (Process_Queued_Events): Add comment explaining "exception when others
2481 => null". Add clarifying ".all", even though implicit .all is legal
2482 here.
2483
24842008-05-20 Arnaud Charlet <charlet@adacore.com>
2485
2486 * s-winext.ads: Replace representation clause by pragma Pack. Gives
2487 equivalent representation, but has the advantage of allowing
2488 compilation of this file under 64 bits platforms.
2489
2490 * s-os_lib.adb (Normalize_Pathname): Mark Cur_Dir constant.
2491
2492 * s-osinte-irix.ads: (Alternate_Stack_Size): Add dummy declaration.
2493
2494 * adaint.c:
2495 Don't define dummy implementation of convert_addresses on ppc-linux.
2496
24972008-05-20 Ed Schonberg <schonberg@adacore.com>
2498
2499 * exp_ch7.adb
2500 (Expand_Ctrl_Function_Call): Do not attach result to finalization list
2501 if expression is aggregate component.
2502
25032008-05-20 Robert Dewar <dewar@adacore.com>
2504
2505 * g-byorma.adb, gnatlink.adb, prepcomp.adb, sinfo.ads,
2506 sem_ch12.adb: Update comments. Minor reformatting.
2507
2508 * exp_ch2.adb: Typo
2509
2510 * s-unstyp.ads: Fixed some typos in comments.
2511
1b686dc4
AC
25122008-05-20 Arnaud Charlet <charlet@adacore.com>
2513
2514 * s-taspri-vxworks.ads (Task_Address, Task_Address_Size): New
2515 type/constant.
2516
2517 * g-socthi-vxworks.ads: Update to latest socket changes.
2518
2519 * a-caldel-vms.adb: Resync with a-caldel spec.
2520
6357e162
AC
2521 * exp_ch9.ads, sem_ch8.ads, inline.adb: Minor reformatting.
2522 Update comments.
2523
74c11a6c
EB
25242008-05-17 Eric Botcazou <ebotcazou@adacore.com>
2525
2526 * trans.c (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Account
2527 for dummy types pointed to by the converted pointer types.
2528
f730e42f
EB
25292008-05-15 Eric Botcazou <ebotcazou@adacore.com>
2530
2531 * trans.c (add_decl_expr): At toplevel, mark the TYPE_ADA_SIZE field
2532 of records and unions.
2533 (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Fix formatting.
2534
eaa2f8c7
ST
25352008-05-14 Samuel Tardieu <sam@rfc1149.net>
2536 Robert Dewar <dewar@adacore.com>
2537
2538 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Add
2539 restrictions to the prefix of 'Old.
2540 * sem_util.ads, sem_util.adb (In_Parameter_Specification): New.
2541 * gnat_rm.texi ('Old): Note that 'Old cannot be applied to local
2542 variables.
2543
f80cddcb
EB
25442008-05-13 Eric Botcazou <ebotcazou@adacore.com>
2545
2546 PR ada/24880
2547 PR ada/26635
2548 * utils.c (convert) <INTEGER_TYPE>: When converting an additive
2549 expression to an integral type with lower precision, use NOP_EXPR
2550 directly in a couple of special cases.
2551
ea0a7f39
ST
25522008-05-12 Samuel Tardieu <sam@rfc1149.net>
2553 Ed Schonberg <schonberg@adacore.com>
2554
2555 * sem_ch3.adb (Build_Derived_Record_Type): Accept statically matching
2556 constraint expressions.
2557
751d1520
TB
25582008-05-12 Tomas Bily <tbily@suse.cz>
2559
ea0a7f39
ST
2560 * utils2.c (known_alignment, contains_save_expr_p)
2561 (gnat_mark_addressable): Use CASE_CONVERT.
2562 * decl.c (annotate_value): Likewise.
2563 * trans.c (maybe_stabilize_reference): Likewise.
2564 * utils2.c (build_binary_op): Use CONVERT_EXPR_P.
2565 * utils.c (rest_of_record_type_compilation): Likewise.
2566 * trans.c (protect_multiple_eval, Attribute_to_gnu)
2567 (protect_multiple_eval): Likewise.
751d1520 2568
a1b66071
AS
25692008-05-08 Andreas Schwab <schwab@suse.de>
2570
2571 * utils.c (handle_pure_attribute, init_gigi_decls): Rename
2572 DECL_IS_PURE to DECL_PURE_P.
2573
bba74577
EB
25742008-05-05 Eric Botcazou <ebotcazou@adacore.com>
2575
2576 * decl.c (maybe_pad_type): Add ??? comment.
2577
8f85525e
EB
25782008-05-03 Eric Botcazou <ebotcazou@adacore.com>
2579
2580 * decl.c (components_to_record): Zero the alignment of the qualified
2581 union built for the variant part upon creating it.
2582
88f36b7e
EB
25832008-05-03 Eric Botcazou <ebotcazou@adacore.com>
2584
2585 * decl.c (maybe_pad_type): Try to get a form of the type with integral
2586 mode even if the alignment is not a factor of the original size. But
2587 make sure to create the inner field with the original size. Reorder.
2588 * trans.c (addressable_p) <COMPONENT_REF>: Treat the field of a padding
2589 record as always addressable.
2590 * utils.c (convert): Deal specially with conversions between original
2591 and packable versions of a record type.
2592 * utils2.c (build_binary_op) <MODIFY_EXPR>: Be more restrictive when
2593 recognizing an assignment between padded objects.
2594
8665c7ca
EB
25952008-05-01 Eric Botcazou <ebotcazou@adacore.com>
2596
2597 * decl.c (make_packable_type): Resize the last component to its RM size
2598 only if it is of an aggregate type.
2599 * trans.c (call_to_gnu): Fix nit in comment.
2600 (gnat_to_gnu): Likewise.
2601
ea342909
ST
26022008-04-30 Samuel Tardieu <sam@rfc1149.net>
2603
2604 * Makefile.in: Adapt sh4-linux target.
2605
af4133b2
ST
26062008-04-29 Ed Schonberg <schonberg@adacore.com>
2607
2608 PR ada/35792
2609 * sem_ch3.adb (Find_Type_Name): Refuse completion of an incomplete
2610 tagged type by an untagged protected or task type.
2611
805100b5
EB
26122008-04-28 Eric Botcazou <ebotcazou@adacore.com>
2613 Tristan Gingold <gingold@adacore.com>
2614
2615 PR ada/36007
2616 * decl.c (gnat_to_gnu_entity) <object>: Do not promote alignment
2617 of aliased objects with an unconstrained nominal subtype.
2618 Cap the promotion to the effective alignment of the word mode.
2619
99c2eec1
RW
26202008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2621
2622 * Make-lang.in (ada.tags, check-acats, ada/treeprs.ads)
2623 (ada/einfo.h, ada/sinfo.h, ada/nmake.adb, ada/nmake.ads):
2624 Use '&&' instead of ';'.
2625
22a81267
OH
26262008-04-24 Olivier Hainque <hainque@adacore.com>
2627
2628 * trans.c (Attribute_to_gnu) <case Attr_Length>: Length computation
2629 doesn't require signed arithmetic anymore.
2630
51eed280
PB
26312008-04-23 Paolo Bonzini <bonzini@gnu.org>
2632
2633 * trans.c (Attribute_to_gnu): Don't set TREE_INVARIANT.
2634 (call_to_gnu): Don't set TREE_INVARIANT.
2635 * utils2.c (gnat_build_constructor): Don't set TREE_INVARIANT.
2636
d9126ef8
JS
26372008-04-22 Joel Sherrill <joel.sherrill@oarcorp.com>
2638
2639 * s-osinte-rtems.adb: Add sigalstack function.
2640 * s-osinte-rtems.ads: Add SO_ONSTACK and sigalstack
2641 function. Add Alternate_Stack and Alternate_Stack_Size.
2642 Add missing process_shared field to pthread_condattr_t
2643 and change ss_low_priority to int from timespec.
2644
0a58c87e
ST
26452008-04-22 Samuel Tardieu <sam@rfc1149.net>
2646
2647 * i-forbla.adb: Link against -llapack and -lblas by default
2648 instead of the private -lgnalasup.
2649
009890be
OH
26502008-04-21 Olivier Hainque <hainque@adacore.com>
2651
2652 Access to most C builtins from Ada
2653 * utils.c: #include "langhooks.h" and define GCC_DIAG_STYLE.
2654 (handle_pure_attribute, handle_novops_attribute,
2655 handle_nonnull_attribute, handle_sentinel_attribute,
2656 handle_noreturn_attribute, handle_malloc_attribute,
2657 handle_type_generic_attribute): New attribute handlers, from C fe.
2658 (gnat_internal_attribute_table): Map the new handlers.
2659 (gnat_init_decl_processing): Move call to gnat_install_builtins to ...
2660 (init_gigi_decls): ... here.
2661 (handle_const_attribute, handle_nothrow_attribute, builtin_decl_for):
2662 Move to a section dedicated to builtins processing.
2663 (build_void_list_node, builtin_type_for_size): New functions.
2664 (def_fn_type, get_nonnull_operand): Likewise.
2665 (install_builtin_elementary_type, install_builtin_function_types,
2666 install_builtin_attributes): Likewise.
2667 (fake_attribute_handler): Fake handler for attributes we don't
2668 support in Ada.
2669 (def_builtin_1): New function, worker for DEF_BUILTIN.
2670 (install_builtin_functions): New function.
2671 (gnat_install_builtins): Move to the builtins processing section.
2672 Now calling the newly introduced installers.
2673
e871a873
EB
26742008-04-20 Eric Botcazou <ebotcazou@adacore.com>
2675
2676 * decl.c (gnat_to_gnu_entity) <object>: Also promote the alignment of
2677 constant objects, but not exceptions.
2678 * trans.c (add_decl_expr): Use gnat_types_compatible_p for type
2679 compatibility test.
2680 * utils.c (create_var_decl_1): Likewise.
2681 * utils2.c (build_binary_op) <MODIFY_EXPR>: Also use the padded view of
2682 the type when copying to padded object and the source is a constructor.
2683
98ae7998
EB
26842008-04-18 Eric Botcazou <ebotcazou@adacore.com>
2685
2686 * decl.c (gnat_to_gnu_entity) <object>: When trying to promote the
2687 alignment, reset it to zero if it would end up not being greater
2688 than that of the type.
2689
3569056b
EB
26902008-04-18 Eric Botcazou <ebotcazou@adacore.com>
2691
2692 * decl.c (maybe_pad_type): Only generate the XVS parallel type if
2693 the padded type has a variable size.
2694
9a089d8b
EB
26952008-04-18 Eric Botcazou <ebotcazou@adacore.com>
2696
2697 * decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Use the return by
2698 target pointer mechanism as soon as the size is not constant.
2699
0cb5c2a7
EB
27002008-04-18 Eric Botcazou <ebotcazou@adacore.com>
2701
2702 * gigi.h (create_var_decl_1): Declare.
2703 (create_var_decl): Turn into a macro invoking create_var_decl_1.
2704 (create_true_var_decl): Likewise.
2705 * utils.c (create_var_decl_1): Make global and reorder parameters.
2706 (create_var_decl): Delete.
2707 (create_true_var_decl): Likewise.
2708
90d6701e
EB
27092008-04-17 Eric Botcazou <ebotcazou@adacore.com>
2710
2711 * decl.c (gnat_to_gnu_entity) <object>: Promote the alignment of
2712 objects by default.
2713 * fe.h (Debug_Flag_Dot_A): Delete.
2714 * debug.adb (-gnatd.a): Update documentation.
2715
35485e12
ST
27162008-04-17 Samuel Tardieu <sam@rfc1149.net>
2717
2718 * g-socket.ads, g-socket.adb (Get_Address): Make Stream a
2719 "not null" parameter.
2720
111c1cd9
ST
27212008-04-17 Samuel Tardieu <sam@rfc1149.net>
2722
2723 * g-socket.adb: Add a message "IPv6 not supported" to the
2724 Socket_Error exception.
2725
35c91e05
ST
27262008-04-16 Samuel Tardieu <sam@rfc1149.net>
2727
2728 PR ada/29015
2729 * sem_ch12.adb (Instantiate_Type): Check whether the full view of
2730 the type is known instead of the underlying type.
2731
b48a6531
ST
27322008-04-15 Ed Schonberg <schonberg@adacore.com>
2733
2734 PR ada/22387
2735 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
2736 procedure for a derived type retrieve the discriminant values from
2737 the parent using the corresponding discriminant.
2738
462c31ef
ST
27392008-04-15 Samuel Tardieu <sam@rfc1149.net>
2740 Gary Dismukes <dismukes@adacore.com>
2741
2742 PR ada/28733
2743 * sem_ch8.adb (Analyze_Use_Package): Do not allow "use" of something
2744 which is not an entity (and hence not a package).
2745 (End_Use_Package): Ditto.
2746
8abe457a
ST
27472008-04-15 Ed Schonberg <schonberg@adacore.com>
2748
2749 PR ada/16086
2750 * sem_ch12.adb (Analyze_Formal_Subprogram): The default can be any
2751 protected operation that matches the signature, not only an entry, a
2752 regular subprogram or a literal.
2753
29f4754f
EB
27542008-04-15 Eric Botcazou <ebotcazou@adacore.com>
2755
2756 * ada-tree.h (DECL_BY_COMPONENT_PTR_P): Use DECL_LANG_FLAG_3.
2757 * decl.c (gnat_to_gnu_entity) <object>: Call maybe_pad_type only
2758 if a size or alignment is specified. Do not take into account
2759 alignment promotions for the computation of the object's size.
2760 <type>: Call maybe_pad_type only if a size or alignment is specified.
2761 (maybe_pad_type): Really reuse the RM_Size of the original type if
2762 requested.
2763 * trans.c (Attribute_to_gnu): Fix a couple of nits.
2764 * utils2.c (build_binary_op) <MODIFY_EXPR>: Merge related conditional
2765 statements. Use the padded view of the type when copying between
2766 padded objects of the same underlying type.
2767
f3d0f304
RW
27682008-04-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2769
2770 * vms_data.ads: Fix typo in constant.
2771 * gen-soccon.c: Fix typo in error string.
2772 * gnat_rm.texi (Pragma Optimize_Alignment, Pragma Postcondition):
2773 Fix typos.
2774 * a-calcon.ads, a-calend-vms.adb, a-calend.adb, a-crdlli.ads,
2775 bcheck.adb, checks.adb, einfo.ads, errout.adb, erroutc.adb,
2776 erroutc.ads, exp_attr.adb, exp_ch11.adb, exp_ch2.adb,
2777 exp_ch5.adb, exp_ch9.adb, exp_ch9.ads, exp_pakd.adb,
2778 exp_util.adb, fmap.adb, g-soccon-linux-mips.ads,
2779 g-soccon-rtems.ads, g-timsta.adb, g-timsta.ads, lib-writ.ads,
2780 mlib-tgt-specific-linux.adb, mlib-tgt-specific-tru64.adb,
2781 s-interr-vxworks.adb, s-interr.adb, s-osinte-lynxos.ads,
2782 s-rident.ads, s-taprop-solaris.adb, s-tassta.adb, s-win32.ads,
2783 sem_aggr.adb, sem_attr.ads, sem_ch10.adb, sem_ch13.ads,
2784 sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb, sem_ch9.adb,
2785 sem_prag.ads, sem_res.adb, sem_util.adb, sem_util.ads,
2786 sinfo.ads: Fix typos in comments.
2787
2efcad9f
RD
27882008-04-14 Robert Dewar <dewar@adacore.com>
2789
2790 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Extend error
2791 to every non-object and change error message.
2792
8f3723e0
RD
27932008-04-14 Robert Dewar <dewar@adacore.com>
2794
2795 * sem_util.ads, sem_util.adb (In_Subprogram): Remove.
2796 * sem_attr.adb (Anayze_Attribute): Check for Current_Subprogram
2797 directly.
2798
32f7efe1
ST
27992008-04-14 Samuel Tardieu <sam@rfc1149.net>
2800
2801 PR ada/18680
2802 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Refuse to
2803 apply pragma Linker_Section on type.
2804
b039b10e
ST
28052008-04-14 Samuel Tardieu <sam@rfc1149.net>
2806
2807 PR ada/16098
2808 * sem_prag.adb (Error_Pragma_Ref): New.
2809 (Process_Convention): Specialized message for non-local
2810 subprogram renaming. Detect the problem in homonyms as well.
2811
cb572b75
ST
28122008-04-14 Samuel Tardieu <sam@rfc1149.net>
2813
2814 PR ada/15915
2815 * sem_util.ads, sem_util.adb (Denotes_Variable): New function.
2816 * sem_ch12.adb (Instantiate_Object): Use it.
2817 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ensure that
2818 storage pool denotes a variable as per RM 13.11(15).
2819
17972da7
ST
28202008-04-14 Samuel Tardieu <sam@rfc1149.net>
2821
2822 * sem_util.ads, sem_util.adb (In_Subprogram): New function.
2823 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Use it.
2824
57f80aa9
RE
28252008-04-14 Rolf Ebert <rolf.ebert.gcc@gmx.de>
2826
2827 PR ada/20822
2828 * xgnatugn.adb (Put_Line): New procedure, ensuring Unix
2829 line endings even on non-Unix platforms.
2830
9ff231e2
ST
28312008-04-14 Samuel Tardieu <sam@rfc1149.net>
2832
2833 PR ada/35050
2834 * xref_lib.adb (Parse_Identifier_Info): Correctly parse and ignore the
2835 renaming information.
2836
92d4508a
ST
28372008-04-13 Samuel Tardieu <sam@rfc1149.net>
2838
2839 PR ada/17985
2840 * sem_aggr.adb (Valid_Ancestor_Type): A type is not an ancestor of
2841 itself.
2842
12a13f01
RW
28432008-04-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2844
3354f96d
RW
2845 * sfn_scan.adb, sfn_scan.ads, sinfo.ads,
2846 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput.ads,
2847 snames.ads, sprint.adb, stand.ads, stringt.ads,
2848 styleg.adb, styleg.ads, stylesw.adb, stylesw.ads,
2849 switch.ads, sysdep.c, table.adb, table.ads,
2850 targparm.ads, tb-gcc.c, tbuild.ads, tracebak.c,
2851 trans.c, tree_io.adb, treepr.adb, types.adb, types.ads,
2852 uintp.adb, uintp.ads, utils.c, utils2.c, validsw.ads,
2853 vms_conv.adb, vms_conv.ads, vms_data.ads, widechar.adb,
2854 widechar.ads, xeinfo.adb, xgnatugn.adb, xr_tabls.adb,
2855 xr_tabls.ads, xref_lib.adb, xref_lib.ads, xsinfo.adb:
2856 Fix comment typos.
2857
f3d57416
RW
2858 * sem_ch10.adb, sem_ch10.ads,
2859 sem_ch12.adb, sem_ch12.ads, sem_ch13.adb, sem_ch13.ads,
2860 sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
2861 sem_ch6.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
2862 sem_elab.adb, sem_elab.ads, sem_elim.ads, sem_eval.adb,
2863 sem_eval.ads, sem_intr.adb, sem_mech.adb, sem_mech.ads,
2864 sem_prag.adb, sem_prag.ads, sem_res.adb, sem_res.ads,
2865 sem_type.adb, sem_util.adb, sem_util.ads, sem_warn.adb,
2866 sem_warn.ads: Fix comment typos.
2867
12a13f01
RW
2868 * s-secsta.adb, s-sequio.ads, s-shasto.ads,
2869 s-soflin.ads, s-stalib.ads, s-stausa.adb,
2870 s-stausa.ads, s-strxdr.adb, s-taenca.adb, s-taenca.ads,
2871 s-taprob.adb, s-taprop-hpux-dce.adb, s-taprop-irix.adb,
2872 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-posix.adb,
2873 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
2874 s-taprop-vxworks.adb, s-taprop.ads, s-tarest.adb,
2875 s-tarest.ads, s-tasini.adb, s-tasini.ads, s-taskin.ads,
2876 s-tasque.ads, s-tassta.adb, s-tassta.ads, s-tasuti.ads,
2877 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
2878 s-tpopsp-posix.adb, s-tpopsp-rtems.adb, s-tposen.adb,
2879 s-tposen.ads, s-traceb-hpux.adb, s-traces.ads,
2880 s-trafor-default.ads, s-unstyp.ads, s-utf_32.ads,
2881 s-vaflop.adb, s-vaflop.ads, s-valrea.adb, s-valuti.adb,
2882 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, scans.ads,
2883 scn.adb, scng.adb, seh_init.c, sem.ads, sem_aggr.adb,
2884 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
2885 sem_cat.adb, sem_cat.ads: Fix comment typos.
2886
2b699ab1
JS
28872008-04-12 Joel Sherrill <joel@oarcorp.com>
2888
2889 PR ada/35825
2890 * g-soccon-rtems.ads: Add IP_PKTINFO as unsupported.
2891
1e273538
AC
28922008-04-12 Arnaud Charlet <charlet@adacore.com>
2893
2894 * s-linux-hppa.ads: Fix syntax errors.
2895
276e95ca
RW
28962008-04-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2897
2898 * gnat_ugn.texi: Fix typos.
2899 * raise-gcc.c, repinfo.adb, repinfo.ads, restrict.adb,
2900 restrict.ads, rtsfind.adb, rtsfind.ads, s-arit64.ads,
2901 s-asthan-vms-alpha.adb, s-auxdec.ads, s-casuti.ads,
2902 s-fatflt.ads, s-fatgen.adb, s-fatlfl.ads,
2903 s-fatllf.ads, s-fatsfl.ads, s-filofl.ads,
2904 s-finimp.adb, s-finroo.ads, s-fishfl.ads,
2905 s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
2906 s-hibaen.ads, s-htable.ads, s-imgcha.adb,
2907 s-imgenu.ads, s-imgint.adb, s-imgrea.adb,
2908 s-inmaop-dummy.adb, s-inmaop.ads, s-interr-vms.adb,
2909 s-interr-vxworks.adb, s-interr.adb, s-interr.ads,
2910 s-intman-vxworks.ads, s-intman.ads, s-mastop-irix.adb,
2911 s-os_lib.adb, s-os_lib.ads, s-osinte-aix.ads,
2912 s-osinte-darwin.ads, s-osinte-freebsd.ads,
2913 s-osinte-hpux.ads, s-osinte-lynxos-3.adb,
2914 s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
2915 s-osinte-rtems.ads, s-osinte-solaris-posix.ads,
2916 s-osprim-mingw.adb, s-osprim-vms.adb, s-parame-ae653.ads,
2917 s-parame-hpux.ads, s-parame-vms-alpha.ads,
2918 s-parame-vms-ia64.ads, s-parame-vms-restrict.ads,
2919 s-parame-vxworks.ads, s-parame.ads, s-parint.adb,
2920 s-parint.ads, s-poosiz.adb, s-proinf-irix-athread.ads,
2921 s-proinf.ads, s-regexp.adb, s-regpat.adb, s-regpat.ads,
2922 s-rident.ads: Fix comment typos.
2923
ce4e59c4
ST
29242008-04-09 Samuel Tardieu <sam@rfc1149.net>
2925
2926 PR ada/28305
2927 * sem_ch6.adb (Build_Body_To_Inline): Do not save and restore
2928 environment if generic instance is a top-level one.
2929
6d21c8af
DR
29302008-04-09 Doug Rupp <rupp@adacore.com>
2931
2932 * decl.c (validate_size): Set minimum size for fat pointers same as
2933 access types. Code clean ups.
2934
2935 * gmem.c (xstrdup32): New macro for 32bit dup on VMS, noop otherwise
2936 (__gnat_gmem_a2l_initialize): Dup exename into 32 bit memory on VMS
2937
2938 * s-auxdec-vms_64.ads, s-auxdec.ads (Short_Address_Size): New constant
2939
2940 * s-crtl.ads (malloc32) New function, alias for malloc
2941 (realloc32) New function, alias for realloc
2942
2943 * socket.c (__gnat_new_socket_set): Malloc fd_set in 32 bits on VMS
2944
2945 * utils2.c (build_call_alloc_dealloc): Return call to short malloc if
2946 allocator size is 32 and default pointer size is 64.
2947 (find_common_type): Document assumption on t1/t2 vs lhs/rhs. Force use of
2948 lhs type if smaller, whatever the modes.
2949
2950 * gigi.h (malloc32_decl): New macro definition
2951
2952 * utils.c (init_gigi_decls): New malloc32_decl
2953 Various code clean ups.
2954
2955 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
2956 Task_Address vice System.Address.
2957
2958 * s-taspri-vms.ads: Import System.Aux_DEC
2959 (Task_Address): New subtype of System.Aux_DEC.Short_Address
2960 (Task_Address_Size): New constant size of System.Aux_DEC.Short_Address
2961
2962 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
2963 Task_Address vice System.Address.
2964
2965 * s-inmaop-vms.adb: Import System.Task_Primitives
2966 (To_Address): Unchecked convert to Task_Address vice System.Address
2967
2968 * s-taprop-vms.adb (Timed_Delay): Always set the timer even if delay
2969 expires now.
2970 (To_Task_ID) Unchecked convert from Task_Adddress vice System.Address
2971 (To_Address) Unchecked convert to Task_Address vice System.Address
2972
2973 * s-tpopde-vms.adb: Remove unnecessary warning pragmas
2974
2975 * g-socthi-vms.ads: Add 32bit size clauses on socket access types.
2976
581edf92
EB
29772008-04-08 Eric Botcazou <ebotcazou@adacore.com>
2978
2979 * gigi.h (standard_datatypes): Add ADT_fdesc_type and ADT_null_fdesc.
2980 (fdesc_type_node): Define.
2981 (null_fdesc_node): Likewise.
2982 * decl.c (gnat_to_gnu_entity) <E_Access_Subprogram_Type>: If the target
2983 uses descriptors for vtables and the type comes from a dispatch table,
2984 return the descriptor type.
2985 * trans.c (Attribute_to_gnu) <Attr_Unrestricted_Access>: If the target
2986 uses descriptors for vtables and the type comes from a dispatch table,
2987 build a descriptor in the static case and copy the existing one in the
2988 non-static case.
2989 (gnat_to_gnu) <N_Null>: If the target uses descriptors for vtables and
2990 the type is a pointer-to-subprogram coming from a dispatch table,
2991 return the null descriptor.
2992 <N_Unchecked_Type_Conversion>: If the target uses descriptors for
2993 vtables, the source type is the descriptor type and the target type
2994 is a pointer type, first build the pointer.
2995 * utils.c (init_gigi_decls): If the target uses descriptors for vtables
2996 build the descriptor type and the null descriptor.
2997
e1da2b17
EB
29982008-04-08 Eric Botcazou <ebotcazou@adacore.com>
2999
3000 * decl.c (prepend_attributes): Fix typo.
3001 * trans.c (Pragma_to_gnu): Likewise.
3002 * utils.c (gnat_genericize): Likewise.
3003
2b3dffa6
EB
30042008-04-08 Eric Botcazou <ebotcazou@adacore.com>
3005 Richard Kenner <kenner@adacore.com>
3006
3007 * ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Only set it when bit-packed.
3008 * decl.c (gnat_to_gnu_entity): Adjust for above change.
3009 <E_Record_Type>: Try to get a better form of the component for
3010 packing, even if it has an integral mode.
3011 <E_Record_Subtype>: Likewise.
3012 * trans.c (gnat_to_gnu): Do not require BLKmode for the special
3013 exception suppressing the final conversion between record types.
3014
ba3f46d0
EB
30152008-04-08 Eric Botcazou <ebotcazou@adacore.com>
3016
3017 * decl.c (gnat_to_gnu_entity) <object>: If -gnatd.a and not optimizing
3018 alignment for space, promote the alignment of non-scalar variables with
3019 no size and alignment.
3020 * gigi.h (gnat_types_compatible_p): Declare.
3021 * misc.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Set to above predicate.
3022 * trans.c (gnat_to_gnu): Revert revision 129339 change. Minor cleanup.
3023 * utils.c (gnat_types_compatible_p) : New predicate.
3024 (convert): Use it throughout to test for cases where a mere view
3025 conversion is sufficient.
3026 * utils2.c (build_binary_op): Minor tweaks.
3027 (build_unary_op): Likewise.
3028
373140ef
EB
30292008-04-08 Eric Botcazou <ebotcazou@adacore.com>
3030
3031 * decl.c (adjust_packed): Expand comment.
3032
ea081ad7
AC
30332008-04-08 Arnaud Charlet <charlet@adacore.com>
3034
3035 * s-tasuti.ads: Use Task_Address instead of System.Address.
3036
3037 * makeutl.adb (Path_Or_File_Name): New function
3038
3039 * nlists.ads, itypes.ads: Update comments.
3040
3041 * s-crtl.ads (malloc32, realloc32): New functions.
3042
3043 * s-auxdec.ads (Short_Address_Size): New constant.
3044
3045 * a-taside.adb, s-tasdeb.adb: Use Task_Address.
3046
3047 * s-ststop.ads, s-ststop.adb: New file.
3048
3049 * exp_tss.ads, s-taprop-lynxos.adb: Update comments.
3050 Minor reformatting.
3051
d563d3f0
AC
30522008-04-08 Pascal Obry <obry@adacore.com>
3053
3054 * g-sercom.ads, g-sercom.adb (Data_Rate): Add B115200.
3055 (Stop_Bits_Number): New type.
3056 (Parity_Check): Likewise.
3057 (Set): Add parameter to set the number of stop bits and
3058 the parity. Parameter timeout is now a duration instead
3059 of a plain integer.
3060
3061 * g-sercom-linux.adb:
3062 Implement the stop bits and parity support for GNU/Linux.
3063 Fix handling of timeout, it must be given in tenth of seconds.
3064
3065 * g-sercom-mingw.adb:
3066 Implement the stop bits and parity support for Windows.
3067 Use new s-win32.ads unit instead of declaring Win32 services
3068 directly into this body.
3069 Update handling of timeout as now a duration.
3070
3071 * s-win32.ads, s-winext.ads: New files.
3072
30732008-04-08 Eric Botcazou <ebotcazou@adacore.com>
3074 Arnaud Charlet <charlet@adacore.com>
3075
3076 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads: Removed.
3077
3078 s-taspri-posix-noaltstack.ads, s-linux.ads, s-linux-alpha.ads,
3079 s-linux-hppa.ads: New files. Disable alternate stack on ia64-hpux.
3080
3081 * s-osinte-lynxos-3.ads,
3082 (Alternate_Stack): Remove when not needed. Simplify declaration
3083 otherwise.
3084 (Alternate_Stack_Size): New constant.
3085
3086 s-osinte-mingw.ads, s-taprop-mingw.adb: Code clean up: avoid use of
3087 'Unrestricted_Access.
3088
3089 * s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-aix.ads,
3090 s-osinte-lynxos.ads, s-osinte-freebsd.ads s-osinte-darwin.ads,
3091 s-osinte-tru64.ads, s-osinte-irix.ads, s-osinte-linux.ads,
3092 s-osinte-solaris.ads, s-osinte-vms.ads
3093 (SA_ONSTACK): New constant.
3094 (stack_t): New record type.
3095 (sigaltstack): New imported function.
3096 (Alternate_Stack): New imported variable.
3097 (Alternate_Stack_Size): New constant.
3098
3099 * system-linux-x86_64.ads: (Stack_Check_Probes): Set to True.
3100
3101 * s-taspri-lynxos.ads, s-taspri-solaris.ads, s-taspri-tru64.ads,
ea081ad7
AC
3102 s-taspri-hpux-dce.ads, s-taspri-dummy.ads, s-taspri-posix.ads,
3103 s-taspri-vms.ads (Task_Address): New subtype of System.Address
d563d3f0
AC
3104 (Task_Address_Size): New constant size of System.Address
3105 (Alternate_Stack_Size): New constant.
3106
3107 * s-taprop-posix.adb, s-taprop-linux.adb (Get_Stack_Attributes): Delete.
3108 (Enter_Task): Do not notify stack to System.Stack_Checking.Operations.
3109 Establish the alternate stack if the platform makes use of n alternate
3110 signal stack for stack overflows.
3111 (Create_Task): Take into account the alternate stack in the stack size.
3112 (Initialize): Save the address of the alternate stack into the ATCB for
3113 the environment task.
3114 (Create_Task): Fix assertions for NPTL library (vs old LinuxThreads).
3115
ea081ad7 3116 * s-parame.adb (Minimum_Stack_Size): Increase value to 16K
d563d3f0
AC
3117
3118 * system-linux-x86.ads: (Stack_Check_Probes): Set to True.
3119
3120 * s-intman-posix.adb:
3121 (Initialize): Set SA_ONSTACK for SIGSEGV if the platform makes use of an
3122 alternate signal stack for stack overflows.
3123
3124 * init.c (__gnat_adjust_context_for_raise, Linux version): On i386 and
3125 x86-64, adjust the saved value of the stack pointer if the signal was
3126 raised by a stack checking probe.
3127 (HP-UX section): Use global __gnat_alternate_stack as signal handler
3128 stack and only for SIGSEGV.
3129 (Linux section): Likewise on x86 and x86-64.
3130 [VxWorks section]
3131 (__gnat_map_signal): Now static.
3132 (__gnat_error_handler): Not static any more.
3133 (__gnat_adjust_context_for_raise): New function. Signal context
3134 adjustment for PPC && !VTHREADS && !RTP, as required by the zcx
3135 propagation circuitry.
3136 (__gnat_error_handler): Second argument of a sigaction handler is a
3137 pointer, not an int, and is unused.
3138 Adjust signal context before mapping to exception.
3139 Install signal handlers for LynxOS case.
3140
3141 * s-taskin.ads (Common_ATCB): New field Task_Alternate_Stack.
3142 (Task_Id): Set size to Task_Address_Size
3143 (To_Task_id): Unchecked convert from Task_Address vice System.Address
3144 (To_Address): Unchecked convert to Task_Address vice System.Address
3145
3146 * s-tassta.adb (Task_Wrapper): Define the alternate stack and save its
3147 address into the ATCB if the platform makes use of an alternate signal
3148 stack for stack overflows.
3149 (Free_Task): Add call to Finalize_Attributes_Link.
3150 Add argument Relative_Deadline to pass the value specified for
3151 the task. This is not yet used for any target.
3152
3153 * s-tassta.ads (Create_Task): Add argument Relative_Deadline to pass
3154 the value specified for the task.
3155
31562008-04-08 Arnaud Charlet <charlet@adacore.com>
3157
3158 (s-osinte-vxworks6.ads): Removed, merged with s-osinte-vxworks.ads/.adb
3159 (s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads,
3160 s-vxwext-rtp.adb): New files.
3161
3162 * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-osinte-vxworks.adb:
3163 Minor updates to accomodate changes above.
3164
31652008-04-08 Pascal Obry <obry@adacore.com>
3166
3167 * a-exetim-mingw.adb, s-gloloc-mingw.adb, s-taprop-mingw.adb,
3168 s-tasinf-mingw.ad{s,b}, s-taspri-mingw.ads:
3169 Use new s-win32.ads unit instead of declaration
3170 from s-osinte-mingw.ads.
3171
3172 * s-osinte-mingw.ads:
3173 Move all non tasking based interface to s-win32.ads.
3174
3175 * s-osprim-mingw.adb:
3176 Remove duplicated declarations and use s-win32.ads
3177 unit instead.
3178
31792008-04-08 Vincent Celier <celier@adacore.com>
3180 Arnaud Charlet <charlet@adacore.com>
3181
3182 * mlib-tgt-aix.adb, mlib-tgt-darwin.adb, mlib-tgt-hpux.adb,
3183 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-lynxos.adb,
3184 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
3185 mlib-tgt-vms.ads, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
3186 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb: Renamed into...
3187
3188 * mlib-tgt-specific-aix.adb, mlib-tgt-specific-darwin.adb,
3189 mlib-tgt-specific-hpux.adb, mlib-tgt-specific-irix.adb,
3190 mlib-tgt-specific-linux.adb, mlib-tgt-specific-lynxos.adb,
3191 mlib-tgt-specific-solaris.adb, mlib-tgt-specific-tru64.adb,
3192 mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads,
3193 mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
3194 mlib-tgt-specific-vxworks.adb, mlib-tgt-specific-xi.adb,
3195 mlib-tgt-specific-mingw.adb: New names.
3196
3197 * Makefile.in:
3198 On VxWorks platforms use s-stchop-limit.ads for s-stchop.ads
3199 Get rid of gnatbl.
3200 (EXTRA_GNATRTL_NONTASKING_OBJS): Add s-win32.o
3201 Files mlib-tgt-*.adb have been renamed mlib-tgt-specific-*.adb
3202 Minor updates for VMS
3203
ea081ad7
AC
3204 * gnatbl.c: Removed.
3205
d563d3f0
AC
32062008-04-08 Thomas Quinot <quinot@adacore.com>
3207
3208 * g-expect-vms.adb, a-textio.adb, a-witeio.adb, exp_dbug.adb,
3209 g-expect.adb, g-locfil.adb, gnatchop.adb, gnatdll.adb, gnatlbr.adb,
3210 gnatmem.adb, g-regist.adb, i-vxwork.ads, mlib-utl.adb, i-vxwork-x86.ads,
3211 a-ztexio.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-ia64.adb,
3212 s-os_lib.adb, s-regpat.adb, s-regpat.ads: Fix incorrect casing of
3213 ASCII.NUL throughout.
3214
32152008-04-08 Arnaud Charlet <charlet@adacore.com>
3216 Matthew Heaney <heaney@adacore.com>
3217
3218 * a-cgcaso.adb, a-convec.adb: (Swap, Sift): Avoid use of complex
3219 renaming.
3220
3221 * a-cgaaso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads,
3222 a-crdlli.ads, a-coormu.ads, a-ciormu.ads: modified header to conform
3223 to convention for non-RM specs.
3224 Add descriptive header, and documented each operation
3225 document each operation
3226
32272008-04-08 Robert Dewar <dewar@adacore.com>
3228 Bob Duff <duff@adacore.com>
3229 Gary Dismukes <dismukes@adacore.com>
3230 Ed Schonberg <schonberg@adacore.com>
3231
3232 * alloc.ads: Add entries for Obsolescent_Warnings table
3233
3234 * einfo.ads, einfo.adb: Minor reformatting.
3235 (Is_Discriminal): New subprogram.
3236 (Is_Prival): New subprogram.
3237 (Is_Protected_Component): New subprogram.
3238 (Is_Protected_Private): Removed.
3239 (Object_Ref, Set_Object_Ref): Removed.
3240 (Prival, Set_Prival): Change assertion.
3241 (Privals_Chain, Set_Privals_Chain): Removed.
3242 (Prival_Link, Set_Prival_Link): New subprogram.
3243 (Protected_Operation, Set_Protected_Operation): Removed.
3244 (Protection_Object, Set_Protection_Object): New subprogram.
3245 (Write_Field17_Name): Remove case for Object_Ref.
3246 (Write_Field20_Name): Add case for Prival_Link.
3247 (Write_Field22_Name): Remove case for Protected_Operation,
3248 Privals_Chain.
3249 Add case for Protection_Object.
3250 (Can_Use_Internal_Rep): Make this into a [base type only] attribute,
3251 so clients
3252 (Overlays_Constant): New flag
3253 (Is_Constant_Object): New predicate
3254 (Is_Standard_Character_Type): New predicate
3255 (Optimize_Alignment_Space): New flag
3256 (Optimize_Alignment_Time): New flag
3257 (Has_Postconditions): New flag
3258 (Obsolescent_Warrning): Field removed
3259 (Spec_PPC_List): New field
3260 (Relative_Deadline_Variable, Set_Relative_Deadline_Variable): Add
3261 subprograms to get and set the relative deadline associated to a task.
3262
3263 * exp_attr.adb (May_Be_External_Call): Account for the case where the
3264 Access attribute is part of a named parameter association.
3265 (Expand_Access_To_Protected_Op): Test for the attribute occurring
3266 within an init proc and use that directly as the scope rather than
3267 traversing up to the protected operation's enclosing scope. Only apply
3268 assertion on Is_Open_Scopes in the case the scope traversal is done.
3269 For the init proc case use the address of the first formal (_init) as
3270 the protected object reference.
3271 Implement Invalid_Value attribute
3272 (Expand_N_Attribute_Reference): Case Attribute_Unrestricted_Access.
3273 contents of the dispatch table there is no need to duplicate the
3274 itypes associated with record types (i.e. the implicit full view
3275 of private types).
3276 Implement Enum_Val attribute
3277 (Expand_N_Attribute_Reference, case Old): Properly handle appearence
3278 within _Postconditions procedure
3279 (Expand_N_Attribute_Reference, case Result): Implement new attribute
3280
3281 * exp_ch5.adb (Expand_N_Simple_Return_Statement): Handle case in which
3282 a return statement calls a function that is not available in
3283 configurable runtime.
3284 (Analyze_If_Statement): don't optimize simple True/False cases in -O0
3285 (Expand_Non_Function_Return): Generate call to _Postconditions proc
3286 (Expand_Simple_Function_Return): Ditto
3287
3288 * frontend.adb: Add call to Sem_Aux.Initialize
3289
3290 * sem_aux.ads, sem_aux.adb: New file.
3291
3292 * par-prag.adb: Add entries for pragmas Precondition/Postcondition
3293 Add new Pragma_Relative_Deadline.
3294 Add support for pragmas Check and Check_Policy
3295
3296 * sem_attr.ads, sem_attr.adb (Check_Not_CPP_Type): New subprogram.
3297 (Check_Stream_Attribute): Add missing check (not allowed in CPP types)
3298 (Analyze_Attribute): In case of attributes 'Alignment and 'size add
3299 missing check because they are not allowed in CPP tagged types.
3300 Add Sure parameter to Note_Possible_Modification calls
3301 Add implementation of Invalid_Value attribute
3302 Implement new attribute Has_Tagged_Values
3303 Implement Enum_Val attribute
3304 (Analyze_Attribute, case Range): Set Name_Req True for prefix of
3305 generated attributes.
3306 (Analyze_Attribute, case Result): If prefix of the attribute is
3307 overloaded, it always resolves to the enclosing function.
3308 (Analyze_Attribute, case Result): Properly deal with analysis when
3309 Postconditions are not active.
3310 (Resolve_Attribute, case Result): Properly deal with appearence during
3311 preanalysis in spec.
3312 Add processing for attribute Result
3313
3314 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Code cleanup
3315 for operators.
3316 (Analyze_Subprogram_Body): Install private_with_clauses when the body
3317 acts as a spec.
3318 (Check_Inline_Pragma): recognize an inline pragma that appears within
3319 the subprogram body to which it applies.
3320 (Analyze_Function_Return): Check that type of the expression of a return
3321 statement in a function with a class-wide result is not declared at a
3322 deeper level than the function.
3323 (Process_PPCs): Deal with enabling/disabling, using PPC_Enabled flag
3324 (Verify_Overriding_Indicator): Handle properly subprogram bodies for
3325 user- defined operators.
3326 (Install_Formals): Moved to spec to allow use from Sem_Prag for
3327 analysis of precondition/postcondition pragmas.
3328 (Analyze_Subprogram_Body.Last_Real_Spec_Entity): New name for
3329 Last_Formal, along with lots of comments on what this is about
3330 (Analyze_Subprogram_Body): Fix case where we move entities from the
3331 spec to the body when there are no body entities (now possible with
3332 precondition and postcondition pragmas).
3333 (Process_PPCs): New procedure
3334 (Analyze_Subprogram_Body): Add call to Process_PPCs
3335
3336 * sem_ch8.adb (Use_One_Type): refine warning on a redundant use_type
3337 clause.
3338 (Pop_Scope): Restore Check_Policy_List on scope exit
3339 (Push_Scope): Save Check_Policy_List on scope entry
3340 Change name In_Default_Expression => In_Spec_Expression
3341 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
3342 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
3343 (Analyze_Object_Renaming): Allow 'Reference as object
3344 (Analyze_Pragma, case Restriction_Warnings): Call GNAT_Pragma
3345 (Process_Restrictions_Or_Restriction_Warnings): Check for bad spelling
3346 of restriction identifier.
3347 Add Sure parameter to Note_Possible_Modication calls
3348
3349 * sem_prag.ads, sem_prag.adb (Analyze_Pragma, case Stream_Convert):
3350 Don't check for primitive operations when calling Rep_Item_Too_Late.
3351 (Process_Import_Or_Interface): Do not place flag on formal
3352 subprograms.
3353 (Analyze_Pragma, case Export): If the entity is a deferred constant,
3354 propagate information to full view, which is the one elaborated by the
3355 back-end.
3356 (Make_Inline): the pragma is effective if it applies to an internally
3357 generated subprogram declaration for a body that carries the pragma.
3358 (Analyze_Pragma, case Optimize_Alignment): Set new flag
3359 Optimize_Alignment_Local.
3360 (Analyze_PPC_In_Decl_Part): New procedure
3361 (Get_Pragma_Arg): Moved to outer level
3362 (Check_Precondition_Postcondition): Change to allow new visibility
3363 rules for package spec
3364 (Analyze_Pragma, case Check_Policy): Change placement rules to be
3365 same as pragma Suppress/Unsuppress.
3366 Change name In_Default_Expression => In_Spec_Expression
3367 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
3368 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
3369 (Check_Precondition_Postcondition): Do proper visibility preanalysis
3370 for the case of these pragmas appearing in the spec.
3371 (Check_Enabled): New function
3372 (Initialize): New procedure
3373 (Tree_Read): New procedure
3374 (Tree_Write): New procedure
3375 (Check_Precondition_Postcondition): New procedure
3376 Implement pragmas Check and Check_Policy
3377 Merge Assert processing with Check
3378
3379 * sem_warn.adb (Warn_On_Known_Condition): Handle pragma Check
3380 New warning flag -gnatw.e
3381
3382 * sinfo.ads, sinfo.adb (Has_Relative_Deadline_Pragma): New function
3383 returning whether a task (or main procedure) has a pragma
3384 Relative_Deadline.
3385 (Set_Has_Relative_Deadline_Pragma): Procedure to indicate that a task
3386 (or main procedure) has a pragma Relative_Deadline.
3387 Add Next_Pragma field to N_Pragma node
3388 (PPC_Enabled): New flag
3389 (Next_Pragma): Now used for Pre/Postcondition processing
3390
3391 * snames.h, snames.ads, snames.adb: New standard name
3392 Inherit_Source_Path
3393 Add entry for 'Invalid_Value attribute
3394 Add entry for new attribute Has_Tagged_Values
3395 Add entry for Enum_Val attribute
3396 Add new standard names Aggregate, Configuration and Library.
3397 Add _Postconditions
3398 Add _Result
3399 Add Pragma_Precondition
3400 Add Pragma_Postcondition
3401 Add Attribute_Result
3402 New standard name Archive_Builder_Append_Option
3403 (Preset_Names): Add _relative_deadline and relative_deadline definitions
3404 There was also a missing non_preemptive_within_priorities.
3405 (Get_Pragma_Id, Is_Pragma_Name): Add support for pragma
3406 Relative_Deadline.
3407 Add support for pragmas Check and Check_Policy
3408
3409 * tree_gen.adb: Call Sem_Aux.Tree_Write
3410
3411 * tree_in.adb: Call Sem_Aux.Tree_Read
3412
3413 * exp_ch11.adb (Expand_N_Raise_Statement): New Build_Location calling
3414 sequence
3415
3416 * exp_intr.adb (Expand_Source_Info): New Build_Location calling
3417 sequence
3418
3419 * exp_prag.adb (Expand_Pragma_Relative_Deadline): New procedure.
3420 (Expand_N_Pragma): Call the appropriate procedure for expanding pragma
3421 Relative_Deadline.
3422 (Expand_Pragma_Check): New procedure
3423
3424 * sinput.ads, sinput.adb (Build_Location_String): Now appends to name
3425 buffer.
3426
3427 * sinfo.adb (PPC_Enabled): New flag
3428
34292008-04-08 Robert Dewar <dewar@adacore.com>
3430 Gary Dismukes <dismukes@adacore.com>
3431 Javier Miranda <miranda@adacore.com>
3432 Ed Schonberg <schonberg@adacore.com>
3433
3434 * fe.h: Remove global Optimize_Alignment flag, no longer used
3435
3436 * layout.adb: Test Optimize_Alignment flags rather than global switch
3437
3438 * lib.ads, lib.adb: New OA_Setting field in library record
3439
3440 * lib-load.adb: New OA_Setting field in library record
3441
3442 * lib-writ.ads, lib-writ.adb (Collect_Withs, Write_With_Lines): Place
3443 units mentioned in limited_with_ clauses in the ali file, with an
3444 'Y' marker.
3445 New Ox fields in U line
3446
3447 * opt.adb: New flag Optimize_Alignment_Local
3448 (Check_Policy_List[_Config]): New flags
3449
3450 * opt.ads (Invalid_Value_Used): New flag
3451 New switch Optimize_Alignment_Local
3452 (Warn_On_Parameter_Order): New flag
3453 (Check_Policy_List[_Config]): New flags
3454
3455 * ali.ads, ali.adb: Add indicator 'Y' to mark mark the presence of
3456 limited_with clauses.
3457 New data structures for Optimize_Alignment
3458
3459 * bcheck.adb (Check_Consistent_Restriction_No_Default_Initialization):
3460 New procedure
3461 (Check_Consistent_Optimize_Alignment): Rework for new structure
3462 (Check_Consistent_Restrictions): Fix incorrect error message
3463
3464 sem_ch10.adb (Decorate_Tagged_Type): Set the Parent field of a newly
3465 created class-wide type (to the Parent field of the specific type).
3466 (Install_Siblings): Handle properly private_with_clauses on subprogram
3467 bodies and on generic units.
3468 (Analyze_With_Clause, Install_Limited_Withed_Unit): Guard against an
3469 illegal limited_with_clause that names a non-existent package.
3470 (Check_Body_Required): Determine whether a unit named a limited_with
3471 clause needs a body.
3472 (Analyze_Context): A limited_with_clause is illegal on a unit_renaming.
3473 Capture Optimize_Alignment settings to set new OA_Setting field in
3474 library record.
3475 (Build_Limited_Views): Include task and protected type declarations.
3476
3477 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Handle the
3478 case of a possible constant redeclaration where the current object is
3479 an entry index constant.
3480 (Analyze_Object_Declaration): Generate an error in case of CPP
3481 class-wide object initialization.
3482 (Analyze_Object_Declaration): Add extra information on warnings for
3483 declaration of unconstrained objects.
3484 (Access_Type_Declaration): Set Associated_Final_Chain to Empty, to avoid
3485 conflicts with the setting of Stored_Constraint in the case where the
3486 access type entity has already been created as an E_Incomplete_Type due
3487 to a limited with clause.
3488 Use new Is_Standard_Character_Type predicate
3489 (Analyze_Object_Declaration): Apply access_constant check only after
3490 expression has been resolved, given that it may be overloaded with
3491 several access types.
3492 (Constant_Redeclaration): Additional legality checks for deferred
3493 constant declarations tha involve anonymous access types and/or null
3494 exclusion indicators.
3495 (Analyze_Type_Declaration): Set Optimize_Alignment flags
3496 (Analyze_Subtype_Declaration): Ditto
3497 (Analyze_Object_Declaration): Ditto
3498 (Analyze_Object_Declaration): Don't count tasks in generics
3499 Change name In_Default_Expression => In_Spec_Expression
3500 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
3501 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
3502 (Process_Discriminants): Additional check for illegal use of default
3503 expressions in access discriminant specifications in a type that is not
3504 explicitly limited.
3505 (Check_Abstract_Overriding): If an inherited function dispaches on an
3506 access result, it must be overridden, even if the type is a null
3507 extension.
3508 (Derive_Subprogram): The formals of the derived subprogram have the
3509 names and defaults of the parent subprogram, even if the type is
3510 obtained from the actual subprogram.
3511 (Derive_Subprogram): In the presence of interfaces, a formal of an
3512 inherited operation has the derived type not only if it descends from
3513 the type of the formal of the parent operation, but also if it
3514 implements it. This is relevant for the renamings created for the
3515 primitive operations of the actual for a formal derived type.
3516 (Is_Progenitor): New predicate, to determine whether the type of a
3517 formal in the parent operation must be replaced by the derived type.
3518
3519 * sem_util.ads, sem_util.adb (Has_Overriding_Initialize): Make
3520 predicate recursive to handle components that have a user-defined
3521 Initialize procedure. Handle controlled derived types whose ancestor
3522 has a user-defined Initialize procedured.
3523 (Note_Possible_Modification): Add Sure parameter, generate warning if
3524 sure modification of constant
3525 Use new Is_Standard_Character_Type predicate
3526 (Find_Parameter_Type): when determining whether a protected operation
3527 implements an interface operation, retrieve the type of the formal from
3528 the entity when the formal is an access parameter or an
3529 anonymous-access-to-subprogram.
3530 Move Copy_Parameter_List to sem_util, for use when building stubbed
3531 subprogram bodies.
3532 (Has_Access_Values): Tagged types now return False
3533 (Within_HSS_Or_If): New procedure
3534 (Set_Optimize_Alignment_Flags): New procedure
3535 Change name In_Default_Expression => In_Spec_Expression
3536 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
3537 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
3538
35392008-04-08 Tristan Gingold <gingold@adacore.com>
3540
3541 * s-fileio.adb: Name_Error shouldn't be raised for a tempory file.
3542
35432008-04-08 Tristan Gingold <gingold@adacore.com>
3544
3545PR ada/10768
3546
3547 * cuintp.c: Fix 16 bits issue for AVR.
3548 On AVR, integer is 16 bits, so it can't be used to do math with
3549 Base (=32768).
3550 So use long_integer instead.
3551
35522008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
3553
3554 * a-calend-vms.ads, a-calend-vms.adb: Add with and use clause for
3555 System.OS_Primitives.
3556 Change type of various constants, parameters and local variables from
3557 Time to representation type OS_Time.
3558 (To_Ada_Time, To_Unix_Time): Correct sign of origin shift.
3559 Remove the declaration of constant Mili_F from several routines. New
3560 body for internal package Conversions_Operations.
3561 (Time_Of): Add default parameters for several formals.
3562
3563 * a-caldel.adb: Minor reformatting
3564
3565 * a-calend.ads, a-calend.adb: New body for internal package
3566 Conversions_Operations.
3567 (Time_Of): Add default parameters for several formals.
3568
3569 * Makefile.rtl: Add a-ststop
3570 Add Ada.Calendar.Conversions to the list of runtime files.
3571 Add g-timsta
3572
3573 * a-calcon.adb, a-calcon.ads: New files.
3574
35752008-04-08 Jose Ruiz <ruiz@adacore.com>
3576 Tristan Gingold <gingold@adacore.com>
3577
3578 * s-interr-dummy.adb, s-interr-vms.adb, s-interr-sigaction.adb
3579 (Install_Restricted_Handlers): New procedure
3580 which is a simplified version of Install_Handlers that does not store
3581 previously installed.
3582
3583 * s-interr-vxworks.adb: Fix ACATS cxc3001
3584 On VxWorks interrupts can't be detached.
3585 (Install_Restricted_Handlers): New procedure.
3586
3587 * s-interr.ads, s-interr.adb (Install_Restricted_Handlers): New
3588 procedure.
3589
35902008-04-08 Olivier Hainque <hainque@adacore.com>
3591
3592 * s-intman-vxworks.ads, s-intman-vxworks.adb
3593 (Map_And_Raise_Exception): Remove. Was an import of only part of the
3594 required services already implemented elsewhere.
3595 (Notify_Exception): Delete body, import __gnat_error_handler instead.
3596 (Initialize): Add SA_SIGINFO to the sa_flags, to get the sigcontext
3597 argument passed to the handler, which we need for ZCX propagation
3598 purposes.
3599
36002008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
3601
3602 * adaint.h, adaint.c (__gnat_current_time_string): New routine.
3603
3604 * g-timsta.adb, g-timsta.ads: New files.
3605
36062008-04-08 Robert Dewar <dewar@adacore.com>
3607
3608 * a-except-2005.ads, a-except-2005.adb, a-except.ads, a-except.adb
3609 (Raise_Exception): In accordance with AI-446, raise CE for Null_Id
3610 (Raise_Exception_Always): Fix documentation accordingly
3611
36122008-04-08 Robert Dewar <dewar@adacore.com>
3613
3614 * a-strbou.ads, a-strbou.adb (From_String): New procedure (for use by
3615 Stream_Convert)
3616
3617 * sem_ch13.ads (Rep_Item_Too_Late): Document that Stream_Convert sets
3618 FOnly
3619
36202008-04-08 Javier Miranda <miranda@adacore.com>
3621 Robert Dewar <dewar@adacore.com>
3622 Ed Schonberg <schonberg@adacore.com>
3623
3624 * a-tags.adb (Register_Interface_Offset): New subprogram.
3625 (Set_Dynamic_Offset_To_Top): New subprogram (see previous comment).
3626 (To_Predef_Prims_Table_Ptr): Removed.
3627 (Acc_Size): Removed.
3628 (To_Acc_Size): Removed.
3629 (Parent_Size): Modified to the call the subprogram returning the size of
3630 the parent by means of the new TSD component Size_Func.
3631
3632 * a-tags.ads (Offset_To_Top_Ptr): New access type declaration.
3633 (DT_Offset_To_Top_Offset): New constant value that is used to generate
3634 code referencing the Offset_To_Top component of the dispatch table's
3635 prologue.
3636 (Prim_Ptr): New declaration of access to procedure. Used to avoid the
3637 use of 'address to initialize dispatch table slots.
3638 (Size_Func): New component of the TSD. Used by the run-time to call the
3639 size primitive of the tagged type.
3640
3641 * checks.adb (Apply_Access_Check): Avoid check when accessing the
3642 Offset_To_Top component of a dispatch table.
3643 (Null_Exclusion_Static_Checks): If the non-null access type appears in a
3644 deferred constant declaration. do not add a null expression, to prevent
3645 spurious errors when full declaration is analyzed.
3646 (Apply_Discriminant_Check): If both discriminant constraints share a
3647 node which is not static but has no side effects, do not generate a
3648 check for that discriminant.
3649 (Generate_Index_Checks): Set Name_Req to true in call to duplicate
3650 subexpr, since the prefix of an attribute is a name.
3651
3652 * checks.ads: Fix nit in comment.
3653
3654 * exp_ch3.ads, exp_ch3.adb (Freeze_Record_Type): Do not add the spec
3655 and body of predefined primitives in case of CPP tagged type
3656 derivations.
3657 (Freeze_Type): Deal properly with no storage pool case
3658 (Make_Predefined_Primitive_Specs): Generate specification of abstract
3659 primitive Deep_Adjust if a nonlimited interface is derived from a
3660 limited interface.
3661 (Build_Dcheck_Functions): Create discriminant-checking functions only
3662 for variants that have some component(s).
3663 (Build_Slice_Assignment): In expanded code for slice assignment, handle
3664 properly the case where the slice bounds extend to the last value of the
3665 underlying representation.
3666 (Get_Simple_Init_Val): New calling sequence, accomodate Invalid_Value
3667 (Is_Variable_Size_Record): An array component has a static size if
3668 index bounds are enumeration literals.
3669
3670 * exp_disp.adb (Make_DT): Use the first subtype to determine whether
3671 an external tag has been specified for the type.
3672 (Building_Static_DT): Add missing support for private types.
3673 (Make_DT): Add declaration of Parent_Typ to ensure consistent access
3674 to the entity associated with the parent of Typ. This is done to
3675 avoid wrong access when the parent is a private type.
3676 (Expand_Interface_Conversion): Improve error message when the
3677 configurable runtime has no support for dynamic interface conversion.
3678 (Expand_Interface_Thunk): Add missing support to interface types in
3679 configurable runtime.
3680 (Expand_Dispatching_Call): remove obsolete code.
3681 (Make_DT): Replace occurrences of RE_Address by RE_Prim_Ptr, and
3682 ensure that all subtypes and aggregates associated with dispatch
3683 tables have the attribute Is_Dispatch_Table_Entity set to true.
3684 (Register_Primitive): Rename one variable to improve code reading.
3685 Replace occurrences of RE_Addres by RE_Prim_Ptr. Register copy o
3686 of the pointer to the 'size primitive in the TSD.
3687
3688 * rtsfind.ads (RE_DT_Offset_To_Top_Offset): New entity.
3689 (RE_Offset_To_Top_Ptr): New entity.
3690 (RE_Register_Interface_Offset): New entity.
3691 (RE_Set_Dynamic_Offset_To_Top): New entity.
3692 (RE_Set_Offset_To_Top): Removed entity.
3693 (RE_Prim_Ptr): New entity
3694 (RE_Size_Func): New entity
3695 (RE_Size_Ptr): New entity
3696 (RTU_Id): Add Ada_Dispatching and Ada_Dispatching_EDF.
3697 (Ada_Dispatching_Child): Define this new subrange.
3698 (RE_Id): Add new required run-time calls (RE_Set_Deadline, RE_Clock,
3699 RE_Time_Span, and RE_Time_Span_Zero).
3700 (RE_Unit_Table): Add new required run-time calls
3701
3702 * rtsfind.adb (Get_Unit_Name): Add processing for Ada.Dispatching
3703 children.
3704
3705 * exp_atag.ads, exp_atag.adb (Build_Offset_To_Top): New subprogram.
3706 (Build_Set_Static_Offset_To_Top): New subprogram. Generates code that
3707 initializes the Offset_To_Top component of a dispatch table.
3708 (Build_Predef_Prims): Removed.
3709 (Build_Get_Predefined_Prim_Op_Address): Replace call to Predef_Prims by
3710 its actual code.
3711 (Build_Set_Size_Function): New subprogram.
3712
3713 * exp_ch13.adb: Do not generate storage variable for storage_size zero
3714 (Expand): Handle setting/restoring flag Inside_Freezing_Actions
3715
37162008-04-08 Robert Dewar <dewar@adacore.com>
3717
3718 * a-ztdeau.adb, a-tideau.adb, a-wtdeau.adb (Puts_Dec): Fix error in
3719 computing Fore when Exp > 0
3720
37212008-04-08 Robert Dewar <dewar@adacore.com>
3722
3723 * back_end.adb: Remove Big_String_Ptr declarations (now in Types)
3724
3725 * errout.adb: Remove Big_String_Ptr declarations (now in Types)
3726 Change name Is_Style_Msg to Is_Style_Or_Info_Msg
3727
3728 * fmap.adb: Remove Big_String declarations (now in Types)
3729 (No_Mapping_File): New Boolean global variable
3730 (Initialize): When mapping file cannot be read, set No_Mapping_File to
3731 False.
3732 (Update_Mapping_File): Do nothing if No_Mapping_File is True. If the
3733 tables were empty before adding entries, open the mapping file
3734 with Truncate = True, instead of delete/re-create.
3735
3736 * fname-sf.adb: Remove Big_String declarations (now in Types)
3737
3738 * s-strcom.adb, g-dyntab.ads, g-table.ads, s-carsi8.adb,
3739 s-stalib.ads, s-carun8.adb: Add zero size Storage_Size clauses for
3740 big pointer types
3741
3742 * table.ads: Add for Table_Ptr'Storage_Size use 0
3743
3744 * types.ads: Add Big_String declarations
3745 Add Size_Clause of zero for big pointer types
3746
37472008-04-08 Vincent Celier <celier@adacore.com>
3748
3749 * clean.adb (Parse_Cmd_Line): Recognize switch --subdirs=
3750 (Usage): Add line for switch --subdirs=
3751 Add new switch -eL, to follow symbolic links when processing project
3752 files.
3753
3754 * gnatcmd.adb: Process switches -eL and --subdirs=
3755 (Non_VMS_Usage): Output "gnaampcmd" instead of "gnat", and call
3756 Program_Name to get proper tool names when AAMP_On_Target is set.
3757 (Gnatcmd): Call Add_Default_Search_Dirs and Get_Target_Parameters to get
3758 AAMP_On_Target set properly for use of GNAAMP tools (this is needed by
3759 Osint.Program_Name).
3760
3761 * gnatname.adb: (Scan_Args): Recognize switches -eL and --subdirs=
3762 (Usage): Add lines for switches -eL and --subdirs=
3763
3764 * makeusg.adb: Add line for switch --subdirs=
3765
3766 * prj.ads:
3767 (Source_Data): New Boolean component Compiled, defaulted to True
3768 (Empty_File_Name: New global variable in private part, initialized in
3769 procedure Initialize.
3770 (Subdirs_Option): New constant string
3771 (Subdirs): New String_Ptr global variable
3772 (Language_Config): New component Include_Compatible_Languages
3773 (Project_Qualifier): New type for project qualifiers
3774 (Project_Data): New component Qualifier
3775 (Project_Configuration): New component Archive_Builder_Append_Option
3776
3777 * prj-nmsc.adb (Get_Unit_Exceptions): When a unit is already in
3778 another imported project indicate the name of this imported project.
3779 (Check_File): When a unit is in two project files, indicate the project
3780 names and the paths of the source files for each project.
3781 (Add_Source): Set Compiled to False if compiler driver is empty. Only
3782 set object, dependency and switches file names if Compiled is True.
3783 (Process_Compiler): Allow the empty string for value of attribute Driver
3784 (Get_Directories): When Subdirs is not null and Object_Dir is not
3785 specified, locate and create if necessary the actual object dir.
3786 (Locate_Directory): When Subdirs is not empty and Create is not the
3787 empty string, locate and create if necessary the actual directory
3788 as a subdirectory of directory Name.
3789 (Check_Library_Attributes.Check_Library): Allow a project where the only
3790 "sources" are header files of file based languages to be imported by
3791 library projects, in multi-language mode (gprbuild).
3792 (Check_Library_Attributes.Check_Library): In multi-language mode
3793 (gprbuild), allow a library project to import a project with no
3794 sources, even when this is not declared explicitly.
3795 (Check_If_Externally_Built): A virtual project extending an externally
3796 built project is also externally built.
3797 (Check_Library_Attributes): For a virtual project extending a library
3798 project, inherit the library directory.
3799 (Process_Project_Level_Array_Attributes): Process new attribute
3800 Inherit_Source_Path.
3801 For projects with specified qualifiers "standard", "library" or
3802 "abstract", check that the project conforms to the qualifier.
3803 (Process_Project_Level_Simple_Attributes): Process new attribute
3804 Archive_Builder_Append_Option.
3805
3806 * switch-m.adb: (Scan_Make_Switches): Process switch --subdirs=
3807 (Normalize_Compiler_Switches): Only keep compiler switches that are
3808 passed to gnat1 by the gcc driver and that are stored in the ALI file
3809 by gnat1.
3810 Do not take into account switc -save-temps
3811
3812 * makegpr.adb (Compile_Link_With_Gnatmake): Transmit switch -eL if
3813 gprmake is called with -eL.
3814 (Scan_Arg): Recognize switch -eL
3815 (Usage): Add line for switch -eL
3816
3817 * prj.adb (Initialize): Initialize Empty_File_Name
3818 (Project_Empty): New component Qualifier
3819
3820 * prj-attr.ads, prj-attr.adb: New project level attribute
3821 Inherit_Source_Path.
3822 New project level attribute Archive_Builder_Append_Option
3823
3824 * prj-dect.adb: Replace System.Strings by GNAT.Strings.
3825
3826 * prj-ext.adb (Initialize_Project_Path): In Multi_Language mode, add
3827 <prefix>/lib/gnat in the project path, after <prefix>/share/gpr, for
3828 upward compatibility.
3829
3830 * prj-part.adb (Project_Path_Name_Of.Try_Path): In high verbosity, put
3831 each Trying ..." on different lines.
3832 (Parse_Single_Project): Recognize project qualifiers. Fail in qualifier
3833 is "configuration" when not in configuration. Fail when in configuration
3834 when a specified qualifier is other than "configuration".
3835
3836 * prj-proc.adb (Process_Declarative_Items): Link new elements of copied
3837 full associative array together.
3838 (Recursive_Process): Put the project qualifier in the project data
3839
3840 * prj-tree.ads, prj-tree.adb: (Project_Qualifier_Of): New function
3841 (Set_Project_Qualifier_Of): New procedure
3842
38432008-04-08 Robert Dewar <dewar@adacore.com>
3844
3845 * errout.ads: Update comments for new handling of info: messages
3846
3847 * erroutc.adb (Matches): New procedure
3848 (Warning_Specifically_Suppressed): Modified to handle multiple * chars
3849 (Is_Style_Or_Info_Msg): New name for Is_Style_Msg, now set for
3850 info messages as well as style messages.
3851
3852 * erroutc.ads: Remove unneeded fields from Specific_Warning_Entry
3853
3854 * sem_elab.adb (Supply_Bodies): Create actual bodies for stubbed
3855 subprograms.
3856 (Check_A_Call): Special "info: " warnings now have ? in the text
3857 (Elab_Warning): Use info message in static case
3858
38592008-04-08 Ed Schonberg <schonberg@adacore.com>
3860
3861 * exp_aggr.adb (Static_Array_Aggregate): Use Max_Aggr_Size to determine
3862 whether an array aggregate with static bounds and scalar components
3863 should be expanded into a static constant.
3864
38652008-04-08 Gary Dismukes <dismukes@adacore.com>
3866 Ed Schonberg <schonberg@adacore.com>
3867 Robert Dewar <dewar@adacore.com>
3868
3869 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Add tests of
3870 Has_Stream_Attribute_ Definition when checking for available stream
3871 attributes on parameters of a limited type in Ada 2005. Necessary for
3872 proper recognition of visible stream attribute clauses.
3873 (Has_Stream_Attribute_Definition): If the type is derived from a
3874 private type, then use the derived type's underlying type for checking
3875 whether it has stream attributes.
3876 (Validate_Object_Declaration): The check for a user-defined Initialize
3877 procedure applies also to types with controlled components or a
3878 controlled ancestor.
3879 Reject an object declaration in a preelaborated unit if the type is a
3880 controlled type with an overriding Initialize procedure.
3881 (Validate_Remote_Access_To_Class_Wide_Type): Return without further
3882 checking when the parent of a dereference is a selected component and
3883 the name has not been analyzed.
3884
3885 * sem_ch4.adb (Analyze_Selected_Component): Add checking for selected
3886 prefixes that are invalid explicit dereferences of remote
3887 access-to-class-wide values, first checking whether the selected
3888 component is a prefixed form of call to a tagged operation.
3889 (Analyze_Call): Remove code that issues an error for limited function
3890 calls in illegal contexts, as we now support all of the contexts that
3891 were forbidden here.
3892 Allow a function call that returns a task.and appears as the
3893 prefix of a selected component.
3894 (Analyze_Reference): Give error message if we try to make a 'Reference
3895 for an object that is atomic/aliased without its type having the
3896 corresponding attribute.
3897 (Analyze_Call): Remove condition checking for attributes to allow
3898 calls to functions with inherently limited results as prefixes of
3899 attributes. Remove related comment about Class attributes.
3900 (Analyze_Selected_Component): If the prefix is a remote type, check
3901 whether this is a prefixed call before reporting an error.
3902 (Complete_Object_Operation): If the controlling formal is an access to
3903 variable reject an actual that is a constant or an access to one.
3904 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
3905 primitive operations from base type.
3906
3907 * exp_ch4.adb (Expand_N_Indexed_Component): Test for prefix that is a
3908 build-in-place
3909 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
3910 (Expand_N_Selected_Component): Test for prefix that is a build-in-place
3911 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
3912 (Expand_N_Slice): Test for prefix that is a build-in-place function call
3913 and call Make_Build_In_Place_Call_In_Anonymous_Context.
3914 (Analyze_Call): Remove code that issues an error for limited function
3915 calls in illegal contexts, as we now support all of the contexts that
3916 were forbidden here.
3917 New calling sequence for Get_Simple_Init_Val
3918 (Expand_Boolean_Operator): Add call to Silly_Boolean_Array_Xor_Test
3919 (Expand_N_Op_Not): Add call to Silly_Boolan_Array_Not_Test
3920
39212008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
3922 Ed Schonberg <schonberg@adacore.com>
3923 Robert Dewar <dewar@adacore.com>
3924
3925 * exp_ch2.adb: Minor reformatting.
3926 (Expand_Entry_Index_Parameter): Set the type of the identifier.
3927 (Expand_Entry_Reference): Add call to Expand_Protected_Component.
3928 (Expand_Protected_Component): New routine.
3929 (Expand_Protected_Private): Removed.
3930 Add Sure parameter to Note_Possible_Modification calls
3931
3932 * sem_ch12.ads, sem_ch12.adb (Analyze_Subprogram_Instantiation): The
3933 generated subprogram declaration must inherit the overriding indicator
3934 from the instantiation node.
3935 (Validate_Access_Type_Instance): If the designated type of the actual is
3936 a limited view, use the available view in all cases, not only if the
3937 type is an incomplete type.
3938 (Instantiate_Object): Actual is illegal if the formal is null-excluding
3939 and the actual subtype does not exclude null.
3940 (Process_Default): Handle properly abstract formal subprograms.
3941 (Check_Formal_Package_Instance): Handle properly defaulted formal
3942 subprograms in a partially parameterized formal package.
3943 Add Sure parameter to Note_Possible_Modification calls
3944 (Validate_Derived_Type_Instance): if the formal is non-limited, the
3945 actual cannot be limited.
3946 (Collect_Previous_Instances): Generate instance bodies for subprograms
3947 as well.
3948
3949 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Small): Don't
3950 try to set RM_Size.
3951 Add Sure parameter to Note_Possible_Modification calls
3952 (Analyze_At_Clause): Preserve Comes_From_Source on Rewrite call
3953 (Analyze_Attribute_Definition_Clause, case Attribute_Address): Check for
3954 constant overlaid by variable and issue warning.
3955 Use new Is_Standard_Character_Type predicate
3956 (Analyze_Record_Representation_Clause): Check that the specified
3957 Last_Bit is not less than First_Bit - 1.
3958 (Analyze_Attribute_Definition_Clause, case Address): Check for
3959 self-referential address clause
3960
3961 * sem_ch5.ads, sem_ch5.adb (Diagnose_Non_Variable_Lhs): Rewrite the
3962 detection mechanism when the lhs is a prival.
3963 (Analyze_Assignment): Call Check_Unprotected_Access to detect
3964 assignment of a pointer to protected data, to an object declared
3965 outside of the protected object.
3966 (Analyze_Loop_Statement): Check for unreachable code after loop
3967 Add Sure parameter to Note_Possible_Modication calls
3968 Protect analysis from previous syntax error such as a scope mismatch
3969 or a missing begin.
3970 (Analyze_Assignment_Statement): The assignment is illegal if the
3971 left-hand is an interface.
3972
ea081ad7
AC
3973 * sem_res.ads, sem_res.adb (Resolve_Arithmetic_Op): For mod/rem check
3974 violation of restriction No_Implicit_Conditionals
d563d3f0
AC
3975 Add Sure parameter to Note_Possible_Modication calls
3976 Use new Is_Standard_Character_Type predicate
3977 (Make_Call_Into_Operator): Preserve Comes_From_Source when rewriting
3978 call as operator. Fixes problems (e.g. validity checking) which
3979 come from the result looking as though it does not come from source).
3980 (Resolve_Call): Check case of name in named parameter if style checks
3981 are enabled.
3982 (Resolve_Call): Exclude calls to Current_Task as entry formal defaults
3983 from the checking that such calls should not occur from an entry body.
3984 (Resolve_Call): If the return type of an Inline_Always function
3985 requires the secondary stack, create a transient scope for the call
3986 if the body of the function is not available for inlining.
3987 (Resolve_Actuals): Apply Ada2005 checks to view conversions of arrays
3988 that are actuals for in-out formals.
3989 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
3990 primitive operations from base type.
3991 (Analyze_Selected_Component): If the context is a call to a protected
3992 operation the parent may be an indexed component prior to expansion.
3993 (Resolve_Actuals): If an actual is of a protected subtype, use its
3994 base type to determine whether a conversion to the corresponding record
3995 is needed.
3996 (Resolve_Short_Circuit): Handle pragma Check
3997
3998 * sem_eval.adb: Minor code reorganization (usea Is_Constant_Object)
3999 Use new Is_Standard_Character_Type predicate
4000 (Eval_Relational_Op): Catch more cases of string comparison
4001
40022008-04-08 Robert Dewar <dewar@adacore.com>
4003 Gary Dismukes <dismukes@adacore.com>
4004
4005 * s-rident.ads: Add No_Default_Initialization restriction
4006
4007 * exp_tss.adb:
4008 (Has_Non_Null_Base_Init_Proc): Handle No_Default_Initialization case
4009 (Set_TSS): Handle No_Default_Initialization case
4010
4011 * exp_ch6.adb (Expand_N_Subprogram_Body): Handle restriction
4012 No_Default_Initialization
4013 (Expand_N_Subprogram_Body): Remove redundant initialization of out
4014 parameters when Normalize_Scalars is active.
4015 (Add_Final_List_Actual_To_Build_In_Place_Call): Add formal Sel_Comp
4016 Fix casing error in formal parameter name in call
4017 (Register_Predefined_DT_Entry): Replace occurrences of RE_Address by
4018 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
4019 dispatching call on VM targets.
4020
40212008-04-08 Gary Dismukes <dismukes@adacore.com>
4022 Thomas Quinot <quinot@adacore.com>
4023
4024 * exp_ch7.adb (Find_Final_List): Change the test for generating a
4025 selected component from an access type's Associated_Final_Chain to
4026 check for the presence of that field, rather than assuming it exists
4027 for all named access types.
4028 (Make_Clean): New formal Chained_Cleanup_Action allowing to specify a
4029 procedure to call at the end of the generated cleanup procedure.
4030 (Expand_Cleanup_Actions): When a new cleanup procedure is generated, and
4031 and an At_End_Proc already exists in the handled sequence of statements
4032 for which cleanup actions are being expanded, the original cleanup
4033 action must be preserved.
4034
40352008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
4036 Ed Schonberg <schonberg@adacore.com>
4037 Robert Dewar <dewar@adacore.com>
4038 Gary Dismukes <dismukes@adacore.com>
4039
4040 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry,
4041 Build_Unprotected_Subprogram_Body): Generate debug info for
4042 declarations related to the handling of private data in task and
4043 protected types.
4044 (Debug_Private_Data_Declarations): New subprogram.
4045 (Install_Private_Data_Declarations): Remove all debug info flagging.
4046 This is now done by Debug_Private_Data_Declarations at the correct
4047 stage of expansion.
4048 (Build_Simple_Entry_Call): If the task name is a function call, expand
4049 the prefix into an object declaration, and make the surrounding block a
4050 task master.
4051 (Build_Master_Entity): An internal block is a master if it wraps a call.
4052 Code reformatting, update comments. Code clean up.
4053 (Make_Task_Create_Call): Use 'Unrestricted_Access instead of 'Address.
4054 (Replicate_Entry_Formals): If the formal is an access parameter or
4055 anonymous access to subprogram, copy the original tree to create new
4056 entities for the formals of the subprogram.
4057 (Expand_N_Task_Type_Declaration): Create a Relative_Deadline variable
4058 for tasks to store the value passed using pragma Relative_Deadline.
4059 (Make_Task_Create_Call): Add the Relative_Deadline argument to the
4060 run-time call to create a task.
4061 (Build_Wrapper_Spec): If the controlling argument of the interface
4062 operation is an access parameter with a non-null indicator, use the
4063 non-null indicator on the wrapper.
4064
4065 * sem_ch9.adb (Analyze_Protected_Type): Only retrieve the full view when
4066 present, which it may not be in the case where the type entity is an
4067 incomplete view brought in by a limited with.
4068 (Analyze_Task_Type): Only retrieve the full view when present, which it
4069 may not be in the case where the type entity is an incomplete view brought
4070 in by a limited with.
4071 (Analyze_Protected_Definition): Set Is_Frozen on all itypes generated for
4072 private components of a protected type, to prevent the generation of freeze
4073 nodes for which there is no proper scope of elaboration.
4074
4075 * exp_util.ads, exp_util.adb
4076 (Remove_Side_Effects): If the expression is a function call that returns a
4077 task, expand into a declaration to invoke the build_in_place machinery.
4078 (Find_Protection_Object): New routine.
4079 (Remove_Side_Effects): Also make a copy of the value
4080 for attributes whose result is of an elementary type.
4081 (Silly_Boolean_Array_Not_Test): New procedure
4082 (Silly_Boolean_Array_Xor_Test): New procedure
4083 (Is_Volatile_Reference): New function
4084 (Remove_Side_Effects): Use Is_Volatile_Reference
4085 (Possible_Bit_Aligned_Component): Handle slice case properly
4086
4087 * exp_pakd.adb (Expand_Packed_Not): Move silly true/true or false/false
4088 case test to Exp_Util
4089 (Expand_Packed_Xor): Move silly true/true case test to Exp_Util
4090
40912008-04-08 Thomas Quinot <quinot@adacore.com>
4092
4093 * exp_dist.ads, exp_dist.adb: Fix casing error in formal parameter name
4094 in call
4095 (Add_RACW_Features): When processing an RACW in another unit than the
4096 main unit, set Body_Decls to No_List to indicate that the bodies of
4097 the type's TSS must not be generated.
4098 (GARLIC_Support.Add_RACW_Read_Attribute,
4099 GARLIC_Support.Add_RACW_Write_Attribute): Do not generate bodies if
4100 Body_Decls is No_List.
4101 (PolyORB_Support.Add_RACW_Read_Attribute,
4102 PolyORB_Support.Add_RACW_Write_Attribute,
4103 PolyORB_Support.Add_RACW_From_Any,
4104 PolyORB_Support.Add_RACW_To_Any,
4105 PolyORB_Support.Add_RACW_TypeCode): Same.
4106 (Transmit_As_Unconstrained): New function.
4107 (Build_Ordered_Parameters_List): Use the above to order parameters.
4108 (GARLIC_Support.Build_General_Calling_Stubs):
4109 Use the above to determine which parameters to unmarshall using 'Input
4110 at the point where their temporary is declared (as opposed to later on
4111 with a 'Read call).
4112 (PolyORB_Support.Build_General_Calling_Stubs):
4113 Use the above to determine which parameters to unmarshall using From_Any
4114 at the point where their temporary is declared (as opposed to later on
4115 with an assignment).
4116
41172008-04-08 Ed Schonberg <schonberg@adacore.com>
4118
4119 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): If this is
4120 an Input function for an access type, do not perform default
4121 initialization on the local variable that receives the value, to
4122 prevent spurious warnings when the type is null-excluding.
4123
41242008-04-08 Robert Dewar <dewar@adacore.com>
4125 Ed Schonberg <schonberg@adacore.com>
4126
4127 * freeze.adb (Freeze_Entity): Improve warnings on access types in pure
4128 units.
4129 (Size_Known): Generic formal scalar types have known at compile
4130 time size, so remove check.
4131 Fix casing error in formal parameter name in call
4132 (Freeze_Subprogram): If the subprogram is a user-defined operator,
4133 recheck its overriding indication.
4134
41352008-04-08 Vincent Celier <celier@adacore.com>
4136
4137 * gnat1drv.adb: Send all messages indicating an error to standard error
4138
41392008-04-08 Robert Dewar <dewar@adacore.com>
4140
4141 * gnatbind.adb (Restriction_Could_Be_Set): New procedure
4142 (List_Applicable_Restrictions): Do not list existing restrictions
4143
41442008-04-08 Thomas Quinot <quinot@adacore.com>
4145
4146 * g-socket.ads, g-socket.adb: Improve documentation of GNAT.Sockets:
4147 add a pointer to generic sockets literature
4148 do not mention that the given example is "typical" usage.
4149 Remove obsolete comment about multicast not being supported on Windows.
4150 (Connect_Socket): Make Server mode IN rather than IN OUT
4151 since this formal is never modified.
4152
41532008-04-08 Robert Dewar <dewar@adacore.com>
4154
4155 * sprint.adb (Write_Itype): Handle Itypes whose Parent field points to
4156 the declaration for some different entity.
4157 (Sprint_Node_Actual, case N_Derived_Type_Definition): When an interface
4158 list is precent (following the parent subtype indication), display
4159 appropriate "and" keyword.
4160
4161 * itypes.adb: Remove unnecessary calls to Init_Size_Align and Init_Esize
4162 Remove unnecessary calls to Init_Size_Align and Init_Esize.
4163 Add notes on use of Parent field of an Itype
4164
41652008-04-08 Ed Schonberg <schonberg@adacore.com>
4166 Robert Dewar <dewar@adacore.com>
4167 Gary Dismukes <dismukes@adacore.com>
4168
4169 * lib-xref.adb (Is_On_LHS): Remove dead code
4170 (Output_Overriden_Op): If the overridden operation is itself inherited,
4171 list the ancestor operation, which is the one whose body or absstract
4172 specification is actually being overridden. For source navigation
4173 purposes.
4174
4175 * sem_ch7.adb (Is_Primitive_Of): use base type to determine whether
4176 operation is primitive for the type.
4177 (Declare_Inherited_Private_Subprograms): If the new operation overrides
4178 an inherited private subprogram, set properly the Overridden_Operation
4179 attribute, for better cross-reference information.
4180 (Analyze_Package_Specification): Do late analysis of spec PPCs
4181 (Install_Private_Declaration, Uninstall_Declarations): Save/restore
4182 properly the full view and underlying full views of a private type in a
4183 child unit, whose full view is derived from a private type in a parent
4184 unit, and whose own full view becomes visible in the child body.
4185
4186 * sem_disp.adb (Check_Dispatching_Operation): When a body declares a
4187 primitive operation after the type has been frozen, add an explicit
4188 reference to the type and the operation, because other primitive
4189 references have been emitted already.
4190 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
4191 dispatching call on VM targets.
4192
41932008-04-08 Vincent Celier <celier@adacore.com>
4194 Thomas Quinot <quinot@adacore.com>
4195
4196 * make.adb: (Gnatmake_Called): Remove, no longer necessary
4197 (Compile_Surces): Call Delete_Temp_Config_Files only if Gnatmake_Called
4198 is True and Debug_Flag_N is False. Debug_Flag_N means "keep temp files".
4199 (Insert_Project_Sources): Take into account index in multi-unit source
4200 files.
4201 After building a library project, delete all temporary files.
4202 (Initialize): Reset current output after parsing project file.
4203 (Collect_Arguments_And_Compile): Never insert in the queue the sources
4204 of library projects that are externally built.
4205 Put file name in error and inform messages if -df is used
4206 (Display): If invoked with -d7, do not display path names, but only
4207 file names.
4208
4209 * makeutl.ads (Path_Or_File_Name): New function
4210 (Path_Or_File_Name): New function
4211
42122008-04-08 Arnaud Charlet <charlet@adacore.com>
4213
4214 * Make-lang.in: Disable warnings during first stage of bootstrap
4215 Get rid of gnatbl.
4216 Update dependencies.
4217
42182008-04-08 Vincent Celier <celier@adacore.com>
4219
4220 * mlib-prj.adb (Build_Library): Compare with ALI file name in canonical
4221 case to decide if ALI object file is included in library.
4222 (Build_Library): Never attempt to build a library if the project is
4223 externally built.
4224
42252008-04-08 Thomas Quinot <quinot@adacore.com>
4226
4227 * nlists.adb (Is_Non_Empty_List): Remove redundant test. First
4228 (No_List) is defined to return Empty.
4229
42302008-04-08 Jose Ruiz <ruiz@adacore.com>
4231
4232 * osint.ads, osint.adb (Get_Libraries_From_Registry): Improve
4233 documentation.
4234 Update comments.
4235 (Read_Default_Search_Dirs): Do not consider spaces as path separators
4236 because spaces may be part of legal paths.
4237
42382008-04-08 Robert Dewar <dewar@adacore.com>
4239
4240 * par-ch11.adb (P_Exception_Handler): Check indentation level for
4241 handler
4242
42432008-04-08 Ed Schonberg <schonberg@adacore.com>
4244
4245 * par-ch3.adb (P_Type_Declaration) Reject the keyword "synchronized"
4246 in a type declaration, if this is not an interface declaration or
4247 private type extension.
4248
42492008-04-08 Vincent Celier <celier@adacore.com>
4250
4251 * prj-util.adb (Executable_Of): New String parameter Language. When
4252 Ada_Main is False and Language is not empty, attempt to remove the body
4253 suffix or the spec suffix of the language to get the base of the
4254 executable file name.
4255 (Put): New Boolean parameter Lower_Case, defauilted to False. When
4256 Lower_Case is True, put the value in lower case in the name list.
4257 (Executable_Of): If there is no executable suffix in the configuration,
4258 then do not modify Executable_Extension_On_Target.
4259
4260 * prj-util.ads (Executable_Of): New String parameter Language,
4261 defaulted to the empty string.
4262 (Put): New Boolean parameter Lower_Case, defauilted to False
4263
42642008-04-08 Robert Dewar <dewar@adacore.com>
4265
4266 * scng.adb (Scan_Identifier): Handle case of identifier starting with
4267 wide character using UTF-8 encoding.
4268
42692008-04-08 Javier Miranda <miranda@adacore.com>
4270
4271 * sem.adb (Analyze): Consider case in which we analyze an empty node
4272 that was generated by a call to a runtime function that is not
4273 available under the configurable runtime.
4274
4275 * sem.ads (Inside_Freezing_Actions): New flag.
4276 (Save_Check_Policy_List): New field in scope stack entry
4277
42782008-04-08 Ed Schonberg <schonberg@adacore.com>
4279 Robert Dewar <dewar@adacore.com>
4280
4281 * sem_aggr.adb (Analyze_N_Extension_Aggregate): Add legality checks for
4282 the ancestor part of an extension aggregate for a limited type.
4283 (Resolve_Array_Aggregate): Issue warning for sliding of aggregate with
4284 enumeration index bounds.
4285 (Resolve_Array_Aggregate): Add circuit for diagnosing missing choices
4286 when array is too short.
4287 (Check_Expr_OK_In_Limited_Aggregate): Move function
4288 Check_Non_Limited_Type from Resolve_Record_Aggregate to top level (and
4289 change name).
4290 (Resolve_Array_Aggregate.Resolve_Aggr_Expr):
4291 Check_Expr_OK_In_Limited_Aggregates called to check for illegal limited
4292 component associations.
4293 (Check_Non_Limited_Type): Moved to outer level and renamed.
4294 (Resolve_Record_Aggregate): In an extension aggregate, an association
4295 with a box initialization can only designate a component of the
4296 extension, not a component inherited from the given ancestor
4297
4298 * sem_case.adb: Use new Is_Standard_Character_Type predicate
4299
43002008-04-08 Robert Dewar <dewar@adacore.com>
4301
4302 * s-imgdec.adb (Set_Decimal_Digits): Fix error when input is zero with
4303 negative scale
4304 (Set_Decimal_Digits): Properly handle Aft=0 (equivalent to Aft=1)
4305 Properly handle case where Aft > Scale and input number is less than
4306 one.
4307
43082008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
4309
4310 * s-stoele.ads, s-soflin.ads: Move the location of
4311 Dummy_Communication_Block from System.Storage_Elements to
4312 System.Soft_Links.
4313
4314 * s-tpobop.ads: Add comment on usage of Dummy_Communication_Block to
4315 emulate Communication_Block in certain scenarios.
4316
43172008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
4318
4319 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (Block_IO_OK): New
4320 subprogram.
4321 Add new subtype S_WWC, unchecked conversion routines From_WWC and
4322 To_WWC.
4323 (I_WWC, O_WWC): New routines for input and output of
4324 Wide_Wide_Character.
4325
43262008-04-08 Robert Dewar <dewar@adacore.com>
4327
4328 * stringt.adb (Write_String_Table_Entry): Handle wide characters
4329 properly
4330
43312008-04-08 Robert Dewar <dewar@adacore.com>
4332
4333 * styleg.adb (Check_Comment): Allow special char after -- in
4334 non-end-of-line case
4335
43362008-04-08 Robert Dewar <dewar@adacore.com>
4337
4338 * stylesw.adb: Implement -gnaty + - y options
4339 (Set_GNAT_Style_Check_Options): Includ I in style check string
4340
4341 * stylesw.ads: Add comments for new style switch options
4342
43432008-04-08 Sergey Rybin <rybin@adacore.com>
4344
4345 * tree_io.ads: Increase ASIS_Version_Number because of adding Sem_Aux
4346 to the set of the GNAT components needed by ASIS.
4347
43482008-04-08 Bob Duff <duff@adacore.com>
4349
4350 * types.h: Change CE_Null_Exception_Id to the correct value (8, was 9).
4351
43522008-04-08 Tristan Gingold <gingold@adacore.com>
4353
4354 * vxaddr2line.adb: Use Unsigned_32 instead of Integer for address type.
4355 Improve error message generation.
4356
43572008-04-08 Vincent Celier <celier@adacore.com>
4358
4359 * a-direct.adb (Start_Search): Check for Name_Error before checking for
4360 Use_Error, as specified in the RM. Check if directory is open and raise
4361 Use_Error if it is not.
4362
43632008-04-08 Vincent Celier <celier@adacore.com>
4364 Robert Dewar <dewar@adacore.com>
4365
4366 * vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when
4367 AAMP_On_Target is set.
4368
4369 * vms_data.ads: Add NOxxx to style check switch list
4370 Add entry COMPONENTS for -gnatVe
4371 Add VMS qualifiers for -eL (/FOLLOW_LINKS_FOR_FILES) and --subdirs=
4372 (/SUBDIRS=).
4373 (GCC_Switches): Add /ALL_BACK_END_WARNINGS.
4374 Add qualifiers for gnatmetric coupling options
4375 Add note that -gnata enables all checks
4376 Add entries [NO]PARAMETER_ORDER for -gnatw.p[P]
4377 Fix inconsistency for VMS qualifier for the gnatpp '-rnb' option
4378 New warning flag -gnatw.e
4379
4380 * usage.adb: Add entries for -gnaty+ -gnaty- -gnatyy
4381 Add entry for -gnatyN (forgotten before)
4382 Line for new warning switch -gnatw.p
4383 New warning flag -gnatw.e
4384
4385 * gnat_ugn.texi: Add documentation fpr project file switch -aP
4386 Document -gnaty - + y
4387 Replace occurences of "package specification" with "package spec"
4388 Define preprocessing symbols in documentation of gnatprep
4389 Clarify reason for distinguishing overflow checking
4390 Add documentation for project-aware tool switches -eL and --subdirs=
4391 Complete list of configuration pragmas
4392 Specify that, even when gnatmake switch -x is used, mains on the command
4393 line need to be sources of project files.
4394 Editing of gnatcheck/gnatmetric doc.
4395 Add documentation for -gnatw.p/-gnatw.P
4396 Add missing documentation for -fno-inline-functions.
4397 Add documentation for -gnatw.e
4398
4399 * gnat_rm.texi: Add documentation for No_Default_Initialization
4400 Replace occurences of "package specification" with "package spec"
4401 Document use of * in Warnings Off string
4402 Update documentation of alignment/component clauses.
4403 Add documentation for Invalid_Value
4404 Document new consistency rule for Optimize_Alignment
4405 Add documentation for Precondition and Postcondition pragmas
4406 Add documentation for Check and Check_Policy pragmas
4407 Document new Enum_Val attribute
4408 Remove requirement for static string in pragma Assert
4409 Add documentation on GNAT.Time_Stamp
4410
4411 * ug_words: add entry for -gnatVe
4412 Add entries for -gnat.p[P] /WARNINGS=[NO]PARAMETER_ORDER
4413 Add entry for -gnatw.e
4414
4415 * debug.adb: Add missing documentation for d.a flag
4416 Document new -gnatd.a switch.
4417 Add documentation for new gnatmake debug switch -df
4418
44192008-04-08 Thomas Quinot <quinot@adacore.com>
4420
4421 * gen-soccon.c: Bump year in copyright notices.
4422
4423 * g-soccon-vxworks.ads: Add new constant IP_PKTINFO
4424
44252008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4426
4427 * ctrl_c.c: Improve handling of ctrl-c on LynxOS and Windows.
4428 Minor reformatting.
4429
44302008-04-08 Robert Dewar <dewar@adacore.com>
4431 Bob Duff <duff@adacore.com>
4432
4433 * impunit.adb: Add Interfaces.Java.JNI, System.Strings.Stream_Ops,
4434 Ada.Calendar.Conversions, Ada.Dispatching.EDF, GNAT.Time_Stamp
4435
4436 * s-intman-mingw.adb: Minor comment fix -- spell 'explicitly' correctly
4437
4438 * g-trasym.adb: Minor comment fix -- spell 'explicitly' correctly
4439
4440 * g-trasym.ads: Minor comment improvements
4441
4442 * s-stalib.adb: Minor comment fix -- spell 'explicitly' correctly
4443
4444 * a-sequio.ads, a-direio.ads: improve message for tagged type
4445
4446 * a-strunb.ads: Minor reformatting
4447
4448 * a-tifiio.adb: Minor reformatting
4449
4450 * atree.adb (Fix_Parents): Use clearer names for formals
4451 Cleanup and simplify code
4452 Use named notation in calls
4453
4454 * exp_fixd.adb (Do_Multiply_Fixed_Universal): Use named notation in
4455 confusing calls
4456
4457 * uintp.adb: Used named notation for some confusing calls
4458
4459 * bindusg.adb: Minor change in one line of output
4460
4461 * cstand.adb: Minor reformatting of src representation of Standard
4462
4463 * a-assert.ads: Add comment.
4464
4465 * g-decstr.adb: Fix bad indentation
4466
4467 * expander.ads, expander.adb: Code clean up.
4468
4469 * sem_dist.ads: Minor comment improvement
4470
4471 * sem_type.adb, g-dirope.ads, g-exctra.ads, s-valwch.adb,
4472 s-wchstw.adb, targparm.ads, widechar.adb: Minor reformatting
4473
4474 * i-cstrin.adb: Fix casing error in formal parameter name in call
4475
44762008-04-08 Ed Schonberg <schonberg@adacore.com>
4477
4478 * binde.adb (Gather_All_Links, Gather_Dependencies): units that are
4479 mentioned in limited_with_clauses to do create semantic dependencies
4480 even though they appear in the ali file.
4481
44822008-04-08 Emmanuel Briot <briot@adacore.com>
4483
4484 * g-comlin.ads, g-comlin.adb (Expansion): Remove unreachable return
4485 statement.
4486 (Get_Configuration): New subprogram.
4487
4488 * prj-pp.ads, prj-pp.adb (Pretty_Print): new parameters Id and Id_Tree
4489 These optional parameters help preserve the casing of the project's name
4490 when pretty-printing.
4491
44922008-04-08 Jerome Lambourg <lambourg@adacore.com>
4493 Arnaud Charlet <charlet@adacore.com>
4494
4495 * bindgen.adb (Gen_Adainit_Ada): If the main program is a CIL function,
4496 then use __gnat_set_exit_status to report the returned status code.
4497
4498 * comperr.adb (Compiler_Abort): Convert most bug boxes into clean error
4499 messages on .NET, since some constructs of the language are not
4500 properly supported.
4501
4502 * gnatlink.adb (Gnatlink): In case the command line is too long for the
4503 .NET linker, gnatlink now concatenate all .il files and pass this to
4504 ilasm.
4505
d8ec5bf2
AJ
45062008-04-07 Aurelien Jarno <aurelien@aurel32.net>
4507 Xavier Grave <grave@ipno.in2p3.fr>
4508
4509 * Makefile.in: Add make ifeq define for mips/mipsel support.
4510 * g-soccon-linux-mips.ads, system-linux-mipsel.ads,
4511 system-linux-mips.ads: New files.
4512
7437c8d4
AJ
45132008-04-07 Aurelien Jarno <aurelien@aurel32.net>
4514
4515 * sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to
4516 detect systems using GNU libc.
4517 * gsocket.h: ditto.
4518 * socket.c: ditto.
4519 * adaint.c: ditto.
4520 * link.c: ditto.
4521
1dab7b35
AJ
45222008-04-07 Aurelien Jarno <aurelien@aurel32.net>
4523
4524 * s-osinte-linux-kfreebsd.ads (SC_NPROCESSORS_ONLN): New
4525 constant constant for sysconf call.
4526 (bit_field): New packed boolean type used by cpu_set_t.
4527 (cpu_set_t): New type corresponding to the C type with
4528 the same name. Note that on the Ada side we use a bit
4529 field array for the affinity mask. There is not need
4530 for the C macro for setting individual bit.
4531 (pthread_setaffinity_np): New imported routine.
4532 * Makefile.in: Use s-tasinf-linux.ads and s-tasinf-linux.adb
4533 on GNU/kFreeBSD.
4534
39fcde8f
EB
45352008-04-07 Eric Botcazou <ebotcazou@adacore.com>
4536
4537 * utils2.c (build_binary_op): Fold ARRAY_REF and ARRAY_RANGE_REF too.
4538
9dd9bf80
EB
45392008-04-07 Eric Botcazou <ebotcazou@adacore.com>
4540
4541 * gigi.h (create_subprog_type): Remove returns_with_dsp parameter.
4542 * decl.c (gnat_to_gnu_entity): Adjust for above new prototype.
4543 * utils.c (create_subprog_type): Remove returns_with_dsp parameter.
4544 * trans.c (gnat_to_gnu) <N_Return_Statement>: Remove code dealing with
4545 Return by Depressed Stack Pointer.
4546
2d091b12
EB
45472008-04-06 Eric Botcazou <ebotcazou@adacore.com>
4548
4549 * decl.c (is_variable_size): Do not unconditionally return false
4550 on non-strict alignment platforms.
4551
1bde5bc4
EB
45522008-04-06 Eric Botcazou <ebotcazou@adacore.com>
4553
4554 * decl.c (rest_of_type_decl_compilation_no_defer): New local function
4555 used to process all the variants of the specified type.
4556 (gnat_to_gnu_entity): Invoke rest_of_type_decl_compilation for enumeral
4557 types too. Call rest_of_type_decl_compilation_no_defer if undeferring.
4558 (rest_of_type_decl_compilation): Likewise.
4559 * utils.c (gnat_pushdecl): Propagate the name to all variants of type.
4560
9ff420f1
PB
45612008-04-03 Paolo Bonzini <bonzini@gnu.org>
4562
1bde5bc4
EB
4563 * gigi.h (insert_block): Kill.
4564 * utils.c (insert_block): Kill.
9ff420f1 4565
bf1e48d1
EB
45662008-04-02 Eric Botcazou <ebotcazou@adacore.com>
4567
4568 * decl.c (gnat_to_gnu_entity) <object>: For a constant object whose
4569 type has self-referential size, get the size from the initializing
4570 expression directly if it is also a constant whose nominal type
4571 has self-referential size.
4572
a6a0635e
JDA
45732008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4574
51e5c7b5
JDA
4575 PR ada/33688
4576 * g-soccon-darwin.ads: Define new constant IP_PKTINFO.
4577
a6a0635e
JDA
4578 PR ada/33857
4579 * env.c: Always include crt_externs.h if __APPLE__ is defined.
4580 (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined.
4581
4d22f5b1
AJ
45822008-04-01 Andreas Jaeger <aj@suse.de>
4583
4584 * g-soccon-linux-ppc.ads: Add new constants SO_REUSEPORT and
4585 IP_PKTINFO.
4586
dec55d76
RW
45872008-03-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4588
4589 * g-table.adb, g-tasloc.adb, g-traceb.ads,
4590 g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c,
4591 gnatbind.adb, gnatchop.adb, gnatcmd.adb,
4592 gnatcmd.ads, gnatdll.adb, gnatfind.adb,
4593 gnatlink.adb, gnatmem.adb, gprep.adb,
4594 i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads,
4595 i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb,
4596 layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
4597 lib-xref.ads, lib.adb, link.c, live.ads,
4598 make.adb, makegpr.adb, makeutl.adb, math_lib.adb,
4599 mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads,
4600 misc.c, mlib-prj.adb, mlib-tgt-hpux.adb,
4601 mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads,
4602 namet.adb, namet.h, nlists.adb, nlists.ads,
4603 nlists.h, opt.ads, osint-b.ads, osint-c.adb,
4604 osint-c.ads, osint.adb, osint.ads, output.ads,
4605 par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb,
4606 par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb,
4607 par-endh.adb, par-labl.adb, par-prag.adb,
4608 par-sync.adb, par-tchk.adb, par-util.adb,
4609 par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads,
4610 prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
4611 prj-nmsc.ads, prj-pp.adb, prj-proc.adb,
4612 prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos.
4613
5a864002
EB
46142008-03-31 Eric Botcazou <ebotcazou@adacore.com>
4615
4616 * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null
4617 size if it has overflowed.
4618
2566855a 46192008-03-31 Olivier Hainque <hainque@adacore.com>
5a864002 4620 Eric Botcazou <ebotcazou@adacore.com>
2566855a
OH
4621
4622 * utils2.c (find_common_type): Document assumption on t1/t2 vs
4623 lhs/rhs. Force use of lhs type if smaller, whatever the modes.
4624
e14c931f
RW
46252008-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4626
4627 * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads,
4628 einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb,
4629 exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
4630 exp_pakd.ads, exp_prag.adb, exp_smem.adb,
4631 exp_tss.ads, exp_util.adb, exp_util.ads,
4632 exp_vfpt.adb, freeze.adb, freeze.ads,
4633 frontend.adb, g-alleve.adb, g-altcon.adb,
4634 g-altive.ads, g-alveop.ads, g-alvevi.ads,
4635 g-arrspl.adb, g-busorg.ads, g-calend.adb,
4636 g-calend.ads, g-casuti.ads, g-cgideb.adb,
4637 g-comlin.adb, g-comlin.ads, g-curexc.ads,
4638 g-debpoo.adb, g-debpoo.ads, g-decstr.adb,
4639 g-dirope.adb, g-dirope.ads, g-dynhta.ads,
4640 g-dyntab.adb, g-encstr.ads, g-excact.ads,
4641 g-except.ads, g-expect.ads, g-heasor.adb,
4642 g-hesora.adb, g-hesorg.adb, g-htable.ads,
4643 g-locfil.ads, g-md5.adb, g-md5.ads,
4644 g-memdum.ads, g-moreex.ads, g-os_lib.adb,
4645 g-pehage.adb, g-pehage.ads, g-regexp.adb,
4646 g-regexp.ads, g-regpat.adb, g-regpat.ads,
4647 g-soccon-aix.ads, g-soccon-darwin.ads,
4648 g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads,
4649 g-soccon-hpux.ads, g-soccon-irix.ads,
4650 g-soccon-linux-64.ads, g-soccon-linux-ppc.ads,
4651 g-soccon-linux-x86.ads, g-soccon-lynxos.ads,
4652 g-soccon-mingw.ads, g-soccon-solaris-64.ads,
4653 g-soccon-solaris.ads, g-soccon-tru64.ads,
4654 g-soccon-vms.ads, g-soccon-vxworks.ads,
4655 g-soccon.ads, g-socket.adb, g-socket.ads,
4656 g-socthi-mingw.adb, g-socthi-vms.adb,
4657 g-socthi-vxworks.adb, g-soliop-mingw.ads,
4658 g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb,
4659 g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment
4660 typos.
4661
2bc894d9
EB
46622008-03-27 Eric Botcazou <ebotcazou@adacore.com>
4663
4664 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
4665 if the procedure is imported.
4666
640bd0bf
AC
46672008-03-26 Arnaud Charlet <charlet@adacore.com>
4668
4669 * adaint.c: Fix warnings.
4670
0afae63b
AC
46712008-03-26 Arnaud Charlet <charlet@adacore.com>
4672
4673 * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec.
4674
afc5f979
AC
46752008-03-26 Arnaud Charlet <charlet@adacore.com>
4676
4677 * a-witeio.adb: Fix problem with Current_Output (introduce Self).
4678 Fix problem of status check for null file
4679
c5d31169
AC
46802008-03-26 Arnaud Charlet <charlet@adacore.com>
4681
4682 * s-proinf-irix-athread.ads, s-vxwork-mips.ads,
4683 s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads,
4684 s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads,
4685 i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads,
4686 s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update
4687 comments.
4688
b501b251
AC
46892008-03-26 Thomas Quinot <quinot@adacore.com>
4690
2bc894d9 4691 PR ada/33688
b501b251
AC
4692 * g-socket.ads, g-socket.adb (Options, Set_Socket_Option,
4693 Get_Socket_Option): Add support for Receive_Packet_Info.
4694
4695 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
4696 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
4697 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads,
4698 g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads,
4699 g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add
4700 new constants SO_REUSEPORT and IP_PKTINFO
4701
47022008-03-26 Robert Dewar <dewar@adacore.com>
4703
4704 * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb,
4705 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
4706 a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads,
4707 a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads,
4708 a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads,
4709 a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads,
4710 s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads,
4711 s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
4712 a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads,
4713 s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads,
4714 s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
4715 s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads,
4716 s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb,
4717 s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads,
4718 s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
4719 s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads,
4720 s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads,
4721 s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb,
4722 s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
4723 s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb,
4724 a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads,
4725 a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads,
4726 s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads,
4727 s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads,
4728 s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads,
4729 s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb,
4730 s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb,
4731 a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb,
4732 a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb,
4733 s-tasloc.adb: Minor reformatting.
4734 Update comments.
4735 Remove "used for" sections from comments.
4736
47372008-03-26 Robert Dewar <dewar@adacore.com>
4738
4739 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
4740 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
4741 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
4742 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
4743 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
4744 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
4745 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
4746 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
4747 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
4748 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
4749 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
4750 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
4751 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
4752 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
4753 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
4754 double spaced if it fits on one line and otherwise single spaced.
4755
47562008-03-26 Arnaud Charlet <charlet@adacore.com>
4757
4758 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb,
4759 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
4760 s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
4761 or task info if the thread could not be created.
4762
47632008-03-26 Arnaud Charlet <charlet@adacore.com>
4764
4765 * gnatvsn.ads (Library_Version): Bump to 4.4.
4766 (Current_Year): Bump to 2008.
4767
47682008-03-26 Robert Dewar <dewar@adacore.com>
4769
4770 * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record
4771
4772 * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure
4773
4774 * debug.adb: Add debug flags d.r and d.v
4775 Add debug flag .T (Optimize_Alignment (Time))
4776 Add debug flag .S (Optimize_Alignment (Space))
4777
4778 * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components
4779 depending on setting of relevant debug flags.
4780 Replace use of Warnings_Off by Has_Warnings_Off
4781 (Freeze_Entity): In circuit for warning on suspicious convention
4782 actuals, do not give warning if subprogram has same entity as formal
4783 type, or if subprogram does not come from source.
4784 (Freeze_Entity): Don't reset Is_Packed for fully rep speced record
4785 if Optimize_Alignment set to Space.
4786
4787 * frontend.adb: Add call to Sem_Warn.Initialize
4788 Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings
4789 Reset Optimize_Alignment mode from debug switches .S and .T
4790
4791 * layout.adb (Layout_Composite_Object): Rewritten for
4792 Optimize_Aligment pragma.
4793
4794 * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment
4795 mode.
4796
4797 * opt.ads, opt.adb: (Optimize_Alignment): New global switch
4798
4799 * par-prag.adb (N_Pragma): Chars field removed, use Chars
4800 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
4801 this change. Add entry for pragma Optimize_Alignment
4802
4803 * sem_prag.adb (N_Pragma): Chars field removed, use Chars
4804 (Pragma_Identifier (..
4805 instead, adjustments throughout to accomodate this change.
4806 (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg
4807 (Favor_Top_Level): Use new function Is_Access_Subprogram_Type
4808 Add implementation of pragma Optimize_Alignment
4809
48102008-03-26 Vincent Celier <celier@adacore.com>
4811
4812 * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line):
4813 Improve memory usage to avoid use of stack.
4814
48152008-03-26 Robert Dewar <dewar@adacore.com>
4816
4817 * a-teioed.ads: Correct value of Default_Fill
4818
4819 * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill
4820
48212008-03-26 Robert Dewar <dewar@adacore.com>
4822
4823 * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem
4824 with Current_Output (introduce Self).
4825
48262008-03-26 Robert Dewar <dewar@adacore.com>
4827
4828 * checks.adb (Ensure_Valid): Capture valid status if possible
4829 (eliminate checks)
4830
48312008-03-26 Robert Dewar <dewar@adacore.com>
4832
4833 * stand.ads: Deal with reordering of package standard declarations
4834
4835 * cstand.adb: Put package Standard declarations in proper order
4836
48372008-03-26 Robert Dewar <dewar@adacore.com>
4838
4839 * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars
4840 (Pragma_Identifier (.. instead.
4841 (OK_To_Reorder_Components): New flag
4842 (Has_Entries): Code cleanup.
4843 (Warnings_Off_Used): New flag
4844 (Warnings_Off_Used_Unmodified): New flag
4845 (Warnings_Off_Used_Unreferenced): New flag
4846 (Has_Warnings_Off): New function
4847 (Has_Unmodified): New function
4848 (Has_Unreferenced): New function
4849 (Is_Trivial_Subprogram): New flag
4850 (Is_Static_Dispatch_Table_Entity): New attribute.
4851 Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind
4852 (more consistent with other similar names)
4853 (Access_Subprogram_Type): New classification function
4854
48552008-03-26 Robert Dewar <dewar@adacore.com>
4856
4857 * errout.ads: Document new !! insertion sequence
4858
4859 * errout.adb (N_Pragma): Chars field removed, use Chars
4860 (Pragma_Identifier (.. instead.
4861 Replace use of Warnings_Off by Has_Warnings_Off
4862 (Error_Msg_Internal): Don't delete warning ending in !!
4863
48642008-03-26 Robert Dewar <dewar@adacore.com>
4865
4866 * par.adb (Check_No_Right_Paren): Removed no longer used
4867
4868 * par-ch10.adb (N_Pragma): Chars field removed, use Chars
4869 (Pragma_Identifier (.. instead.
4870
4871 * par-ch10.adb (P_Subunit): Improvement in error recovery and message
4872
4873 * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
4874 par-ch4.adb: Minor improvements in error recovery and messages.
4875
4876 * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
4877 non-serious
4878
4879 * par-ch9.adb: Minor improvements in error recovery and messages
4880 (P_Protected): Better error recovery for "protected type x;"
4881
4882 * par-util.adb: Minor improvements in error recovery and messages
4883 (Check_No_Right_Paren): Removed no longer used
4884
48852008-03-26 Ed Schonberg <schonberg@adacore.com>
4886
4887 * exp_aggr.adb (Replace_Type): When checking for self-reference, verify
4888 that the prefix of an attribute is the type of the aggregate being
4889 expanded.
4890
48912008-03-26 Javier Miranda <miranda@adacore.com>
4892 Robert Dewar <dewar@adacore.com>
4893
4894 * exp_attr.adb (N_Pragma): Chars field removed.
4895 (Expand_N_Attribute_Reference): If the designated type associated with
4896 attribute 'Unrestricted_Access is a subprogram entity then replace it
4897 by an E_Subprogram_Type itype.
4898 Implement attribute Old
4899
4900 * sem_attr.ads (Attribute_Class_Array): Move to snames.ads
4901
4902 * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
4903 Replace call to
4904 New_Internal_Entity by call to Create_Itype to centralize calls
4905 building itypes, ad propagate the convention of the designated
4906 subprogram. In addition, disable the machinery cleaning constant
4907 indications from all entities in current scope when 'Unrestricted_Access
4908 corresponds with a node initializing a dispatch table slot.
4909 (Analyze_Attribute): Parameterless attributes returning a string or a
4910 type will not be called with improper arguments, so we can remove junk
4911 code that was dealing with this case.
4912 Implement attribute Old
4913
4914 * snames.ads, snames.h, snames.adb: Add entries for attribute Old
4915 Add entry for pragma Optimize_Alignment
4916 New standard names Sync and Synchronize
4917
49182008-03-26 Robert Dewar <dewar@adacore.com>
4919 Arnaud Charlet <charlet@adacore.com>
4920
4921 * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise
4922 stmt.
4923 (No_Exception_Propagation_Active): New function.
4924 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
4925 Update comments, and review all uses of No_Exception_Propagation, which
4926 are now correct and in sync with what gigi expects.
4927
4928 * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New
4929 function.
4930 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
4931 Update comments, and review all uses of No_Exception_Propagation, which
4932 are now correct and in sync with what gigi expects.
4933
49342008-03-26 Ed Schonberg <schonberg@adacore.com>
4935
4936 * sem_ch3.adb (Access_Definition): If the access type is the return
4937 result of a protected function, create an itype reference for it
4938 because usage will be in an inner scope from the point of declaration.
4939 (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and
4940 OK_To_Reorder_Components.
4941 (Make_Index): If an overloaded range includes a universal integer
4942 interpretation, resolve to Standard.Integer.
4943 (Analyze_Subtype_Indication): Copy Convention to subtype
4944 (Check_Abstract_Interfaces): Complete semantic checks on the legality of
4945 limited an synchronized progenitors in type declaration and private
4946 extension declarations.
4947
4948 * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a
4949 protected subprogram body, determine proper scope from subprogram
4950 declaration.
4951
49522008-03-26 Robert Dewar <dewar@adacore.com>
4953
4954 * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
4955 No_Run_Time_Mode
4956
49572008-03-26 Gary Dismukes <dismukes@adacore.com>
4958
4959 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation
4960 of a heap allocator for a limited unconstrained function return when
4961 resstriction No_Allocators is active.
4962 (Analyze_Allocator): The restriction No_Allocators is now only checked
4963 on allocators that have Comes_From_Source set, as per RM-H.4(7).
4964
4965 * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation
4966 of a heap allocator for a limited unconstrained function return when
4967 resstriction No_Allocators is active.
4968 (Analyze_Allocator): The restriction No_Allocators is now only checked
4969 on allocators that have Comes_From_Source set, as per RM-H.4(7).
4970 (Has_Fixed_Op): If the name in a function call is Standard."*" and the
4971 operands are fixed-point types, the universal_fixed predefined operation
4972 is used, regardless of whether the operand type (s) have a primitive
4973 operation of the same name.
4974
49752008-03-26 Javier Miranda <miranda@adacore.com>
4976
4977 * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute
4978 Is_Static_Dispatch_Table
4979 (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls
4980 to Exchange_Declarations to exchange the private and full-view. Bug
4981 found working in this issue.
4982 (Expand_Dispatching_Call): Propagate the convention of the subprogram
4983 to the subprogram pointer type.
4984 (Make_Secondary_DT): Replace generation of Prim'Address by
4985 Address (Prim'Unrestricted_Access)
4986 (Make_DT): Replace generation of Prim'Address by
4987 Address (Prim'Unrestricted_Access)
4988 (Make_Disp_*_Bodies): When compiling for a restricted profile, use
4989 simple call form for single entry.
4990 (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch
4991 tables of predefined primitives).
4992 (Make_Secondary_DT): Add support to handle access to dispatch tables of
4993 predefined primitives.
4994 (Make_Tags): Add entities to Access_Dispatch_Table associated with
4995 access to dispatch tables containing predefined primitives.
4996
4997 * exp_ch6.adb (N_Pragma): Chars field removed, use Chars
4998 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
4999 this change.
5000 (Register_Predefined_DT_Entry): Updated to handle the new contents
5001 of attribute Access_Disp_Table (pointers to dispatch tables containing
5002 predefined primitives).
5003
5004 * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New
5005 subprogram.
5006 (Find_Interface_ADT): Updated to skip the new contents of attribute
5007 Access_Dispatch_Table (pointers to dispatch tables containing predefined
5008 primitives).
5009
5010 * sem_util.adb (Has_Abstract_Interfaces): Add missing support for
5011 concurrent types.
5012 (Set_Convention): Use new function Is_Access_Subprogram_Type
5013 (Collect_Interfaces_Info): Updated to skip the new contents of attribute
5014 Access_Dispatch_Table (pointers to dispatch tables containing predefined
5015 primitives).
5016
5017 * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve
5018 expanded code avoiding calls to Build_Predef_Prims.
5019 (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding
5020 call to Build_Get_Predefined_Prim_Op_Address.
5021
50222008-03-26 Javier Miranda <miranda@adacore.com>
5023
5024 * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized
5025 subprogram Corresponding_Runtime_Package to know the runtime package
5026 that will provide support to a given protected type.
5027
5028 * exp_ch9.adb (Add_Private_Declarations,
5029 Build_Protected_Subprogram_Call,
5030 Build_Protected_Entry, Build_Simple_Entry_Call,
5031 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
5032 Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code
5033 cleanup using the new centralized subprogram Corresponding_Runtime
5034 Package to know the runtime package that provides support to
5035 a given protected type.
5036
50372008-03-26 Ed Schonberg <schonberg@adacore.com>
5038
5039 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component
5040 assignment is within the initialization procedure for a packed array,
5041 and Initialize_Scalars is enabled, compile right-hand side with checks
5042 off, because the value is purposely out of range.
5043
50442008-03-26 Vincent Celier <celier@adacore.com>
5045
5046 * gnatcmd.adb: Add processing for GNAT SYNC
5047
5048 * vms_conv.ads: (Command_Type): Add command Sync
5049
5050 * vms_conv.adb (Initialize): Add Command_List data for new command Sync
5051
5052 * vms_data.ads: Add entries for -gnatw.w
5053 Add qualifier for gnatstub --header-file option
5054 Add switches for GNAT SYNC
5055
5056 * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC
5057 (Add_Package_Name): New procedure
5058 (Package_Name_List): New function
5059 (Initialize): Add known package names to the list
5060 (Register_New_Package): Add the new package name to the list
5061
50622008-03-26 Robert Dewar <dewar@adacore.com>
5063
5064 * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb,
5065 s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace
5066 Raise_Exception by "raise with" construct.
5067
50682008-03-26 Pascal Obry <obry@adacore.com>
5069
5070 * Makefile.in: Add proper GNAT.Serial_Communications implementation on
5071 supported platforms.
5072
5073 * Makefile.rtl: Add g-sercom.o.
5074
5075 * impunit.adb: Add g-sercom.adb.
5076
5077 * s-crtl.ads (open): New routine.
5078 (close): Likewise.
5079 (write): Likewise.
5080
5081 * s-osinte-mingw.ads (BYTE): New type.
5082 (CHAR): Likewise.
5083 (OVERLAPPED): Likewise.
5084 (GENERIC_READ): New constant.
5085 (GENERIC_WRITE): Likewise.
5086 (OPEN_EXISTING): Likewise.
5087 (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
5088 type instead.
5089 (CreateFile): New routine.
5090 (WriteFile): Likewise.
5091 (ReadFile): Likewise.
5092 (CloseHandle): Move next to the other file oriented routines.
5093
5094 * g-sercom.ads: New unit.
5095
5096 * g-sercom.adb: Default implementation, calls to this unit will raise
5097 a program error exception.
5098
5099 * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
5100 GNU/Linux implementations.
5101
51022008-03-26 Robert Dewar <dewar@adacore.com>
5103
5104 * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind
5105
5106 * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for
5107 unchecked conversion for different conventions only for subprogram
5108 pointers or on VMS.
5109
51102008-03-26 Vincent Celier <celier@adacore.com>
5111
5112 * osint-c.adb (Set_Library_Info_Name): Use canonical case file names
5113 to check if the specified object file is correct.
5114
51152008-03-26 Thomas Quinot <quinot@adacore.com>
5116
5117 * sem_cat.adb (Validate_RACW_Primitives): Do not rely on
5118 Comes_From_Source to exclude primitives from being checked. We want to
5119 exclude predefined primitives only, so use the appropriate specific
5120 predicate. Also, flag a formal parameter of an anonymous
5121 access-to-subprogram type as illegal for a primitive operation of a
5122 remote access to class-wide type.
5123
51242008-03-26 Vincent Celier <celier@adacore.com>
5125
5126 * prj-dect.adb (Parse_Package_Declaration): When a package name is not
5127 known, check if it may be a missspelling of a known package name. In
5128 not verbose, not mode, issue warnings only if the package name is a
5129 possible misspelling.
5130 In verbose mode, always issue a warning for a not known package name,
5131 plus a warning if the name is a misspelling of a known package name.
5132
5133 * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non
5134 limited withs or limited withs are parse during one call.
5135 (Parse_Single_Project): Post parse context clause in two passes: non
5136 limited withs before current project and limited withs after current
5137 project.
5138
5139 * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended
5140 project with the name With_Name, even if it is only extended indirectly.
5141 (Recursive_Process): Process projects in order: first single withs, then
5142 current project, then limited withs.
5143
5144 * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended
5145 project with the name With_Name, even if it is only extended indirectly.
5146
51472008-03-26 Robert Dewar <dewar@adacore.com>
5148
5149 * scn.adb (Initialize_Scanner): Format messages belong on standard error
5150
51512008-03-26 Ed Schonberg <schonberg@adacore.com>
5152
5153 * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
5154 a generic subprogram that is imported, do not attempt to compile
5155 non-existent body.
5156
5157 * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
5158 imported, do not generate a raise_program_error for the non-existent
5159 body.
5160 (Pre_Analyze_Actuals): If an error is detected during pre-analysis,
5161 perform minimal name resolution on the generic to avoid spurious
5162 warnings.
5163 (Find_Actual_Type): the designated type of the actual in a child unit
5164 may be declared in a parent unit without being an actual.
5165
51662008-03-26 Robert Dewar <dewar@adacore.com>
5167
5168 * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ
5169 * sinfo.ads, sinfo.adb (From_At_End): New flag
5170
51712008-03-26 Ed Schonberg <schonberg@adacore.com>
5172
5173 * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on
5174 operations that have an interface parameter.
5175 (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag
5176 Don't treat No_Return call as raise.
5177
5178 * sem_disp.adb (Check_Dispatching_Operations): apply check for
5179 non-primitive interface primitives to access parameters, not to all
5180 parameters of an access type.
5181
51822008-03-26 Ed Schonberg <schonberg@adacore.com>
5183
5184 * sem_ch7.adb (Install_Parent_Private_Declarations): If the private
5185 declarations of a parent unit are made visible when compiling a child
5186 instance, the parent is not a hidden open scope, even though it may
5187 contain other pending instance.
5188
5189 * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a
5190 hidden open scope for some child instance, it does affect the
5191 visibility status of other stach entries.
5192 (Analyze_Object_Renaming): Check that a class-wide object cannot be
5193 renamed as an object of a specific type.
5194
51952008-03-26 Robert Dewar <dewar@adacore.com>
5196
5197 * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite
5198 recursion and raise SE directly.
5199 (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is
5200 set for formal type for IN mode parameter.
5201
52022008-03-26 Robert Dewar <dewar@adacore.com>
5203
5204 * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table
5205 (Initialize): New procedure
5206 (Output_Warnings_Off_Warnings): New procedure
5207 (Check_References): Suppress certain msgs if Is_Trivial_Subprogram
5208 (Output_Non_Modifed_In_Out_Warnings): Ditto
5209 (Warn_On_Unreferenced_Entity): Ditto
5210
52112008-03-26 Vincent Celier <celier@adacore.com>
5212
5213 * a-direct.adb (Start_Search): Raise Use_Error if the directory is not
5214 readable.
5215
52162008-03-26 Matthew Heaney <heaney@adacore.com>
5217
5218 * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads,
5219 a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads:
5220 Marked with clauses as private, and controlled operations as overriding
5221
52222008-03-26 Robert Dewar <dewar@adacore.com>
5223
5224 * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized
5225
52262008-03-26 Robert Dewar <dewar@adacore.com>
5227
5228 * back_end.adb, back_end.ads: Minor reformatting
5229
5230 * bindgen.adb: Minor clarification of comments
5231
5232 * fname.ads: Minor comment fixes
5233
5234 * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads,
5235 prj-nmsc.adb, sem_aggr.adb: Minor reformatting
5236
5237 * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb,
5238 xsnames.adb: Remove warnings off pragma no longer needed
5239
5240 * a-catizo.ads, a-calari.ads, a-calfor.adb,
5241 a-calfor.ads: Fix header.
5242
52432008-03-26 Tristan Gingold <gingold@adacore.com>
5244
5245 * init.c: Do not adjust pc for HPARITH on alpha/vms.
5246
52472008-03-26 Robert Dewar <dewar@adacore.com>
5248
5249 * lib-xref.adb: (OK_To_Set_Reference): New function
5250 (Generate_Reference): Don't set referenced from occurrence in Warnings,
5251 Unmodified, or Unreferenced pragma
5252
52532008-03-26 Robert Dewar <dewar@adacore.com>
5254
5255 * alloc.ads: Add entries for Warnings_Off_Pragmas table
5256
52572008-03-26 GNAT Script <nobody@adacore.com>
5258
5259 * Make-lang.in: Makefile automatically updated
5260
52612008-03-26 Robert Dewar <dewar@adacore.com>
5262
5263 * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c,
5264 par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field
5265 removed, use Chars (Pragma_Identifier (.. instead, adjustments
5266 throughout to accomodate this change.
5267
5268 * s-pooglo.ads, s-pooloc.ads: Minor comment updates
5269
5270 * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not
5271 Einfo.Set_Needs_Debug_Info)
5272
52732008-03-26 Robert Dewar <dewar@adacore.com>
5274
5275 * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W
5276 Add description for the new gnatstub option '--header-file'
5277 clarification of -gnatwz/-gnatwZ
5278 Add a "Irix-Specific Considerations" section to document the need to
5279 set LD_LIBRARY_PATH when using the default shared runtime library.
5280 Added documentation for both gcov and gprof.
5281
5282 * gnat_rm.texi: Document that pragma Compile_Time_Warning generates
5283 messages that are not suppressed when clients are compiled.
5284 Add documentation of s-pooglo s-pooloc
5285 Document the new GNAT.Serial_Communications API.
5286 Add documentation for 'Old attribute
5287 Add description of pragma Optimize_Alignment
5288
5289 * ug_words: Add entries for -gnatw.w -gnatw.W
5290
5291 * usage.adb: Add line for -gnatw.w (warn on warnings off)
5292
3a9634be
EB
52932008-03-25 Eric Botcazou <ebotcazou@adacore.com>
5294
5295 Revert
5296 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
5297 PR ada/35186
5298 * decl.c (maybe_pad_type): Avoid padding an integral type when
5299 bumping its alignment is sufficient.
5300
53b308f6
AC
53012008-03-25 Arnaud Charlet <charlet@adacore.com>
5302
5303 * exp_ch6.adb, exp_disp.adb: Update copyright notice.
5304 Fix wrong formatting (lines too long)
5305
8fc789c8
RW
53062008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5307
5308 * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb,
5309 a-calend-vms.adb, a-calend.adb, a-calend.ads,
5310 a-calfor.adb, a-chahan.ads, a-chtgke.adb,
5311 a-cihama.ads, a-ciorse.adb, a-clrefi.ads,
5312 a-cohama.ads, a-comlin.ads, a-coorse.adb,
5313 a-crbtgk.adb, a-direct.adb, a-except-2005.adb,
5314 a-except-2005.ads, a-except.adb, a-except.ads,
5315 a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb,
5316 a-exextr.adb, a-filico.ads, a-finali.ads,
5317 a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb,
5318 a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads,
5319 a-sequio.ads, a-strbou.ads, a-strfix.adb,
5320 checks.adb, exp_ch3.adb, exp_ch4.adb,
5321 exp_ch4.ads, exp_ch5.adb, exp_ch6.adb,
5322 exp_ch6.ads, exp_ch7.adb, exp_ch7.ads,
5323 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb,
5324 exp_dbug.ads, exp_disp.adb, exp_dist.adb,
5325 exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos.
5326
15f6d6e7
RD
53272008-03-24 Robert Dewar <dewar@adacore.com>
5328
5329 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
5330 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
5331 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
5332 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
5333 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
5334 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
5335 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
5336 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
5337 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
5338 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
5339 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
5340 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
5341 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
5342 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
5343 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
5344 double spaced if it fits on one line and otherwise single spaced.
5345
b2e74434
RW
53462008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5347
5348 PR documentation/15479
5349 * Make-lang.in (doc/gnat_ugn.texi) Renamed from ...
5350 (doc/gnat_ugn_unw.texi): ... this, and adjusted.
5351 (doc/gnat_ugn.info): Renamed from ...
5352 (doc/gnat_ugn_unw.info): ... this.
5353 (doc/gnat_ugn.dvi): Renamed from ...
5354 (doc/gnat_ugn_unw.dvi): ... this.
5355 (doc/gnat_ugn.pdf): Renamed from ...
5356 (doc/gnat_ugn_unw.pdf): ... this.
5357 (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi):
5358 Adjusted.
5359 * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename
5360 unconditionally to gnat_ugn.info. Fix cross references to the
5361 GNAT Reference Manual. Convert links to the GCC, GDB, Emacs,
5362 and GNU make manuals to be proper texinfo links.
5363 * gnat_rm.texi: Fix cross references to the GNAT User's Guide.
5364
f4351641
OH
53652008-03-21 Olivier Hainque <hainque@adacore.com>
5366
5367 * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb)
5368 ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0).
5369
10c5d1a0
EB
53702008-03-21 Eric Botcazou <ebotcazou@adacore.com>
5371
5372 * trans.c (addressable_p): Add notes on addressability issues.
5373
457b629a
OH
53742008-03-21 Olivier Hainque <hainque@adacore.com>
5375 Ed Schonberg <schonberg@adacore.com>
5376
5377 * trans.c (addressable_p): Accept COND_EXPR when both arms
5378 are addressable.
5379 (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR.
5380 (call_to_gnu): Do not use name reference in the error message
5381 for a misaligned by_reference_parameter. The actual may be a
5382 general expression.
5383
ac5dc795
PB
53842008-03-18 Paolo Bonzini <bonzini@gnu.org>
5385
e1da2b17
EB
5386 * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
5387
79f34d07
RW
53882008-03-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5389
5390 * gnat_rm.texi (Implementation Defined Characteristics)
5391 (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where
5392 appropriate.
5393 * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind)
5394 (Switches for gnatchop, Installing a library): Likewise.
5395
e1e7141c
EB
53962008-03-10 Eric Botcazou <ebotcazou@adacore.com>
5397
5398 * trans.c (emit_range_check): Do not emit the check if the base type
5399 of the expression is the type against which its range must be checked.
5400
892f6e65
EB
54012008-03-08 Eric Botcazou <ebotcazou@adacore.com>
5402
5403 * decl.c (maybe_pad_type): Use value_factor_p.
5404
7934d781
EB
54052008-03-08 Eric Botcazou <ebotcazou@adacore.com>
5406
5407 * lang.opt (nostdlib): Move around.
5408 * misc.c (gnat_handle_option): Fix formatting.
5409 (gnat_dwarf_name): Move around.
5410 * trans.c (Case_Statement_to_gnu): Fix formatting.
5411 (gnat_to_gnu): Likewise.
5412 * utils.c (aggregate_type_contains_array_p): Likewise.
5413 (create_subprog_decl): Likewise.
5414
8f5893ab
EB
54152008-03-08 Eric Botcazou <ebotcazou@adacore.com>
5416
5417 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
5418 bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
5419
ba436c3b
EB
54202008-03-08 Eric Botcazou <ebotcazou@adacore.com>
5421
5422 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force
5423 BIGGEST_ALIGNMENT when capping the alignment of records with
5424 strict alignment and size clause.
5425
6ab36dac
EB
54262008-03-08 Eric Botcazou <ebotcazou@adacore.com>
5427
5428 * lang-specs.h: Pass -gnatwa if -Wall is passed.
5429 * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused
5430 and -Wuninitialized.
5431 (gnat_post_options): Clear warn_unused_parameter.
5432
8853cb0b
EB
54332008-03-08 Eric Botcazou <ebotcazou@adacore.com>
5434
5435 * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently
5436 aligned bit-fields, bumping the alignment of the record type if deemed
5437 profitable.
5438 (value_factor_p): Return false instead of 0.
5439
66abe22c
EB
54402008-03-08 Eric Botcazou <ebotcazou@adacore.com>
5441
5442 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support
5443 for scalar types with small alignment.
5444
563569be
EB
54452008-03-08 Eric Botcazou <ebotcazou@adacore.com>
5446
5447 * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label
5448 from that of the front-end's end label.
5449 (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto
5450 from that of the loop label.
5451
b49a1a1e
EB
54522008-03-07 Eric Botcazou <ebotcazou@adacore.com>
5453
5454 * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
5455 comment for the packed array type case.
5456 * utils.c (build_template): Use a loop to strip padding or
5457 containing records for justified modular types.
5458
fd5c81e9
EB
54592008-03-07 Eric Botcazou <ebotcazou@adacore.com>
5460
5461 * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
5462 large alignments specified for types.
5463 (validate_alignment): Minor cleanup.
5464
7f42aa36
EB
54652008-03-07 Eric Botcazou <ebotcazou@adacore.com>
5466
5467 * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
5468 (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
5469 the component for packing, if possible, as well as if a component
5470 size clause is specified.
5471 <E_Record_Subtype>: For an array type used to implement a packed
5472 array, get the component type from the original array type.
5473 Try to get a smaller form of the component for packing, if possible,
5474 as well as if a component size clause is specified.
5475 (round_up_to_align): New function.
5476 (make_packable_type): Add in_record parameter.
5477 For a padding record, preserve the size. If not in_record and the
5478 size is too large for an integral mode, attempt to shrink the size
5479 by lowering the alignment.
5480 Ditch the padding bits of the last component.
5481 Compute sizes and mode manually, and propagate the RM size.
5482 Return a BLKmode record type if its size has shrunk.
5483 (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
5484 Use Original_Array_Type to retrieve the type in case of an error.
5485 Adjust call to make_packable_type.
5486 (gnat_to_gnu_field): Likewise.
5487 (concat_id_with_name): Minor tweak.
5488 * trans.c (larger_record_type_p): New predicate.
5489 (call_to_gnu): Compute the nominal type of the object only if the
5490 parameter is by-reference. Do the conversion actual type -> nominal
5491 type if the nominal type is a larger record.
5492 (gnat_to_gnu): Do not require integral modes on the source type to
5493 avoid the conversion for types with identical names.
5494 (addressable_p): Add gnu_type parameter. If it is specified, do not
5495 return true if the expression is not addressable in gnu_type.
5496 Adjust recursive calls.
5497 * utils.c (finish_record_type): Remove dead code.
5498
2f76571e
EB
54992008-03-05 Eric Botcazou <ebotcazou@adacore.com>
5500
5501 PR ada/35186
5502 * decl.c (maybe_pad_type): Avoid padding an integral type when
5503 bumping its alignment is sufficient.
5504
4d0e4612
RW
55052008-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5506
ad6b5b00
RW
5507 * gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
5508 * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
5509 statement.
5510 * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
5511 gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
5512 sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
5513 code output strings.
5514 * sem_type.adb, system-vms-ia64.ads, system-vms.ads,
5515 system-vms_64.ads: Fix typos in ada source code comments.
5516 * sinfo-cn.adb: Remove incomplete sentence.
5517
4d0e4612
RW
5518 PR documentation/15479
5519 * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
5520
acf6b7ab
ST
55212008-02-27 Samuel Tardieu <sam@rfc1149.net>
5522
5523 PR ada/22255
5524 * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
5525
f5c064ab
ST
55262008-02-27 Samuel Tardieu <sam@rfc1149.net>
5527
5528 PR ada/34799
5529 * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
5530 that underlying type is present.
5531
2d593c86
TT
55322008-02-26 Tom Tromey <tromey@redhat.com>
5533
5534 * misc.c (internal_error_function): Remove test of
5535 USE_MAPPED_LOCATION.
5536 * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
5537 (Sloc_to_locus): Remove old location code.
5538
443b3472
RW
55392008-02-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5540
8dd07840
RW
5541 * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
5542 `i.e.' by adding comma or `@:' as appropriate.
5543 * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
5544 plain characters `C', use `@samp{C}'.
5545 * gnat_ugn.texi (File Naming Rules, About gnatkr)
5546 (Krunching Method): Likewise.
5547
443b3472
RW
5548 * gnat_ugn.texi (Conventions): List environment variables and
5549 metasyntactic variables.
5550 (Compiling Programs): Fix notation of metasyntactic variables.
5551 Add @file where appropriate. Use @file for file extensions,
5552 @samp for strings.
5553 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
5554 instead of @file, @env instead of @code.
5555
9538dfb9
RW
55562008-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5557
d488f6ea
RW
5558 PR documentation/15479
5559 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
5560 and `...' with `@dots{}' or `@enddots{}'.
5561
1992bbd9
RW
5562 PR documentation/15479
5563 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
5564 use @command instead of @code, @option instead of @samp or @code,
5565 @code instead of @var, @samp instead of @file.
5566
9538dfb9
RW
5567 PR documentation/15479
5568 * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
5569 in Makefile rules, by using `&&' rather than `;'.
5570
e69044cb
RW
55712008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5572
5573 PR documentation/15479
5574 * gnat_ugn.texi: In non-code, avoid space before colon.
5575 (Regular Expressions in gnatfind and gnatxref): Fix indentation.
5576 (Examples of gnatxref Usage): Use @command{vi} instead of
5577 @file{vi}.
5578 (Character Set Control): Do not use @code for UTF-8.
5579 (Validity Checking): Fix typo "NaNs" instead of "NaN's". Do not
5580 use @code for IEEE.
5581 * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
5582 sample.
5583 * gnat_rm.texi, gnat_ugn.texi: Fix typos. Bump copyright years.
5584
9e94c78f 55852008-02-11 Joel Sherrill <joel.sherrill@oarcorp.com>
6a333ca0
JS
5586
5587 PR ada/35143
5588 * env.c: Add __rtems__ to if defined.
5589 * s-osinte-rtems.adb: Add To_Target_Priority. Fix formatting.
5590 * s-osinte-rtems.ads: Add To_Target_Priority prototype and
5591 PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants. Add
5592 pragma Convention as required.
5593 * gsocket.h: Make compile in and out of RTS.
5594 * Makefile.in: Add system-rtems.ads. Build DEC extensions.
5595 Use g-soccon-rtems.ads.
5596 * g-soccon-rtems.ads, system-rtems.ads: New files.
5597
72fb133f
KG
55982008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5599
5600 PR other/35107
5601 * Make-lang.in (gnat1): Add $(GMPLIBS).
5602
8fa07a56
EB
56032008-01-26 Eric Botcazou <ebotcazou@adacore.com>
5604
5605 * decl.c (components_to_record): Improve comment.
5606
0bf38239
EB
56072008-01-22 Eric Botcazou <ebotcazou@adacore.com>
5608
5609 * decl.c (components_to_record): Do not reuse the empty union type
5610 if there is a representation clause on the record.
5611 * trans.c (addressable_p): Return true for INTEGER_CST.
5612
461d6eb3
EB
56132008-01-21 Eric Botcazou <ebotcazou@adacore.com>
5614
5615 * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
5616 in pointer arithmetics.
5617 * utils2.c (build_allocator): Likewise.
5618
9328dd57
EB
56192008-01-17 Eric Botcazou <ebotcazou@adacore.com>
5620
5621 * utils.c (build_function_stub): Properly build the call expression.
5622
052cec9b
EB
56232008-01-14 Eric Botcazou <ebotcazou@adacore.com>
5624
5625 * decl.c (gnat_to_gnu_entity) <object>: Process renamings
5626 before converting the expression to the type of the object.
5627 * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
5628 Stabilize constructors for special wrapping types.
5629
08ffbdad
EB
56302008-01-13 Eric Botcazou <ebotcazou@adacore.com>
5631
9e94c78f 5632 * trans.c (call_to_gnu): Invoke the addressable_p predicate only
6bf4cbe8 5633 when necessary. Merge some conditional statements. Update comments.
08ffbdad
EB
5634 Rename unchecked_convert_p local variable to suppress_type_conversion.
5635 Do not suppress conversions in the In case.
5636 (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
5637 into account on non strict-alignment platforms.
5638
7219c2c7
EB
56392008-01-12 Eric Botcazou <ebotcazou@adacore.com>
5640
5641 * utils.c (aggregate_type_contains_array_p): New predicate.
5642 (create_field_decl): In a packed record, force byte alignment
5643 for fields without specified position that contain an array.
5644
52ef2874
EB
56452008-01-12 Eric Botcazou <ebotcazou@adacore.com>
5646
5647 * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
5648
3fa87ef8
JDA
56492008-01-10 John David Anglin <dave.anglin.@nrc-cnrc.gc.ca>
5650
5651 PR ada/34466
5652 * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
5653 sysconf call.
5654 (bit_field): New packed boolean type used by cpu_set_t.
5655 (cpu_set_t): New type corresponding to the C type with
5656 the same name. Note that on the Ada side we use a bit
5657 field array for the affinity mask. There is not need
5658 for the C macro for setting individual bit.
5659 (pthread_setaffinity_np): New imported routine.
5660
9e94c78f 56612008-01-03 Tero Koskinen <tero.koskinen@iki.fi>
e0658eda
TK
5662
5663 PR ada/34647
5664 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
5665 on OpenBSD as is done on other BSD systems.
5666
5667 PR ada/34645
5668 * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
5669 getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
5670 I/O.
5671
5672 PR ada/34644
5673 * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
5674 clearenv().
5675
5676 PR ada/34646
5677 * init.c (__gnat_error_handler, __gnat_install_handler,
5678 __gnat_init_float): Define for OpenBSD.
5679
5680 * initialize.c (__gnat_initialize): Define for OpenBSD.
5681
18bc9cca
ST
56822007-12-27 Samuel Tardieu <sam@rfc1149.net>
5683
5684 PR ada/34553
5685 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
5686 instead of mktemp() or tmpnam() on NetBSD.
5687
f0bf503e
EB
56882007-12-23 Eric Botcazou <ebotcazou@adacore.com>
5689
5690 * trans.c (call_to_gnu): Make the temporary for non-addressable
5691 In parameters passed by reference.
5692 (addressable_p): Return true for STRING_CST and CALL_EXPR.
5693
7469b7bc
AC
56942007-12-19 Robert Dewar <dewar@adacore.com>
5695
5696 * g-expect-vms.adb, g-expect.adb, s-poosiz.adb:
5697 Add pragma Warnings (Off) for unassigned IN OUT arguments
5698
5699 * sem_warn.adb (Output_Reference): Suppress messages for internal names
5700 (Check_References): Extensive changes to tune up warnings
5701 (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
5702 (Has_Pragma_Unmodifed_Check_Spec): New function
5703 (Check_References): Implement pragma Unmodified
5704 (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
5705
5706 * par-prag.adb: Dummy entry for pragma Unmodified
5707
5708 * sem_prag.adb: Implement pragma Unmodified
5709
5710 * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
5711 (Proc_Next_Component_Or_Discriminant): Fix typo.
5712 Update comments.
5713
5714 * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
5715 Unmodified.
5716 (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
5717 because the former already takes care of discarding the result.
5718 (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
5719 Add comment.
5720
5721 * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
5722
57232007-12-19 Eric Botcazou <ebotcazou@adacore.com>
5724
5725 * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
5726 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
5727 system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
5728 system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
5729 system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
5730 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
5731 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
5732 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
5733 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
5734 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
5735 (Dynamic_Trampolines_Used): Delete.
5736
5737 * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
5738 Turn on stack probing mechanism on LynxOS.
5739
57402007-12-19 Bob Duff <duff@adacore.com>
5741
5742 * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
5743 the resulting tail recursion by hand. This prevents running out of
5744 memory on deeply nested concatenations, since Field2 is where the left
5745 operand of concatenations is stored.
5746 Fix bug (was returning OK_Orig in some cases). Fix return subtype to
5747 clarify that it can only return OK or Abandon.
5748
5749 * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
5750 operand by iteration, in order to avoid running out of memory on
5751 deeply-nested concatenations. Use the Parent pointer to get back up the
5752 tree.
5753 (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
5754 Resolve_Op_Concat_Rest): New procedures split out of
5755 Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
5756 clearer.
5757
5758 * checks.adb (Remove_Checks): Use Traverse_Proc instead of
5759 Traverse_Func, because the former already takes care of discarding the
5760 result.
5761
5762 * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
5763 because the former already takes care of discarding the result.
5764 (Remove_Warning_Messages): Use appropriate subtype for Status and
5765 Discard
5766
57672007-12-19 Ed Schonberg <schonberg@adacore.com>
5768
5769 * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
5770 discriminants forces expansion of the aggregate into assignments.
5771 (Init_Record_Controller): If the type of the aggregate is untagged and
5772 is not inherently limited, the record controller is not limited either.
5773
57742007-12-19 Robert Dewar <dewar@adacore.com>
5775
5776 * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
5777 handling compile time known size of record or array (case of front end
5778 layout active, e.g. in GNAAMP).
5779
57802007-12-19 Javier Miranda <miranda@adacore.com>
5781
5782 * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
5783 that forces the construction of static dispatch tables in case of
5784 record subtypes.
5785
57862007-12-19 Robert Dewar <dewar@adacore.com>
5787
5788 * exp_ch9.adb (Null_Statements): Moved to library level
5789 (Trivial_Accept_OK): New function
5790 (Expand_Accept_Declaration): Use Trivial_Accept_OK
5791 (Expand_N_Accept_Statement): Use Trivial_Accept_OK
5792
57932007-12-19 Robert Dewar <dewar@adacore.com>
5794
5795 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
5796 in complex case where array is Volatile.
5797
57982007-12-19 Ed Schonberg <schonberg@adacore.com>
5799
5800 * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
5801 properly the Ada2005 rules concerning when the current instance of a
5802 record type is aliased.
5803
58042007-12-19 Ed Schonberg <schonberg@adacore.com>
5805
5806 * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
5807 mangled declaration
5808 (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
5809 declarations.
5810 (P_Variant_Part): Cleaner patch for parenthesized discriminant
5811
58122007-12-19 Vincent Celier <celier@adacore.com>
5813
5814 * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
5815 package is not known
5816
5817 * prj-attr.ads (Unknown_Package): New constant
5818 Do not crash when an unknown package is in several projects
5819
5820 * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
5821 ignored
5822
5823 * prj-nmsc.adb (Check): Remove obsolete code related to no longer
5824 existing package Language_Processing.
5825
58262007-12-19 Ed Schonberg <schonberg@adacore.com>
5827 Gary Dismukes <dismukes@adacore.com>
44914a04 5828 Samuel Tardieu <sam@rfc1149.net>
7469b7bc
AC
5829
5830 PR ada/15803, ada/15805
5831 * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
5832 illegal access subtypes when there is a constrained partial view.
5833 (Check_For_Premature_Usage): New procedure inside
5834 Access_Subprogram_Declaration for checking that an access-to-subprogram
5835 type doesn't reference its own name within any formal parameters or
5836 result type (including within nested anonymous access types).
5837 (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
5838 (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
5839 context is an access_to_variable, the expression cannot be an
5840 access_to_constant.
5841
58422007-12-19 Bob Duff <duff@adacore.com>
5843
5844 * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
5845 (Analyze_Concatenation): Use iteration instead of recursion in order
5846 to avoid running out of stack space for deeply nested concatenations.
5847
58482007-12-19 Ed Schonberg <schonberg@adacore.com>
5849 Gary Dismukes <dismukes@adacore.com>
5850
5851 * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
5852 whose renamed entity is a subprogram that requires overriding.
5853 (Premature_Usage): Test for the case of N_Full_Type_Declaration when
5854 issuing an error for premature usage and issue a message that says
5855 'type' rather than 'object'.
5856
58572007-12-19 Gary Dismukes <dismukes@adacore.com>
5858
5859 PR ada/34149
5860 * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
5861 presence of a statically tagged operand (Present (Static_Tag)) with
5862 test for Indeterm_Ancestor_Call when determining whether to propagate
5863 the static tag to tag-indeterminate operands (which forces dispatching
5864 on such calls).
5865 (Check_Controlling_Formals): Ada2005, access parameters can have
5866 defaults.
5867 (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
5868 not insert subprogram in list of primitive operations if already there.
5869
58702007-12-19 Tristan Gingold <gingold@adacore.com>
5871
5872 * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
5873 global variable.
5874
58752007-12-19 Thomas Quinot <quinot@adacore.com>
5876
5877 Part of PR ada/33688
5878 * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
5879 datagram info on Linux.
5880
58812007-12-19 Vincent Celier <celier@adacore.com>
5882
5883 * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
5884 that the source path name is always found in the dependencies.
5885
58862007-12-19 Robert Dewar <dewar@adacore.com>
5887
5888 * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
5889 Fix name of Wide_Wide_Latin_1/9 file names
5890 Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
5891 Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
5892 Add missing documentation for Ada.Command_Line.Response_File
5893 Update list of warning letters for Warnings pragma
5894 Add documentation for pragma Unmodified
5895
43779dea
ST
58962007-12-19 Samuel Tardieu <sam@rfc1149.net>
5897
5898 * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
5899
5287c2bc
AC
59002007-12-17 Arnaud Charlet <charlet@adacore.com>
5901
5902 * s-vxwork-alpha.ads: Removed, no longer used.
5903
6343804d
JJ
59042007-12-15 Jakub Jelinek <jakub@redhat.com>
5905
5906 * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
5907
3958c9c8
ST
59082007-12-13 Samuel Tardieu <sam@rfc1149.net>
5909
5910 PR ada/34360
5911 * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
5912 mlib-tgt-specific.adb.
5913
78185974
BD
59142007-12-13 Bob Duff <duff@adacore.com>
5915
5916 * trans.c (Attribute_to_gnu): Check for violations of the
5917 No_Implicit_Dynamic_Code restriction. This checking used to be done in
5918 the front end, but is moved here so we can make it more accurate.
5919
e9b54d64
AC
59202007-12-13 Pascal Obry <obry@adacore.com>
5921
5922 * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
5923 version is provided for older GNU/Linux distribution not
5924 supporting thread affinity sets.
5925
5926 * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
5927 call.
5928 (bit_field): New packed boolean type used by cpu_set_t.
5929 (cpu_set_t): New type corresponding to the C type with
5930 the same name. Note that on the Ada side we use a bit
5931 field array for the affinity mask. There is not need
5932 for the C macro for setting individual bit.
5933 (pthread_setaffinity_np): New imported routine.
5934
5935 * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
5936 no null.
5937 (Create_Task): Set the processor affinity mask if information
5938 is present.
5939
5940 * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
5941
59422007-12-13 Robert Dewar <dewar@adacore.com>
5943
5944 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
5945 s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads,
5946 s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads,
5947 s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
5948 s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
5949 s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads,
5950 s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads,
5951 i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
5952 for subprogram pointers.
5953
5954 * g-ctrl_c.adb: New file.
5955
5956 * g-ctrl_c.ads (Install_Handler): New body.
5957
5958 * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
5959 instead of obsolete function Is_Always_Inlined.
5960 (Freeze_Entity): check for tagged type in imported C subprogram
5961 (Freeze_Entity): check for 8-bit boolean in imported C subprogram
5962 (Freeze_Entity): check for convention Ada subprogram pointer in
5963 imported C subprogram.
5964 (Freeze_Fixed_Point_Type): In the case of a base type where the low
5965 bound would be chopped off and go from negative to zero, force
5966 Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
5967 bound) so that the size computation for the base type will take
5968 negative values into account.
5969
59702007-12-13 Eric Botcazou <ebotcazou@adacore.com>
5971 Bob Duff <duff@adacore.com>
5972 Tristan Gingold <gingold@adacore.com>
5973
5974 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
5975 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
5976 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
5977 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
5978 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
5979 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
5980 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
5981 system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
5982 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
5983 system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
5984 system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
5985 (Always_Compatible_Rep): New flag to control trampolines globally.
5986 (Dynamic_Trampolines_Used): New flag for implementing the
5987 No_Implicit_Dynamic_Code restriction more correctly (not yet used,
5988 and not yet set correctly for some targets).
5989
5990 * s-taprop-vxworks.adb: Use stack limit method of stack checking.
5991 Simply indirectly call s-stchop when a task is created.
5992
5993 * ali.ads:
5994 New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
5995 appears as an argument (entries A) in an ALI file.
5996
5997 * fe.h (Stack_Check_Limits): Declare new target parameter.
5998 (Check_Implicit_Dynamic_Code_Allowed): New procedure.
5999
6000 * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
6001 This variable is declared in C to be sure not subject to elaboration
6002 code.
6003 (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
6004 Storage_Error.
6005
6006 * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
6007 (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
6008
6009 * s-stchop.ads: Add comments.
6010
6011 * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
6012 limit method of stack checking.
6013
6014 * s-stchop-limit.ads: New file.
6015
60162007-12-13 Robert Dewar <dewar@adacore.com>
6017
6018 * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb,
6019 a-cihama.adb, g-awk.adb,
6020 s-inmaop-posix.adb: Update handling of assigned value/unreferenced
6021 warnings
6022
6023 * exp_smem.adb: Update handling of assigned value/unreferenced warnings
6024
6025 * sem.adb: Update handling of assigned value/unreferenced warnings
6026
6027 * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
6028
6029 * lib-xref.ads: Improve documentation for k xref type
6030
6031 * lib-xref.adb:
6032 Update handling of assigned value/unreferenced warnings
6033 (Generate_Reference): Warning for reference to entity for which a
6034 pragma Unreferenced has been given should be unconditional.
6035 If the entity is a discriminal, mark the original
6036 discriminant as referenced.
6037
6038 * sem_warn.ads, sem_warn.adb
6039 (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
6040 no entities referenced in package
6041 (Check_One_Unit): Don't give message about no entities referenced in
6042 a package if a pragma Unreferenced has appeared.
6043 Handle new warning flag -gnatw.a/-gnatw.A
6044 Update handling of assigned value/unreferenced warnings
6045
6046 * atree.h: Add flags up to Flag247
6047 (Flag231): New macro.
6048
60492007-12-13 Jose Ruiz <ruiz@adacore.com>
6050
6051 * adaint.h: (__gnat_plist_init): Not defined for RTX.
6052
6053 * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
6054 RTX systems.
6055
6056 * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
6057 (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
6058 EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
6059 GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
6060
6061 * mingw32.h:
6062 Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
6063
6064 * sysdep.c (winflush_function for RTX): Procedure that does nothing
6065 since we only have problems with Windows 95/98, which are not
6066 supported by RTX.
6067 (__gnat_ttyname): Return the empty string on Nucleus, just as
6068 done on vxworks.
6069
60702007-12-13 Robert Dewar <dewar@adacore.com>
6071
6072 * a-textio.adb, a-textio.ads:
6073 Extensive changes to private part for wide character encoding
6074
6075 * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
6076 (Look_Ahead): Fix mishandling of encoded sequences
6077 Move declaration of Wch_Con to private part (should not be visible)
6078
6079 * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
6080 UTF-8. Probably this is never used, but if it is, brackets is
6081 clearly correct.
6082
6083 * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
6084 setting wide character encoding for no main program case and when
6085 encoding is specified using -W?
6086 Initialize stack limit of environment task if stack limit method of
6087 stack checking is enabled.
6088 (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
6089 (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
6090 (Get_Main_Unit_Name): New function.
6091 (Gen_Adainit_Ada): Add call to main program for .NET when needed.
6092 (Gen_Output_File): Set Bind_Main_Program to True for .NET
6093
6094 * bindusg.adb: Add line for -Wx switch
6095
6096 * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
6097 Add comments
6098 Add new useful constant WC_Longest_Sequences
6099
6100 * switch-b.adb: Clean up handling of -Wx switch
6101 For -gnatWx, set Wide_Character_Encoding_Method_Specified
6102
6103 * switch-c.adb: -gnatg activates warning on assertion errors
6104 For -gnatWx, set Wide_Character_Encoding_Method_Specified
6105
6106 * s-wchcon.adb: (Is_Start_Of_Encoding): New function
6107
61082007-12-13 Robert Dewar <dewar@adacore.com>
6109 Ed Schonberg <schonberg@adacore.com>
6110
6111 * a-ngcoty.adb: New pragma Fast_Math
6112
6113 * opt.adb: New pragma Fast_Math
6114
6115 * par-prag.adb:
6116 Add Implemented_By_Entry to the list of pragmas which do not require any
6117 special processing.
6118 (Favor_Top_Level): New pragma.
6119 New pragma Fast_Math
6120
6121 * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
6122 (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
6123 Expand_Allocator_Expression): Take into account VM_Target
6124 (Expand_Attribute, case 'Identity): Handle properly the case where
6125 the prefix is a task interface.
6126 New pragma Fast_Math
6127
6128 * par.adb (Next_Token_Is): New function
6129 (P_Pragma): Add Skipping parameter
6130 (U_Left_Paren): New procedure
6131 (U_Right_Paren): New procedure
6132 New pragma Fast_Math
6133
6134 * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
6135 subunit
6136 New pragma Fast_Math
6137
6138 * sem_prag.adb: Add significance value to table Sig_Flag for pragma
6139 Implemented_By_Entry.
6140 (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
6141 (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
6142 items, since it can apply to more than one overloadable entity. Set
6143 new flag Has_Pragma_Inline_Always for Inline_Always case.
6144 (Analyze_Pragma, case Complex_Representation): Improve error message.
6145 (Analyze_Pragma, case Assert): When assertions are disabled build the
6146 rewritten code with Sloc of expression rather than pragma, so new
6147 warning about failing is not deleted.
6148 (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
6149 protected types and update error message to reflect that. Test whether
6150 the protected type is allowed for the pragma (an error is issued if the
6151 type has any entries, or components that do not have preelaborable
6152 initialization).
6153 New pragma Fast_Math
6154 (Analyze_Pragma, case No_Return): Handle generic instance
6155
6156 * snames.h, snames.ads, snames.adb:
6157 Add new predefined name for interface primitive _Disp_Requeue.
6158 New pragma Fast_Math
6159
6160 * a-tags.ads, a-tags.adb: New calling sequence for
6161 String_To_Wide_[Wide_]String
6162 (Secondary_Tag): New subprogram.
6163
6164 * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
6165 from Exp_Attr
6166 New calling sequence for String_To_Wide_[Wide_]String
6167 (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
6168 the use of the secondary stack for image routines.
6169
6170 * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
6171 calling sequence for String_To_Wide_[Wide_]String
6172
6173 * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
6174 Ada 95 mode
6175 (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
6176 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
6177
6178 * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
6179 (P_Formal_Part): Use Skipping parameter in P_Pragma call
6180 to improve error recovery
6181
6182 * par-util.adb (Next_Token_Is): New function
6183 (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
6184
6185 * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
6186 semicolon if missing
6187 (P_Pragma): Implement new Skipping parameter
6188 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
6189 Fix location of flag for unrecognized pragma message
6190
6191 * par-tchk.adb (U_Left_Paren): New procedure
6192 (U_Right_Paren): New procedure
6193
61942007-12-13 Geert Bosch <bosch@adacore.com>
6195
6196 * a-tifiio.adb:
6197 (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
6198 the second or later Scaled_Divide would omit leading zeroes,
6199 resulting in too few digits produced and a Layout_Error as result.
6200 (Put): Initialize Pos.
6201
62022007-12-13 Robert Dewar <dewar@adacore.com>
6203
6204 atree.ads, atree.adb (Flag231..Flag247): New functions
6205 (Set_Flag231..Set_Flag247): New procedures
6206 (Basic_Set_Convention): Rename Set_Convention to be
6207 Basic_Set_Convention
6208 (Nkind_In): New functions
6209 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
6210
6211 * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
6212 instead
6213 of obsolete function Is_Always_Inlined
6214 (Register_Predefined_DT_Entry): Initialize slots of the second
6215 secondary dispatch table.
6216 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
6217 (Expand_N_Function_Call): Remove special provision for stack checking.
6218
6219 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
6220 Include _Disp_Requeue in the list of predefined operations.
6221 (Find_Interface_ADT): Modified to fulfill the new specification.
6222 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
6223
6224 * par-ch4.adb, nlists.ads, nlists.adb:
6225 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
6226
6227 * sinfo.ads, sinfo.adb: (Nkind_In): New functions
6228 Fix location of flag for unrecognized pragma message
6229
6230 * sem_ch7.adb: Use Nkind_In
6231
62322007-12-13 Vincent Celier <celier@adacore.com>
6233
6234 * opt.ads:
6235 Indicate what flags are used by the Project Manager, gprbuild and
6236 gprclean.
6237 (Opt.Follow_Links_For_Dirs): New flag
6238 (Warn_On_Assertion_Failure): New flag
6239 (Wide_Character_Encoding_Method_Specified): New flag
6240 (Suppress_All_Inlining): New switch set by -fno-inline
6241 (Real_VMS_Target): New flag
6242 New pragma Fast_Math
6243
62442007-12-13 Robert Dewar <dewar@adacore.com>
6245
6246 * back_end.adb: Recognize -fno-inline
6247
62482007-12-13 Robert Dewar <dewar@adacore.com>
6249
6250 * checks.adb: Fix optimization problem with short-circuited form
6251
62522007-12-13 Bob Duff <duff@adacore.com>
6253
6254 * clean.adb (Usage): Add line for -aP
6255 (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
6256 with a parameter "procedure Usage", instead of passing a pointer to a
6257 procedure. This is to eliminate trampolines (since the Usage procedure
6258 is often nested in a main procedure, and it would be inconvenient to
6259 unnest it).
6260
6261 * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
6262 to be generic, with a parameter "procedure Callback (...)", instead of
6263 passing a pointer to a procedure. This is to eliminate trampolines
6264 (since the Callback procedure is usually nested).
6265
6266 * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb,
6267 gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
6268 (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
6269
6270 * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
6271 Use the generic Heap_Sort_G instead of Heap_Sort_A.
6272
62732007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
6274
6275 * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
6276 (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
6277 (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
6278 (Renamed_In_Spec): New flag
6279 (Has_Pragma_Inline_Always): New flag
6280 Add missing doc for pragma Obsolescent_Warning
6281 Add missing doc for 17 additional unused flags (230-247)
6282 (Is_Derived_Type): Remove condition "not Is_Generic_Type".
6283 Alphabetize with clauses.
6284 Separate Is_Thunk and Has_Thunks flags
6285 (Write_Entity_Flags): Add forgotten entry for Has_Thunks
6286 (Related_Interface): Renamed to Related_Type.
6287 (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
6288 (Set_Is_Flag): Restrict the assertion.
6289
62902007-12-13 Vincent Celier <celier@adacore.com>
6291
6292 * errout.adb (Output_Source_Line): Do not keep a trailing space after
6293 the source line number if the source line is empty.
6294
62952007-12-13 Geert Bosch <bosch@adacore.com>
6296
6297 * eval_fat.adb (Decompose_Int): Handle argument of zero.
6298 (Compose): Remove special casing of zero.
6299 (Exponent): Likewise.
6300 (Fraction): Likewise.
6301 (Machine): Likewise.
6302 (Decompose): Update comment.
6303
63042007-12-13 Ed Schonberg <schonberg@adacore.com>
6305
6306 * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
6307 limited ancestor part, initialize controllers of enclosing record
6308 before expanding ancestor aggregate.
6309 (Gen_Assign): If a component of the aggregate is box-initialized, add
6310 code to call Initialize if the component is controlled, and explicit
6311 assignment of null if the component is an access type.
6312
6313 Handle properly aggregates for limited types that appear in object
6314 declarations when the aggregate contains controlled values such as
6315 protected types.
6316 When expanding limited aggregates into individual components, do not
6317 call Adjust on controlled components that are limited.
6318
63192007-12-13 Ed Schonberg <schonberg@adacore.com>
6320
6321 * expander.adb: Take into account N_Subprogram_Renaming_Declaration
6322
63232007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
6324
6325 * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
6326 predefined primitive _Disp_Requeue.
6327 (Make_Predefined_Primitive_Specs): Create the spec for predefined
6328 primitive _Disp_Requeue.
6329 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
6330 type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
6331 (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
6332 an interface type. In case of limited interfaces we now declare all the
6333 predefined primitives associated with synchronized interfaces as
6334 abstract.
6335 (Predef_Spec_Or_Body): For interface types generate abstract subprogram
6336 declarations.
6337 (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
6338 tagged type is an interface type and there is no user-defined equality
6339 function.
6340 Add also bodies of predefined primitives associated with synchronized
6341 interfaces.
6342 (Freeze_Record_Type): Do not build bodies of predefined primitives of
6343 interface types because they are now defined abstract.
6344 Add missing documentation.
6345 (Expand_Record_Controller): Update occurrence of Related_Interface
6346 to Related_Type.
6347 (Build_Offset_To_Top_Functions): Do nothing in case of VM.
6348 (Expand_N_Object_Declaration): Take into account VM_Target when handling
6349 class wide interface object declaration.
6350 (Expand_Previous_Access_Type): Do not create a duplicate master entity
6351 if the access type already has one.
6352 (Expand_N_Object_Declaration): Defend against attempt to validity check
6353 generic types. Noticed for -gnatVcf specified with previous errors.
6354
63552007-12-13 Arnaud Charlet <charlet@adacore.com>
6356
6357 * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
6358 Expand_Allocator_Expression): Take into account VM_Target
6359
6360 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
6361 secondary stack when VM_Target /= No_VM
6362
63632007-12-13 Javier Miranda <miranda@adacore.com>
6364 Ed Schonberg <schonberg@adacore.com>
6365
6366 * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
6367 Is_Complation_Unit by Is_Library_Level_Entity in the code
6368 that decides if the static dispatch tables need to be built.
6369 (Wrap_Transient_Declaration): Do not generate a finalization call if
6370 this is a renaming declaration and the renamed object is a component
6371 of a controlled type.
6372
63732007-12-13 Gary Dismukes <dismukes@adacore.com>
6374
6375 * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
6376 In the case where the renamed subprogram is a dereference, call
6377 Force_Evaluation on the prefix.
6378
63792007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
6380 Ed Schonberg <schonberg@adacore.com>
6381
6382 * exp_ch9.adb (Expand_N_Asynchronous_Select,
6383 Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
6384 comment reformatting.
6385 (Set_Privals): Inherit aliased flag from formal. From code reading.
6386 (Build_Simple_Entry_Call): Out parameters of an access type are passed
6387 by copy and initialized from the actual. This includes entry parameters.
6388 (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
6389 and Ada 2005 models of requeue.
6390 (Null_Statements): Still connsider do-end block null if it contains
6391 Unreferenced and Warnings pragmas.
6392 (Expand_N_Accept_Statement): Do not optimize away null do end if
6393 dispatching policy is other than defaulted.
6394 (Expand_N_Timed_Entry_Call): When the triggering statement is a
6395 dispatching call, manually analyze the delay statement.
6396 (Find_Parameter_Type): Move subprogram to Sem_Util.
6397
63982007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
6399 Javier Miranda <miranda@adacore.com>
6400
6401 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
6402 _Disp_Requeue occupies dispatch table slot number 15. Move
6403 _Disp_Timed_Select to slot 16.
6404 (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
6405 generate the spec and body of _Disp_Reqeueue.
6406 (Make_DT): Build and initialize the second dispatch table.
6407 Handle initialization of RC_Offset when the parent
6408 is a private type with variable size components.
6409 (Make_Secondary_DT): Complete documentation. Add support to
6410 initialize the second dispatch table.
6411 (Make_Tags): Generate the tag of the second dispatch table.
6412 (Register_Primitive): Add support to register primitives in the
6413 second dispatch table.
6414
64152007-12-13 Pascal Obry <obry@adacore.com>
6416
6417 * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
6418 Windows. This signal is used by gnatmake to kill child processes for
6419 example.
6420
64212007-12-13 Javier Miranda <miranda@adacore.com>
6422
6423 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
6424 support for generic dispatching constructor calls in which we need to
6425 locate the tag of a secondary dispatch table associated with an
6426 interface type to properly dispatch the call.
6427 (Expand_N_Attribute_Reference [case Address],
6428 Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
6429 handling of VM targets.
6430
64312007-12-13 Robert Dewar <dewar@adacore.com>
6432 Ed Schonberg <schonberg@adacore.com>
6433
6434 * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
6435 assert fail
6436
6437 * ug_words: Add entries for -gnatw.a -gnatw.A
6438
6439 * sem_res.adb (Set_String_Literal_Subtype): If the context of the
6440 literal is a subtype with non-static constraints, use the base type of
6441 the context as the base of the string subtype, to prevent type
6442 mismatches in gigi.
6443 (Resolve_Actuals): If the actual is an entity name, generate a
6444 reference before the actual is resolved and expanded, to prevent
6445 spurious warnings on formals of enclosing protected operations.
6446 (Analyze_Overloaded_Selected_Component): If type of prefix if
6447 class-wide, use visible components of base type.
6448 (Resolve_Selected_Component): Ditto.
6449 (Resolve_Short_Circuit): Detect case of pragma Assert argument
6450 evaluating to False, and issue warning message.
6451
6452 * usage.adb: Add lines for -gnatw.a and -gnatw.A
6453
64542007-12-13 Emmanuel Briot <briot@adacore.com>
6455
6456 * g-calend.ads (No_Time): New constant, to represent an uninitialized
6457 time value
6458
6459 * g-catiio.ads, g-catiio.adb (Value): Added support for more date
6460 formats.
6461 (Month_Name_To_Number): New subprogram
6462
6463 * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
6464 letter to upper-case.
6465
64662007-12-13 Robert Dewar <dewar@adacore.com>
6467 Ed Schonberg <schonberg@adacore.com>
6468
6469 * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
6470
6471 * layout.adb (Resolve_Attribute, case 'Access): If designated type of
6472 context is a limited view, use non-limited view when available. If the
6473 non-limited view is an unconstrained array, this enforces consistency
6474 requirements in 3.10.2 (27).
6475 (Layout_Type): For an access type whose designated type is a limited
6476 view, examine its declaration to determine if it is an unconstrained
6477 array, and size the access type accordingly.
6478 (Layout_Type): Do not force 32-bits for convention c subprogram
6479 pointers in -gnatdm mode, only if real vms target.
6480
6481 * sem_attr.adb (Analyze_Access_Attribute): Use new flag
6482 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
6483 (Analyze_Access_Attribute,Attribute_Address): Remove checks for
6484 violations of the No_Implicit_Dynamic_Code restriction.
6485 (Resolve_Attribute, case 'Access): If designated type of context is a
6486 limited view, use non-limited view when available. If the non-limited
6487 view is an unconstrained array, this enforces consistency requirements
6488 in 3.10.2 (27).
6489 (Layout_Type): For an access type whose designated type is a limited
6490 view, examine its declaration to determine if it is an unconstrained
6491 array, and size the access type accordingly.
6492
64932007-12-13 Vincent Celier <celier@adacore.com>
6494
6495 * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
6496 object directory of main project does not exist.
6497 On VMS, correctly set then environment variable for the source
6498 directories.
6499
65002007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
6501
6502 * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
6503 set to True this procedure will create the value of type REG_EXPAND_SZ.
6504 It was only possible to create REG_SZ values before.
6505
65062007-12-13 Robert Dewar <dewar@adacore.com>
6507
6508 * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
6509 g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
6510 namet-sp.adb, namet-sp.ads: New files.
6511
6512 * g-speche.adb: Use generic routine in g-spchge
6513
6514 * s-wchcnv.ads, s-wchcnv.adb:
6515 Minor code cleanup (make formal type consistent with spec)
6516
6517 * namet.adb: Update comments.
6518
6519 * par-endh.adb (Evaluate_End_Entry): Use new
6520 Namet.Sp.Is_Bad_Spelling_Of function
6521
6522 * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
6523
6524 * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
6525 ancestor is an access type initialized with a box, set its type
6526 explicitly, for use in subsequent expansion.
6527 (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
6528 function
6529
65302007-12-13 Robert Dewar <dewar@adacore.com>
6531
6532 * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
6533 access Vstring)
6534
65352007-12-13 Robert Dewar <dewar@adacore.com>
6536
6537 * inline.adb (Back_End_Cannot_Inline): Use new flag
6538 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
6539
6540 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
6541 Has_Pragma_Inline_Always instead.
6542 of obsolete function Is_Always_Inlined
6543 (Build_Body_To_Inline): Same change
6544 (Cannot_Inline): Same change
6545 Do not give warning on exception raise in No_Return function
6546
6547 * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
6548 component has two inconsistent component clauses in the same record
6549 representation clause, favor the message that complains about
6550 duplication rather than inconsistency.
6551 Update comments.
6552 (Record_Representation_Clause): Do not warn on missing component
6553 clauses for inherited components of a type extension.
6554 (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
6555 an overloadable item if it is a pragma that can apply to multiple
6556 overloadable entities (e.g. Inline) because a pragma cannot be on
6557 more than one chain at a time.
6558 (Validate_Unchecked_Conversion): Add code to warn on unchecked
6559 conversion where one of the operands is Ada.Calendar.Time.
6560 (Analyze_Attribute_Definition_Clause): Fix typo in error message.
6561 For now, ignore Component_Size clause on VM targets, as done for
6562 pragma Pack.
6563
65642007-12-13 Emmanuel Briot <briot@adacore.com>
6565 Vincent Celier <celier@adacore.com>
6566
6567 * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
6568 string
6569 (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
6570 prj.ads
6571 (Hash): Move instantiation of System.HTable.Hash from spec to body
6572 (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
6573 systems, since we do not need to recompute the Name_Id for the canonical
6574 file name.
6575 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
6576 as a parameter. This parameter is in fact always "ada" in all calls, and
6577 we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
6578 while loading a project with 40000 files
6579
6580 * prj-attr.adb: Fix name of attribute Dependency_Driver
6581 Change the kind of indexing for attribute Root
6582
6583 * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
6584 variables already declared, in case constructions.
6585
6586 * prj-env.adb (Initialize): Reset Current_Source_Path_File and
6587 Current_Object_Path_File to No_Path.
6588
6589 * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
6590 ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
6591
6592 * prj-makr.adb: new parameter Current_Dir
6593
6594 * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
6595 Ada sources when language is not Ada.
6596 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
6597 (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
6598 (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
6599 (Locate_Directory): Always resolve links when computing Canonical_Path
6600 (Look_For_Sources): Make sure that Name_Buffer contains the file name
6601 in Source_Files before checking for the presence of a directory
6602 separator.
6603 Optimize calls to Name_Find when on case sensitive systems.
6604 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
6605 as a parameter.
6606 (Prj.Nmsc.Check): new parameter Current_Dir
6607 (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
6608 cannot be empty and the spec suffix cannot be the same as the body or
6609 separate suffix.
6610 (Get_Unit): When a file name can be of several unit kinds (spec, body or
6611 subunit), always consider the longest suffix.
6612 (Check_Configuration): Do not issue an error if there is no compiler
6613 for a language. Just issue a warning and ignore the sources for the
6614 language.
6615 (Check_Library_Attributes): Only check Library_Dir if Library_Name is
6616 not empty.
6617 (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
6618 (Unit_Exceptions): New hash table
6619 (Check_Naming_Schemes): Check if a file that could be a unit because of
6620 the naming scheme is not in fact a source because there is an exception
6621 for the unit.
6622 (Look_For_Sources): Put the unit exceptions in hash table
6623 Unit_Exceptions
6624 (Get_Unit_Exceptions): Give initial value No_Source to local variable
6625 Other_Part to avoid exception when code is compiled with validity
6626 checking.
6627 (Get_Sources_From_File): Check that there is no directory information
6628 in the file names.
6629 (Look_For_Sources): Check that there is no directory information in the
6630 list of file names in Source_Files.
6631 (Look_For_Sources): In multi-language mode, do not allow exception file
6632 names that are excluded.
6633 (Excluded_Sources_Htable): New hash table
6634 (Search_Directories.Check_File): New procedure to simplify
6635 Search_Directories.
6636 (Search_Directories): Do not consider excluded sources
6637 (Look_For_Sources): Populate Excluded_Sources_Htable before calling
6638 Search_Directories.
6639 (Get_Exceptions): Set component Lang_Kind of Source_Data
6640 (Get_Unit_Exceptions): Ditto
6641 (Search_Directories): Ditto
6642
6643 * prj-pars.adb: new parameter Current_Dir
6644
6645 * prj-part.ads, prj-part.adb:
6646 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
6647 (Opt.Follow_Links_For_Dirs): New flag
6648 (Project_Path_Name_Of): Cache information returned by this routine as
6649 Locate_Regular_File is a costly routine. The code to output a log
6650 information and the effective call to Locate_Regular_File is now
6651 factorized into a routine (code clean-up).
6652 (Parse, Parse_Single_Project): new parameter Current_Dir
6653 When main project file cannot be found, indicate in the error
6654 message the project path that was used to do the search.
6655
6656 * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
6657 (Prj.Proc.Process*): new parameter Current_Dir
6658
6659 * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
6660
66612007-12-13 Bob Duff <duff@adacore.com>
6662
6663 * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
6664 procedure to be called from the back end to check the
6665 No_Implicit_Dynamic_Code restriction.
6666
66672007-12-13 Arnaud Charlet <charlet@adacore.com>
6668
6669 * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
6670 Fixes another case where RTE_Available_Call was ignored instead of being
6671 taken into account.
6672 (Load_Fail): Ditto.
6673
6674 * rtsfind.ads: Add new entries.
6675
66762007-12-13 Robert Dewar <dewar@adacore.com>
6677
6678 * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
6679 g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
6680
6681 * scn.adb: Implement BOM recognition
6682
66832007-12-13 Thomas Quinot <quinot@adacore.com>
6684 Ed Schonberg <schonberg@adacore.com>
6685
6686 * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
6687 subprogram body that acts as its own spec may not have a non-private
6688 WITH clause on a private sibling.
6689 (Build_Unit_Name): If the parent unit in the name in a with_clause on a
6690 child unit is a renaming, create an implicit with_clause on that
6691 parent, and not on the unit it renames, to prevent visibility errors
6692 in the current unit.
6693
66942007-12-13 Ed Schonberg <schonberg@adacore.com>
6695
6696 * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
6697 renaming declaration, use the Slocs of the formal parameters from the
6698 declaration of the formal subprogram when creating the formal parameter
6699 entities in the renaming declaration.
6700 (Analyze_Formal_Type_Declaration): Change the placement of the error
6701 message concerning illegal known discriminants. It is now posted on the
6702 type rather than on the first discriminant. This change ensures early
6703 error report.
6704 (Freeze_Subprogram_Body): If the generic subprogram is nested within
6705 the package body that contains the instance, do not generate an
6706 out-of-place freeze node for the enclosing package.
6707 (Collect_Previous_Instantiations): Ignore internal instantiations
6708 generated for formal packages.
6709 (Validate_Derived_Type_Instance): Add a check that when a formal
6710 derived type is Known_To_Have_Preelab_Init then the actual type must
6711 have preelaborable initialization, and issue an error when this
6712 condition is violated.
6713
67142007-12-13 Robert Dewar <dewar@adacore.com>
6715
6716 * s-imenne.adb, s-imenne.ads: New files.
6717
6718 * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
6719 s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb,
6720 s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads,
6721 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb,
6722 s-imgwch.ads: New calling sequence for Image routines to avoid sec
6723 stack usage.
6724
67252007-12-13 Javier Miranda <miranda@adacore.com>
6726 Ed Schonberg <schonberg@adacore.com>
6727
6728 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
6729 generation of spurious error if parent is an interface type; caused
6730 because predefined primitive bodies will be generated later by
6731 Freeze_Record_Type.
6732 (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
6733 flag.
6734 (Derive_Subprograms): Handle derivations of predefined primitives
6735 after all the user-defined primitives to ensure that they are
6736 found in proper order in instantiations.
6737 (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
6738 of Related_Interface to Related_Type.
6739 (Record_Type_Declaration): Minor reordering of calls to decorate the
6740 Tag component because the entity must have set its Ekind attribute
6741 before setting its Is_Tag attribute.
6742 (Analyze_Subtype_Declaration): In the case of subtypes with
6743 Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
6744
67452007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
6746 Ed Schonberg <schonberg@adacore.com>
6747
6748 * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
6749 statement to the list of contexts where a selected component with a
6750 concurrent tagged type prefix should yield a primitive operation.
6751 (Find_Primitive_Operation): Handle case of class-wide types.
6752 (Analyze_Overloaded_Selected_Component): If type of prefix is
6753 class-wide, use visible components of base type.
6754 (Resolve_Selected_Component): Ditto.
6755 (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
6756 formal of a generic subprogram. find candidate interpretations by
6757 scanning the list of generic formal declarations.:
6758 (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
6759 type from a limited_with_clause, and the full view is available, use it
6760 for subsequent semantic checks.
6761 (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
6762 (Find_Primitive_Operation): New function.
6763 (Analyze_Overloaded_Selected_Component): insert explicit dereference
6764 only once if several interpretations of the prefix yield an access type.
6765 (Try_Object_Operation): Code and comment cleanup.
6766 (Analyze_Selected_Component): Reorder local variables. Minot comment and
6767 code reformatting. When the type of the prefix is tagged concurrent, a
6768 correct interpretation might be available in the primitive and
6769 class-wide operations of the type.
6770
67712007-12-13 Robert Dewar <dewar@adacore.com>
6772 Ed Schonberg <schonberg@adacore.com>
6773
6774 * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
6775 renaming entry as subprogram using rename-as-body if subprogram spec
6776 frozen.
6777 (Use_One_Type): The clause is legal on an access type whose designated
6778 type has a limited view.
6779 (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
6780 (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
6781 (Analyze_Renamed_Primitive_Operation): new procedure to determine the
6782 operation denoted by a selected component.
6783 (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
6784 it can be an expression, possibly overloaded, that returns a task or
6785 an access to one.
6786
67872007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
6788 Gary Dismukes <dismukes@adacore.com>
6789
6790 * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
6791 requeue statement is dispatching. Do not emit an error when the name is
6792 not an entry and the context is a dispatching select. Add code to
6793 perform subtype conformance between the formals of the current entry
6794 and those of the target interface primitive.
6795 (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
6796 Timed_Entry_Call): Analyze the triggering statement as the first step of
6797 the processing. If this is a dispatching select, postpone the analysis
6798 of all select statements until the Expander transforms the select. This
6799 approach avoids generating duplicate identifiers after the Expander has
6800 replicated some of the select statements. In case the Expander is
6801 disabled, perform regular analysis.
6802 (Check_Triggering_Statement): New routine.
6803 (Analyze_Requeue): Exclude any interpretations that are not entries when
6804 checking overloaded names in a requeue. Also test type conformance for
6805 matching interpretations rather than requiring subtype conformance at
6806 that point to conform with the RM's resolution rule for requeues.
6807
68082007-12-13 Ed Schonberg <schonberg@adacore.com>
6809
6810 * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
6811 inherited operation is a defaulted tag-indeterminate call, and there is
6812 a statically tagged actual, use the static tag as a controlling actual
6813 for the defaulted actual.
6814
68152007-12-13 Geert Bosch <bosch@adacore.com>
6816
6817 * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
6818 context, so do not call Check_Non_Static_Context.
6819
68202007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
6821
6822 * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
6823 whether formal E is an entity which may have parameters.
6824
68252007-12-13 Bob Duff <duff@adacore.com>
6826 Javier Miranda <miranda@adacore.com>
6827 Robert Dewar <dewar@adacore.com>
6828
6829 * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
6830 (Set_Convention): New procedure to set the Convention flag, and in
6831 addition make sure the Favor_Top_Level flag is kept in sync (all
6832 foreign-language conventions require Favor_Top_Level = True).
6833 (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
6834 to Related_Type.
6835 (Collect_Interfaces_Info): Minor update to handle the two secondary
6836 dispatch tables. Update occurrence of Related_Interface to Related_Type.
6837 (Generate_Parent_Ref): Add parameter to specify entity to check
6838 (Is_Preelaborable_Expression): Allow the name of a discriminant to
6839 initialize a component of a type with preelaborable initialization.
6840 This includes the case of a discriminal used in such a context.
6841 (Is_Dependent_Component_Of_Mutable_Object): Take into account the
6842 latest Ada 2005 rules about renaming and 'Access of
6843 discriminant-dependent components.
6844 (Check_Nested_Access): Add handling when there are no enclosing
6845 subprograms (e.g. case of a package body).
6846 (Find_Parameter_Type): Factor routine from several other compiler files.
6847 Remove routine from Find_Overridden_Synchronized_Primitive.
6848
68492007-12-13 Thomas Quinot <quinot@adacore.com>
6850
6851 * sinput.adb (Get_Source_File_Index): Add assertion to guard against
6852 an invalid access to an uninitialized slot in the
6853 Source_File_Index_Table.
6854
68552007-12-13 Thomas Quinot <quinot@adacore.com>
6856
6857 * sinput-l.adb (Load_File): Disable style checks when preprocessing.
6858
68592007-12-13 Bob Duff <duff@adacore.com>
6860
6861 * s-soflin.ads: Apply new pragma Favor_Top_Level to all
6862 access-to-subprogram types in this package.
6863
68642007-12-13 Olivier Hainque <hainque@adacore.com>
6865
6866 * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
6867 with Stack_Grows_Down in System.Parameters. Rename Array_Address into
6868 Stack_Overlay_Address and document that we are using an internal
6869 abstraction.
6870 (Byte_Size, Unsigned_32_Size): Remove, now useless.
6871 (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
6872 consistently throughout the various implementation pieces.
6873
6874 * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
6875 overlay we are using to fill the stack area with patterns.
6876 (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
6877 (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
6878 (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
6879
68802007-12-13 Robert Dewar <dewar@adacore.com>
6881
6882 * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
6883
68842007-12-13 Arnaud Charlet <charlet@adacore.com>
6885
6886 * s-tassta.adb:
6887 (Create_Task): Take into account tasks created by foreign threads.
6888 Code clean up: use constants instead of hard coded values.
6889
68902007-12-13 Robert Dewar <dewar@adacore.com>
6891
6892 * styleg.adb (Check_Comment): More liberal rules for comment placement
6893
68942007-12-13 Olivier Hainque <hainque@adacore.com>
6895
6896 * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
6897 of Procedure Value instead of Frame Pointer as the invocation
6898 identifier associated with the instruction pointer in each traceback
6899 entry.
6900
6901 * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
6902 TB_Entry_For): Revert back to use of Procedure Value instead of Frame
6903 Pointer as the invocation identifier passed to tbk$symbolize.
6904
6905 * s-traent-vms.ads, s-traent-vms.adb
6906 (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
6907 Procedure Value instead of Frame Pointer as the invocation identifier
6908 passed to tbk$symbolize.
6909
69102007-12-13 Robert Dewar <dewar@adacore.com>
6911
6912 * tbuild.ads, tbuild.adb:
6913 Fix location of flag for unrecognized pragma message
6914
69152007-12-13 Robert Dewar <dewar@adacore.com>
6916
6917 * treepr.ads, treepr.adb: (pl): implement use of positive value
6918 shorthands
6919
69202007-12-13 Robert Dewar <dewar@adacore.com>
6921
6922 * xeinfo.adb: Remove warnings
6923 * xnmake.adb: Remove warnings
6924 * xsinfo.adb: Remove warnings
6925 * xtreeprs.adb: Remove warnings
6926 * xsnames.adb: Remove warnings
6927
6928 * a-ngcoar.adb: Fix typo.
6929 * s-interr.adb: Minor reformatting
6930 * env.c: Minor reformatting.
6931 * g-bytswa.adb: Minor reformatting.
6932 * g-rannum.ads: Minor documentation improvements
6933 * s-tasinf-mingw.adb: Minor header fix
6934 * a-clrefi.adb: Minor reformatting
6935 * g-sttsne.ads: Minor documentation improvement
6936 * g-sttsne-locking.ads: Minor documentation improvement
6937 * g-soliop-solaris.ads: Minor documentation improvement
6938 * g-soliop-mingw.ads: Minor documentation improvement
6939 * g-soliop.ads: Minor documentation improvement
6940 * exp_aggr.ads: Minor reformatting
6941 * debug.adb: Add documentation for the gprbuild debug flags
6942 * exp_ch2.adb: Use Nkind_In to simplify code throughout
6943 * exp_pakd.adb: Minor reformatting
6944
6945 * g-altive.ads, g-alleve.adb: Remove assertions.
6946 Add comment about minor differences between targets regarding
6947 floating-point operations.
6948
6949 * g-thread.adb: Remove pragma unreferenced.
6950 * lib.ads: Minor reformatting
6951 * par-ch9.adb: Minor reformatting of error messages
6952 * sem_case.adb: Minor reformatting
6953 * s-fileio.adb: Minor reformattinng
6954 * s-vmexta.ads: Minor typo
6955 * vxaddr2line.adb:
6956 Take into account 'Success' value as per new GNAT warning.
6957
69582007-12-13 Vincent Celier <celier@adacore.com>
6959
6960 * a-direct.adb (Create_Path): Always take '/' as a directory separator,
6961 even on Windows
6962
69632007-12-13 Robert Dewar <dewar@adacore.com>
6964 Bob Duff <duff@adacore.com>
6965
6966 * gnat_ugn.texi: Dcoument new rules for style check comment alignment
6967 Document that suffixes may be terminations of each others
6968 Add doc for -gnatw.a and -gnatw.A
6969 Document gnatbind -Wx switch
6970 Document BOM recognition
6971 Document pragma Implemented_By_Entry.
6972 Document new units.
6973
6974 * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
6975 Add doc for pragma Unreferenced suppressing no entities referenced msg
6976 Add documentation of GNAT.Directory_Operations.Iteration
6977 Add documentation of GNAT.Random_Numbers
6978 Add documentation for pragma Shared.
6979 Correct documentation for Bit_Order
6980 Add documentation for the Pool_Address attribute.
6981 Fix and improve documentation of pragma machine_attribute.
6982 New pragma Fast_Math
6983 Document BOM recognition
6984
6985 * vms_data.ads: Add entries for -gnatw.a -gnatw.A
6986 Add /Wide_Character_Encoding for binder
6987 Add qualifier for the new gnatpp option --no-separate-loop-then
6988
69892007-12-13 Matthew Heaney <heaney@adacore.com>
6990
6991 * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
6992 which generic formal operations are called for each operation.
6993
69942007-12-13 Olivier Hainque <hainque@adacore.com>
6995
6996 * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
6997 (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
6998
69992007-12-13 Emmanuel Briot <briot@adacore.com>
7000
7001 * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
7002 Reference_Dir unless we actually need it.
7003
70042007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
7005 Tristan Gingold <gingold@adacore.com>
7006
7007 * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
7008
7009 * s-osprim-vms.adb,
7010 a-calend-vms.adb: Remove pragma warning off and add pragma
7011 unreferenced.
7012
70132007-12-13 Robert Dewar <dewar@adacore.com>
7014
7015 * impunit.adb: Add entries for missing units
7016
7017 * Makefile.rtl: Add new run-time units.
7018
7019 * Make-lang.in: Update dependencies.
7020
70212007-12-13 Bob Duff <duff@adacore.com>
7022
7023 * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
7024 types, set Can_Use_Internal_Rep appropriately, based on
7025 Always_Compatible_Rep_On_Target.
7026
70272007-12-13 Gary Dismukes <dismukes@adacore.com>
7028 Arnaud Charlet <charlet@adacore.com>
7029
7030 * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
7031 it to the front end and setting the aamp_target environment variable
7032 to the switch's argument to ensure that gnaampbind and gnaamplink will
7033 take the specified library into account.
7034 (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
7035 target, since the CIL compiler supports an "object" file (.il files).
7036
70372007-12-13 Vincent Celier <celier@adacore.com>
7038
7039 * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
7040 (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
7041
70422007-12-13 Geert Bosch <bosch@adacore.com>
7043
7044 * s-parame-vxworks.adb:
7045 Update comments to reflect usage of this package by Nucleus.
7046
70472007-12-13 Arnaud Charlet <charlet@adacore.com>
7048
7049 * i-vxwork.ads: Kill new warning on Convention C, since changing the
7050 spec would break code.
7051
7052 * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
7053
7054 * system-vxworks-alpha.ads: Removed.
7055
e74a122e
EB
70562007-12-10 Eric Botcazou <ebotcazou@adacore.com>
7057
7058 * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
7059
5320014a
ST
70602007-12-09 Samuel Tardieu <sam@rfc1149.net>
7061
7062 PR ada/34366
7063 * sem_ch3.adb (Designates_T): New function.
7064 (Mentions_T): Factor reusable part of the logic into Designates_T.
7065 Consider non-access parameters and access and non-access result.
7066 (Check_Anonymous_Access_Components): Set ekind of anonymous access to
7067 E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
7068
7069 * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
7070
da746f77
LB
70712007-12-07 Ludovic Brenta <ludovic@ludovic-brenta.org>
7072
9d651736 7073 PR ada/34361
da746f77
LB
7074 * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
7075 the new implementation of target-specific calls.
7076
ebe0660b
OH
70772007-12-07 Olivier Hainque <hainque@adacore.com>
7078
7079 * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
7080 the designated full view, only follow a second level Full_View link
7081 for Non_Limited_Views of from_limited_with references.
7082
2eb160f2
ST
70832007-12-07 Samuel Tardieu <sam@rfc1149.net>
7084
7085 PR ada/15805
7086 * sem_ch6.adb (Process_Formals): Prevent an access type formal
7087 to be initialized with an access to constant object.
7088
9cc11b58
ST
7089 * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
7090 when an access to constant is used to initialize an access
7091 value.
7092
72f69ddf
ST
7093 PR ada/21346
7094 * a-direct.adb (Compose): Containing_Directory can be an empty string.
7095
5a2fe31a
OH
70962007-12-07 Olivier Hainque <hainque@adacore.com>
7097
7098 PR ada/34173
7099 * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
7100 the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
7101 this is from an alignment clause on the GNAT entity.
7102 * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
7103 to distinguish the case where we set it from the type's alignment.
7104 When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
7105 whether this alignment was set from an explicit alignment clause.
7106
4039fb35
EB
71072007-12-06 Eric Botcazou <ebotcazou@adacore.com>
7108
7109 * decl.c (make_packable_type): Revert last change.
7110 (gnat_to_gnu_field): Avoid setting size and position multiple times.
7111 * utils.c (finish_record_type): Retrieve the real name of the type.
7112
0ec479dc
EB
71132007-12-05 Eric Botcazou <ebotcazou@adacore.com>
7114
7115 * trans.c (lvalue_required_p): Take base node directly instead
7116 of its parent. Rename second parameter to 'gnu_type'.
7117 <N_Indexed_Component>: Return 0 if the node isn't the prefix.
7118 <N_Slice>: Likewise.
7119 (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
7120 Adjust calls to lvalue_required_p.
7121
07c7262e
ST
71222007-12-05 Samuel Tardieu <sam@rfc1149.net>
7123
7124 PR ada/21489
7125 * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
7126 parameters of an entry call.
7127
9e94c78f 71282007-12-03 Robert Dewar <dewar@adacore.com>
403fd939
RD
7129 Samuel Tardieu <sam@rfc1149.net>
7130
7131 PR ada/34287
7132 * sem_util.adb (Safe_To_Capture_Value): Do not capture values
7133 of variables declared in a library-level package.
7134
0bcb4d2a
ST
71352007-12-02 Samuel Tardieu <sam@rfc1149.net>
7136
7137 * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
7138 of Empty_String'Unchecked_Access.
7139
dd9c642a
ST
7140 * Makefile.in: Add support for sh4-linux.
7141
7142 * system-linux-sh4.ads: New file.
7143
35330114
KB
71442007-12-01 Kostik Belousov <kostikbel@ukr.net>
7145
7146 PR ada/33722
7147 * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
7148 and its argument must not be free()ed.
7149
a6dcb051
EB
71502007-11-29 Eric Botcazou <ebotcazou@adacore.com>
7151
7152 * decl.c (make_packable_type): Retrieve the real name of the type.
7153 (maybe_pad_type): Simplify similar code.
7154
39a97416
ST
71552007-11-28 Samuel Tardieu <sam@rfc1149.net>
7156
a6968b8b 7157 PR ada/15804
39a97416
ST
7158 * par-ch3.adb (P_Variant_Part): Signal an error when anything other
7159 than an identifier is used after "case" in a variant_part.
7160
b99dfeb3 7161 PR ada/17318
9c5a3a8d
ST
7162 * par-ch4.adb (Is_Parameterless_Attribute): New map.
7163 (P_Name, Scan_Apostrophe block): Parse left parenthesis following
7164 attribute name or not depending on the new map.
7165
7166 * sem-attr.adb (Analyze_Attribute): Parameterless attributes
7167 returning a string or a type will not be called with improper
7168 arguments.
7169
7170 * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
7171
7172 * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
7173
5a218498
ST
7174 PR ada/32792
7175 * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
7176 Signal an error when attribute argument is a fixed-point value of
7177 an unknown type.
7178
7bde4677
ST
7179 PR ada/22559
7180 * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
7181 a derived ordinary fixed point type.
7182
7183 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
7184 RM_Size when a Small clause is found.
7185
182e0d71
AK
71862007-11-26 Andreas Krebbel <krebbel1@de.ibm.com>
7187
7188 PR 34081/C++
7189 * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
7190 Pass 'false' for the new allocate_struct_function parameter.
7191 * utils.c (build_function_stub): Likewise.
7192
87caf699
RG
71932007-11-25 Richard Guenther <rguenther@suse.de>
7194
4039fb35 7195 * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
87caf699
RG
7196 (gnat_poplevel): Likewise.
7197
f1c8c7ee
EB
71982007-11-25 Eric Botcazou <ebotcazou@adacore.com>
7199
7200 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
7201 strict alignment, no alignment clause and a known static size, cap
7202 the type alignment to the greatest power of 2 factor of the size.
7203 (gnat_to_gnu_field): If the field has a component clause, is aliased
7204 or of a type with strict alignment, require that its size be equal to
7205 that of the type.
7206 (validate_size): Use the type size as the minimum size for a type with
7207 strict alignment.
7208
bb1f5840
ST
72092007-11-23 Samuel Tardieu <sam@rfc1149.net>
7210
7211 * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
7212 s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
7213 s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
7214 Use 'Access instead of 'Unchecked_Access in second and third
7215 arguments of pthread_sigmask.
7216
5102fac5
EB
72172007-11-23 Eric Botcazou <ebotcazou@adacore.com>
7218
7219 * decl.c (ceil_alignment): New function.
7220 (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
7221 (make_packable_type): Likewise.
7222
1fa4dfc6
OH
72232007-11-22 Olivier Hainque <hainque@adacore.com>
7224
7225 * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
7226 to fit in 80 columns.
7227
9e94c78f 72282007-11-21 Aurelien Jarno <aurelien@aurel32.net>
5f45b299
AJ
7229
7230 * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
7231 * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
7232
7634135a
EB
72332007-11-19 Eric Botcazou <ebotcazou@adacore.com>
7234
7235 PR ada/34098
7236 * misc.c (gnat_adjust_rli): Delete.
7237 (gnat_init): Do not initialize the translation code here.
7238 Do not call set_lang_adjust_rli.
7239 * trans.c (init_code_table): Make static.
7240 (gnat_init_stmt_group): Delete.
7241 (gigi): Initialize the translation code entirely here.
7242 Emit debug info for the common types here instead of...
7243 * utils.c (gnat_init_decl_processing): ...here.
7244 * gigi.h (init_code_table): Delete.
7245 (gnat_init_stmt_group): Likewise.
7246
b2c3bcf4
OH
72472007-11-16 Olivier Hainque <hainque@adacore.com>
7248
7249 * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
7250 retrieving an allocator return value from a super-aligned address from
7251 here to ...
7252 * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
7253 expect a super-aligned address for a fat or thin pointer.
7254
a01e283f
EB
72552007-11-14 Eric Botcazou <ebotcazou@adacore.com>
7256
7257 * trans.c (call_to_gnu): Always set the source location on the call
7258 expression. If the function returns-by-target, also set it on the
7259 address expression.
7260
713c3145
ST
72612007-11-14 Samuel Tardieu <sam@rfc1149.net>
7262
356d8961 7263 * adaint.c, init.c, initialize.c, link.c: Remove system-specific
713c3145
ST
7264 sections of non-supported Interix target.
7265
7266 * s-osinte-interix.ads: Removed.
7267
1e992e16
ST
7268 * i-cstrin.ads (chars_ptr): Make it a C convention type.
7269
0e506c4b
ST
72702007-11-13 Samuel Tardieu <sam@rfc1149.net>
7271
7272 * a-tasatt.adb: Add a comment at the beginning of the package
7273 explaining why in general 'Unchecked_Access must be used instead
7274 of 'Access.
7275
66beb09b
ST
7276 * sem_prag.adb (Process_Convention): Move the test for the
7277 entity on which the Convention pragma applies down to also
7278 forbid pragma Convention on enumeration literals reached
7279 through renamings.
7280
14678e46
ST
72812007-11-10 Samuel Tardieu <sam@rfc1149.net>
7282
7283 * a-tasatt.adb: Revert previous change for this file as it will
7284 generate an error when this package is instantiated from a
7285 local context.
7286
f9d806de
ST
72872007-11-07 Samuel Tardieu <sam@rfc1149.net>
7288
7289 * a-tasatt.adb: Type Wrapper should be declared in comment instead
7290 of already declared type Node_Access.
dcbd752d
ST
7291 Use 'Access instead of 'Unchecked_Access when applicable. Local
7292 lifetime is the one of the package.
7293 (Set_Value): W is allocated on the heap.
7294
7295 * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
7296 applicable.
7297 (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
7298 access type.
7299 (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
7300 access type.
7301
7302 * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
7303 applicable.
7304 (elaboration code): Timer_Queue lifetime is the one of the
7305 package.
f9d806de 7306
bc01690e
ST
7307 * tracebak.c (i386 alternative): Remove useless comparaison
7308 which is always false; LOWEST_ADDRESS is 0 and is never greater
7309 than an unsigned integer.
7310
d9c1dc68
ST
7311 * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
7312 embedded check for "Ada_Version >= Ada_05".
7313
cb88a3ea
OH
73142007-11-07 Olivier Hainque <hainque@adacore.com>
7315
7316 * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
7317 craft and expand comment.
7318
233a722b
EB
73192007-11-01 Eric Botcazou <ebotcazou@adacore.com>
7320
7321 * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
7322
6d1e8bff
EB
73232007-10-23 Eric Botcazou <ebotcazou@adacore.com>
7324
7325 * misc.c (gnat_handle_option): Replace call to abort with
7326 call to gcc_unreachable.
7327 (gnat_init): Likewise.
7328 (gnat_expand_expr): Likewise.
7329 (fp_prec_to_size): Likewise.
7330 (fp_size_to_prec): Likewise.
7331
262e7125
RG
73322007-10-23 Richard Guenther <rguenther@suse.de>
7333
7334 PR bootstrap/33608
7335 * tracebak.c: #undef abort after including system.h.
7336
9e94c78f 73372007-10-20 Danny Smith <dannysmith@users.sourceforge.net>
c8f499a9
DS
7338
7339 * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
7340 s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
7341 for win32 targets.
7342 (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
7343
f0e1e807
AC
73442007-10-15 Eric Botcazou <ebotcazou@adacore.com>
7345
7346 * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
7347 Set the protection status of the guard page based on the value of On.
7348
7349 * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
7350
7351 * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
7352 (Exit_Task): Pass False to Hide_Yellow_Zone.
7353
73542007-10-15 Robert Dewar <dewar@adacore.com>
7355
7356 * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
7357 s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
7358 a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb,
7359 checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb,
7360 freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb,
7361 gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb,
7362 mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb,
7363 prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb,
7364 sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb,
7365 s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
7366 uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb,
7367 a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb,
7368 a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb,
7369 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb,
7370 a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb,
7371 a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
7372 Minor reformatting.
7373 Add Unreferenced and Warnings (Off) pragmas for cases of
7374 variables modified calls where they are IN OUT or OUT parameters and
7375 the resulting values are not subsequently referenced. In a few cases,
7376 we also remove redundant code found by the new warnings.
7377
7378 * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads,
7379 sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
7380 sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
7381 sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
7382 warning controlled by -gnatw.o that warns on cases of out parameter
7383 values being ignored.
7384
73852007-10-15 Geert Bosch <bosch@adacore.com>
7386
7387 * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
7388
7389 * expect.c: Initial port to arm-mentor-nucleus.
7390 Use kill for __gnat_kill() on VMS.
7391
73922007-10-15 Emmanuel Briot <briot@adacore.com>
7393
7394 * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
7395 value.
7396 (Xref_Record): Change type for Line, since in the case of a reference to
7397 a predefined entity (as happens for array index types), the line is set
7398 to 0.
7399 Add support for parsing multiple array index types info, or
7400 multiple inherited interfaces info. This information cannot be stored
7401 in Xref_Entity_Record, which only supports a single instance of Tref_*,
7402 and is therefore stored in the list of references instead. It has a
7403 special treatement later on in tools that use this information.
7404
74052007-10-15 Tristan Gingold <gingold@adacore.com>
7406
7407 * debug.adb: Document use of -gnatd.a and -gnatd.I
7408
7409 * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
7410
74112007-10-15 Javier Miranda <miranda@adacore.com>
7412
7413 * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
7414 Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
7415 care of access to class-wide interface types plus removal of bizarre
7416 conversion of tagged object to access type (reported by Gary
7417 Dismukes). After this patch there is no need to perform any
7418 additional management on these nodes in Expand_Interface_Actuals.
7419
7420 * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
7421 that handles use of 'Access and 'Unchecked_Access applied to
7422 actuals covering interface types. Such code is now
7423 centralized in Expand_N_Attribute_Reference.
7424
74252007-10-15 Ed Schonberg <schonberg@adacore.com>
7426
7427 * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
7428 of tagged types whose ultimate ancestor is a CPP type.
7429 (Freeze_Array_Type): For a packed array type, generate an initialization
7430 procedure if the type is public, to handle properly a client that
7431 specifies Normalize_Scalars.
7432
74332007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
7434
7435 * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
7436 inside a generic body, retrieve the full view of the entry family
7437 discrete subtype if available.
7438
74392007-10-15 Thomas Quinot <quinot@adacore.com>
7440
7441 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
7442 attempt to generate stubs for hidden primitive operations.
7443
74442007-10-15 Vincent Celier <celier@adacore.com>
7445
7446 * mlib-tgt-specific.adb (Support_For_Libraries): New function,
7447 returning None, used when there is no platform specific body for
7448 MLib.Tgt.Specific.
7449
74502007-10-15 Bob Duff <duff@adacore.com>
7451
7452 * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
7453 (passing'Unrestricted_Access of nested subprograms to Sort) with use of
7454 the generic Heap_Sort_G, in order to avoid trampolines.
7455
74562007-10-15 Vasiliy Fofanov <fofanov@adacore.com>
7457 Jose Ruiz <ruiz@adacore.com>
7458
7459 * vx_stack_info.c: New file.
7460
7461 * i-forbla-unimplemented.ads: New file.
7462
7463 * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
7464 for unsupported configurations; use it on VMS targets instead of the
7465 real one.
7466 (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
7467 vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
7468 used by VxWorks targets to have access to task-specific data and be
7469 able to extract the stack boundaries for stack checking.
7470 Use system-vms-ia64.ads on ivms.
7471
7472 * Make-lang.in: Update dependencies.
7473
7474 * sysdep.c (__gnat_get_stack_info): Move to a standalone file
7475 (vx_stack_info.c).
7476
74772007-10-15 Vincent Celier <celier@adacore.com>
7478
7479 * snames.adb, snames.ads: Add new standard name runtime_library_dir
7480
7481 * prj.ads (Language_Config): Add new component Runtime_Library_Dir
7482
7483 * prj-attr.adb: Add project level attribute Runtime_Library_Dir
7484
7485 * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
7486 the source is unknown.
7487
7488 * prj-ext.adb: Spelling error fix
7489
7490 * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
7491 95 reserved word in its name.
7492 (Process_Project_Level_Array_Attributes): Process new attribute
7493 Runtime_Library_Dir.
7494
7495 * prj-part.adb (Parse_Single_Project): Do not check the name of the
7496 config project against the user project names.
7497
7498 * prj-proc.adb (Expression): In multi-language mode, indexes that do
7499 not include a dot are always case insensitive.
7500 (Process_Declarative_Items): Ditto
7501 (Process_Project_Tree_Phase_1): Set Success to False in case an error is
7502 detected.
7503
7504 * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
7505 True, compare both indexes in lower case.
7506
75072007-10-15 Robert Dewar <dewar@adacore.com>
7508
7509 * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
7510
75112007-10-15 Gary Dismukes <dismukes@adacore.com>
7512
7513 * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
7514 association for an access component, add an association with null as
7515 the expression. Remove testing for array subtypes and the setting in
7516 that case of Ctyp to the array component type, which prevented proper
7517 inclusion of an association for null-initialized arrays. Collapse
7518 condition that tests for array subtypes into just a test of
7519 Is_Partially_Initialized_Type (which already covers arrays anyway).
7520
75212007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
7522
7523 * sem_ch12.adb: Minor code reformatting.
7524 (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
7525 find the parent package which may have been hidden by local
7526 declarations.
7527
75282007-10-15 Gary Dismukes <dismukes@adacore.com>
7529
7530 * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
7531 flag of derived concurrent types, taking into account the flag setting
7532 on the parent subtype and any new set of discriminants.
7533
75342007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
7535
7536 * sem_ch4.adb: Minor code and comment reformatting.
7537 (Analyze_Allocator): When the designated type of an unconstrained
7538 allocator is a record with unknown discriminants or an array with
7539 unknown range bounds, emit a detailed error message depending on the
7540 compilation mode and whether the designated type is limited.
7541
75422007-10-15 Tristan Gingold <gingold@adacore.com>
7543
7544 * system-vms-ia64.ads: New file.
7545
7546 * system-vms_64.ads: Minor comment fix.
7547
75482007-10-15 Ed Schonberg <schonberg@adacore.com>
7549
7550 * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
7551 body generated for a function with a controlling result that is a null
7552 extension, discard the generated body in favor of the current explicit
7553 one.
7554
75552007-10-15 Ed Schonberg <schonberg@adacore.com>
7556
7557 * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
7558 examining its original form, to handle properly operator calls that
7559 have been rewritten.
7560
75612007-10-15 Olivier Hainque <hainque@adacore.com>
7562
7563 * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
7564 instead of a procedure value in each traceback entry.
7565
7566 * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
7567 instead of procedure value to TBK$SYMBOLIZE.
7568
7569 * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
7570 field.
7571 (TB_Entry_For): Account for the PV/FP renaming.
7572
7573 * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
7574 add comment.
7575 (Null_TB_Entry): Account for change of component name.
7576 (PV_For): Rename as FP_For.
7577
75782007-10-15 Tristan Gingold <gingold@adacore.com>
7579
7580 * trans.c (gnat_to_gnu): Remove the padding structure more often.
7581 This optimize assignment to over-aligned record.
7582
75832007-10-15 Emmanuel Briot <briot@adacore.com>
7584
7585 * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
7586 interfaces.
7587
7588 * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
7589 type, for dispatching calls.
7590
75912007-10-15 Vincent Celier <celier@adacore.com>
7592 Robert Dewar <dewar@adacore.com>
7593
7594 * gnat_ugn.texi: Add documentation for switches --version and --help
7595 for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
7596 gnatxref, gnatfind, gnatls, and gnatclean.
7597 Document -gnatw.o.
7598 Mention attribute Excluded_Source_Dirs
7599 Replace obsolescent attribute Locally_Removed_Files with attribute
7600 Excluded_Source_Files.
7601 Improve documentation of -u (gnatbind)
7602 Document how to do reliable stack checking for the environmental task
7603 on iVMS.
7604
7605 * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
7606 Document attribute Excluded_Source_Files and indicate that attribute
7607 Locally_Removed_Files is obsolescent.
7608
76092007-10-15 Thomas Quinot <quinot@adacore.com>
7610
7611 * g-soccon-vms.ads: Fix value of MSG_WAITALL.
7612
7613 * gen-soccon.c:
7614 Update documentation to note that OpenVMS 8.3 or later must be used
7615 to generate g-soccon-vms.ads.
7616
7617 * atree.adb: Add ??? comment
7618
7619 * exp_util.adb: Minor reformatting.
7620 Add ??? comment in Kill_Dead_Code.
7621
76222007-10-15 Robert Dewar <dewar@adacore.com>
7623
7624 * errout.ads: Comment clarification
7625
7626 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
7627 (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
7628
7629 * lib.ads: Comment update
7630
7631 * init.c: Minor reformatting.
7632
7633 * sem_attr.adb: Minor formatting
7634
7635 * osint-b.ads: Minor reformatting
7636
7637 * sem_ch9.adb: Implement -gnatd.I switch
7638
7639 * g-comlin.adb: (Start): Fix handling of empty command line.
7640
7641 * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
7642 even when -rules follows the -cargs section.
7643
6524147c
OW
76442007-10-08 Ollie Wild <aaw@google.com>
7645
7646 * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
7647 gnat_return_tree.
7648 (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
7649 gnat_return_tree.
7650 (gnat_eh_runtime_type): Removed.
7651 (gnat_return_tree): New function.
7652
dff6abb2
BE
76532007-10-08 Ben Elliston <bje@au.ibm.com>
7654
7655 PR ada/33454
7656 Revert:
7657 2007-08-31 Ben Elliston <bje@au.ibm.com>
7658
7659 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
7660 when compiling for powerpc64-*-linux.
7661 * system-linux-ppc64.ads: New file.
7662
c3048783
EB
76632007-09-27 Eric Botcazou <ebotcazou@adacore.com>
7664
7665 Mapped location support
7666 * back_end.adb (Call_Back_End): Pass information about source
7667 files instead of units to gigi.
7668 * gigi.h (struct File_Info_Type): New.
7669 (gigi): Rename and change type of number_units parameter, change
7670 type of file_info_ptr parameter.
7671 * trans.c (number_files): New global variable.
7672 (gigi): Rename and change type of number_units parameter, change
7673 type of file_info_ptr parameter.
7674 If mapped location support is enabled, create the isomorphic mapping
7675 between source files and line maps.
7676 (Sloc_to_locus): If mapped location support is enabled, translate
7677 source location into mapped location.
7678 (annotate_with_node): Rename into set_expr_location_from_node.
7679 Call set_expr_location instead of annotate_with_locus.
7680 (Pragma_to_gnu): Adjust for above change.
7681 (Loop_Statement_to_gnu): Likewise.
7682 (call_to_gnu): Likewise.
7683 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
7684 (gnat_to_gnu): Likewise.
7685 (add_stmt_with_node): Likewise.
7686 (add_cleanup): Likewise.
7687 * utils.c (gnat_init_decl_processing): Do not set input_line.
7688
68b72a44
AC
76892007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
7690
7691 * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
7692 (Applicable_Use): Emit a warning when a package tries to use itself.
7693 (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
7694 is already in use or the package where it is declared is in use or is
7695 declared in the current package.
7696 (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
7697
7698 * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
7699 s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
7700 s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
7701
77022007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
7703
7704 * a-calend-vms.adb, a-calend.adb:
7705 Add a section on leap seconds control along with two entities used to
7706 enable and disable leap seconds support. The array Leap_Second_Times is
7707 now constant and contains hard time values pre-generated. Remove
7708 all elaboration code used to populate the table of leap seconds.
7709
7710 * bindgen.adb:
7711 Add entity Leap_Seconds_Support to the list of global run-time variables
7712 along with a comment on its usage and values.
7713 (Gen_Adainit_Ada): Add code to generate the declaration and import of
7714 Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
7715 or one (enabled) depending on the presence of binder switch "-y".
7716 (Gen_Adainit_C): Add code to generate the declaration of external int
7717 __gl_leap_seconds_support. Set is value to zero (disabled) or one
7718 (enabled) depending on the presence of binder switch "-y".
7719
7720 * init.c: Add __gl_leap_seconds_support to the list of global values
7721 computed by the binder.
7722
77232007-09-26 Jerome Guitton <guitton@adacore.com>
7724
7725 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
7726 s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
7727 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
7728 s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
7729
7730 * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
7731
7732 * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
7733 function which can be called by the debugger to interrupt the tasks of
7734 an Ada application asynchronously, as needed on VxWorks.
7735 (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
7736
7737 * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
7738 renamed from Stop_All_Tasks. Update comments.
7739 (Stop_All_tasks): New function declaration.
7740
77412007-09-26 Olivier Hainque <hainque@adacore.com>
7742
7743 * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
7744 #include <utime.h> and #define GCC_RESOURCE_H before
7745 #include <sys/wait.h>.
7746 Add more protections in __gnat_translate_vms.
7747
7748 * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
7749 #include <sys/wait.h>.
7750
77512007-09-26 Thomas Quinot <quinot@adacore.com>
7752 Sergey Rybin <rybin@adacore.com>
7753
7754 * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
7755
7756 * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
7757 where it belongs.
7758
7759 * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
7760
7761 * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
7762 where it belongs.
7763
7764 * sem_dist.ads: Minor comment fix
7765
7766 * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
7767
77682007-09-26 Javier Miranda <miranda@adacore.com>
7769 Eric Botcazou <ebotcazou@adacore.com>
7770
7771 * a-tags.adb:
7772 (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
7773 indirection added to the HT_Link component of the TSD. This is required
7774 to statically allocate the TSD.
7775
7776 * a-tags.ads:
7777 Minor reordering of the declarations in the private part. Required to
7778 add a level of indirection to the contents of the TSD component HT_Link.
7779 This is required to statically allocate the TSD.
7780
7781 * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
7782 Is_Statically_Allocated set from constant objects.
7783 Do not make exported constants created by the compiler volatile.
7784 (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
7785 as read-only.
7786
7787 * trans.c (Identifier_to_gnu): For constants, unshare initializers
7788 before returning them.
7789
7790 * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
7791 public part of the package.
7792 (Make_DT): Move HT_Link component out of the TSD record. For this
7793 purpose Make_DT now declares a separate object that stores the
7794 HT_Link value, and initializes the TSD component with the address
7795 of this new object. The addition of this level of indirection is
7796 required to statically allocate the TSD because the TSD cannot
7797 have variable components.
7798 (Expand_Interface_Conversion): Improve the expanded code.
7799 (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
7800
7801 * sem_disp.adb (Check_Dispatching_Operation): In case of a body
7802 declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
7803 if we are building static dispatch tables then we must not generate
7804 extra code to register the primitive because the dispatch table will
7805 be built at the end of the library package; otherwise we notify that
7806 we cannot build the static dispatch table.
7807
78082007-09-26 Robert Dewar <dewar@adacore.com>
7809
7810 * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
7811 overlays.
7812
7813 * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
7814 (Analyze_Record_Representation_Clause): Suppress junk warning for
7815 missing component clause.
7816 (Analyze_Attribute_Definition_Clause, case Address): Apply the special
7817 tests for controlled type overlay to composites with controlled
7818 components.
7819 (Analyze_Record_Representation_Clause): Add reference for component name
7820
78212007-09-26 Javier Miranda <miranda@adacore.com>
7822 Gary Dismukes <dismukes@adacore.com>
7823
7824 * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
7825 for thunks associated with interface types.
7826
7827 * einfo.ads: Improve documentatation of Is_Internal
7828 (Is_Thunk): New attribute applicable to subprograms. True for thunks
7829 associated with interface types.
7830 Extensive comment fixes regarding flags that appear in all entities. The
7831 documentation is now consistent for all such flags (there were a number
7832 of errors in the documentation in this regard).
7833
7834 * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
7835
7836 * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
7837 of these procedures are passed a function call that already has
7838 build-in-place actuals (testing new flag
7839 Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
7840 the case where processing continues.
7841 (Expand_Call): If the call is generated from a thunk body then we
7842 propagate the extra actuals associated with the accessibility
7843 level of the access type actuals.
7844
7845 * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
7846 of each extra formal of a protected operation to reference the
7847 corresponding extra formal of the subprogram denoted by the
7848 operation's Protected_Body_Subprogram.
7849
7850 * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
7851 N_Function_Call nodes.
7852
78532007-09-26 Robert Dewar <dewar@adacore.com>
7854
7855 * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
7856
7857 * debug.adb: Add d.s flag.
7858
78592007-09-26 Gary Dismukes <dismukes@adacore.com>
7860
7861 * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
7862 debug variable so that it won't be initialized when pragma
7863 Initialize_Scalars is in effect.
7864
78652007-09-26 Gary Dismukes <dismukes@adacore.com>
7866
7867 * freeze.adb (Freeze_Entity): Remove check for preelaborable
7868 initialization of a full view. This is moved to
7869 Analyze_Package_Specification.
7870
7871 * sem_ch7.adb (Analyze_Package_Specification): Add check for
7872 preelaborable initialization of a full view in entity loop.
7873 (Uninstall_Declarations): If entity is a use-visible compilation unit,
7874 its child units are use-visible only if they are visible child units.
7875
7876 * sem_util.adb (Is_Preelaborable_Expression): New function to determine
7877 whether an expression can be used within a type declaration that
7878 requires preelaborable init.
7879 (Check_Components): Replace inline code that does partial checking for
7880 preelaborable default expressions with call to
7881 Is_Preelaborable_Expression.
7882 (Has_Preelaborable_Initialization): In the case of a generic actual
7883 subtype, (that is, Is_Generic_Actual is True), return the result of
7884 applying Has_Preelaborable_Initialization to the generic actual's base
7885 type.
7886
78872007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
7888
7889 * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
7890 call to Jan_1_Day _Of_Week to optimize its performance.
7891 (Is_Leap): Move the routine to the scope of Week_In_Year.
7892 (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
7893 weekday on which January 1 falls of Year - 1 and Year + 1. This function
7894 avoids calling Time_Of and Split, thus making it more efficent.
7895 (Week_In_Year): Reimplemented in oder to follow ISO 8601.
7896
7897 * g-calend.ads (Week_In_Year): Change comment to reflect new
7898 implementation.
7899
79002007-09-26 Emmanuel Briot <briot@adacore.com>
7901
7902 * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
7903 Command_Line): New types
7904 (Define_Alias, Define_Prefix, Free): New subprograms. These provide
7905 support for defining how switches can be grouped on a command line (as
7906 is the case for -gnatw... for GNAT), and how simple switches can be
7907 used as aliases for more complex switches (-gnatwa is same as
7908 -gnatwbcef...)
7909 (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
7910 (Start, Current_*): New subprograms
7911 Added support for parsing an array of strings in addition to the real
7912 command line.
7913 (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
7914 be moved from the body to the private part of the spec.
7915 (*): All subprograms now have an extra parameter with default value to
7916 specify which parser should be used. For backward compatibility, it
7917 defaults to parsing the command line of the application. They were also
7918 modified to properly handle cases where each of the argument does not
7919 start at index 1 (which is always true for Ada.Command_Line, but not
7920 when processing any Argument_List).
7921 (Free): New subprogram
7922 (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
7923 Argument): New subprograms
7924 (Switch_Parameter_Type): New enum, which clarifies the code. The extra
7925 special characters like ':', '=',... are now handled in a single place,
7926 which makes the code more extensible eventually.
7927 (Getopt, Full_Switch): When the switch was returned as part of the
7928 special character '*', make sure it is prepended by the switch character
7929 ('-' in general), so that the application knows whether "foo" or "-foo"
7930 was specified on the command line.
7931
79322007-09-26 Florian Villoing <villoing@adacore.com>
7933
7934 * g-dirope.adb (Remove_Dir): In case we are removing directories
7935 recursively, make sure that if an exception is raised during the
7936 processing, the current working directory is reset to its initial
7937 value before propagating the exception.
7938
79392007-09-26 Vincent Celier <celier@adacore.com>
7940
7941 * gnatbind.adb: If there are several ALI files specified and there is
7942 a main program to bind, the first ALI is expected to contain the main
7943 subprogram and the names of the binder generated files will be derived
7944 from the first ALI file name.
7945 (Gnatbind): Fix insertion character in invocation of Error_Msg
7946
79472007-09-26 Vincent Celier <celier@adacore.com>
7948
7949 * gnatcmd.adb (Check_Files): Do not include sources that have been
7950 removed by attributes Exclude_Source_Files or Locally_Removed_Files.
7951
79522007-09-26 Ed Schonberg <schonberg@adacore.com>
7953
7954 * lib-xref.ads, lib-xref.adb: The entry for array types now carries
7955 information about each of its index types, following the type
7956 reference for its component type.
7957
79582007-09-26 Vincent Celier <celier@adacore.com>
7959
7960 * make.adb: (Kill): New procedure (__gnat_kill imported)
7961 (Running_Compile, Outstanding_Compiles): Global variables that
7962 were previously local to procedure Compile_Sources.
7963 (Sigint_Intercepted): Send signal SIGINT to all outstanding
7964 compilation processes.
7965
7966 (Gnatmake): If project files are used, create the mapping of all the
7967 sources, so that the correct paths will be found.
7968
7969 * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
7970
79712007-09-26 Vincent Celier <celier@adacore.com>
7972
7973 * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
7974
7975 * prj.ads, prj.adb (Default_Language): Remove function, no longer used
7976 Replace components Compiler_Min_Options and Binder_Min_Options with
7977 Compiler_Required_Switches and Binder_Required_Switches in record
7978 Language_Config.
7979 Remove components Default_Language and Config in Project_Tree_Data,
7980 no longer used.
7981
7982 * prj-attr.adb: New attributes Required_Switches (<language>) in
7983 packages Compiler and Binder.
7984
7985 * prj-nmsc.adb: Major rewrite of the processing of configuration
7986 attributes for gprbuild. No impact on GNAT tools.
7987
7988 * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
7989 process configuration attributes: this is done in Prj.Nmsc.Check.
7990 (Recursive_Process): Make a full copy of packages inherited from project
7991 being extended, instead of a shallow copy.
7992 (Process_Project_Tree_Phase_1): New procedure
7993 (Process_Project_Tree_Phase_1): New procedure
7994 (Process): Implementation now uses the two new procedures
7995
7996 * prj-util.adb (Executable_Of): Get the suffix and the default suffix
7997 from the project config, not the tree config that no longer exists.
7998
79992007-09-26 Vincent Celier <celier@adacore.com>
8000
8001 * Make-lang.in: Update dependencies..
8002
80032007-09-26 Vincent Celier <celier@adacore.com>
8004
8005 * osint.adb, osint.ads: Minor reformatting
8006
8007 * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
8008
80092007-09-26 Gary Dismukes <dismukes@adacore.com>
8010
8011 * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
8012 message to cite use of <> in aggregate component associations rather
8013 than wrongly indicating use of limited aggregates.
8014
80152007-09-26 Robert Dewar <dewar@adacore.com>
8016
8017 * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
8018 Address_Taken.
8019
80202007-09-26 Ed Schonberg <schonberg@adacore.com>
8021
8022 * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
8023 ancestor of the derived type, the operations are inherited from the
8024 primary dispatch table of the parent.
8025 (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
8026 when the context is an explicit type conversion.
8027
80282007-09-26 Ed Schonberg <schonberg@adacore.com>
8029
8030 * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
8031 rule for qualified expressions properly, to detect improper conversions
8032 and resolve some cases of overloading.
8033
80342007-09-26 Ed Schonberg <schonberg@adacore.com>
8035
8036 * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
8037 proper kind of reference to the primitive operation, for better source
8038 navigation.
8039 (Valid_Conversion): A tagged conversion is legal if both operands are
8040 tagged.
8041
80422007-09-26 Robert Dewar <dewar@adacore.com>
8043
8044 * sem_warn.adb (Check_References): Catch more cases of unreferenced
8045 packages.
8046
80472007-09-26 Vincent Celier <celier@adacore.com>
8048
8049 * snames.adb, snames.ads: Change Include_Option to Include_Switches
8050
80512007-09-26 Robert Dewar <dewar@adacore.com>
8052
8053 * s-wchstw.adb: provide messages for run time unit exceptions
8054
8055 * a-witeio.adb: Minor reformatting
8056
8057 * exp_ch13.adb: Minor reformatting
8058
80592007-09-26 Sergey Rybin <rybin@adacore.com>
8060
8061 * vms_data.ads: Revise gnatmetric qualifiers.
8062 Add qualified for the new gnatbind option '-y'
8063
8064 * gnat_ugn.texi: Revise the gnatmetric section.
8065 Add entry for new gnatbind option '-y'.
8066
8067 * gnat_rm.texi: Minor spelling correction.
8068 Document restriction on overlaying controlled types
8069
80702007-09-26 Vincent Celier <celier@adacore.com>
8071
8072 * makegpr.adb (Link_Executables): Do not fail when the root project has
8073 no sources, but is an extending project.
8074
0a86bcc9
EB
80752007-09-25 Eric Botcazou <ebotcazou@adacore.com>
8076
8077 * trans.c: Fix misplaced #define.
8078
b235734c
EB
80792007-09-22 Eric Botcazou <ebotcazou@adacore.com>
8080
8081 * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
8082 the TYPE_REF_CAN_ALIAS_ALL flag to the result.
8083
97237784
OH
80842007-09-21 Olivier Hainque <hainque@adacore.com>
8085
8086 * utils.c (type_for_nonaliased_component_p): Return false for
8087 all AGGREGATE_TYPEs.
8088
2adde4ff
EB
80892007-09-17 Eric Botcazou <ebotcazou@adacore.com>
8090
8091 * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
8092 object covered by 13.3(19) volatile.
8093
b693daa7
EB
80942007-09-12 Eric Botcazou <ebotcazou@adacore.com>
8095
8096 PR ada/26797
8097 PR ada/32407
8098 * utils.c (unchecked_convert): Use a subtype as the intermediate type
8099 in the special VIEW_CONVERT_EXPR case.
8100
82da9a90
AC
81012007-09-12 Robert Dewar <dewar@adacore.com>
8102
8103 * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
8104
8105 * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
8106 lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
8107 s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
8108 s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
8109 s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
8110 s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
8111 s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
160c5065 8112 s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
82da9a90
AC
8113 a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads,
8114 g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads,
8115 s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb,
8116 s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb,
8117 snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads,
8118 s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads,
8119 s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads,
8120 s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads,
8121 s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
8122 pragma Compiler_Unit and adds it to relevant library units.
8123
81242007-09-12 Ed Schonberg <schonberg@adacore.com>
8125
8126 * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
8127 a box need not correspond to any component.
8128
81292007-09-12 Robert Dewar <dewar@adacore.com>
8130
8131 * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
8132 the tasking version of the Ada run time when foreign threads are
8133 present and there are no explicit Ada tasks or tasking constructs.
8134
8135 * gnat_rm.texi: Clarify documentation of GNAT.Threads.
8136
81372007-09-12 Hristian Kirtchev <kirtchev@adacore.com>
8138
8139 * bindusg.adb (Display): Correct comment for switch -X. Add a line for
8140 the usage of switch -y.
8141
8142 * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
8143 when switch -y is present.
8144
8145 * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
8146 leap seconds in Ada.Calendar and its children.
8147
81482007-09-12 Jose Ruiz <ruiz@adacore.com>
8149
8150 * a-extiti.ads (Timer): The discriminant is a "not null access
8151 constant" in the Reference Manual.
8152 (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
8153
81542007-09-12 Robert Dewar <dewar@adacore.com>
8155
8156 * a-swuwha.adb: Remove junk RM header
8157
81582007-09-12 Vincent Celier <celier@adacore.com>
8159
8160 * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
8161 indicator
8162
8163 * g-bytswa.ads: Minor reformatting
8164
81652007-09-12 Thomas Quinot <quinot@adacore.com>
8166
8167 * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads:
8168 Add new constant Thread_Blocking_IO, always True by default, set False
8169 on a per-runtime basis.
8170 (Need_Netdb_Buffer): New constant.
8171
81722007-09-12 Arnaud Charlet <charlet@adacore.com>
8173
8174 * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
8175 Added renames for corresponding functions in System.Partition_Interface.
8176
81772007-09-12 Doug Rupp <rupp@adacore.com>
8178
8179 * Makefile.in: Remove VMS specific System.CRTL packages which are no
8180 longer needed.
8181
8182 * s-crtl-vms64.ads: Removed.
8183
09528ed9
OH
81842007-09-12 Olivier Hainque <hainque@adacore.com>
8185
8186 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
8187 with discriminant constraints, generalize the code for BIT_FIELDs
8188 to PACKED fields of constant size and propagate DECL_PACKED.
8189
fa89b6ec
EB
81902007-09-11 Eric Botcazou <ebotcazou@adacore.com>
8191
8192 * decl.c (array_type_has_nonaliased_component): New predicate.
8193 (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
8194 set the TYPE_NONALIASED_COMPONENT flag on the type.
8195 <E_Array_Subtype>: Likewise.
8196 * gigi.h (type_for_nonaliased_component_p): Declare.
8197 * utils.c (type_for_nonaliased_component_p): New predicate.
8198 (create_field_decl): Invoke the above predicate to set the
8199 DECL_NONADDRESSABLE_P flag on the field.
8200
e18d6a15
JM
82012007-09-11 Javier Miranda <miranda@adacore.com>
8202
8203 * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
8204 in library level record type entities if we are generating statically
8205 allocated dispatch tables.
8206
8207 * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
8208 importing/exporting the _tag declaration by new code
8209 importing/exporting the dispatch table wrapper. This change allows us
8210 to statically allocate of the TSD.
8211 (Make_DT.Export_DT): New procedure.
8212 (Build_Static_DT): New function.
8213 (Has_DT): New function.
8214
8215 * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
8216 True_Constant and Current_Value. Required to statically
8217 allocate the dispatch tables.
8218 (Check_Allocator): Make function iterative instead of recursive.
8219 Also return inner allocator node, when present, so that we do not have
8220 to look for that node again in the caller.
8221
9e94c78f 82222007-09-11 Jan Hubicka <jh@suse.cz>
e89d6010
JH
8223
8224 * misc.c (gnat_expand_body): Kill.
8225 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
8226
281b604e
AC
82272007-09-10 Robert Dewar <dewar@adacore.com>
8228
8229 * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
8230 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
8231 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
8232 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
8233 ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
8234 bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
8235 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
8236 butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
8237 comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
8238 elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
8239 err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
8240 exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
8241 exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
8242 exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
8243 exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
8244 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
8245 exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
8246 exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
8247 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
8248 exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
8249 exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
8250 exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
8251 fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
8252 get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
8253 gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
8254 gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
8255 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
8256 gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
8257 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
8258 gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
8259 inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
8260 lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
8261 lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
8262 make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
8263 mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
8264 mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
8265 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
8266 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
8267 osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
8268 osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
8269 par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
8270 par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
8271 par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
8272 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
8273 par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
8274 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
8275 prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
8276 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
8277 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
8278 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
8279 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
8280 prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
8281 rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
8282 scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
8283 sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
8284 sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
8285 sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
8286 sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
8287 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
8288 sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
8289 sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
8290 sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
8291 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
8292 sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
8293 sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
8294 sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
8295 sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
8296 sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
8297 stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
8298 styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
8299 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
8300 switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
8301 tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
8302 treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
8303 types.h, uintp.h, urealp.h, usage.adb, usage.ads,
8304 validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
8305 xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
8306 xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
8307 gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
8308 mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
8309 symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
8310 mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
8311 mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
8312
83132007-09-10 Emmanuel Briot <briot@adacore.com>
8314
8315 * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
8316 classes ("[]").
8317
83182007-09-10 Vasiliy Fofanov <fofanov@adacore.com>
8319
8320 * adaint.c (__gnat_translate_vms): new function.
8321
83222007-09-10 Gary Dismukes <dismukes@adacore.com>
8323 Thomas Quinot <quinot@adacore.com>
8324
8325 * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
8326 create an abstract subprogram in the case of 'Input. For 'Output we now
8327 create a real spec/body when the type is abstract, since it can
8328 potentially be called.
8329 (Predefined_Primitive_Bodies): Now allow the creation of a predefined
8330 body for 'Output when the type is abstract (only the creation of the
8331 body for 'Input is excluded when the type is abstract).
8332 (Stream_Operation_OK): Add an additional condition in the return
8333 statement, so that False will be returned for TTS_Stream_Input if the
8334 associated tagged type is an abstract extension. Add comments for
8335 return statement.
8336 (Expand_N_Object_Declaration): For the case of a shared passive
8337 variable, insert init proc call only after the shared variable
8338 procedures have been processed, because the IP call needs to undergo
8339 shared passive variable reference expansion, which requires these
8340 procedures to be available (and elaborated).
8341
83422007-09-10 Vincent Celier <celier@adacore.com>
8343
8344 * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
8345 parameter Runtime_Project.
8346
83472007-09-10 Ed Schonberg <schonberg@adacore.com>
8348
8349 * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
8350 given a box association, the type of the component is discriminated,
8351 and the value of the discriminant is the discriminant of the enclosing
8352 type, retrieve its value from the aggregate itself, where it must have
8353 been supplied.
8354
8355 * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
8356 to remove other spurious ambiguities on arithmetic operations involving
8357 literals and addresses, on systems where Address is a visible integer
8358 type, when the operator is called in functional notation.
8359 (Try_Primitive_Operation): Within an instance, a call in prefixed form
8360 is legal when the types match, even if the operation is currently
8361 hidden.
8362
83632007-09-10 Ed Schonberg <schonberg@adacore.com>
8364
8365 * sem_ch12.adb (Build_Local_Package): A formal package with no
8366 associations is legal if all formals have defaults. It is not
8367 equivalent to a formal declared with a box.
8368
83692007-09-10 Sergey Rybin <rybin@adacore.com>
8370
8371 * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
8372
83732007-09-10 Sergey Rybin <rybin@adacore.com>
8374
8375 * gnat_ugn.texi: Add description of the new '-lratio' option
8376 Update 7.3.1 section about availability of the feature.
8377
83782007-09-10 Thomas Quinot <quinot@adacore.com>
8379
8380 * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
8381 inserted node.
8382
83832007-09-10 Olivier Hainque <hainque@adacore.com>
8384
8385 * Makefile.in: (mips-irix section): Activate build of libgmem.
8386
a56955b1
EB
83872007-09-10 Eric Botcazou <ebotcazou@adacore.com>
8388
8389 * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
8390 x87 registers.
8391
c03550f6
EB
83922007-09-10 Eric Botcazou <ebotcazou@adacore.com>
8393
8394 * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
8395 a debug renaming declaration specially.
8396
79646678
EB
83972007-09-08 Eric Botcazou <ebotcazou@adacore.com>
8398
8399 * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
8400 which a constant renaming is treated as a normal object declaration.
8401 * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
8402 the N_Indexed_Component case.
8403 <N_Indexed_Component>: Fall through to above case.
8404 <N_Object_Renaming_Declaration>: Return true for all composite types.
8405
d9e161ce
EB
84062007-09-08 Eric Botcazou <ebotcazou@adacore.com>
8407
8408 * decl.c (make_packable_type): If the new type has been given BLKmode,
8409 try again to get an integral mode for it.
8410
0ab29e91 84112007-09-07 Eric Botcazou <ebotcazou@adacore.com>
6ef9a246 8412
0ab29e91 8413 Re-apply accidentally reverted change:
6ef9a246 8414
0ab29e91 8415 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
6ef9a246 8416
0ab29e91
EB
8417 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
8418 get_action_description_for): Replace _Unwind_Word with _uleb128_t
8419 and _Unwind_SWord with _sleb128_t.
4b459ae4 8420
38f1f8cb
EB
84212007-09-06 Eric Botcazou <ebotcazou@adacore.com>
8422
8423 * trans.c (convert_with_check): Update call to real_2expN.
8424
db2960f4
SL
84252007-09-05 Sandra Loosemore <sandra@codesourcery.com>
8426
8427 * trans.c (Compilation_unit_to_gnu): Use set_cfun.
8428 * utils.c (end_subprog_body): Likewise.
8429
d70c0bd6
NC
84302007-09-03 Nick Clifton <nickc@redhat.com>
8431
8432 * Make-lang.in: Change copyright header to refer to version 3 of
8433 the GNU General Public License and to point readers at the
8434 COPYING3 file and the FSF's license web page.
8435 * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
8436 Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
8437 namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
8438 treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
8439 Likewise.
8440
8a26ebb6
AC
84412007-08-31 Vincent Celier <celier@adacore.com>
8442
8443 PR ada/4720
8444
8445 * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb,
8446 gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
8447 (Check_Version_And_Help): New procedure in package Switch to process
8448 switches --version and --help.
8449 Use Check_Version_And_Help in GNAT tools
8450
8451 * make.adb: Ditto.
8452 (Compile_Sources): Make sure that sources that are "excluded" are not
8453 compiled.
8454 (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
8455 project file is used.
8456 (Version_Switch): Remove, moved to Switch
8457 (Help_Switch): Remove, moved to Switch
8458 (Display_Version): Remove, moved to Switch
8459
8460 * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
8461 package Switch to process switches --version and --help.
8462 (Display_Version): New procedure
8463
8464 * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
8465
84662007-08-31 Javier Miranda <miranda@adacore.com>
8467
8468 * a-tags.adb (Internal_Tag): Protect the run-time against wrong
8469 internal tags.
8470
84712007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
8472
8473 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
8474 (Mark_Non_Null): If the node for which we just generated an access check
8475 is a reference to an *in* parameter and the reference appears in the
8476 declarative part of a subprogram body, mark the node as known non null.
8477
84782007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
8479
8480 * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
8481 structure of E_Exception to reflect the new flag.
8482 (Is_Raised, Set_Is_Raised): New inlined routines.
8483 Update the usage of available flag to reflect the addition of Is_Raised.
8484 (Is_Raised, Set_Is_Raised): Bodies of new routines.
8485 (Write_Entity_Flags): Write the status of flag Is_Raised.
8486 (Is_Descendent_Of_Address): New entity flag, to simplify handling of
8487 spurious ambiguities when integer literals appear in the context of an
8488 address type that is a visible integer type.
8489
8490 * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
8491 exceptions never being raised.
8492 (Analyze_Raise_Statement): When analyzing an exception, mark it as being
8493 explicitly raised.
8494
84952007-08-31 Javier Miranda <miranda@adacore.com>
8496
8497 * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
8498 statement when compiling under restriction No_Exceptions_Proparation.
8499
85002007-08-31 Ed Schonberg <schonberg@adacore.com>
8501
8502 * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
8503 initialization aggregate for the type, generate itype references for
8504 thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
8505
85062007-08-31 Gary Dismukes <dismukes@adacore.com>
8507
8508 * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
8509 library-level package renaming, pass the declaration associated with
8510 the renaming's special debug variable to Qualify_Entity_Names to ensure
8511 that its encoded name is properly qualified.
8512
8513 * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
8514 occurring in the list of entities to qualify, and do not attempt to
8515 traverse an entity list in that case. Variables associated with
8516` library-level package renamings can now occur in the table.
8517
8518 * exp_dbug.ads: Revise documentation of the encoding for renaming
8519 declarations.
8520
85212007-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8522
8523 * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
8524 access type points to an unconstrained array.
8525
85262007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
8527
8528 * restrict.adb, namet.adb, par-util.adb: Remove redundant type
8529 conversion.
8530
8531 * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
8532 simple redundant qualifications. The check is performed whenever the
8533 expression is a non-overloaded identifier.
8534 (Resolve_Type_Conversion): Enchance the redundant type conversion check
8535 to include loop parameters.
8536 (Valid_Conversion): Avoid generation of spurious error message.
8537
85382007-08-31 Bob Duff <duff@adacore.com>
8539
8540 * par-ch4.adb (P_Simple_Expression): Fold long sequences of
8541 concatenations of string literals into a single literal, in order to
8542 avoid very deep recursion in the front end, which was causing stack
8543 overflow.
8544
8545 * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
8546 string, and the right operand is a string literal (the case of "" &
8547 "..."), optimize by avoiding copying the right operand -- just use the
8548 value of the right operand directly.
8549
8550 * stringt.adb (Store_String_Chars): Optimize by growing the
8551 String_Chars table all at once, rather than appending characters one by
8552 one.
8553 (Write_String_Table_Entry): If the string to be printed is very long,
8554 just print the first few characters, followed by the length. Otherwise,
8555 doing "pn(n)" in the debugger can take an extremely long time.
8556
8557 * sem_prag.adb (Process_Interface_Name): Replace loop doing
8558 Store_String_Char with Store_String_Chars.
8559
85602007-08-31 Vincent Celier <celier@adacore.com>
8561
8562 * prj-attr.adb: Add new attribute Excluded_Source_Files
8563
8564 * prj-nmsc.adb: Use attribute Excluded_Source_Files before
8565 Locally_Removed_Files.
8566
8567 * snames.ads, snames.adb: New standard name Excluded_Source_Files
8568
85692007-08-31 Ed Schonberg <schonberg@adacore.com>
8570
8571 * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
8572 clauses of subunits, ignore limited_with_clauses that are illegal and
8573 have not been fully analyzed.
8574
85752007-08-31 Ed Schonberg <schonberg@adacore.com>
8576
8577 * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
8578 flag, for effiency. It is called when analyzing arithmetic operators
8579 and also for actuals in calls that are universal_integers. The flag is
8580 set for the predefined type address, and for any type or subtype
8581 derived from it.
8582
8583 * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
8584 Universal_Integer, when the formal is a descendent of address and the
8585 call appears in user code.
8586 (Analyze_Selected_Component): if the prefix is a private extension, the
8587 tag component is visible.
8588
8589 * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
8590 entity flag.
8591
85922007-08-31 Robert Dewar <dewar@adacore.com>
8593
8594 * s-fileio.adb (Open): Normalize file name to lower case in non-case
8595 sensitive file name systems to avoid unexpected mismatch in Vista.
8596
85972007-08-31 Vincent Celier <celier@adacore.com>
8598
8599 * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
8600
86012007-08-31 Vincent Celier <celier@adacore.com>
8602
8603 * symbols-vms.adb (Initialize): Read symbol files with continuation
8604 lines
8605 (Finalize): If symbol is long, split the line
8606
86072007-08-31 Vincent Celier <celier@adacore.com>
8608
8609 * fmap.ads: Minor comment updates
8610
86112007-08-31 GNAT Script <nobody@adacore.com>
8612
8613 * Make-lang.in: Makefile automatically updated
8614
86152007-08-31 Bob Duff <duff@adacore.com>
8616
8617 * sinfo.ads: Minor comment fix.
8618
86192007-08-31 Thomas Quinot <quinot@adacore.com>
8620
8621 * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
8622 with implementation.
8623 Documentation cleanup only.
8624
86252007-08-31 Sergey Rybin <rybin@adacore.com>
8626
8627 * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
8628 gnatpp '--separate-stmt-name' option.
8629 Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
8630 option.
8631
8632 * gnat_ugn.texi: Add description for the new gnatpp
8633 '--separate-stmt-name' and '--use-on-new-line' options.
8634
22d2aa96
BE
86352007-08-31 Ben Elliston <bje@au.ibm.com>
8636
8637 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
8638 when compiling for powerpc64-*-linux.
8639 * system-linux-ppc64.ads: New file.
8640
51743df8
KW
86412007-08-22 Krister Walfridsson <cato@df.lth.se>
8642
8643 * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
8644 NetBSD.
8645
ac7d7749
KG
86462007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8647
8648 * misc.c (gnat_type_max_size): Constify.
8649
833eddff
AC
86502007-08-16 Gary Dismukes <dismukes@adacore.com>
8651
8652 * cstand.adb (Create_Standard): Create an entity for a zero-sized type
8653 associated with Standard_Debug_Renaming_Type, to be used as the type of
8654 the special variables whose names provide debugger encodings for
8655 renaming declarations.
8656
8657 * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
8658 (Set_Debug_Renaming_Link): Change to set Node25.
8659 (Write_Field13_Name): Remove case for E_Enumeration_Literal.
8660 (Write_Field25_Name): Add case for E_Variable to output
8661 "Debug_Renaming_Link".
8662 (Write_Field23_Name): Correct the output string for "Limited_View".
8663
8664 * exp_dbug.adb: Add with and use of Tbuild.
8665 (Debug_Renaming_Declaration): Replace creation of an enumeration type
8666 and literal with creation of a variable of type
8667 Standard_Debug_Renaming_Type whose name encodes both the renamed object
8668 and the entity of the renaming declaration.
8669 (Qualify_Entity_Name): Add the delayed qualification of the entity name
8670 part of the name of a variable that has a Debug_Renaming_Link.
8671
8672 * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
8673 special type to be associated with variables that provide debugger
8674 encodings for renaming declarations.
8675
86762007-08-16 Gary Dismukes <dismukes@adacore.com>
8677 Ed Schonberg <schonberg@adacore.com>
8678 Javier Miranda <miranda@adacore.com>
8679
8680 * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
8681 ancestor part given by an aggregate to test for an unchecked conversion,
8682 since this can occur in some cases when the ancestor part is a function
8683 call, and we don't want to fall into the recursive call to this
8684 procedure in that case.
8685
8686 * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
8687 stream attributes on limited types to account for user-specified
8688 attributes as well as whether Input (resp. Output) becomes available
8689 due to Read (resp. Write) being available for the type. Change Boolean
8690 variable to the more accurate name
8691 Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
8692 double-"not" predicate at beginning of return statement to more
8693 understandable form.
8694
8695 * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
8696 return has an associated N_Handled_Sequence_Of_Statements, then wrap it
8697 in a block statement and use that as the first statement of the
8698 expanded return rather than incorrectly using the handled sequence as
8699 the first statement.
8700
8701 * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
8702 operation, generate an explicit freeze node for it rather than
8703 generating extra formals, to ensure that gigi has the proper order of
8704 elaboration for anonymous subtypes in the signature of the subprograms.
8705 (Build_In_Place_Formal): Move assertion to beginning of loop.
8706 (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
8707 applied to a function call (occurs for some cases of 'Input).
8708 (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
8709 applied to a function call (occurs for some cases of 'Input).
8710
8711 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
8712 2005, generate an extended return statement enclosing the result object
8713 and 'Read call.
8714
8715 * freeze.adb (Freeze_Record_Type): Extend the current management of
8716 components that are access type with an allocator as default value: add
8717 missing support to the use of qualified expressions of the
8718 allocator (which also cause freezing of the designated type!)
8719 (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
8720 dispatching operation, since extra formals may be needed by calls to
8721 build-in-place functions (such as stream 'Input).
8722
8723 * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
8724 formals for 'Constrained and accessibility level in the case of a
8725 predefined dispatching operation.
8726
8727 * exp_util.adb (Insert_Actions): A protected body is a valid insertion
8728 point, no need to find the parent node.
8729
87302007-08-16 Javier Miranda <miranda@adacore.com>
8731
8732 * exp_attr.adb (Attribute_Priority): Add missing support for entries
8733 and entry barriers.
8734
87352007-08-16 Javier Miranda <miranda@adacore.com>
8736
8737 * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
8738 is not really required and can introduce regression with the debugger.
8739 The original problem is fixed with the patch written for checks.adb.
8740
87412007-08-16 Thomas Quinot <quinot@adacore.com>
8742
8743 * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
8744 Range_Check on Allocated_Table.
8745
87462007-08-16 Vincent Celier <celier@adacore.com>
8747
8748 * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
8749 Including_Non_Switch set to False.
8750 (Gnatmake): For the compiler, call Test_If_Relative_Path with
8751 Including_Non_Switch set to False.
8752
8753 * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
8754 parameter Including_Non_Switch, defaulted to True. When
8755 Including_Non_Switch is False, options that are not switches and
8756 appear as relative path are not converted to absolute paths.
8757
87582007-08-16 Nicolas Roche <roche@adacore.com>
8759
8760 * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
8761 makefiles
8762
8763 * Make-lang.in: Update dependencies
8764
87652007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
8766
8767 * sem_ch10.adb (Has_With_Clause): If the name of the with clause
8768 currently inspected is a selected component, retrieve the entity of
8769 its selector.
8770 (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
8771 from the immediate ancestor of Main_Unit_Entity.
8772 (Install_Limited_Withed_Unit): Do not install the limited view of
8773 package P if P is reachable through an ancestor chain from package C
8774 and C also has a with clause for P in its body.
8775 (Has_Limited_With_Clause): New routine.
8776 (Has_With_Clause): New routine.
8777
87782007-08-16 Ed Schonberg <schonberg@adacore.com>
8779
8780 * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
8781 generic for an enclosing instance is a global reference, even though
8782 its scope is the enclosing instance.
8783
87842007-08-16 Gary Dismukes <dismukes@adacore.com>
8785 Javier Miranda <miranda@adacore.com>
8786
8787 * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
8788 initialize a limited object.
8789 (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
8790 13/2 and 14/2.
8791 Make sure Has_Complex_Representation is inherited by derived type.
8792
87932007-08-16 Robert Dewar <dewar@adacore.com>
8794
8795 * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
8796 exception case
8797
87982007-08-16 Ed Schonberg <schonberg@adacore.com>
8799
8800 * sem_disp.adb (Check_Dispatching_Operation): If the operation
8801 implements an operation inherited from a progenitor interface, verify
8802 that they are subtype-conformant.
8803
88042007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
8805 Bob Duff <duff@adacore.com>
8806 Nicolas Setton <setton@adacore.com>
8807
8808 * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
8809 (Resolve): Alphabetize local variables. Add new variable From_Lib. When
8810 the statement which is being resolved comes from a predefined library
8811 unit, all non-predefined library interpretations are skipped.
8812 (Resolve_Op_Concat): If string concatenation was folded in the parser,
8813 but the "&" is user defined, give an error, because the folding would
8814 be wrong.
8815
8816 * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
8817 the parser has folded a long sequence of concatenations of string
8818 literals.
8819
8820 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
8821 and "JMP_BUF" variables as artificial.
8822 (N_String_Literal): Do not use alloca for very long string literals. Use
8823 xmalloc/free instead. Otherwise the stack might overflow.
8824
8825 * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
8826 compiler.
8827
88282007-08-16 Vincent Celier <celier@adacore.com>
8829
8830 * vms_conv.adb (Process_Argument): Ensure that project related options
8831 are not put in the -cargs section when using GNAT COMPILE.
8832
88332007-08-16 Robert Dewar <dewar@adacore.com>
8834
8835 * gnat_ugn.texi: Add note on preprocessing (output file not written)
8836
88372007-08-16 Thomas Quinot <quinot@adacore.com>
8838
8839 * a-tags.adb: Minor reformatting.
8840
88412007-08-16 Bob Duff <duff@adacore.com>
8842
8843 * sem_type.ads, sem_ch4.adb: Minor reformatting.
8844
ab6328d0
AC
88452007-08-14 Thomas Quinot <quinot@adacore.com>
8846
8847 * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads,
8848 s-osinte-interix.ads, system-interix.ads: Removed.
8849
88502007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
8851
8852 * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
8853 calls to Check_Within_Time_Bounds.
8854 ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
8855 (Difference): Account for possible rounding of the resulting difference
8856
88572007-08-14 Robert Dewar <dewar@adacore.com>
8858
8859 * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
8860 par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
8861 s-osinte-solaris.adb, s-osinte-solaris.ads,
8862 s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
8863
8864 * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
8865 switch -gnatyS. Enable -gnatyS in GNAT style check mode
8866
88672007-08-14 Robert Dewar <dewar@adacore.com>
8868 Ed Schonberg <schonberg@adacore.com>
8869
8870 * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads:
8871 Suppress unmodified in-out parameter warning in some cases
8872 This patch is a also fairly significant change to the way suppressible
8873 checks are handled.
8874
8875 * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
8876 needed for access to concurrent record types generated by the expander.
8877 (Generate_Range_Check): When generating a temporary to capture the
8878 value of a conversion that requires a range check, set the type of the
8879 temporary before rewriting the node, so that the type is always
8880 properly placed for back-end use.
8881 (Apply_Float_Conversion_Check): Handle case where the conversion is
8882 truncating.
8883 (Get_Discriminal): Code reformatting. Climb the scope stack looking
8884 for a protected type in order to examine its discriminants.
8885
88862007-08-14 Robert Dewar <dewar@adacore.com>
8887 Gary Dismukes <dismukes@adacore.com>
8888 Ed Schonberg <schonberg@adacore.com>
8889 Thomas Quinot <quinot@adacore.com>
8890
8891 * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb,
8892 a-stwisu.adb, a-strsup.adb: Fix warnings for range
8893 tests optimized out.
8894
8895 * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
8896 (Get_Allocator_Final_List): For the case of an anonymous access type
8897 that has a specified Associated_Final_Chain, do not go up to the
8898 enclosing scope.
8899 (Expand_N_Type_Conversion): Test for the case of renamings of access
8900 parameters when deciding whether to apply a run-time accessibility
8901 check.
8902 (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
8903 aggregate code before allocator, and ahead of declaration for
8904 temporary, to prevent access before elaboration when the allocator is
8905 an actual for an access parameter.
8906 (Expand_N_Type_Conversion): On an access type conversion involving an
8907 access parameter, do not apply an accessibility check when the
8908 operand's original node was an attribute other than 'Access. We now
8909 create access conversions for the expansion of 'Unchecked_Access and
8910 'Unrestricted_Access in certain cases and clearly accessibility should
8911 not be checked for those.
8912
8913 * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
8914 includes a type conversion of a packed component that has been expanded,
8915 recover the original expression for the object, and use this expression
8916 in the post-call assignment statement, so that the assignment is made
8917 to the object and not to a back-end temporary.
8918 (Freeze_Subprogram): In case of primitives of tagged types not defined
8919 at the library level force generation of code to register the primitive
8920 in the dispatch table. In addition some code reorganization has been
8921 done to leave the implementation clear.
8922 (Expand_Call): When expanding an inherited implicit conversion,
8923 preserve the type of the inherited function after the intrinsic
8924 operation has been expanded.
8925
8926 * exp_ch2.ads, exp_ch2.adb
8927 (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
8928 of an entry formal appearing in an assignment statement does not assign
8929 to the formal.
8930 (Expand_Current_Value): Instead of calling a routine to determine
8931 whether the prefix of an attribute reference should be optimized or
8932 not, prevent the optimization of such prefixes all together.
8933
8934 * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
8935 component whose prefix is known to be of an access type is an implicit
8936 dereference and does not assign to the prefix.
8937
89382007-08-14 Ed Schonberg <schonberg@adacore.com>
8939 Robert Dewar <dewar@adacore.com>
8940
8941 * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
8942 itype is visited, make an entry into table to link associated node and
8943 new itype.
8944 Add comments and correct harmless error in Build_NCT_Hash_Tables
8945 (Array_Aggr_Subtype): Associate each itype created for an index type to
8946 the corresponding range construct, and not to the aggregate itself. to
8947 maintain a one-to-one correspondence between itype and its associated
8948 node, to prevent errors when complex expression is copied.
8949 Fix mishandling of multiple levels of parens
8950
8951 * sem_aggr.adb: Create a limited view of an incomplete type, to make
8952 treatment of limited views uniform for all visible declarations in a
8953 limited_withed package.
8954 (New_Copy_Tree): If hash table is being used and itype is visited,
8955 make an entry into table to link associated node and new itype.
8956 (Resolve_Record_Aggregate): Do not add an others box association for a
8957 discriminated record component that has only discriminants, when there
8958 is a box association for the component itself.
8959
8960 * par-ch4.adb: Fix mishandling of multiple levels of parens
8961
89622007-08-14 Robert Dewar <dewar@adacore.com>
8963
8964 * comperr.adb: Fix problem with suppressing warning messages from gigi
8965
8966 * erroutc.ads, erroutc.adb, errout.ads,
8967 errout.adb (Write_Eol): Remove trailing spaces before writing the line
8968 (Write_Eol_Keep_Blanks): New procedure to write a line, including
8969 possible trailing spaces.
8970 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
8971 Fix problem with suppressing warning messages from back end
8972 Improve handling of deleted warnings
8973
8974 * gnat1drv.adb:
8975 Fix problem with suppressing warning messages from back end
8976 Handle setting of Static_Dispatch_Tables flag.
8977
8978 * prepcomp.adb:
8979 Fix problem with suppressing warning messages from back end
8980
8981 * exp_intr.adb: Improve handling of deleted warnings
8982
89832007-08-14 Robert Dewar <dewar@adacore.com>
8984
8985 * debug.adb: Improve -gnatdI to cover all cases of serialization
8986 Add documentation of dZ, d.t
8987
8988 * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
8989 serialization.
8990 (Sprint_Node_Actual): Generate new output associated with implicit
8991 importation and implicit exportation of object declarations.
8992
89932007-08-14 Ed Schonberg <schonberg@adacore.com>
8994 Robert Dewar <dewar@adacore.com>
8995 Javier Miranda <miranda@adacore.com>
8996 Gary Dismukes <dismukes@adacore.com>
8997
8998 * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
8999 to make treatment of limited views uniform for all visible declarations
9000 in a limited_withed package.
9001 Improve warnings for in out parameters
9002 (Set_Related_Interaface/Related_Interface): Allow the use of this
9003 attribute with constants.
9004 (Write_Field26_Name): Handle attribute Related_Interface in constants.
9005 Warn on duplicate pragma Preelaborable_Initialialization
9006
9007 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
9008 generation of a freezing node to ensure proper management of null
9009 excluding access types in the backend.
9010 (Create_Extra_Formals): Test base type of the formal when checking for
9011 the need to add an extra accessibility-level formal. Pass the entity E
9012 on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
9013 originally being done in a couple of cases), to ensure that the
9014 Extra_Formals list gets set on the entity E when the first entity is
9015 added.
9016 (Conforming_Types): Add missing calls to Base_Type to the code that
9017 handles anonymous access types. This is required to handle the
9018 general case because Process_Formals builds internal subtype entities
9019 to handle null-excluding access types.
9020 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
9021 functions that need it, even when not marked Requires_Overriding.
9022 Improve warnings for in out parameters
9023 (Analyze_Function_Return): Warn for disallowed null return
9024 Warn on return from procedure with unset out parameter
9025 Ensure consistent use of # in error messages
9026 (Check_Overriding_Indicator): Add in parameter Is_Primitive.
9027 (Analyze_Function_Return): Move call to Apply_Constraint_Check before
9028 the implicit conversion of the expression done for anonymous access
9029 types. This is required to generate the code of the null excluding
9030 check (if required).
9031
9032 * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
9033 A formal parameter is never publicly referenceable outside of its body.
9034 (Check_References): For an unreferenced formal parameter in an accept
9035 statement, use the same warning circuitry as for subprogram formal
9036 parameters.
9037 (Warn_On_Unreferenced_Entity): New subprogram, taken from
9038 Output_Unreferenced_Messages, containing the part of that routine that
9039 is now reused for entry formals as described above.
9040 (Goto_Spec_Entity): New function
9041 (Check_References): Do not give IN OUT warning for dispatching operation
9042 Improve warnings for in out parameters
9043 (Test_Ref): Check that the entity is not undefinite before calling
9044 Scope_Within, in order to avoid infinite loops.
9045 Warn on return from procedure with unset out parameter
9046 Improved warnings for unused variables
9047
90482007-08-14 Robert Dewar <dewar@adacore.com>
9049 Javier Miranda <miranda@adacore.com>
9050 Gary Dismukes <dismukes@adacore.com>
9051
9052 * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
9053 (Expand_N_Attribute_Reference): Further unify the handling of the
9054 three forms of access attributes, using common code now for all three
9055 cases. Add a test for the case of applying an access attribute to
9056 an explicit dereference when the context is an access-to-interface
9057 type. In that case we need to apply the conversion to the prefix
9058 of the explicit dereference rather than the prefix of the attribute.
9059 (Attribute_Version, UET_Address): Set entity as internal to ensure
9060 proper dg output of implicit importation.
9061 (Expand_Access_To_Type): Removed.
9062 (Expand_N_Attribute_Reference): Merge the code from the three cases
9063 of access attributes, since the processing is largely identical for
9064 these cases. The substantive fix here is to process the case of a
9065 type name prefix (current instance case) before handling the case
9066 of interface prefixes.
9067
90682007-08-14 Thomas Quinot <quinot@adacore.com>
9069 Ed Schonberg <schonberg@adacore.com>
9070 Javier Miranda <miranda@adacore.com>
9071 Robert Dewar <dewar@adacore.com>
9072
9073 * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
9074 (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
9075 type that is an anonymous access to controlled object, establish
9076 an associated finalization chain to avoid corrupting the global
9077 finalization list when a dynamically allocated object designated
9078 by such a component is deallocated.
9079 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
9080 functions that need it, even when not marked Requires_Overriding.
9081 (Initialize_Tag): Replace call to has_discriminants by call to
9082 Is_Variable_Size_Record in the circuitry that handles the
9083 initialization of secondary tags.
9084 (Is_Variable_Size_Record): New implementation.
9085 (Expand_N_Object_Declaration): Suppress call to init proc if there is a
9086 Suppress_Initialization pragma for a derived type.
9087 (Is_Variable_Size_Record): New subprogram.
9088 (Build_Offset_To_Top_Functions): New implementation that simplifies the
9089 initial version of this routine and also fixes problems causing
9090 incomplete initialization of the table of interfaces.
9091 (Build_Init_Procedure): Improve the generation of code to initialize the
9092 the tag components of secondary dispatch tables.
9093 (Init_Secondary_Tags): New implementation that simplifies the previous
9094 version of this routine.
9095 (Make_DT): Add parameter to indicate when type has been frozen by an
9096 object declaration, for diagnostic purposes.
9097 (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
9098 diagnose attemps to freeze a subprogram when some untagged type of its
9099 profile is a private type whose full view has not been analyzed yet.
9100 (Freeze_Array_Type): Generate init proc for packed array if either
9101 Initialize or Normalize_Scalars is set.
9102 (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
9103 constructing the new profile, copy the null_exclusion indicator for each
9104 parameter, to ensure full conformance of the new body with the spec.
9105
9106 * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
9107 Create wrappers for constructor functions that need it, even when not
9108 marked Requires_Overriding.
9109 (Covers): Handle properly designated types of anonymous access types,
9110 whose non-limited views are themselves incomplete types.
9111 (Add_Entry): Use an entity to store the abstract operation which hides
9112 an interpretation.
9113 (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
9114 (Collect_Interps): Use Empty as an actual for Abstract_Op in the
9115 initialization aggregate.
9116 (Function_Interp_May_Be_Hidden): Rename to
9117 Function_Interp_Has_Abstract_Op.
9118 (Has_Compatible_Type): Remove machinery that skips interpretations if
9119 they are labeled as potentially hidden by an abstract operator.
9120 (Has_Hidden_Interp): Rename to Has_Abstract_Op.
9121 (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
9122 (Write_Overloads): Output the abstract operator if present.
9123 (Add_Entry): Before inserting a new entry into the interpretation table
9124 for a node, determine whether the entry will be disabled by an abstract
9125 operator.
9126 (Binary_Op_Interp_May_Be_Hidden): New routine.
9127 (Collect_Interps): Add value for flag May_Be_Hidden in initialization
9128 aggregate.
9129 (Function_Interp_May_Be_Hidden): New routine.
9130 (Has_Compatible_Type): Do not consider interpretations hidden by
9131 abstract operators when trying to determine whether two types are
9132 compatible.
9133 (Has_Hidden_Interp): New routine.
9134 (Set_May_Be_Hidden_Interp): New routine.
9135 (Write_Overloads): Write the status of flag May_Be_Hidden.
9136
91372007-08-14 Ed Schonberg <schonberg@adacore.com>
9138 Javier Miranda <miranda@adacore.com>
9139
9140 * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
9141 types declared in the declarative part of a nested package body or in
9142 the proper body of a stub.
9143 (Set_All_DT_Position): Add missing check to avoid wrong assignation
9144 of the same dispatch table slot to renamed primitives.
9145 (Make_Select_Specific_Data_Table): Handle private types.
9146 (Tagged_Kind): Handle private types.
9147 (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
9148 output of implicit importation and exportation.
9149 (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
9150 first formal of the thunk is always associated with the controlling
9151 type. In addition perform the following code cleanup: remove formal
9152 Thunk_Alias which is no longer required, cleanup evaluation of the
9153 the controlling type, and update the documentation.
9154 Replace occurrence of Default_Prim_Op_Count by
9155 Max_Predef_Prims. Addition of compile-time check to verify
9156 that the value of Max_Predef_Prims is correct.
9157 (Check_Premature_Freezing): Apply check in Ada95 mode as well.
9158 (Make_DT): Add parameter to indicate when type has been frozen by an
9159 object declaration, for diagnostic purposes.
9160 (Build_Static_Dispatch_Tables): New subprogram that takes care of the
9161 construction of statically allocated dispatch tables.
9162 (Make_DT): In case of library-level tagged types export the declaration
9163 of the primary tag. Remove generation of tags (now done by Make_Tags).
9164 Additional modifications to handle non-static generation of dispatch
9165 tables. Take care of building tables for asynchronous interface types
9166 (Make_Tags): New subprogram that generates the entities associated with
9167 the primary and secondary tags of Typ and fills the contents of Access_
9168 Disp_Table. In case of library-level tagged types imports the forward
9169 declaration of the primary tag that will be declared later by Make_DT.
9170 (Expand_Interface_Conversion): In case of access types to interfaces
9171 replace an itype declaration by an explicit type declaration to avoid
9172 problems associated with the scope of such itype in transient blocks.
9173
91742007-08-14 Robert Dewar <dewar@adacore.com>
9175 Ed Schonberg <schonberg@adacore.com>
9176 Javier Miranda <miranda@adacore.com>
9177
9178 * exp_util.ads, exp_util.adb:
9179 This patch replaces a number of occurrences of explicit tests for N_Null
9180 with calls to Known_Null. This improves tracking of null values, since
9181 Known_Null also catches null constants, and variables currently known to
9182 be null, so we get better tracking.
9183 (Ensure_Defined): create an itype reference only in the scope of the
9184 itype.
9185 (Side_Effect_Free): A selected component of an access type that
9186 denotes a component with a rep clause must be treated as not
9187 side-effect free, because if it is part of a linked structure its
9188 value may be affected by a renaming.
9189 (Expand_Subtype_From_Expr): For limited objects initialized with build
9190 in place function calls, do nothing; otherwise we prematurely introduce
9191 an N_Reference node in the expression initializing the object, which
9192 breaks the circuitry that detects and adds the additional arguments to
9193 the called function. Bug found working in the new patch for statically
9194 allocated dispatch tables.
9195 (Is_Library_Level_Tagged_Type): New subprogram.
9196 (Remove_Side_Effects): If the expression of an elementary type is an
9197 operator treat as a function call.
9198 (Make_Literal_Range): If the index type of the array is not integer, use
9199 attributes properly to compute the constraint on the resulting aggregate
9200 which is a string.
9201
9202 * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
9203 class-wide type whose base type is an incomplete private type, leave
9204 class-wide type unfrozen so that freeze nodes can be generated
9205 properly at a later point.
9206 (Freeze_Entity, array case): Handle case of pragma Pack and component
9207 size attributre clause for same array.
9208
92092007-08-14 Vincent Celier <celier@adacore.com>
9210
9211 * prj.ads, prj.adb: Update Project Manager to new attribute names for
9212 gprbuild.
9213 Allow all valid declarations in configuration project files
9214 (Reset): Initialize all tables and hash tables in the project tree data
9215 Major update of the Project Manager and of the project aware tools,
9216 including gprmake, so that the same sources in the GNAT repository
9217 can be used by gprbuild.
9218 (Slash_Id): Change type to be Path_Name_Type
9219 (Slash): Return a Path_Name_Type instead of a File_Name_Type
9220
9221 * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
9222 gprbuild.
9223 Update Project Manager to new attribute names for ghprbuild
9224 Allow all valid declarations in configuration project files
9225 Major update of the Project Manager and of the project aware tools,
9226 including gprmake, so that the same sources in the GNAT repository
9227 can be used by gprbuild.
9228
9229 * prj-com.ads:
9230 Major update of the Project Manager and of the project aware tools,
9231 including gprmake, so that the same sources in the GNAT repository
9232 can be used by gprbuild.
9233
9234 * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
9235 insensitive flag for attributes with optional index.
9236 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
9237 array attribute, put the index in lower case.
9238 Update Project Manager to new attribute names for ghprbuild
9239 Allow all valid declarations in configuration project files
9240 Major update of the Project Manager and of the project aware tools,
9241 including gprmake, so that the same sources in the GNAT repository
9242 can be used by gprbuild.
9243
9244 * prj-env.ads, prj-env.adb:
9245 Major update of the Project Manager and of the project aware tools,
9246 including gprmake, so that the same sources in the GNAT repository
9247 can be used by gprbuild.
9248 (Get_Reference): Change type of parameter Path to Path_Name_Type
9249
9250 * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
9251 removing '-' from the path to start with the first character of the
9252 next directory.
9253 Major update of the Project Manager and of the project aware tools,
9254 including gprmake, so that the same sources in the GNAT repository
9255 can be used by gprbuild.
9256 Major update of the Project Manager and of the project aware tools,
9257 including gprmake, so that the same sources in the GNAT repository
9258 can be used by gprbuild.
9259
9260 * prj-nmsc.ads, prj-nmsc.adb:
9261 Update Project Manager to new attribute names for ghprbuild
9262 Allow all valid declarations in configuration project files
9263 (Search_Directories): Detect subunits that are specified with an
9264 attribute Body in package Naming. Do not replace a source/unit in the
9265 same project when the order of the source dirs are known. Detect
9266 duplicate sources/units in the same project when the order of the
9267 source dirs are not known.
9268 (Check_Ada_Name): Allow all identifiers that are not reserved words
9269 in Ada 95.
9270 Major update of the Project Manager and of the project aware tools,
9271 including gprmake, so that the same sources in the GNAT repository
9272 can be used by gprbuild.
9273 (Look_For_Sources): If the list of sources is empty, set the object
9274 directory of non extending project to nil.
9275 Change type of path name variables to be Path_Name_Type
9276 (Locate_Directory): Make sure that on Windows '/' is converted to '\',
9277 otherwise creating missing directories will fail.
9278
9279 * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb,
9280 prj-part.ads, prj-part.adb:
9281 Major update of the Project Manager and of the project aware tools,
9282 including gprmake, so that the same sources in the GNAT repository
9283 can be used by gprbuild.
9284
9285 * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
9286 insensitive flag for attributes with optional index.
9287 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
9288 array attribute, put the index in lower case.
9289 (Parse_Variable_Reference): Allow the current project name to be used in
9290 the prefix of an attribute reference.
9291
9292 * prj-util.ads, prj-util.adb
9293 (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
9294 defaulted to False. When True, always check against indexes in lower
9295 case.
9296
9297 * snames.ads, snames.h, snames.adb:
9298 Update Project Manager to new attribute names for gprbuild
9299 Allow all valid declarations in configuration project files
9300
93012007-08-14 Robert Dewar <dewar@adacore.com>
9302 Ed Schonberg <schonberg@adacore.com>
9303
9304 * opt.ads: Warning for non-local exception propagation now off by
9305 default
9306 New switch -gnatI to disable representation clauses
9307 Implement new pragma Implicit_Packing
9308
9309 * usage.adb:
9310 Warning for non-local exception propagation now off by default
9311 Add warning for unchecked conversion of pointers wi different
9312 conventions.
9313 New switch -gnatI to disable representation clauses
9314
9315 * usage.adb: new switch -gnatyS
9316
9317 * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
9318 note that aggregates of anonymous array types are not flagged.
9319 -gnatwc now includes membership tests optimized away
9320 -gnatw.x warnings are now off by default
9321 Added conditional compilation Appendix
9322 Add documentation of -gnatI
9323 Add documentation for new -gnatyS style check
9324 Update documentation about SAL and auto-init on Windows.
9325
9326 * gnat_rm.texi:
9327 Add documentation for pragma Check_Name and 'Enabled attribute
9328 Document that Eliminate on dispatching operation is ignored
9329 Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
9330 Document pragma Main
9331 Document pragma Implicit_Packing
9332
9333 * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
9334 different conventions
9335 New switch -gnatI to disable representation clauses
9336
9337 * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
9338 recognized, report the invalid characters including "-gnat" instead of
9339 just the first character in the switch.
9340 New switch -gnatI to disable representation clauses
9341 Set Warn_On_Object_Renames_Function true for -gnatg
9342
9343 * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
9344 Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
9345 Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
9346 to switch -aP (add directory to project search dir).
9347
9348 * par-prag.adb: Implement new pragma Implicit_Packing
9349
9350 * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
9351 type as having a non-standard representation, to force expansion on
9352 conversion to related types.
9353 (Analyze_Pragma): Warn on misspelled pragma
9354 (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
9355 Ensure consistent use of # in error messages
9356 Implement pragma Implicit_Packing
9357
93582007-08-14 Olivier Hainque <hainque@adacore.com>
9359 Eric Botcazou <ebotcazou@adacore.com>
9360
9361 * targtyps.c (get_target_maximum_default_alignment): New function.
9362 Maximum alignment
9363 that the compiler might choose by default for a type or object.
9364 (get_target_default_allocator_alignment): New function. Alignment known
9365 to be honored by the target default allocator.
9366 (get_target_maximum_allowed_alignment): New function. Maximum alignment
9367 we might accept for any type or object on the target.
9368 (get_target_maximum_alignment): Now synonym of maximum_default_alignment
9369
9370 * gigi.h (get_target_maximum_default_alignment): Declare new function.
9371 (get_target_default_allocator_alignment): Likewise.
9372 (get_target_maximum_allowed_alignment): Likewise.
9373
9374 PR ada/19037
9375 * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
9376 result of a function call, first try to use a stabilized reference for
9377 a constant renaming too.
9378 (validate_alignment): Use target_maximum_allowed_alignment instead of
9379 MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
9380 (gnat_to_gnu_entity): Use common nodes directly.
9381 (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
9382 alignment and size for the object.
9383 (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
9384 and N_Procedure_Call_Statement.
9385 (takes_address): Rename to lvalue_required_p, add third parameter
9386 'aliased' and adjust recursive calls.
9387 <N_Indexed_Component>: Update 'aliased' from the array type.
9388 <N_Selected_Component>: New case.
9389 <N_Object_Renaming_Declaration>: New Likewise.
9390 (Identifier_to_gnu): Adjust for above changes.
9391 (maybe_stabilize_reference) <CONST_DECL>: New case.
9392
9393 * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
9394 between type variants.
9395 (build_simple_component_ref): Likewise.
9396 (build_call_alloc_dealloc): Use target_default_allocator_alignment
9397 instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
9398 aligning type circuitry for allocations from the default storage pool.
9399 (build_allocator): Likewise.
9400 (build_simple_component_ref): Manually fold the reference for a
9401 constructor if the record type contains a template.
9402
9403 * utils.c (value_zerop): Delete.
9404 (gnat_init_decl_processing): Emit debug info for common types.
9405 (rest_of_record_type_compilation): If a union contains a field
9406 with a non-constant qualifier, treat it as variable-sized.
9407 (finish_record_type): Give the stub TYPE_DECL a name.
9408 (rest_of_record_type_compilation): Likewise.
9409 (convert) <CONSTRUCTOR>: New case. Build a new constructor if
9410 types are equivalent array types.
9411 (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
9412 even if the type is not passed by reference.
9413 (static_ctors, static_dtors): Delete.
9414 (end_subprog_body): Do not record constructors and destructors.
9415 (build_global_cdtor): Delete.
9416 (gnat_write_global_declarations): Do not call build_global_cdtor.
9417
0ab29e91 9418 * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
ab6328d0
AC
9419 -fRTS=rtp is specified.
9420 If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
9421 specified.
9422
9423 * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
9424 of the personality function with SJLJ exceptions.
9425
9426 * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
9427 the name of the personality function with SJLJ exceptions.
9428
94292007-08-14 Robert Dewar <dewar@adacore.com>
9430 Ed Schonberg <schonberg@adacore.com>
9431
9432 * par.ads, par.adb: Improve handling of extra right parens.
9433 (Par): Remove flag From_Limited_With_Clause.
9434
9435 * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
9436 Improve handling of extra right parens.
9437
94382007-08-14 Robert Dewar <dewar@adacore.com>
9439
9440 * par-tchk.adb (TF_Semicolon): Improve error recovery
9441
94422007-08-14 Robert Dewar <dewar@adacore.com>
9443 Ed Schonberg <schonberg@adacore.com>
9444
9445 * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
9446 enumeration type, mark all literals as referenced.
9447 (Eval_Attribute, case 'Image): If the argument is an enumeration
9448 literal and names are available, constant-fold but mark nevertheless as
9449 non-static.
9450 Clean up function names.
9451 (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
9452 comment.
9453 (Requires_Simple_Name_Prefix): Removed.
9454
94552007-08-14 Robert Dewar <dewar@adacore.com>
9456 Ed Schonberg <schonberg@adacore.com>
9457
9458 * sem_ch11.adb: Improved warnings for unused variables
9459
9460 * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
9461 is a synchronized interface, the derived type is limited.
9462 (Analyze_Object_Declaration): Mark the potential coextensions in the
9463 definition and expression of an object declaration node.
9464 (Build_Derived_Type): For the completion of a private type declaration
9465 with a derived type declaration, chain the parent type's representation
9466 items to the last representation item of the derived type (not the
9467 first one) if they are not present already.
9468 (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
9469 object declaration of forward references to tags.
9470 (Access_Subprogram_Declaration): In Ada2005, anonymous access to
9471 subprogram types can appear as access discriminants of synchronized
9472 types.
9473 (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
9474 given in prefixed form as a selected component.
9475 (Process_Discriminants): If not all discriminants have defaults, place
9476 error message on a default that is present.
9477 (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
9478 extend a synchronized tagged type.
9479 Improved warnings for unused variables
9480 (Is_Visible_Component): Fix a visibility hole on a component inherited
9481 by a private extension when parent is itself declared as a private
9482 extension, and the derivation is in a child unit.
9483 (Find_Hidden_Interface): Move spec from the package body.
9484
94852007-08-14 Robert Dewar <dewar@adacore.com>
9486 Ed Schonberg <schonberg@adacore.com>
9487
9488 * sem_ch5.adb: Improve warnings on redundant assignments
9489
9490 * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
9491 parameter
9492 (Is_Synchronized_Tagged_Type): New subprogram that returns true
9493 in case of synchronized tagged types (AARM 3.9.4 (6/2)).
9494 (Safe_To_Capture_Value): Can now return True for constants, even if Cond
9495 is set to False. Improves handling of Known_[Not_]Null.
9496 (Wrong_Type): Special case address arithmetic attempt
9497 (Collect_Abstract_Interfaces): Add new formal to allow collecting
9498 abstract interfaces just using the partial view of private types.
9499 (Has_Abstract_Interfaces): Add new formal to allow checking types
9500 covering interfaces using the partial view of private types.
9501 (Is_Fully_Initialized_Type): Special VM case for uTag component. This
9502 component still needs to be defined in this case, but is never
9503 initialized as VMs are using other dispatching mechanisms.
9504 (Abstract_Interface_List): For a protected type, use base type to get
9505 proper declaration.
9506 Improve warnings on redundant assignments
9507 (Is_Variable): Handle properly an implicit dereference of a prefixed
9508 function call.
9509 (Build_Actual_Subtype): If this is an actual subtype for an
9510 unconstrained formal parameter, use the sloc of the body for the new
9511 declaration, to prevent anomalises in the debugger.
9512
95132007-08-14 Robert Dewar <dewar@adacore.com>
9514
9515 * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
9516 dispatching operation
9517
95182007-08-14 Ed Schonberg <schonberg@adacore.com>
9519 Gary Dismukes <dismukes@adacore.com>
9520
9521 * exp_aggr.ads,
9522 exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
9523 expanded aggregate code before allocator, and ahead of declaration for
9524 temporary, to prevent access before elaboration when the allocator is
9525 an actual for an access parameter.
9526 (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
9527 the TSD and the table of interfaces.
9528 (Convert_To_Assignments): Augment the test for delaying aggregate
9529 expansion for limited return statements to include the case of extended
9530 returns, to prevent creation of an unwanted transient scope.
9531 (Is_Static_Dispatch_Table_Aggregate): New subprogram.
9532 (Expand_Array_Aggregate): Handle aggregates associated with
9533 statically allocated dispatch tables.
9534 (Expand_Record_Aggregate): Handle aggregates associated with
9535 statically allocated dispatch tables.
9536 (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
9537 of anonymous access type.
9538
95392007-08-14 Ed Schonberg <schonberg@adacore.com>
9540
9541 * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
9542 is a variable that renames a slice, use the variable itself in the
9543 expannsion when the renamed expression itself may be modified between
9544 the declaration of the renaming and the array assignment.
9545
95462007-08-14 Jerome Guitton <guitton@adacore.com>
9547
9548 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
9549 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
9550 s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
9551 New functions; dummy implementations.
9552
9553 * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
9554 functions, used to implement the multi-tasks mode routines on VxWorks.
9555
9556 * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
9557 New functions, thin
9558 binding to the VxWorks routines which have changed between VxWorks 5
9559 and 6.
9560 (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
9561 which are not callable from a RTP.
9562
9563 * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
9564 implemented for the multi-tasks mode on VxWorks 5 and 6.
9565
9566 * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
9567
9568 * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
9569 functions.
9570
95712007-08-14 Vincent Celier <celier@adacore.com>
9572
9573 * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb,
9574 gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
9575 mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb,
9576 mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
9577 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
9578 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
9579 mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
9580 procedure.
9581 (Major_Id_Name): New function.
9582 mlib-tgt.ads/mlib.tgt.adb:
9583 (Library_Major_Minor_Id_Supported): New function, default returns True
9584 Most mlib-tgt-*.adb that support shared libraries and symbolic links:
9585 (Build_Dynamic_Library): Add support for major/minor ids for shared libs
9586 Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
9587 Implementation of Library_Major_Minor_Id_Supported returns False
9588 clean.adb:
9589 (Clean_Library_Directory): If major/minor ids are supported, clean all
9590 library files.
9591 Major update of the Project Manager and of the project aware tools,
9592 including gprmake, so that the same sources in the GNAT repository
9593 can be used by gprbuild.
9594
95952007-08-14 Olivier Hainque <hainque@adacore.com>
9596
9597 * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
9598 (GCC_ZCX_Support): Switch to True.
9599
9600 * s-intman-solaris.adb (Notify_Exception): Call
9601 Adjust_Context_For_Raise before raising, as expected for signal
9602 handlers in general.
9603
9604 * s-intman-posix.adb (Notify_Exception): Remove declaration of
9605 Adjust_Context_For_Raise, moved to the spec of this unit to be visible
9606 to other implementation bodies.
9607
9608 * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
9609 be visible by multiple implementation bodies.
9610
9611 * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
9612 only for conditions coming from hardware.
9613 [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
9614 adjustments to signal context prior to exception raise from signal
9615 handler.
9616 (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
9617 mode.
9618 Solaris section: (__gnat_adjust_context_for_raise): New function.
9619 Implementation of the machine context adjustments to perform prior to
9620 raise from a signal handler. Version for both sparc and x86.
9621 (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
9622 (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
9623 prior to raising as expected for any handler, before possible nested
9624 faults to make sure all the contexts in a chain have been adjusted by
9625 the time we propagate.
9626
96272007-08-14 Pascal Obry <obry@adacore.com>
9628
9629 * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
9630 (SYSTEM_INFO): New record.
9631 (SetThreadIdealProcessor): New imported routine needed for supporting
9632 task_info pragma on Windows.
9633
9634 * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
9635 info can be applied to the current host.
9636 (Create_Task): Set the ideal processor if information is present.
9637
9638 * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
9639 a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
9640
96412007-08-14 Olivier Hainque <hainque@adacore.com>
9642
9643 * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
9644 stack size and initial stack pointer value for a given task.
9645 (Enter_Task): Get the stack attributes of the task we are entering and
9646 let the stack checking engine know about them.
9647
9648 * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
9649 Let the stack-checking engine know about the initial sp value and stack
9650 size associated with the current task.
9651 (Set_Stack_Info): If a stack base has been notified for the current
9652 task, honor it. Fallback to the previous less accurate method otherwise.
9653
9654 * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
9655
96562007-08-14 Ed Schonberg <schonberg@adacore.com>
9657
9658 * sem_ch10.adb: Create a limited view of an incomplete type, to make
9659 treatment of limited views uniform for all visible declarations in a
9660 limited_withed package.
9661 Set flag indicating that a subprogram body for a child unit has a
9662 generated spec.
9663 (Analyze_Compilation_Unit): If unit is a subprogram body that has no
9664 separate declaration, remove the unit name from visibility after
9665 compilation, so that environment is clean for subsequent compilations.
9666 (Install_Limited_Context_Clauses): Do not install a
9667 limited_private_with_clause unless the current unit is a body or a
9668 private child unit.
9669 (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
9670 in the same fashion.
9671 (Install_Limited_Withed_Unit): Do not install a limited with clause if
9672 it applies to the declaration of the current package body.
9673 (Remove_Private_With_Clauses): If there is a regular with_clause for
9674 the unit, delete Private_With_Clause from context, to prevent improper
9675 hiding when processing subsequent nested packages and instantiations.
9676
96772007-08-14 Jose Ruiz <ruiz@adacore.com>
9678
9679 * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
9680 dir/file, device:/dir/file, and device:drive_letter:/dir/file as
9681 representing absolute path names.
9682 __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
9683
9684 * cstreams.c (__gnat_full_name for VxWorks): Use
9685 __gnat_is_absolute_path to detect whether we need to add the current
9686 directory to normalize the path.
9687
96882007-08-14 Javier Miranda <miranda@adacore.com>
9689
9690 * a-tags.ads,
9691 a-tags.adb (Displace): Associate a message with the raised CE
9692 exception.
9693 (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
9694 To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
9695 To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
9696 spec.
9697 (Default_Prim_Op_Count): Removed.
9698 (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
9699 Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
9700 Remove pragma Inline_Always.
9701
9702 * rtsfind.ads (Default_Prim_Op_Count): Removed
9703 (Max_Predef_Prims): New entity
9704 (RE_Expanded_Name): Removed
9705 (RE_HT_Link): Removed
9706 (RE_Iface_Tag): Remmoved
9707 (RE_Ifaces_Table): Removed
9708 (RE_Interfaces_Array): Removed
9709 (RE_Interface_Data_Element): Removed
9710 (RE_Nb_Ifaces): Removed
9711 (RE_RC_Offset): Removed
9712 (RE_Static_Offset_To_Top): Removed
9713
9714 * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
9715 formal.
9716 (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
9717 Prim_Op_Count by Max_Predef_Prims.
9718
97192007-08-14 Thomas Quinot <quinot@adacore.com>
9720 Vincent Celier <celier@adacore.com>
9721
9722 * binde.adb (Elab_All_Links): Remove unnecessary call to
9723 Generic_Separately_Compiled (if a unit satisfies this predicate, there
9724 won't be an associated Afile).
9725 (Elab_All_Links): Fail if a referenced unit cannot be found
9726
9727 * bindgen.adb:
9728 Fix comments in bindgen regarding consistency checks done in Bcheck:
9729 the checks are made across units within a partition, not across several
9730 partitions.
9731 Fix generation of C binder file for VxWorks.
9732
9733 * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
9734 Generic_May_Lack_ALI, more descriptive of the current use of the
9735 predicate, and update documentation.
9736
9737 * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
9738 reorganization and documentation update for the case of predefined
9739 library generics (for which we do not reference an Afile).
9740
97412007-08-14 Robert Dewar <dewar@adacore.com>
9742
9743 * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
9744 s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
9745 s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
9746 s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
9747 s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
9748 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
9749 s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
9750 s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
9751 exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
9752 s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
9753 s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
9754 a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
9755 s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
9756 g-altcon.adb: Minor reformatting
9757
9758 ada-tree.h: Delete empty line.
9759
9760 ali.ads: Minor reformatting
9761 Clarification of comments.
9762 Minor spelling correction
9763
9764 * exp_dbug.adb: Add Warnings Off to suppress new warning
9765
9766 * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
9767 formal
9768
9769 * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
9770 value
9771
9772 * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
9773
9774 * a-textio.ads: Reorder the standard input/output/error declarations
9775 for consistency.
9776
9777 * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
9778
9779 * par-ch2.adb: Recognize RM specially in errout
9780 Change 'R'M to RM in all error messages
9781
9782 * scng.adb: Recognize RM specially in errout
9783
9784 * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
9785 N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
9786
9787 * s-direio.adb: Add missing routine header box.
9788
9789 * sem_attr.ads: Add ??? comments
9790
9791 * sem_eval.adb: Recognize RM specially in errout
9792 Change 'R'M to RM in all error messages
9793
9794 * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
9795
9796 * s-tasinf.ads: Fix minor comment typo.
9797
9798 * a-cihama.adb: Minor comment addition
9799
9800 * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
9801 formal
9802
9803 * s-tasinf-tru64.ads: Fix minor comment typo.
9804
9805 * itypes.ads: Comment update.
9806
9807 * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
9808 anymore.
9809
9810 * argv.c: Added protection against null gnat_argv and gnat_envp.
9811
9812 * bcheck.adb (Check_Consistency): Use correct markup character ({) in
9813 warning message when Tolerate_Consistency_Errors is True.
9814
9815 * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
9816 Any_Id, as this subprogram is only applicable to *type* entities (it
9817 sets RM_Size). Instead initialize just Esize and Alignment.
9818
98192007-08-14 Bob Duff <duff@adacore.com>
9820
9821 * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
9822 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
9823 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads,
9824 a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
9825 a-coorse.ads (Next): Applied pragma Inline.
9826 Make all Containers packages Remote_Types (unless they are already
9827 Pure).
9828 (Previous): applied pragma Inline
9829 (Elements_Type): is now a record instead of an array
9830
98312007-08-14 Thomas Quinot <quinot@adacore.com>
9832
9833 * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
9834 of Set_Item.
9835 (Set_Item): When the new item is an element of the currently allocated
9836 table passed by reference, save a copy on the stack if we're going
9837 to reallocate. Also, in Table.Set_Item, make sure we test the proper
9838 variable to determine whether to call Set_Last.
9839
9840 * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
9841 symbols-vms.adb, symbols-processing-vms-alpha.adb,
9842 symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
9843 some occurrences of the pattern
9844 T.Increment_Last;
9845 T.Table (T.Last) := Value;
9846 with a cleaner call to
9847 T.Append (Value);
9848
98492007-08-14 Ed Schonberg <schonberg@adacore.com>
9850 Gary Dismukes <dismukes@adacore.com>
9851 Thomas Quinot <quinot@adacore.com>
9852
9853 * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
9854 derived type with interface progenitors use the analyzed formal as the
9855 parent of the actual, to create renamings for all the inherited
9856 operations in Derive_Subprograms.
9857 (Collect_Previous_Instances): new procedure within of
9858 Load_Parent_Of_Generic, to instantiate all bodies in the compilation
9859 unit being loaded, to ensure that the generation of global symbols is
9860 consistent in different compilation modes.
9861 (Is_Tagged_Ancestor): New function testing the ancestor relation that
9862 takes progenitor types into account.
9863 (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
9864 traversing over the primitives of the formal and actual types to locate
9865 any abstract subprograms of the actual type that correspond to a
9866 nonabstract subprogram of the formal type's ancestor type(s), and issue
9867 an error if such is found.
9868 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
9869 Instantiate_Package_Body, Instantiate_Subprogram_Body):
9870 Remove bogus guard around calls to Inherit_Context.
9871 (Reset_Entity): If the entity is the selector of a selected component
9872 that denotes a named number, propagate constant-folding to the generic
9873 template only if the named number is global to the generic unit.
9874 (Set_Instance_Env): Only reset the compilation switches when compiling
9875 a predefined or internal unit.
9876
98772007-08-14 Ed Schonberg <schonberg@adacore.com>
9878
9879 * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
9880 parameter to determine whether operation applies to the prefix.
9881 (Complete_Object_Operation): If actual has an access type and
9882 controlling formal is not an in_parameter, reject the actual if it is
9883 an access_to_constant type.
9884 (Try_Primitive_Operation): If the type of the prefix is a formal tagged
9885 type, the candidate operations are found in the scope of declaration of
9886 the type, because the type has no primitive subprograms.
9887 (Analyze_Selected_Component): If prefix is class-wide, and root type is
9888 a private extension, only examine visible components before trying to
9889 analyze as a prefixed call.
9890 Change Entity_List to Type_To_Use, for better readability.
9891 (Has_Fixed_Op): Use base type when checking whether the type of an
9892 operator has a user-defined multiplication/division
9893 (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
9894 user-defined operators are available for fixed-point types.
9895
98962007-08-14 Thomas Quinot <quinot@adacore.com>
9897 Ed Schonberg <schonberg@adacore.com>
9898
9899 * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
9900 formal At_Any_Place indicating, when True, that we want to test for
9901 availability of the stream attribute at any place (as opposed to the
9902 current visibility context only).
9903 (Missing_Read_Write_Attributes): A stream attribute is missing for the
9904 purpose of enforcing E.2.2(8) only if it is not available at any place.
9905 Take into account the Ada2005 pragma Has_Preelaborable_Initialization
9906 when checking the legality of an extension aggregate in a preelaborable
9907 package. Treat the literal null as a valid default expression in a
9908 component declaration for a type with preelaborable initialization.
9909 A limited interface is a legal progenitor for the designated type of a
9910 remote access to class-wide type.
9911
99122007-08-14 Thomas Quinot <quinot@adacore.com>
9913 Ed Schonberg <schonberg@adacore.com>
9914
9915 * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
9916 reference): Use correct entity as denoted entity for the selector of
9917 the rewritten node.
9918 (Find_Direct_Name): Add comment about Generate_Reference incorrectly
9919 setting the Referenced_As_LHS flag for entities that are implicitly
9920 dereferenced.
9921 (Find_Type): If the type is an internally generated incomplete type,
9922 mark the full view as referenced, to prevent spurious warnings.
9923 (Find_Selected_Component, Has_Components): Handle properly non-limited
9924 views that are themselves incomplete types.
9925 Handle interfaces visible through limited-with clauses.
9926 (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
9927 subprogram generic actual for which we have generated a renaming.
9928 Warn when the renaming introduces a homonym of
9929 the renamed entity, and the renamed entity is directly visible.
9930
99312007-08-14 Ed Schonberg <schonberg@adacore.com>
9932 Hristian Kirtchev <kirtchev@adacore.com>
9933
9934 * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
9935 appear in the subtree to the current allocator if it is not a static
9936 coextension.
9937 (Resolve_Allocator): Perform cleanup if resolution has determined that
9938 the allocator is not a coextension.
9939 (Resolve): Skip an interpretation hidden by an abstract operator only
9940 when the type of the interpretation matches that of the context.
9941 (Resolve): When looping through all possible interpretations of a node,
9942 do not consider those that are hidden by abstract operators.
9943 (Resolve_Actuals): When verifying that an access to class-wide object
9944 is an actual for a controlling formal, ignore anonymous access to
9945 subprograms whose return type is an access to class_wide type.
9946 (Resolve_Slice): If the prefix of the slice is a selected component
9947 whose type depends on discriminants, build its actual subtype before
9948 applying range checks on the bounds of the slice.
9949 (Valid_Conversion): In an instance or inlined body, compare root types,
9950 to prevent anomalies between private and public views.
9951 (Resolve): Improve error message for ambiguous fixed multiplication
9952 expressions that involve universal_fixed multiplying operations.
9953
99542007-08-14 Javier Miranda <miranda@adacore.com>
9955 Hristian Kirtchev <kirtchev@adacore.com>
9956
9957 * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
9958 location to allow the correct generation of errors in case of
9959 restrictions applied to the expanded code.
9960 (Expand_Entry_Barrier): Remove all generated renamings for a barrier
9961 function if the condition does not reference them.
9962 (Expand_Entry_Body_Declarations): Mark the index constant as having a
9963 valid value.
9964
99652007-08-14 Thomas Quinot <quinot@adacore.com>
8a57e48f 9966 Pablo Oliveira <oliveira@adacore.com>
ab6328d0
AC
9967
9968 * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
9969 typecode parameters for a union (in a variant record), remove
9970 extraneous layer of Any wrapping for member label.
9971 (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
9972 elabration statements, register the package with the name server
9973 at the beginning, not at the end, of the elaboration statements so
9974 that they can create remote access to subprogram values that designate
9975 remote subprograms from the package.
9976
99772007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
9978
9979 * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
9980 values to compute the number of seconds since the Unix Epoc in order to
9981 account for Daylight Savings Time. Perform special processing for dates
9982 that are earlier than the Unix Epoc to obtain a negative number.
9983
99842007-08-14 Emmanuel Briot <briot@adacore.com>
9985
9986 * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
9987 switches.
9988
99892007-08-14 Eric Botcazou <ebotcazou@adacore.com>
9990
9991 * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
9992 binder-generated file is not in Ada.
9993 Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
9994 recorded in the ALI file.
9995 Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
9996
99972007-08-14 Vincent Celier <celier@adacore.com>
9998
9999 * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
10000 (Output_Source): Do nothing if parameter is No_Sdep_Id
10001
10002 * make.adb (Gnatmake): Do not rebuild an archive simply because a
10003 shared library it imports has a later time stamp.
10004 (Check): Resolve the symbolic links in the path name of the object
10005 directory.
10006 Check that the ALI file is in the correct object directory
10007 Check if a file name does not correspond to the mapping of units
10008 to file names.
10009 (Display_Version): New procedure
10010 (Initialize): Process switches --version and --help
10011 Use type Path_Name_Type for path name
10012
100132007-08-14 Paul Hilfinger <hilfinger@adacore.com>
10014
10015 * impunit.adb: Re-organize System.Random_Numbers and
10016 GNAT.Random_Numbers and add to builds.
10017
10018 * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
10019
10020 * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
10021
10022 * a-assert.ads, a-assert.adb: New files.
10023
100242007-08-14 Gary Dismukes <dismukes@adacore.com>
10025
10026 * layout.adb (Layout_Type): In the case of access-to-subprogram types,
10027 if AAMP_On_Target is True, then the size of the type encompasses two
10028 addresses (a static link and a subprogram address), except in the case
10029 of library-level access types.
10030
100312007-08-14 Vincent Celier <celier@adacore.com>
10032
10033 * output.ads, output.adb (Write_Eol): Remove trailing spaces before
10034 writing the line.
10035 (Write_Eol_Keep_Blanks): New procedure to write a line, including
10036 possible trailing spaces.
10037 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
10038
100392007-08-14 Javier Miranda <miranda@adacore.com>
10040
10041 * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
10042 null-excluding access types.
10043
100442007-08-14 Javier Miranda <miranda@adacore.com>
10045
10046 * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
10047 that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
10048 of private types add missing check on matching interfaces in the
10049 partial and full declarations.
10050 (Analyze_Protected_Type): Code cleanup.
10051 (Analyze_Task_Type): Code cleanup.
10052
100532007-08-14 Javier Miranda <miranda@adacore.com>
10054
10055 * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
10056 generated interface thunk.
10057
100582007-08-14 Ed Schonberg <schonberg@adacore.com>
10059
10060 * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
10061 obsolescent warning on application of 'Class to an incomplete type.
10062
10063 * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
10064 prevent obsolescent warning on application of 'Class to an incomplete
10065 type.
10066
100672007-08-14 Pascal Obry <obry@adacore.com>
10068
10069 * s-fileio.adb (Is_Open): Add check for usability of the underlying
10070 file stream.
10071
100722007-08-14 Cyrille Comar <comar@adacore.com>
10073
10074 * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
10075 since it is potentially used in cases implying double finalization of
10076 the same object.
10077
100782007-08-14 Jose Ruiz <ruiz@adacore.com>
10079
10080 * s-tasini.adb (Get_Stack_Info): Move this function to
10081 System.Soft_Links.Tasking because it is common to the full and the
10082 restricted run times.
10083 (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
10084 in SSL.Tasking.Init_Tasking_Soft_Links.
10085
10086 * s-solita.adb (Get_Stack_Info): Function moved from
10087 System.Tasking.Initialization because it is common to the full and the
10088 restricted run times.
10089 (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
10090
100912007-08-14 Arnaud Charlet <charlet@adacore.com>
10092
10093 * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
10094 s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
10095 (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
10096 parameter.
10097
10098 * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
10099 guard to 12K.
10100
101012007-08-14 Gary Dismukes <dismukes@adacore.com>
10102
10103 * s-veboop.adb (SU): New named number initialized to
10104 System.Storage_Unit.
10105 (True_Val): The initialization expression is revised to use SU (=
10106 Storage_Unit) rather than assuming 8 for the component size of an
10107 unpacked Boolean array.
10108
101092007-08-14 Tristan Gingold <gingold@adacore.com>
10110
10111 * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
10112
10113 * tb-ivms.c: New file.
10114
10115 * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
10116
101172007-08-14 Geert Bosch <bosch@adacore.com>
10118
10119 * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
10120 s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
10121 Add required linker pragmas for automatically linking with the gnalasup
10122 linear algebra support library, and the systems math library.
10123 Rename cdot to cdotu and zdot to zdotu.
10124 Update header comment to describe purpose of package.
10125
101262007-08-14 Thomas Quinot <quinot@adacore.com>
10127
10128 * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
10129 an explicitly specified Associated_Final_Chain, use that list.
10130 (Expand_N_Package_Body): Build dispatch tables of library level tagged
10131 types.
10132 (Expand_N_Package_Declaration): Build dispatch tables of library level
10133 tagged types. Minor code cleanup.
10134
101352007-08-14 Vincent Celier <celier@adacore.com>
10136
10137 * gnatchop.adb (Terminate_Program): Remove exception and use
10138 Types.Terminate_Program instead.
10139
10140 * osint.ads, osint.adb (Current_Exit_Status): New global variable
10141 (Find_Program_Name): Added protection against empty name.
10142 (OS_Exit_Through_Exception): New procedure
10143
10144 * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
10145 (OS_Exit_Default): New procedure that contains the previous
10146 implementation of procedure OS_Exit.
10147 (Final_Value): Remove obsolete Interix stuff.
10148
101492007-08-14 Thomas Quinot <quinot@adacore.com>
10150
10151 * g-socket.ads: Reorganize example code so that it also works on
10152 Windows XP.
10153
101542007-08-14 Tristan Gingold <gingold@adacore.com>
10155
10156 * g-trasym.ads: AIX now supports symbolic backtraces.
10157
101582007-08-14 Ed Schonberg <schonberg@adacore.com>
10159
10160 * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
10161 units being loaded to detect circularities. A circularity may be
10162 present even if the current chain of pending units to load starts from
10163 a limited_with_clause.
10164
10165 * lib-load.ads: Change profile of Load_Unit to use a with_clause
10166 rather than a boolean flag, in order to detect circularities in
10167 with_clauses.
10168
10169 * par-load.adb: Use current with_clause in calls to Load_Unit, rather
10170 than propagating the From_Limited_With flag, in order to handle
10171 properly circularities involving with_clauses.
10172
101732007-08-14 Nicolas Setton <setton@adacore.com>
10174
10175 * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
10176 warnings.
10177
101782007-08-14 Arnaud Charlet <charlet@adacore.com>
10179
10180 * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
10181 to build for libgnala.
10182 libgnat: Add rules to build libgnala.a
10183 (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
10184 target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
10185 Add s-osinte-vxworks-kernel.adb to the target pairs of the
10186 kernel run-time lib for VxWorks 6, which would provide a different
10187 implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
10188 x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
10189 running ZCX by default.
10190 Add g-sttsne-locking to LynxOS version.
10191 Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
10192 On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
10193
10194 * system-darwin-x86.ads: New file.
10195
10196 * Make-lang.in: Delete files before copying onto them, so if they are
10197 read-only, the copy won't fail.
10198 Update dependencies
10199
102002007-08-14 Pascal Obry <obry@adacore.com>
10201
10202 * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
10203 naming scheme.
10204
102052007-08-14 Vincent Celier <celier@adacore.com>
10206
10207 * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
10208 (Gcc): Initialize Gcc_Name at the first call
10209
102102007-08-14 Ed Schonberg <schonberg@adacore.com>
10211
10212 * sem_ch7.adb (Analyze_Package_Specification): Do not install private
10213 with_clauses of the enclosing unit when analyzing the package
10214 specification of a nested instance.
10215
102162007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
10217
10218 * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
10219 (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
10220 Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
10221 layout of N_Allocator.
10222
102232007-08-14 Thomas Quinot <quinot@adacore.com>
10224
10225 * rtsfind.adb (Check_RPC): Add PCS version check.
10226
10227 * gnatvsn.ads, gnatvsn.adb: Add PCS version.
10228 (Gnat_Free_Software): New function.
10229
10230 * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
10231 the PCS_Version value from s-parint, used to check that it is consistent
10232 with what exp_dist expects.
10233
10234 * s-parint.ads (PCS_Version): New entity for checking consistency
10235 between exp_dist and PCS.
10236
10237 * gen-soccon.c: (SO_REUSEPORT): New constant.
10238
102392007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
10240
10241 * a-calfor.adb (Image (Duration; Boolean)): Change type of local
10242 variable Sub_Second to Duration in order to accomodate a larger range
10243 of arithmetic operations.
10244
102452007-08-14 Bob Duff <duff@adacore.com>
10246
10247 * g-sttsne-locking.ads: Move comments from spec to body.
10248 * g-sttsne-locking.adb: Move comments from spec to body.
10249 * g-sttsne-vxworks.ads: Removed.
10250 * g-sttsne-vxworks.adb: Removed.
10251
4862826d
ILT
102522007-08-11 Ian Lance Taylor <iant@google.com>
10253
10254 * misc.c (gnat_get_alias_set): Change return type to
10255 alias_set_type.
10256
4d8a9bfe
KG
102572007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10258
10259 * decl.c, utils2.c: Fix whitespace in last change.
10260
39595763
KG
102612007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10262
10263 * decl.c (compare_field_bitpos): Constify.
10264 * utils2.c (compare_elmt_bitpos): Likewise.
10265
08e7e8cb
AJ
102662007-07-27 Aurelien Jarno <aurelien@aurel32.net>
10267
10268 * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by
10269 anonymous access type.
10270 (pthread_sigmask): Now take an access sigset_t.
10271
9e94c78f 102722007-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>
83983455
JS
10273
10274 * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
10275
a8257e58
EB
102762007-06-21 Eric Botcazou <ebotcazou@adacore.com>
10277
10278 PR tree-optimization/25737
10279 * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
10280
5be014d5
AP
102812007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
10282
10283 * trans.c (Attribute_to_gnu): When subtracting an
10284 offset from a pointer, use POINTER_PLUS_EXPR with
10285 NEGATE_EXPR instead of MINUS_EXPR.
10286 (gnat_to_gnu): Likewise.
10287 * utils.c (convert): When converting between
10288 thin pointers, use POINTER_PLUS_EXPR and sizetype
10289 for the offset.
10290 * utils2.c (known_alignment): POINTER_PLUS_EXPR
10291 have the same semantics as PLUS_EXPR for alignment.
10292 (build_binary_op): Add support for the semantics of
10293 POINTER_PLUS_EXPR's operands.
10294 When adding an offset to a pointer, use POINTER_PLUS_EXPR.
10295
b0464c88
RE
102962007-06-11 Rafael Avila de Espindola <espindola@google.com>
10297
a472f546
EB
10298 * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
10299 of get_signed_or_unsigned_type.
b0464c88
RE
10300 * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
10301
93e17a25
BD
103022007-06-11 Bob Duff <duff@adacore.com>
10303 Thomas Quinot <quinot@adacore.com>
10304
10305 * g-stsifd-sockets.adb (Create): Work around strange behavior of
10306 'bind' on windows that causes 'connect' to fail intermittently, by
10307 retrying the 'bind'.
10308 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
10309
1bbf8502
DS
103102007-06-10 Duncan Sands <baldrick@free.fr>
10311
10312 * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
10313 than to void, for the fields when making a new fat pointer type.
10314 (gnat_substitute_in_type): Now substitute_in_type.
a472f546 10315 * gigi.h (gnat_substitute_in_type): Likewise. Adjust recursive calls.
1bbf8502
DS
10316 * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
10317 * utils.c (update_pointer_to): Update fat pointers by updating the
10318 dummy node pointers used for the fields.
10319
ec11296f
AC
103202007-06-06 Thomas Quinot <quinot@adacore.com>
10321 Bob Duff <duff@adacore.com>
10322
10323 * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
10324 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
10325 g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads: Add new
10326 constant Thread_Blocking_IO, always True by default, set False
10327 on a per-runtime basis.
10328 (Need_Netdb_Buffer): New constant.
10329
10330 * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
10331 g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
10332 files.
10333
10334 * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
10335 g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
10336 Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
10337 child package Task_Safe_NetDB
10338 (Host_Error_Messages): Add stub body.
10339 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
10340
10341 * g-soccon-mingw.ads: Add Windows-specific constants.
10342 (Need_Netdb_Buffer): New constant.
10343 (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
10344 wrapper and import inet_addr(3) from the standard sockets library
10345 directly instead.
10346 (In_Addr): Add alignment clause.
10347 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
10348
103492007-06-06 Robert Dewar <dewar@adacore.com>
10350
10351 * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
10352 s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
10353 s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
10354 s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
10355 s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
10356 s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
10357 a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
10358 a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
10359 a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
10360 g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
10361 g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
10362 i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
10363 s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
10364 s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
10365 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
10366 s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
10367 s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
10368 s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
10369 s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
10370 s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
10371 s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
10372 s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
10373 s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
10374 s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
10375 s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
10376 s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
10377 s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
10378 s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
10379 s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
10380 s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
10381 s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
10382 a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
10383 Unchecked_* by Ada.Unchecked_*
10384
103852007-06-06 Robert Dewar <dewar@adacore.com>
10386
10387 * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
10388 s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
10389 g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
10390 output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
10391 g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
10392 a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
10393
10394 * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
10395 s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
10396 s-tasloc.adb, s-tasloc.ads: New files.
10397
103982007-06-06 Bob Duff <duff@adacore.com>
10399
10400 * g-expect-vms.adb:
10401 (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
10402 * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
10403 (Send_Signal, Close): Raise Invalid_Process if the process id is
10404 invalid.
10405 (Pattern_Matcher_Access): Is now a general access type to be able to
10406 use aliased string.
10407
104082007-06-06 Thomas Quinot <quinot@adacore.com>
10409 Arnaud Charlet <charlet@adacore.com>
10410
a472f546
EB
10411 * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
10412 (SIGEMT is now used instead of SIGTERM on AIX).
ec11296f
AC
10413
10414 * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
10415 (Time_Slice_Supported): Set to True.
a472f546 10416 Use SIGEMT instead of SIGTERM as SIGADAABORT.
ec11296f
AC
10417
104182007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
10419
10420 * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
10421 (Time, Time)): Use To_Relative_Time rather than manual calculation to
10422 express the bounds of Duration as Time. Raise Time_Error when the
10423 result is greater or equal to the higher bound of Duration (on the
10424 margin case).
10425 ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
10426 Ada_High_And_Leaps.
10427 ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
10428 Ada_High_And_Leaps.
10429 ("-" (Time, Time)): Reorder code.
10430 (All_Leap_Seconds): Removed.
10431 (Arithmetic_Operations.Add): Remove sign related kludge.
10432 (Arithmetic_Operations.Difference): Control the leaps seconds processing
10433 with flag Leap_Support.
10434 (Arithmetic_Operations.Subtract): Remove sign related kludge.
10435 (Check_Within_Time_Bounds): New procedure.
10436 (Clock): Control the leap seconds processing with flag Leap_Support.
10437 (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
10438 (Formatting_Operations.Split): Control the leap seconds processing with
10439 flag Leap_Support.
10440 (Formatting_Operations.Time_Of): Control the leaps seconds processing
10441 with flag Leap_Support. Adjust the year, month and day (if applicable)
10442 when the value of day seconds designates a new day.
10443 (Split): Use parameter associations for better readability. Integrate
10444 flag Is_Ada_05.
10445 (Time_Of): Use parameter associations for better readability. Integrate
10446 flag Is_Ada_05.
10447
10448 * a-calfor.adb (Split): Use parameter associations for better
10449 readability. Integrate flag Is_Ada_05.
10450 (Time_Of): Remove flag Leap_Checks. Use parameter associations for
10451 better readability. Integrate flag Is_Ada_05.
10452
104532007-06-06 Arnaud Charlet <charlet@adacore.com>
10454
10455 * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb,
10456 s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb,
10457 s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb,
10458 s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads,
10459 s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb,
10460 s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb,
10461 s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads,
10462 s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads,
10463 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads,
10464 s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
10465 s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
10466 time when entering this routine to detect a backward clock setting
10467 (manual setting or DST adjustment), to avoid waiting for a longer delay
10468 than needed.
10469 (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
10470 Remove handling of deferred priority change, and replace by setting the
10471 task priority directly, as required by AI-188.
10472 Update comments.
10473 (Max_Task_Image_Length): New constant.
10474 Replace Warnings (Off) by Unreferenced pragma, cleaner.
10475 (Dynamic_Priority_Support): Removed, no longer needed.
10476 (Poll_Base_Priority_Change): Ditto.
10477 (Set_Ceiling): Add this procedure to change the ceiling priority
10478 associated to a lock. This is a dummy implementation because dynamic
10479 priority ceilings are not supported by the underlying system.
10480
10481 * a-dynpri.adb (Set_Priority): Take into account case where Target is
10482 accepting a RV with its priority boosted.
10483 Remove handling of deferred priority change, and replace by setting the
10484 task priority directly, as required by AI-188.
10485
10486 * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
10487 Succeeded = True.
10488 Remove handling of deferred priority change, and replace by setting the
10489 task priority directly, as required by AI-188.
10490 (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
10491 of Self_Id earlier.
10492
10493 * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
10494 (Poll_Base_Priority_Change): Removed.
10495 Code clean up: use SSL.Current_Target_Exception.
10496
10497 * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
10498 to run as this is a potentially dispatching point.
10499 (Call_Synchronous): Use Local_Defer_Abort.
10500 (Callable): Relax assertion.
10501 (Selective_Wait): Relax assertion in case abort is not allowed.
10502 Remove handling of deferred priority change, and replace by setting the
10503 task priority directly, as required by AI-188.
10504
10505 * s-tasuti.adb (Make_Passive): Adjust assertions.
10506 Remove handling of deferred priority change, and replace by setting the
10507 task priority directly, as required by AI-188.
10508
105092007-06-06 Arnaud Charlet <charlet@adacore.com>
10510
10511 * system-vxworks-sparcv9.ads, system-solaris-x86.ads,
10512 system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
10513 system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
10514 system-vxworks-mips.ads, system-vxworks-alpha.ads,
10515 system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads,
10516 system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads,
10517 system-interix.ads, system-linux-hppa.ads, system-tru64.ads,
10518 system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads,
10519 system-solaris-sparcv9.ads, system-vms.ads, system.ads,
10520 system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
10521 system-linux-ia64.ads: Document mapping between Ada and OS priorities.
10522 This patch changes the largest non-binary modulus from 2**31-1 to
10523 2**32-1.
10524 (Compiler_System_Version): Removed, no longer used.
10525 Clean up system files by removing flags only used on a single target.
10526 Also remove obsolete flags, only used during bootstrap from system.ads
10527 (Address): Add a pragma Preelaborable_Initialization.
10528
10529 * system-aix.ads: Ditto.
10530 (GCC_ZCX_Support): Set to true.
10531 Update priority range on AIX and map Ada priorities to target
10532 priorities appropriately for different scheduling policies.
10533
10534 * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
10535
105362007-06-06 Vincent Celier <celier@adacore.com>
10537
10538 * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
10539 mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
10540
10541 * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb,
10542 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb,
10543 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb,
10544 mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
10545 mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
a472f546
EB
10546 MLib.Tgt, containing the default versions of the exported subprograms.
10547 For each platform, create a specific version of the body of new child
10548 package MLib.Tgt.Specific that contains only the body of subprograms
10549 that are different from the default.
10550 (Archive_Builder_Append_Options): New function.
ec11296f
AC
10551
105522007-06-06 Matthew Gingell <gingell@adacore.com>
10553
a472f546
EB
10554 * s-osinte-aix.adb: Map Ada priorities to target priorities
10555 appropriately for different scheduling policies.
ec11296f
AC
10556
105572007-06-06 Arnaud Charlet <charlet@adacore.com>
10558
10559 * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
10560 its C counterpart.
10561 Remove references to Unchecked_Conversion, and use Ada.xxx instead.
10562 Replace Unchecked_Conversion by Ada.Unchecked_Conversion.
10563
105642007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
10565
a472f546
EB
10566 * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
10567 Noop on VMS, added for interface commonality.
ec11296f
AC
10568
105692007-06-06 Eric Botcazou <ebotcazou@adacore.com>
10570 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10571 Olivier Hainque <hainque@adacore.com>
10572
10573 * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
10574 renamed expression of a full renaming at toplevel.
10575 (gnat_to_gnu_entity, case object): If not defining, do not look inside
10576 the values the constant is initialized to if it is an N_Allocator.
10577 (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
10578 TYPE_SIZE_UNIT of inner types after the stride is elaborated.
10579 (make_aligning_type): Accept an extra ROOM argument for storage to be
10580 made available before the aligned field, and an extra BASE_ALIGN
10581 argument for callers to pass the alignment guaranteed to be honored for
10582 the whole aligning object. Avoid call to finish_record_type, which only
10583 interferes with the sizes we want to set.
10584 (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
10585 make_aligning_type for super-aligned objects on stack.
10586 (components_to_record): Pass the adjusted size of the type when creating
10587 fields in the qualified union for the variant part.
10588 (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
10589 (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
10590 packed array type.
10591 (maybe_pad_type): Set TYPE_USER_ALIGN.
10592 (make_aligning_type): Likewise.
10593 ALIGN argument is unsigned int.
10594 (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
10595 (gnat_to_gnu_param): Likewise, for parameters.
10596 (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
10597 if it is constant and stems from a function call.
10598 (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
10599 of the record is specified. Adjust accordingly.
10600 (adjust_packed): New static function.
10601 (gnat_to_gnu_field): Use it to adjust the packedness setting.
10602 (components_to_record): Likewise.
10603 (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
10604 side-effects if the object is deemed constant.
10605 (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
10606 type instead of merely finalizing it. Tidy.
10607 <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
10608 <E_Access_Type>: Likewise.
10609 (defer_debug_incomplete_list): Rename to defer_finalize_list.
10610 (defer_debug_level): Delete.
10611 (gnat_to_gnu_entity) <debug_deferred>: Likewise
10612 <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
10613 type.
10614 <E_Record_Type>: Do not explicitly defer finalizing the type.
10615 Adjust for write_record_type_debug_info renaming.
10616 <E_Subprogram_Type>: Likewise.
10617 Finalize deferred types right after deferred incomplete types are
10618 expanded.
10619 (rest_of_type_decl_compilation): New global function.
10620 (components_to_record): Rename defer_debug parameter to do_not_finalize.
10621 (components_to_record): Propagate the packedness to the fields of the
10622 qualified union type if there is a variant part.
10623 (gnat_to_gnu_entity) <E_Array_Type>: Use new function
10624 instead of inline code to adjust the XUT field offsets.
10625 (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
10626 <E_Record_Subtype>: Do not let finish_record_type compute the sizes
10627 and write the debug info if the type derives from a discriminated one.
10628 (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
10629 <E_Array_Subtype>: Likewise.
10630 <E_String_Literal_Subtype>: Likewise.
10631 (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
10632 an alignment clause.
10633 (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
10634 before giving warning.
10635 (prepend_one_attribute_to): New function, helper to prepend an attribute
10636 to an attribute list.
10637 (gnat_to_gnu_entity) <E_Procedure>: Use it.
10638 (prepend_attributes): Likewise.
10639 (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
10640 <E_Array_Type>: Declare the padding type for the element type, if any.
10641 <E_Array_Subtype>: Likewise.
10642 (defer_limited_with): New variable.
10643 (Gigi_Equivalent_Type): New function.
10644 (gnat_to_gnu_entity): Use it at start and use result throughout.
10645 (gnat_to_gnu_entity, case E_Access_Type): Rework to use
10646 Gigi_Equivalent_Type, support Limited_With, allow two levels of
10647 indirection, precompute if unconstrained array to simplify logic, and
10648 use defer_limited_with to defer elaboration of some types from limited
10649 with.
10650 (finalize_from_with_types): New function.
10651
106522007-06-06 Gary Dismukes <dismukes@adacore.com>
10653 Eric Botcazou <ebotcazou@adacore.com>
10654 Tristan Gingold <gingold@adacore.com>
10655 Olivier Hainque <hainque@adacore.com>
10656
a472f546
EB
10657 * trans.c (Identifier_to_gnu): Change test for deferred constant by
10658 adding guard that the entity is an E_Constant before testing presence
10659 of Full_view (and remove unnecessary test that entity is not a type).
ec11296f
AC
10660 For a CONST_DECL used by reference, manually retrieve
10661 the DECL_INITIAL. Do not invoke fold in the other DECL_P cases either.
10662 (struct language_function): Move from utils.c to here.
10663 (struct parm_attr): New structure.
10664 (parm_attr, parm_attr vector, parm_attr GC vector): New types.
10665 (f_parm_attr_cache): New macro.
10666 (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
10667 expressions for the 'First, 'Last and 'Length attributes of the
10668 unconstrained array IN parameters.
10669 (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
10670 Allocate the information structure for the function earlier, as well
10671 as the language-specific part.
10672 If the parameter attributes cache has been populated, evaluate the
10673 cached expressions on entry.
10674 (takes_address): Add OPERAND_TYPE parameter. Handle N_Function_Call,
10675 N_Procedure_Call_Statement and N_Indexed_Component.
10676 (Pragma_to_gnu): Translate inspection_point to an asm statement
10677 containaing a comment and a reference to the object (either its address
10678 for BLKmode or its value).
10679 (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
10680 to go to DECL_INITIAL. Together with the size constraint relaxation
10681 in create_var_decl, enlarges the set of situations in which an
10682 identifier may be used as an initializer without implying elaboration
10683 code.
10684 (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
10685 DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
10686 node.
10687 (maybe_stabilize_reference): Remove lvalues_only parameter.
10688 (gnat_stabilize_reference): Adjust for above change.
10689 (gnat_to_gnu): Do not set location information on the result
10690 if it is a reference.
10691 (add_cleanup): Add gnat_node parameter and set the location of the
10692 cleanup to it.
10693 (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
10694 (Exception_Handler_to_gnu_zcx): Likewise.
10695 (gigi): Remove the cgraph node if the elaboration procedure is empty.
10696 (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
10697 the former right after the latter.
10698 (start_stmt_group): Make global.
10699 (end_stmt_group): Likewise.
10700 (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
10701 vars.
10702 (gnu_program_error_label_stack): Likewise.
10703 (gigi): Initialize them.
10704 (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
10705 (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
10706 New cases.
10707 (push_exception_label_stack): New function.
10708 (takes_address): New function.
10709
10710 * utils.c (struct language_function): Move to trans.c from here.
10711 (unchecked_convert): Do not wrap up integer constants in
10712 VIEW_CONVERT_EXPRs.
10713 (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
10714 the latter for aggregate types, unexpected by later passes, and relax an
10715 arbitrary size constraint on the former.
10716 (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
10717 to compare the sizes.
10718 (convert_vms_descriptor): When converting to a fat pointer type, be
10719 prepared for a S descriptor at runtime in spite of a SB specification.
10720 (shift_unc_components_for_thin_pointers): New function.
10721 (write_record_type_debug_info): For variable-sized fields, cap the
10722 alignment of the pointer to the computed alignment.
10723 (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
10724 If REP_LEVEL is 2, do not compute the sizes.
10725 (build_vms_descriptor): Adjust for new prototype of finish_record_type.
10726 (build_unc_object_type): Likewise.
10727 (declare_debug_type): New function.
10728
10729 * ada-tree.def: USE_STMT: removed (not emitted anymore).
10730
10731 * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
10732 no statement is expandable anymore.
10733 (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
10734 (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
10735 when the user requested it explicitely.
10736 (gnat_post_options): By default, set flag_eliminate_unused_debug_types
10737 to 0 for Ada.
10738 (get_alias_set): Return alias set 0 for a type if
10739 TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
10740
10741 * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
10742 (DECL_FUNCTION_STUB): New accessor macro.
10743 (SET_DECL_FUNCTION_STUB): New setter macro.
10744
10745 * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
10746
10747 * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
10748 declarations.
10749
107502007-06-06 Jose Ruiz <ruiz@adacore.com>
10751
10752 * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
10753 Rename to Abort_Task_Interrupt to be able to keep the same interface
10754 as the rest of the targets.
10755
10756 * s-osinte-vxworks.ads s-osinte-vxworks.adb
10757 (To_VxWorks_Priority): Remove explicit "in" mode indicator
10758
10759 * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
10760 New files.
10761
107622007-06-06 Robert Dewar <dewar@adacore.com>
10763
10764 * a-chahan.ads: Remove obsolescent pragmas
10765
10766 * a-chlat1.ads: Minor reformatting
10767
107682007-06-06 Robert Dewar <dewar@adacore.com>
10769
10770 * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
10771 for Errout
10772
10773 * errout.adb: New Finalize/Compilation_Errors/Output_Messages
10774 implementation
10775
10776 * errout.ads (Finalize): Changed interface
10777 (Output_Messages): New procedure
10778 (Compilation_Errors): New Interface
10779
10780 * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
10781 Finalize/Output_Messages interface for Errout
10782 (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
10783 Errout.
10784
107852007-06-06 Thomas Quinot <quinot@adacore.com>
10786 Olivier Hainque <hainque@adacore.com>
10787 Robert Dewar <dewar@adacore.com>
10788
10789 * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
10790 check.
10791 (Raise_Current_Excep): Call Debug_Raise_Exception just before
10792 propagation starts, to let debuggers know about the event in a reliable
10793 fashion.
10794 (Local_Raise): Moved to System.Exceptions
10795 More convenient to have this as a separate unit
10796
10797 * s-except.adb, s-except.ads: New files.
10798
10799 * a-exextr.adb (Unhandled_Exception): Delete - replaced by
10800 Debug_Unhandled_Exception in System.Exceptions where it belongs
10801 together with a couple of other debug helpers.
10802 (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
10803 the former Unhandled_Exception.
10804
10805 * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
10806 (Warn_No_Exception_Propagation): New procedure
10807 (Warn_If_No_Propagation): Rewritten for new warning generation
10808 (Expand_Exception_Handlers): New warning generation
10809 (Expand_N_Raise_xxx_Error): Rewritten for new warnings
10810 (Add_Exception_Label): Use Special_Exception_Package_Used for test
10811 instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
10812 (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
10813 even if restriction is set (makes life easier in Check_Returns)
10814 (Expand_Local_Exception_Handlers): Follow renamed entity chain when
10815 checking exception identities.
10816 (Expand_Local_Exception_Handlers): Do not optimize when all others case
10817 (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
10818 block for handler (used by Check_Returns)
10819 (Expand_Local_Exception_Handlers): Local_Raise now takes an address
10820 (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
10821 remove all exception handlers when optimizing local raise statements.
10822 (Find_Local_Handler): Use Get_Renamed_Entity
10823 (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
10824 marked analyzed after expanding exception handlers, do not generate
10825 redundant cleanup actions, because they have been constructed already.
10826
108272007-06-06 Thomas Quinot <quinot@adacore.com>
10828
10829 * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
10830 presence of this categorization pragma is mandated by the language.
10831 (Limited_Controlled): Add missing pragma Preelaborable_Initialization
10832 for this type.
10833
108342007-06-06 Vincent Celier <celier@adacore.com>
10835 Robert Dewar <dewar@adacore.com>
10836
10837 * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb,
10838 butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
10839 err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads,
10840 fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
10841 lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads,
10842 makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb,
10843 par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb,
10844 prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads,
10845 prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb,
10846 sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb,
10847 uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
10848 ali.ads, ali.adb:
10849 Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
10850 package Namet. Make File_Name_Type and Unit_Name_Type types derived from
10851 Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
10852 Use variables of types File_Name_Type and Unit_Name_Type in error
10853 messages.
10854 (Get_Name): Add parameter Ignore_Special, and set it reading file name
10855 (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
10856 here.
10857 Define flags Flag217-Flag230 with associated subprograms
10858 (Flag_Word5): New record type.
10859 (Flag_Word5_Ptr): New access type.
10860 (To_Flag_Word5): New unchecked conversion.
10861 (To_Flag_Word5_Ptr): Likewise.
10862 (Flag216): New function.
10863 (Set_Flag216): New procedure.
10864
108652007-06-06 Arnaud Charlet <charlet@adacore.com>
10866
10867 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
10868 instead of 'Size.
10869
10870 * a-stwifi.ads, a-stzfix.ads: Minor reformatting
10871
108722007-06-06 Javier Miranda <miranda@adacore.com>
10873
10874 * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
10875 the package.
10876 (Object_Specific_Data_Array): This is now internal to the package.
10877 (Object_Specific_Data): This is now internal to the package.
10878 (Select_Specific_Data_Element): This is now internal to the package.
10879 (Select_Specific_Data_Array): This is now internal to the package.
10880 (Select_Specific_Data): This is now internal to the package.
10881 (Offset_To_Top_Function_Ptr): This is now public.
10882 (To_Offset_To_Top_Function_Ptr): Removed.
10883 (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
10884 local to subprogram Offset_To_Top.
10885 (Predefined_DT): Removed.
10886 (Typeinfo_Ptr): Removed.
10887 (OSD): This function is now internal to this package.
10888 (SSD): This function is now internal to this package.
10889 (DT): New function that displaces the pointer to the table of primitives
10890 to get access to the enclosing wrapper record.
10891 (IW_Membership): Code cleanup.
10892 (Offset_To_Top): Code cleanup.
10893 (Predefined_DT): Removed.
10894 (Register_Interface_Tag): Removed.
10895 (Set_Interface_Table): Removed.
10896 (Set_Offset_Index): Removed.
10897 (Set_Offset_To_Top): Code cleanup.
10898 (Set_OSD): Removed.
10899 (Set_Signature): Removed.
10900 (Set_SSD): Removed.
10901 (Set_Tagged_Kind): Removed.
10902 (Typeinfo_Ptr): Removed.
10903 (TSD): Removed.
10904 (Displace): Add missing check on null actual.
10905
10906 * exp_disp.ads, exp_disp.adb
10907 (Select_Expansion_Utilities): Removed.
10908 (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
10909 (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
10910 the interface requires a new parameter.
10911 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
10912 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
10913 calls to subprograms Build_T, Build_S, etc. by the corresponding code.
10914 Done to remove package Select_Expansion_Utilities.
10915 (Make_DT): New implementation for statically allocated dispatch tables.
10916 (Make_Secondary_DT): Moved to the scope of Make_DT.
10917 (Register_Primitive): Code cleanup plus incoporate the use of the new
10918 function DT_Address_Attribute.
10919 (Expand_Interface_Thunk): The profile of this subprogram has been
10920 changed to return the Thunk_Id and the corresponding code.
10921 (Fill_DT_Entry): Removed. Its functionality is now provided by
10922 subprogram Register_Primitive.
10923 (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
10924 subprogram Register_Primitive.
10925 (Register_Primitive): New subprogram that incorporates the previous
10926 functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
10927 (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
10928 was only required to call Make_DT_Access_Action, which is now removed.
10929 (Ada_Actions): Removed
10930 (Action_Is_Proc): Removed
10931 (Action_Nb_Arg): Removed
10932 Replace all the calls to Make_DT_Access_Action by direct calls to
10933 Make_Procedure_Call_Statement or Make_Function_Call.
10934 (Set_DTC_Entity_Value): New subprogram.
10935 (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
10936 (Expand_Interface_Thunk): Add missing support for primitives that are
10937 functions with a controlling result (case in which there is no need
10938 to generate the thunk).
10939
10940 * exp_atag.ads, exp_atag.adb
10941 (Build_DT): New subprogram that displaces the pointer to reference the
10942 base of the wrapper record.
10943 (Build_Typeinfo_Offset): Removed.
10944 (RTE_Tag_Node): Removed.
10945 (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
10946 (Build_Get_RC_Offset): Removed.
10947 (Build_Inherit_Predefined_Prims): Removed.
10948 (Build_Inherit_TSD: Removed.
10949 (Build_New_TSD): Removed.
10950 (Build_Set_External_Tag): Removed.
10951 (Build_Set_Predefined_Prim_Op_Address): Add documentation.
10952 (Build_Set_Prim_Op_Address): Add documentation.
10953 (Build_Set_TSD): Removed.
10954
10955 * rtsfind.ads, rtsfind.adb
10956 (Load_Fail): If load fails and we are not in configurable run-time
10957 mode, then raise Unrecoverable_Error.
10958 (Text_IO_Kludge): Generate an error message if a run-time library is
10959 not available in a given run-time (ie. zfp run-time).
10960 (RTE_Record_Component): Add code to check that the component we search
10961 for is not found in two records in the given run-time package.
10962 (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
10963 (RE_DT_Predef_Prims_Offset): New entity
10964 (RE_Static_Offset_To_Top): New entity
10965 (RE_HT_Link): New entity.
10966 (System_Address_Image): Addition of this run-time package.
10967 (RE_Address_Image): New entity.
10968 (RE_Abstract_Interface): Removed.
10969 (RE_Default_Prim_Op_Count): Removed.
10970 (RE_DT_Entry_Size): Removed.
10971 (RE_DT_Min_Prologue_Size): Removed.
10972 (RE_DT_Prologue_Size): Removed.
10973 (RE_Ifaces_Table_Ptr): Removed.
10974 (RE_Interface_Data_Ptr): Removed.
10975 (RE_Type_Specific_Data): Removed.
10976 (RE_Primary_DT): Removed.
10977 (RE_Register_Interface_Tag): Removed.
10978 (RE_Set_Offset_Index): Removed.
10979 (RE_Set_OSD): Removed.
10980 (RE_Set_SSD): Removed.
10981 (RE_Set_Signature): Removed.
10982 (RE_Set_Tagged_Kind): Removed.
10983 (RE_Address_Array): New entity.
10984 (RE_DT): New entity.
10985 (RE_Iface_Tag): New entity.
10986 (RE_Interfaces_Table): New entity.
10987 (RE_No_Dispatch_Table): New entity.
10988 (RE_NDT_Prims_Ptr): New entity.
10989 (RE_NDT_TSD): New entity.
10990 (RE_Num_Prims): New entity.
10991 (RE_Offset_To_Top_Function_Ptr): New entity.
10992 (RE_OSD_Table): New entity.
10993 (RE_OSD_Num_Prims): New entity.
10994 (RE_Predef_Prims): New entity
10995 (RE_Predef_Prims_Table_Ptr): New entity.
10996 (RE_Primary_DT): New entity.
10997 (RE_Signature): New entity.
10998 (RE_SSD): New entity.
10999 (RE_TSD): New entity.
11000 (RE_Type_Specific_Data): New entity.
11001 (RE_Tag_Kind): New entity.
11002
110032007-06-06 Thomas Quinot <quinot@adacore.com>
11004
11005 * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
11006 C imported variable.
11007 (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
11008 on entry.
11009
110102007-06-06 Robert Dewar <dewar@adacore.com>
11011
11012 * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
11013 character
11014
110152007-06-06 Vincent Celier <celier@adacore.com>
11016
11017 * a-tifiio.adb (Put, internal): For negative numbers, check that there
11018 is room for at least one digit and the minus sign.
11019 (Put.Put_Character): Never put a character outside of the range of
11020 string To.
11021
110222007-06-06 Olivier Hainque <hainque@adacore.com>
11023 Eric Botcazou <ebotcazou@adacore.com>
11024
11025 * utils2.c (build_allocator): Provide the extra arguments to
11026 make_aligning_type for super-aligned objects allocated from the default
11027 pool. Leave enough room for a pointer before the aligning field, and
11028 store the system's allocator return value there.
11029 (build_call_alloc_dealloc): When releasing a super-aligned object,
11030 retrieve the system's allocator return value from where build_allocator
11031 has stored it, just ahead of the adjusted address we are passed.
11032 (build_call_raise): Handle properly the generation of line numbers when
11033 the node is marked No_Location.
11034 (compare_elmt_bitpos): Use tree_int_cst_compare. Stabilize the sort
11035 by using DECL_UID on ties.
11036 (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
11037 main variant.
11038 (build_call_raise): Handle converting exception into goto; support new
11039 argument KIND.
11040 (build_component_ref): Add new arg to build_call_raise.
11041
110422007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
11043
11044 * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
11045 "." in the case of nnn.xxx when nnn terminates with an underscore.
11046 Parse the remaining "#" or ":" in the case of nnn#.xxx#
11047
110482007-06-06 Robert Dewar <dewar@adacore.com>
11049
11050 * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
11051
110522007-06-06 Arnaud Charlet <charlet@adacore.com>
11053 Vincent Celier <celier@adacore.com>
11054 Robert Dewar <dewar@adacore.com>
11055
11056 * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
11057 needed.
11058 (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
11059 ((destructor)) for adafinal, even when switch -a is used.
11060 Do not issue pragma Linker_Destructor for adafinal when switch -a is
11061 used.
11062 (Gen_Object_Files_Options): Add formatting of Linker Options, when
11063 Output_Linker_Option_List is set. Suppress this formatting when
11064 Zero_Formatting is set.
11065 Add case for CLI_Target.
11066 (System_Restrictions_Used): New flag, used to avoid generating with of
11067 System_Restrictions and initialization of the data unless there is
11068 some use of System.Restrictions in the partition.
11069 (Check_System_Restrictions_Used): New procedure
11070
11071 * s-stalib.adb: Remove with of System.Restrictions. No longer needed
11072 since we only with this unit in the binder file if it is used elsewhere
11073 in the partition.
11074
110752007-06-06 Vincent Celier <celier@adacore.com>
11076
11077 * bindusg.adb: Add line for @<response file>
11078 Add lines for new switches -R and -Z
11079
11080 * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
11081 hierarchy in the list of files of the closure when -R is used
11082 (Gnatbind): Accept arguments starting with '@' to indicate response
11083 files and take the arguments from the response files.
11084 If List_Closure is set, display the referenced files
11085
110862007-06-06 Javier Miranda <miranda@adacore.com>
11087 Robert Dewar <dewar@adacore.com>
11088 Ed Schonberg <schonberg@adacore.com>
11089
11090 * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
11091 which the address-clause is applied to in-mode actuals (allowed by
11092 13.1(22)).
11093 (Apply_Discriminant_Check): Do not generate a check if the type is
11094 constrained by a current instance.
11095 (Activate_Division_Check): New procedure
11096 (Activate_Overflow_Check): New procedure
11097 (Activate_Range_Check): New procedure
11098 Call these new Activate procedures instead of setting flags directly
11099 (Apply_Array_Size_Check): Removed, no longer needed.
11100 Code clean up: remove obsolete code related to GCC 2.
11101 (Get_E_Length): Protect against bomb in case scope is standard
11102 (Selected_Range_Checks): If the node to be checked is a conversion to
11103 an unconstrained array type, and the expression is a slice, use the
11104 bounds of the slice to construct the required constraint checks.
11105 Improve NOT NULL error messages
11106 (Apply_Constraint_Check): If the context is a null-excluding access
11107 type, diagnose properly the literal null.
11108
111092007-06-06 Pascal Obry <obry@adacore.com>
11110
11111 * clean.adb (Clean_Archive): Use untouched casing for the archive name
11112 and the corresponding .deps file.
11113 (Clean_Interface_Copy_Directory): Use untouched casing for the library
11114 src directory. Minor code-clean-up. Use untouched casing for files
11115 read into the library src dir.
11116 (Clean_Library_Directory): Idem.
11117 (Parse_Cmd_Line): Accept new switch -aP
11118
111192007-06-06 Javier Miranda <miranda@adacore.com>
11120 Ed Schonberg <schonberg@adacore.com>
11121 Robert Dewar <dewar@adacore.com>
11122 Eric Botcazou <ebotcazou@adacore.com>
11123 Arnaud Charlet <charlet@adacore.com>
11124
11125 * einfo.ads, einfo.adb (Available_View): New synthesized attribute
11126 applicable to types that have the With_Type flag set. Returns the
11127 non-limited view of the type, if available, otherwise the type itself.
11128 For class-wide types, there is no direct link in the tree, so we have
11129 to retrieve the class-wide type of the non-limited view of the Etype.
11130 New attributes Static_Initialization and Static_Elaboration_Desired.
11131 Remove the pragma Thread_Body, and the associated flag
11132 Is_Thread_Body in entities, and all related code.
11133 (Suppress_Value_Tracking_On_Call): New flag
11134 E_Exception has Esize and Alignment fields
11135 (Universal_Aliasing): New function.
11136 (Set_Universal_Aliasing): New procedure.
11137 (Write_Entity_Flags): Deal with Universal_Aliasing flag.
11138 (Check_Nested_Access): New procedure.
11139 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
11140 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
11141 (Related_Interface): New attribute. Present in dispatch table pointer
11142 components of records. Set to point to the entity of the corresponding
11143 interface type.
11144 (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
11145 (Original_Access_Type): Remove, not needed.
11146 (Root_Type): Handle properly subtypes of class-wide-types.
11147 Update comments.
11148
11149 * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
11150 class-wide types visible through limited-with clauses.
11151 (Try_Primitive_Operation): When examining all primitive operations of a
11152 tagged type, do not consider subprograms labeled as hidden unless they
11153 belong to a private generic type with a tagged parent.
11154 (Try_Object_Operation): Extensive rewriting, to handle properly various
11155 overloading cases, when several ancestors may have class-wide operations
11156 that are possible candidates, and when the overloaded functions return
11157 array types and have defaulted parameters so that the call may be
11158 interpreted as an indexing.
11159 (Analyze_Allocator): Remove Mark_Allocator and its invocation.
11160 (Process_Function_Call): use Next, rather than Next_Actual, to analyze
11161 successive actuals before analyzing the call itself.
11162 (Try_Primitive_Operation): A primitive operation is compatible with the
11163 prefix if the prefix has a synchronized type and the type of the formal
11164 is its corresponding record, as can be the case when the primitive
11165 operation is declared outside of the body of the type.
11166 (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
11167 perform homonym traversal, looking for class-wide operation matches
11168 (formerly done in statements of Try_Class_Wide_Operation). Matches on
11169 access parameters are now restricted to anonymous access types.
11170 (Mark_Allocator): An allocator with a discriminant association parent is
11171 a coextension.
11172 (Try_One_Prefix_Interpretation): If the type of the object is
11173 incomplete, as can be happen when it is a limited view obtained through
11174 a limited_with_clause, the selected component is not part of a prefixed
11175 call.
11176 (Complete_Object_Operation): Diagnose properly an object that is not
11177 aliased when the corresponding controlling formal is an access
11178 parameter.
11179 (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
11180 ambiguous calls in prefixed notation, where two primitives differ only
11181 in that the controlling argument of one is an access parameter.
11182
11183 * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
11184 whether a function that returns an unconstrained type can be inlined.
11185 (Process_Formals): Diagnose properly the illegal use of an incomplete
11186 type in the profile of an access_to_subprogram declaration.
11187 (Check_Synchronized_Overriding): Nothing check for concurrent types, the
11188 operations are attached to the corresponding record.
11189 (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
11190 When processing a primitive of a concurrent type which implements an
11191 interface change the type of all controlling formals to that of the
11192 corresponding record type.
11193 (Check_Synchronized_Overriding): Relax the conditional logic when trying
11194 to determine the tagged type to which a primitive belongs.
11195 (Check_Conventions): Capture condition to ignore a primitive operation
11196 (which is shared between the loop in Check_Conventions and the one in
11197 Check_Convention) in a new local function Skip_Check.
11198 (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
11199 confusion with Check_Conventions' own Prim_Op local variable.
11200 (Create_Extra_Formals): Test for a tagged result type rather than a
11201 controlling result when determining whether to add a BIP_Alloc_Form
11202 formal and a BIP_Final_List formal to the function.
11203 (Check_Conformance); For parameters that are anonymous access types,
11204 subtype conformance requires that the not null and the constant
11205 indicators must match
11206 (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
11207 to retrieve the appropriate type when processing a concurrent type
11208 declared within a generic. Minor comment reformatting. Change invocation
11209 of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
11210 mitive.
11211 (Analyze_Subprogram_Body): If the return type of a function is an
11212 anonymous access to the limited view of a class-wide type, and the
11213 non-limited view of the type is available, update the type of the
11214 function so that code can be generated.
11215 (Process_Formals): In case of access-subtype itype whose designated
11216 type is also an itype (situation that happens now with access to
11217 subprograms) we mark the access-type itype with the Has_Delayed_Freeze
11218 attribute to avoid backend problems.
11219 (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
11220 init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
11221 anonymous types' designated types are same before testing
11222 Subtypes_Statically_Match.
11223 (Create_Extra_Formals): Test for a named access parameter that is a
11224 controlling formal as an additional condition for adding an
11225 accessibility level formal. This can occur in the subp type created for
11226 dispatching calls in Expand_Dispatching_Call, and allows calling
11227 Create_Extra_Formals from that procedure rather than special-casing the
11228 extra formals there.
11229 (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
11230 when the function has a controlling result.
11231 (Check_Returns): Add much more knowledge of the optimization of local
11232 raise statements to gotos, to retain proper warnings in this case.
11233 (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
11234 nodes when looking for last statement.
11235
11236 * sem_type.ads, sem_type.adb (Specific_Type): Add support for
11237 class-wide types visible through limited with clauses.
11238 (Add_One_Interp): If the operands are anonymous access types, the
11239 predefined operator on universal_access is immediately visibles
11240 (Find_Unique_Type): Handle anonymous access to subprogram types just as
11241 other anonymous access types.
11242 (Disambiguate): Take into account CIL convention.
11243 (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
11244
112452007-06-06 Robert Dewar <dewar@adacore.com>
11246
11247 * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
11248 sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
11249 elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
11250 Fix lower bound of tables.
11251 Add rep clauses.
11252
11253 * nlists.adb: Ditto.
11254 (Prev_Node, Next_Node): Change index type to Int so that it properly
11255 covers the range First_Node_Id - 1 up.
11256
112572007-06-06 Javier Miranda <miranda@adacore.com>
11258 Ed Schonberg <schonberg@adacore.com>
11259 Bob Duff <duff@adacore.com>
11260 Hristian Kirtchev <kirtchev@adacore.com>
11261
11262 * exp_aggr.ads, exp_aggr.adb:
11263 (Build_Record_Aggr_Code): Add missing initialization of secondary tags
11264 in extension aggregates.
11265 (Flatten): Other conditions being met, an aggregate is static if the
11266 low bound given by component associations is different from the low
11267 bound of the base index type.
11268 (Packed_Array_Aggregate_Handled): If the component type is itself a
11269 packed array or record, the front-end must expand into assignments.
11270 (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
11271 Init_Pr, instead of Ancestor_Is_Expression.
11272 (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
11273 coextension chain root, either generate a list controller or use the
11274 already existing one.
11275 (Static_Array_Aggregate): New procedure to construct a positional
11276 aggregate that can be handled by the backend, when all bounds and
11277 components are compile-time known constants.
11278 (Expand_Record_Aggregate): Force conversion of aggregates of tagged
11279 types covering interface types into assignments.
11280 (Replace_Type): move to Build_Record_Aggr_Code.
11281 (Expand_Record_Aggr_Code): if the target of the aggregate is an
11282 interface type, convert to the definite type of the aggregate itself,
11283 so that needed components are visible.
11284 (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
11285 components and the context is an extended return statement do not
11286 create a transient block for it, to prevent premature finalization
11287 before the return is executed.
11288 (Gen_Assign): Do not generate a call to deep adjust routine if the
11289 component type is itself an array of controlled (sub)-components
11290 initialized with an inner aggregate.
11291 (Component_Check): New name for Static_Check. This name is now more
11292 appropriate, and documentation is added which was missing.
11293 (Component_Check): Add test for bit aligned component value
11294 (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
11295 Tagged_Comps, name is more appropriate given added function below.
11296 (Component_Not_OK_For_Backend): Check for bit aligned component ref.
11297
112982007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
11299 Javier Miranda <miranda@adacore.com>
11300 Robert Dewar <dewar@adacore.com>
11301
11302 * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
11303 Terminated: Add unchecked type conversion from System.Address to
11304 System.Tasking.Task_Id when calling the predefined primitive
11305 _disp_get_task_id.
11306 Disable new Ada 05 accessibility check for JVM.NET targets, which
11307 cannot be implemented in a practical way.
11308 (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
11309 the sources always references the tag of the actual object. Therefore,
11310 if 'Tag is applied in the sources to class-wide interface objects we
11311 generate code that displaces "this" to reference the base of the object.
11312 (Expand_N_Attribute_Reference, case Size): Return specified size if
11313 known to front end.
11314 (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
11315 has code that displaces the pointer of the object to manage interface
11316 types. However this code must not be executed when the prefix is a
11317 subprogram. This bug caused the wrong expansion of the internally
11318 generated assignment that fills the dispatch table when the primitive
11319 is a function returning a class-wide interface type.
11320 (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
11321 Set_Attribute_Name for Name_Unaligned_Valid.
11322
113232007-06-06 Ed Schonberg <schonberg@adacore.com>
11324 Gary Dismukes <dismukes@adacore.com>
11325
11326 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
11327 If the initialization is the equivalent aggregate of the initialization
11328 procedure of the type, do not remove it.
11329 (Expand_N_Attribute_Definition_Clause): Exclude access variables
11330 initialized to null from having their expression reset to empty and
11331 note this exception in the comment.
11332
113332007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
11334 Robert Dewar <dewar@adacore.com>
11335 Ed Schonberg <schonberg@adacore.com>
11336 Gary Dismukes <dismukes@adacore.com>
11337
11338 * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
11339 Add "with" and "use" clauses for Sem_Attr.
11340 (Expand_Current_Value): Do not replace occurences of attribute
11341 references where the prefix must be a simple name.
11342
11343 * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
11344 Namet. Add new arrays Attribute_Name_Modifies_Prefix and
11345 Attribute_Requires_Simple_Name_Prefix.
11346 (Name_Modifies_Prefix): Body of new function.
11347 (Requires_Simple_Name_Prefix): Body of new function.
11348 (Resolve_Attribute, case Access): Improve error message for case of
11349 mismatched conventions.
11350 (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
11351 incomplete type.
11352 (Analyze_Attribute, case 'Access): If the type of the prefix is a
11353 constrained subtype for a nominal unconstrained type, use its base type
11354 to check for conformance with the context.
11355 (Resolve_Attribute): Remove test of the access type being associated
11356 with a return statement from condition for performing accessibility
11357 checks on access attributes, since this case is now captured by
11358 Is_Local_Anonymous_Access.
11359 (Analyze_Access_Attribute): Set Address_Taken on entity
11360 (Analyze_Attribute, case Address): Set Address_Taken on entity
11361 (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
11362 validating an access attribute whose prefix is a current instance.
11363 (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
11364 applied to dispatching operations, if freezing is required then we set
11365 the attribute Has_Delayed_Freeze in the prefix's entity.
11366 (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
11367 current scope if access of local subprogram taken
11368 (Analyze_Access_Attribute): Check legality of self-reference even if the
11369 expression comes from source, as when a single component association in
11370 an aggregate has a box association.
11371 (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
11372 the prefix if it is a protected operation and the attribute is
11373 Unrestricted_Access.
11374 (Resolve_Attribute, case 'Access): Set the Etype of the attribute
11375 reference to the base type of the context, to force a constraint check
11376 when the context is an access subtype with an explicit constraint.
11377 (Analyze_Attribute, case 'Class): If the prefix is an interface and the
11378 node is rewritten as an interface conversion. leave unanalyzed after
11379 resolution, to ensure that type checking against the context will take
11380 place.
11381
113822007-06-06 Ed Schonberg <schonberg@adacore.com>
11383 Javier Miranda <miranda@adacore.com>
11384 Robert Dewar <dewar@adacore.com>
11385
11386 * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
11387 wrapper when the full view of the controlling type of an inherited
11388 function that dispatches on result implements interfaces.
11389 (Expand_N_Object_Declaration): In cases where the type of the
11390 declaration is anonymous access, create finalization list for it.
11391 (Expand_N_Object_Declaration): Generate a persistent_bss directive only
11392 if the object has no explicit initialization, to match description of
11393 functionality of pragam Persistent_BSS.
11394 (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
11395 new function to build static aggregates, to replace initialization call
11396 when static initialization is desired.
11397 (Freeze_Type): Generate a list controller for an access type whenever
11398 its designated type has controlled anonymous access discriminants.
11399 (Build_Equivalent_Aggregate): New procedure to compute a static
11400 aggregate to be used as default initialization for composite types,
11401 instead of a generating a call to the initialization procedure for the
11402 type.
11403 (Build_Initialization_Call): When available, replace a call to the
11404 initialization procedure with a copy of the equivalent static aggregate
11405 for the type.
11406 (Expand_N_Object_Declaration): Use New_Occurrence_Of in generated
11407 declarations for objects of a class-wide interface type, rather than
11408 just identifiers, to prevent visibility problems.
11409 (Expand_N_Object_Declaration): When expanding the declaration for an
11410 object of a class-wide interface type, preserve the homonym chain of
11411 the original entity before exchanging it with that of the generated
11412 renaming declaration.
11413 (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
11414 active, because there is no way to handle the exception.
11415 (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
11416 to do a minimum decoration of the Access_Disp_Table list.
11417 (Expand_Record_Controller): Avoid the addition of the controller between
11418 the component containing the tag of a secondary dispatch table and its
11419 adjacent component that stores the offset to the base of the object.
11420 This latter component is only generated when the parent type has
11421 discriminants ---documented in Add_Interface_Tag_Components).
11422 (Apply_Array_Size_Check): Removed, no longer needed.
11423 (Expand_N_Full_Type_Declaration): If the type has anonymous access
11424 components, create a Master_Entity for it only if it contains tasks.
11425 (Build_Init_Procedure): Suppress the tag assignment compiling under
11426 no run-time mode.
11427 (Freeze_Record_Type): Remove code associated with creation of dispatch
11428 table.
11429 (Init_Secondary_Tags): Update type of actuals when generating calls to
11430 Ada.Tags.Set_Offset_To_Top
11431 (Stream_Operation_OK): Disable use of streams compiling under no
11432 run-time mode
11433 (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
11434 if Has_Init_Expression set.
11435 (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
11436 Register_Primitive, which provides the same functionality.
11437 (Requires_Init_Proc): Return false in case of interface types.
11438 (Add_Secondary_Tables): Use the new attribute Related_Interface to
11439 cleanup the code.
11440 (Predefined_Primitive_Freeze): Do not assume that an internal entity
11441 is always associated with a predefined primitive because the internal
11442 entities associated with interface types are not predefined primitives.
11443 Therefore, the call to Is_Internal is replaced by a call to the
11444 function Is_Predefined_Dispatching_Operation.
11445 (Make_Eq_If): When generating the list of comparisons for the
11446 components of a given variant, omit the controller component that is
11447 present if the variant has controlled components.
11448
114492007-06-06 Javier Miranda <miranda@adacore.com>
11450 Hristian Kirtchev <kirtchev@adacore.com>
11451 Bob Duff <duff@adacore.com>
11452
11453 * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
11454 handle the creation of finalization lists and calls for nested
11455 coextensions when the root of the chains is part of a return statement.
11456 (Inside_A_Return_Statement): New function inside Complete_Coextension_
11457 Finalization.
11458 (Expand_Record_Equality): Skip components that are interface types.
11459 (Displace_Allocator_Pointer): Add missing support for interface subtypes
11460 (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
11461 with Rewrite_Coextension. Change the condition for detecting coextension
11462 root nodes.
11463 (Is_Local_Access_Discriminant): Removed.
11464 (Rewrite_Coextension): New routine which rewrites a static coextension
11465 as a temporary and uses its unrestricted access in the construction of
11466 the outer object.
11467 (Complete_Coextension_Finalization): New routine. Generate finalization
11468 attachment calls to all delayed coextensions.
11469 (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
11470 the allocator is not a coextension itself and has delayed coextensions.
11471 If the current allocator is controlled, but also a coextension, delay
11472 the generation of the finalization attachment call.
11473 Rename local variable "Node" to "Nod" in order to avoid confusion with
11474 "Elists.Node".
11475 (Expand_Allocator_Expression): Call Adjust for initialized allocators of
11476 limited types that are not inherently limited. Such an allocator is
11477 illegal, but is generated by the expander for a return statement, to
11478 copy the result onto the secondary stack. This is the only case where a
11479 limited object can be copied. Generate code to displace the pointer
11480 to the object if the qualified expression is a class-wide interface
11481 object. Such displacement was missing and hence the copy of the object
11482 was wrong.
11483 (Apply_Accessibility_Check): Handle allocated objects initialized in
11484 place.
11485 (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
11486 and Expand_Allocator_Expression. Allocating class-wide interface objects
11487 this routine displaces the pointer to the allocated object to reference
11488 the component referencing the corresponding secondary dispatch table.
11489 Expand_Allocator_Expression): Add missing support to allocate class-wide
11490 interface objects initialized with a qualified expression.
11491 (Get_Allocator_Final_List): Test for an anonymous access type that is a
11492 function result type, and use the finalization list associated with the
11493 function scope in that case (such an anonymous type should not be
11494 treated like an access parameter's type).
11495
114962007-06-06 Ed Schonberg <schonberg@adacore.com>
11497 Gary Dismukes <dismukes@adacore.com>
11498 Javier Miranda <miranda@adacore.com>
11499
11500 * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
11501 controlled type, use Make_Handler_For_Ctrl_Operation to construct the
11502 required exception handler.
11503 (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
11504 properly the case of a function whose return type is a limited
11505 class-wide interface type. Modify the code of the accessibility
11506 check to handle class-wide interface objects. In this case we need to
11507 displace "this" to reference the primary dispatch table to get access
11508 to the TSD of the object (to evaluate its accessibility level).
11509 (Expand_N_Extended_Return_Statement): Test for a tagged result type
11510 rather than a controlling result as one of the conditions for
11511 generating tests of the implicit BIP_Alloc_Form formal. The
11512 initialization assignment is also handled according to whether the
11513 result is tagged instead of controlling.
11514 In the case where the init assignment is inserted in the "then" part of
11515 the allocation conditional, rewrite the target to be a dereference of
11516 the implicit BIP_Object_Access formal.
11517 If the returned value is unconstrained and created on the secondary
11518 stack, mark the enclosing block and function so that the secondary
11519 stack is not reclaimed on return.
11520 Treat returns from functions with controlling results similarly to
11521 returns from functions with unconstrained result subtypes.
11522 If the object returned is unconstrained, and an allocator must be
11523 created for it, analyze the allocator once the block for the extended
11524 return is installed, to ensure that finalizable components
11525 of the expression use the proper finalization list. Guard the call to
11526 Move_Final_List with a check that there is something to finalize.
11527 (Make_Tag_Ctrl_Assignment): Use "old" handling
11528 of controlled type assignment for virtual machines, since new code uses
11529 unsupported features (such as direct access to bytes in memory).
11530
115312007-06-06 Gary Dismukes <dismukes@adacore.com>
11532 Ed Schonberg <schonberg@adacore.com>
11533
11534 * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
11535 accessibility actual, check for the case of an aliased object that has
11536 been rewritten as an Access attribute, and assign Prev to Prev_Orig so
11537 we fall into processing for the attribute rather than the name of the
11538 object.
11539 (Expand_Inline_Call): If an actual is a literal, and the corresponding
11540 formal has its address taken in the body, create a temporary to capture
11541 value. If the return type is a limited interface, do not treat the
11542 return value as Controlled.
11543 (Is_In_Place_Function): If the return type is a limited interface,
11544 treat as returning in place. The actual returned object may not always
11545 be limited, but the caller has to assume that it is returned in place.
11546 (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
11547 context of an allocator, use the correct finalization chain (that is,
11548 the chain belonging to the access type, rather than the chain belonging
11549 to the current scope).
11550 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
11551 result type rather than a controlling result as a precondition for
11552 adding an allocation form actual to a build-in-place call.
11553 (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
11554 (Freeze_Subprogram): Code cleanup. Remove all the code that register the
11555 primitive in the dispatch tables. This work is now done by Make_DT when
11556 the type is frozen.
11557 (Register_Predefined_DT_Entry): Removed.
11558 (Add_Return): If end label is not present, use sloc of last statement
11559 for generated return statement in procedure, for better gdb behavior
11560 on expanded code.
11561 (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
11562 object address nodes to ensure proper processing by routines like
11563 Insert_After*.
11564 (Expand_Call): Fix generation of validity check for parameter
11565 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
11566 the allocation form parameter if the result subtype is constrained,
11567 except when the function has a controlling result.
11568 (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
11569 rather than Is_Controlled and Has_Controlled_Component, since we want to
11570 include class-wide result types in this treatment. Also test for a
11571 controlling result, since that also requires passing a finalization
11572 list.
11573 (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
11574 even when the result subtype is constrained, to handle calls involving
11575 controlling results.
11576 (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
11577 is now called even when the result subtype is constrained, to handle
11578 calls involving controlling results.
11579 (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
11580 on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
11581 now performs the test).
11582 (Make_Build_In_Place_Call_In_Object_Declaration):
11583 Add_Alloc_Form_Actual_* is now called even when the result subtype is
11584 constrained, to handle calls involving controlling results.
11585 (Add_Return): Accomodate rewritten pattern from local raise to goto
11586 transformation, so that we still recognize an transfer statement
11587 and do the right thing here in that case.
11588 (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
11589 and end of subprogram code.
11590 (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
11591 support for primitives that are functions (without formals) with a
11592 controlling result.
11593 (Inherited_From_Formal): If the actual subtype has not generic parent
11594 type, it is not an actual for a formal derived type, and there is no
11595 operation to inherit from the formal.
11596
115972007-06-06 Ed Schonberg <schonberg@adacore.com>
11598 Thomas Quinot <quinot@adacore.com>
11599
11600 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
11601 inserted cleanup code appropriately for GDB use.
11602 (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
11603 exception handler for Deep_Adjust or Deep_Finalize.
11604 (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
11605 Raise_From_Controlled_Operation is available, use a call to that
11606 subprogram instead of a plain "raise Program_Error" node to raise
11607 Program_Error if an exception is propagated from an Adjust or Finalize
11608 operation.
11609 (Insert_Actions_In_Scope_Around): If the statement to be wrapped
11610 appears in the optional statement list of a triggering alternative, the
11611 scope actions can be inserted directly there, and not in the list that
11612 includes the asynchronous select itself.
11613
116142007-06-06 Ed Schonberg <schonberg@adacore.com>
11615 Robert Dewar <dewar@adacore.com>
11616 Hristian Kirtchev <kirtchev@adacore.com>
11617
11618 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
11619 generated exception handler appropriately when debugging generated code.
11620 Deal properly with No_Exception_Propagation restriction mode.
11621 (Expand_N_Abort_Statement): Add an unchecked type conversion from
11622 System.Address to System.Tasking.Task_Id when processing the result of
11623 the predefined primitive _disp_get_task_id.
11624 (Expand_N_Asynchronous_Select): Clarify comment.
11625 (Expand_N_Protected_Type_Declaration): Minor code cleanup.
11626 (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
11627 (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
11628 (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
11629 privals and for generated call to Complete_Entry_Body, for better gdb
11630 behavior.
11631 (Copy_Result_Type): Utility to construct a parameter and result profile
11632 for protected functions whose return type is an anonymous access to
11633 subprogram.
11634 (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
11635 call the above.
11636 (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
11637 point when the local-raise-to-goto transformation has taken place.
11638
116392007-06-06 Javier Miranda <miranda@adacore.com>
11640 Nicolas Setton <setton@adacore.com>
11641
11642 * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
11643 functionality when the backend is generating code.
11644 Otherwise any serious error
11645 reported by the backend calling the frontend routine Error_Msg
11646 changes the Compilation_Mode to Check_Semantics, disables the
11647 functionality of this routine and causes the generation of
11648 spureous additional errors.
11649
11650 * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
11651 debugging information now generated by the compiler for fat-pointer
11652 types.
11653 Document the contents of DW_AT_producer in the GNAT Vendor extensions to
11654 DWARF2/3.
11655 Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
11656
116572007-06-06 Thomas Quinot <quinot@adacore.com>
11658
11659 * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
11660 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
11661 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
11662 For a remote call to a function with a classwide return type, apply an
11663 E.4(18) check to the returned value.
11664 (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
11665 stream attributes of the designated type of an RACW, as they are not
11666 dispatching primitive operations.
11667
116682007-06-06 Geert Bosch <bosch@adacore.com>
11669
11670 * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
11671 negative literal
11672 (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
11673 positive
11674 (Do_Divide_Fixed_Universal): Handle case of negative Frac.
11675 (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
11676 positive
11677 (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
11678
116792007-06-06 Javier Miranda <miranda@adacore.com>
11680
11681 * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
11682 attribute compiling package Ada.Tags under No_Run_Time_Mode.
11683
116842007-06-06 Javier Miranda <miranda@adacore.com>
11685
11686 * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
11687 deallocation of class-wide interface objects.
11688 (Expand_Dispatching_Constructor_Call): Take into account that if the
11689 result of the dispatching constructor is an interface type, the
11690 function returns a class-wide interface type; otherwise the returned
11691 object would be actual. The frontend previously accepted returning
11692 interface types because Expand_Interface_Actuals silently performed
11693 the management of the returned type "as if" it were a class-wide
11694 interface type.
11695 (Expand_Dispatching_Constructor_Call): Replace call to
11696 Make_DT_Access_Action by direct call to Make_Function_Call.
11697
116982007-06-06 Robert Dewar <dewar@adacore.com>
11699 Ed Schonberg <schonberg@adacore.com>
11700
11701 * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
11702 compute masking constant, since we now set Esize properly to the
11703 underlying size.
11704 (Create_Packed_Array_Type): Set proper Esize value adjusted as required
11705 to match the alignment.
11706 (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
11707 packed arrays of 8 bits or less.
11708
11709 * freeze.adb (Freeze_Entity): When freezing the formals of a
11710 subprogram, freeze the designated type of a parameter of an access type
11711 only if it is an access parameter.
11712 Increase size of C convention enumeration object
11713 (Freeze_Entity, array type case): Make sure Esize value is properly
11714 adjusted for the alignment if it is known.
11715 (Freeze_Entity, array type case): When checking bit packed arrays for
11716 the size being incorrect, check RM_Size, not Esize.
11717 (Freeze_Record_Type): Check for bad discriminated record convention
11718 (In_Exp_Body): Return true if the body is generated for a subprogram
11719 renaming, either an attribute renaming or a renaming as body.
11720 (Check_Itype): If the designated type of an anonymous access component
11721 is a non-protected subprogram type, indicate that it is frozen, to
11722 prevent out-of-scope freeze node at some subsequent call.
11723 (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
11724 only if the subprogram is neither imported nor exported, as well as the
11725 NCA descriptor class if the subprogram is exported.
11726
117272007-06-06 Ed Schonberg <schonberg@adacore.com>
11728 Arnaud Charlet <charlet@adacore.com>
11729 Robert Dewar <dewar@adacore.com>
11730 Gary Dismukes <dismukes@adacore.com>
11731
11732 * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
11733 default initialization on an imported object, when there is no
11734 initialization call generated for it.
11735 (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
11736 restriction
11737
11738 * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
11739 Static_Elaboration_Desired.
11740 Remove pragma Thread_Body.
11741 Implement a new pragma No_Body
11742 Removes the Explicit_Overriding pragma
11743 Remove Optional_Overriding pragma
11744 (Prag): Deal with Universal_Aliasing.
11745 (Name_CIL, Name_CIL_Constructor, Convention_CIL,
11746 Pragma_CIL_Constructor): New names.
11747
11748 * sem_cat.adb (Validate_Object_Declaration): An initialization that
11749 uses the equivalent aggregate of a type must be treated as an implicit
11750 initialization.
11751 (Get_Categorization): Check a unit for pragma Preelaborate only if it
11752 has none of the other categories.
11753 (Process_Import_Or_Interface_Pragma): Report an error for an attempt
11754 to apply Import to an object renaming declaration.
11755
11756 * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
11757 from a C++ class should be declared as limited and that it will be
11758 considererd limited.
11759 (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
11760 should be declared as limited and that it will be considererd limited.
11761 (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
11762 (Analyze_Pragma, case Export): Diagnose export of enumeration literal
11763 (Analyze_Pragma): Deal with Universal_Aliasing.
11764 (Sig_Flags): Likewise.
11765 (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
11766 (Overflow_Checks_Unsuppressed): New flag.
11767 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
11768 (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
11769 case of JVM or .NET targets, and compiling user code.
11770 Add debugging convenience routine rv
11771
117722007-06-06 Robert Dewar <dewar@adacore.com>
11773
11774 * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
11775 are interface type.
11776 (Build_Elementary_Input_Call): For floating-point use right type in the
11777 absence of strange size or stream size clauses.
11778 (Build_Elementary_Write_Call): Same fix
11779 (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
11780 set to value that does not match base type size.
11781
117822007-06-06 Ed Schonberg <schonberg@adacore.com>
11783
11784 * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
11785 object of a limited type can be initialized with a call to a function
11786 that returns in place. If the limited type has unknown discriminants,
11787 and the underlying type is a constrained composite type, build an actual
11788 subtype from the function call, as is done for private types.
11789 (Side_Effect_Free): An expression that is the renaming of an object or
11790 whose prefix is the renaming of a object, is not side-effect free
11791 because it may be assigned through the renaming and its value must be
11792 captured in a temporary.
11793 (Has_Controlled_Coextensions): New routine.
11794 (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
11795 as is done for other limited types.
11796 (Non_Limited_Designated_Type): new predicate.
11797 (Make_CW_Equivalent_Type): Modified to handle class-wide interface
11798 objects.
11799 Remove all handling of with_type clauses.
11800
11801 * par-ch10.adb: Remove all handling of with_type clauses.
11802
11803 * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
11804 checksum if the main source could not be parsed.
11805 (Loat_Unit): When processing a child unit, determine properly whether
11806 the parent unit is a renaming when the parent is itself a child unit.
11807 Remove handling of with_type clauses.
11808
11809 * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
11810 (Set_Is_Static_Coextension): New procedure.
11811 (Has_Local_Raise): New function
11812 (Set_Has_Local_Raise): New procedure
11813 (Renaming_Exception): New field
11814 (Has_Init_Expression): New flag
11815 (Delay_Finalize_Attach): Remove because flag is obsolete.
11816 (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
11817 Remove all handling of with_type clauses.
11818 (Exception_Junk): Can now be set in N_Block_Statement
11819
118202007-06-06 Vincent Celier <celier@adacore.com>
11821 Robert Dewar <dewar@adacore.com>
11822
11823 * frontend.adb (Frontend): Return immediately if the main source could
11824 not be parsed, because of preprocessing errors.
11825
11826 * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
11827 (Gnat1drv): Exit with errors if the main source could not be parsed,
11828 because of preprocessing errors.
11829 (Check_Rep_Info): New procedure
11830
118312007-06-06 Robert Dewar <dewar@adacore.com>
11832
11833 * g-hesorg.ads, g-heasor.ads,
11834 g-busorg.ads, g-bubsor.ads: Update documentation
11835 GNAT.Heap/Bubble_Sort_G is now pure
11836
118372007-06-06 Robert Dewar <dewar@adacore.com>
11838
11839 * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
11840
118412007-06-06 Robert Dewar <dewar@adacore.com>
11842 Ed Schonberg <schonberg@adacore.com>
11843
11844 * g-comlin.ads, g-comlin.adb:
11845 Add new warning for renaming of function return objects
11846
11847 * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
11848 (Tree_Read): Use size of object instead of type'object_size, since the
11849 latter is incorrect for packed array types.
11850 (Tree_Write): Same fix
11851
11852 * opt.ads: Add new warning for renaming of function return objects
11853 (Generating_Code): New boolean variable used to indicate that the
11854 frontend as finished its work and has called the backend to process
11855 the tree and generate the object file.
11856 (GCC_Version): Is now private
11857 (Static_Dispatch_Tables): New constant declaration.
11858 (Overflow_Checks_Unsuppressed): New flag.
11859 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
11860 (List_Closure): New flag for gnatbind (-R)
11861 Zero_Formatting: New flag for gnatbind (-Z)
11862 (Special_Exception_Package_Used): New flag.
11863 (Warn_On_Unrepped_Components): New flag.
11864
11865 * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
11866 unit is a compilation unit, rather than relying on its scope, so that
11867 Standard can be renamed.
11868 (Analyze_Object_Renaming): Add new warning for renaming of function
11869 return objects.
11870 Also reject attempt to rename function return object in Ada 83 mode.
11871 (Attribute_Renaming): In case of tagged types, add the body of the
11872 generated function to the freezing actions of the type.
11873 (Find_Type): A protected type is visible right after the reserved word
11874 "is" is encountered in its type declaration. Set the entity and type
11875 rather than emitting an error message.
11876 (New_Scope): Properly propagate Discard_Names to inner scopes
11877 (Check_Nested_Access): New procedure.
11878 (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
11879 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
11880
11881 * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
11882 Add new warning for renaming of function return objects
11883 (Check_References): Suppress warnings for objects whose type or
11884 base type has Warnings suppressed.
11885 (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
11886 (Set_Warning_Switch): Include new -gnatwc in -gnatwa
11887
118882007-06-06 Vincent Celier <celier@adacore.com>
11889 Emmanuel Briot <briot@adacore.com>
11890 Olivier Hainque <hainque@adacore.com>
11891
11892 * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
11893 absolute value of Header.Block_Size when displaying the freed physical
11894 memory in traces.
11895 (Allocate): Compute Storage_Address using Integer_Address, not
11896 Storage_Offset, because the range of Storage_Offset may not be large
11897 enough.
11898 (Configure): New parameter Low_Level_Traces
11899 (Allocate, Deallocation, Free_Physically): Added low-level traces
11900 (Configure): new parameter Errors_To_Stdout.
11901 (Output_File): new subprogram
11902 (Deallocate, Dereference): Send error messages to the proper stream
11903 (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
11904 documented. Previous code would send it to the current output file
11905 defined in GNAT.IO, which might not be stdout
11906 (Is_Valid): Adjust comment to mention that a positive reply means that
11907 Header_Of may be used to retrieve the allocation header associated with
11908 the subprogram Storage address argument. Return False early if this
11909 address argument is misaligned.
11910
119112007-06-06 Vincent Celier <celier@adacore.com>
11912
11913 * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
11914 switch -P
11915 (ASIS_Main): New global variable
11916 (Get_Closure): New procedure
11917 (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
11918 check, metric or pretty. Call Get_Closure in this case.
11919 (Check_Files): For GNAT LIST, check all sources of all projects when
11920 All_Projects is True.
11921 (GNATCmd): Accept -U for GNAT LIST
11922
119232007-06-06 Vincent Celier <celier@adacore.com>
11924
11925 * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
11926 has been specified
11927 Correct error message when invocation of the linker fails
11928 Add explicit size clause for the C imported variables
11929 Object_List_File_Supported and Using_GNU_Linker to emphasize that
11930 we expect char size.
11931 Read target parameters earlier, since this is needed to set
11932 Target_VM properly. Also do not use -static/shared-libgcc for non GCC
11933 targets.
11934
119352007-06-06 Vincent Celier <celier@adacore.com>
11936
11937 * gnatls.adb:
11938 Add 3 spaces before the default project directory when displaying
11939 the project search path.
11940 Add new command line switch '-l' to display license information.
11941
119422007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
11943
11944 * gmem.c: Add support for timestamps on memory operations.
11945
11946 * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
11947 operations (not used currently, just foundation for future
11948 enhancements). Add possibility to perform full dump of gmem.out file.
11949 (Print_Back_Traces): Declare accesses to root arrays constants since
11950 they aren't modified.
11951 (Print_Back_Traces): allocate root arrays on the heap rather than stack.
11952
119532007-06-06 Vincent Celier <celier@adacore.com>
11954
11955 * gnatsym.adb: Update Copyright notice
11956 (Parse_Cmd_Line): Accept new switch -D
11957 (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
11958 file.
11959
11960 * prj.ads (Policy): New policy Direct
11961 (Yes_No_Unknown): New enumeration type
11962 (Project_Data): New component Libgnarl_Needed
11963
11964 * prj-nmsc.adb (Check_For_Source): When recording a source file make
11965 use the untouched pathname casing.
11966 (Get_Directories): Ensure that the Display_Exec_Directory is using the
11967 proper casing on non case-sensitive platforms like Windows.
11968 (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
11969 on all platforms, as it is not possible to know which one is allowed
11970 before processing the project files.
11971 (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
11972 specified when symbol policy is Direct. Check that when there is a
11973 symbol file defined (either by default or with attribute
11974 Library_Symbol_File) it is not the same as the reference symbol file.
11975 (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
11976 (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
11977 extending projects.
11978 (Record_Ada_Source): Record a source that has been locally removed in an
11979 imported project.
11980
11981 * symbols.ads (Policy): New policy Direct
11982
11983 * symbols-vms.adb (Initialize): Take new policy Direct in case
11984 statement
11985
119862007-06-06 Vincent Celier <celier@adacore.com>
11987
11988 * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
11989 Correct obvious bug (return Dir; instead of return Directory;).
11990 (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
11991
119922007-06-06 Thomas Quinot <quinot@adacore.com>
11993
11994 * g-pehage.adb (Produce): Open output files in Binary mode, so that
11995 they have UNIX line endings (LF only) even on Windows, and thus pass
11996 all GNAT style checks.
11997
119982007-06-06 Emmanuel Briot <briot@adacore.com>
11999
12000 * g-regpat.adb (Quote): Fix improper quoting of '.'
12001
120022007-06-06 Thomas Quinot <quinot@adacore.com>
12003
12004 * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
12005 default, set False on a per-runtime basis.
12006 (Need_Netdb_Buffer): New constant.
12007
12008 * g-socket.ads, g-socket.adb: Import new package
12009 GNAT.Sockets.Thin.Task_Safe_NetDB.
12010 (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
12011 binding to obtain proper message.
12012 (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
12013 Replace various occurrences of Arry (Arry'First)'Address with the
12014 equivalent Arry'Address (GNAT always follows implementation advice from
12015 13.3(14)).
12016 (Get_Host_By_Address, Get_Host_By_Name,
12017 Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
12018 instead, rely on platform-specific task safe netdb operations provided
12019 by g-socthi.
12020
12021 * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
12022 parameter Process_Blocking_IO.
12023 (Host_Error_Messages): Add stub body.
12024 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
12025 (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
12026 Safe_Getservbyport): Move functions into new child package
12027 Task_Safe_NetDB.
12028 (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
12029 Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
12030 (In_Addr): Add alignment clause.
12031
120322007-06-06 Robert Dewar <dewar@adacore.com>
12033
12034 * g-trasym.ads, g-traceb.ads: Update list of supported targets
12035 Add note about symbolic traceback
12036
120372007-06-06 Pascal Obry <obry@adacore.com>
12038
12039 * hostparm.ads (Normalized_CWD): Use the host directory separator
12040 instead of the hardcoded forward slash which is not the proper
12041 character on Windows for example.
12042 (Java_VM): Removed.
12043
120442007-06-06 Vincent Celier <celier@adacore.com>
12045 Arnaud Charlet <charlet@adacore.com>
12046
12047 * a-clrefi.adb, a-clrefi.ads: New files
12048
12049 * impunit.adb: Add s-os_lib in the list of user visible units.
12050 (Non_Imp_File_Names_95): Add a-clrefi to this list
12051 Remove obsolete run-time entries.
12052 (Non_Imp_File_Names_05): Add Ada 2005 entries for:
12053 "a-exetim" -- Ada.Execution_Time
12054 "a-extiti" -- Ada.Execution_Time.Timers
12055
12056 * mlib-prj.ads, mlib-prj.adb
12057 (Build_Library): Use untouched object dir and library dir. At the
12058 same time makes sure that the checks are done using the canonical
12059 form. Removes hard-coded directory separator and use the proper host
12060 one instead.
12061 (Process_Project): Do not look in object directory to check if libgnarl
12062 is needed for a library, if there is no object directory.
12063 (Build_Library): Scan the ALI files to decide if libgnarl is needed for
12064 linking.
12065 (Build_Library): When invoking gnatbind, use a response file if the
12066 total size of the arguments is too large.
12067
12068 * Makefile.rtl: (g-sttsne): New object file.
12069 Add entry for a-clrefi, s-utf_32, System.Exceptions
12070
12071 * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
12072 (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
12073 (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
12074 Change g-string to s-string, g-os_lib to s-os_lib
12075 Change all g-utf_32 references to s-utf_32
12076
120772007-06-06 Tristan Gingold <gingold@adacore.com>
12078 Olivier Hainque <hainque@adacore.com>
12079
12080 * init.c: Do not adjust IP of an imported VMS exception of ia64.
12081 LIB$STOP is called to raise an exception and the IP of the exception
12082 is the instruction right after the call.
12083 (__gnat_adjust_context_for_raise, AIX): Implement.
12084 (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
12085 adjust_context_for_raise before Raise_From_Signal_Hanler.
12086 (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
12087 siginfo is passed to the handler, necessary to let the zcx propagation
12088 engine unwind past it.
12089
120902007-06-06 Olivier Hainque <hainque@adacore.com>
12091
12092 * initialize.c (__gnat_initialize for vxworks): Update documentation
12093 on the ZCX support, using different sets of crtstuff objects than with
12094 GCC 3.4.
12095
120962007-06-06 Robert Dewar <dewar@adacore.com>
12097
12098 * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
12099 spec from body
12100 (Layout_Type): Fix recomputation of size from alignment.
12101
121022007-06-06 Ed Schonberg <schonberg@adacore.com>
12103 Javier Miranda <miranda@adacore.com>
12104
12105 * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
12106 association in an instance.
12107 (Copy_Generic_Node): If the node is a string literal, no need to copy
12108 its descendants.
12109 (Is_Generic_Formal): For a formal subprogram, the declaration is the
12110 grandparent of the entity.
12111 (Analyze_Formal_Interface_Type): Transform into a full type declaration,
12112 to simplify handling of formal interfaces that derive from other formal
12113 interfaces.
12114 (Instantiate_Subprogram_Body): The defining unit name of the body of
12115 the instance should be a defining identifier.
12116 (Install_Formal_Packages): make global to the package, for use in
12117 instantiations of child units.
12118 (Analyze_Package_Instantiation): Do not attempt to set information on an
12119 enclosing master of an entry when expansion is disabled.
12120 (Instantiate_Type): If the actual is a tagged synchronized type and the
12121 generic ancestor is an interface, create a generic actual for the
12122 corresponding record.
12123 (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
12124 declaration, to ensure that the interface list is processed correctly.
12125 (Inline_Instance_Body): If enclosing scope is an instance body, remove
12126 its entities from visibiility as well.
12127 (Pre_Analyze_Actuals): if the actual is an allocator with constraints
12128 given with a named association, analyze the expression only, not the
12129 discriminant association itself.
12130 (Reset_Entity): If the analysis of a selected component is transformed
12131 into an expanded name in the prefix of a call with parameters, do not
12132 transform the original node into an expanded name, to prevent visibility
12133 errors in the case of nested generics.
12134 (Check_Private_View): For an array type, check whether the index types
12135 may need exchanging.
12136
121372007-06-06 Arnaud Charlet <charlet@adacore.com>
12138 Vincent Celier <celier@adacore.com>
12139
12140 * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
12141 since both are separated.
12142 Add support for imported CIL packages.
12143 Add further special handling of "value_type" for CIL.
12144 Add special handling of pragma Import for CIL.
12145
12146 * make.ads, make.adb: When switch -eS is used, direct all outputs to
12147 standard output instead of standard error, except errors.
12148 (Absolute_Path): Use untouched casing for the parent directory.
12149 (Add_Library_Search_Dir): Use the untouched directory name.
12150 (Add_Source_Search_Dir): Idem.
12151 (Change_To_Object_Directory): Update output to use proper casing.
12152 (Create_Binder_Mapping_File): Use the untouched filename to set
12153 ALI_Name.
12154 (Gnatmake): Use untouched library and executable directory names.
12155 (Insert_Project_Sources): Use untouched filename for spec and body.
12156 (Is_In_Object_Directory): Use untouched object directory.
12157 (Mark_Directory): Idem.
12158 (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
12159 contains the non-canonical filename in all cases.
12160 (Change_To_Object_Directory): In verbose mode, display the name of the
12161 object directory we're changing to.
12162 (Compile_Sources): Make sure, when a project file is used, to compile
12163 the body of the unit, when there is one, even when only the spec is
12164 recorded in an ALI file.
12165 (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
12166 spec to the body.
12167 (Report_Compilation_Failed): New procedure
12168 (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
12169 procedures moved from the spec to the body.
12170 (Extract_Failure): Removed, not used
12171 Replace explicit raises of exception Bind_Failed and Link_Failed with
12172 calls to Make_Failed with the proper message.
12173 Replace explicit raises of exception Compilation_Failed with calls to
12174 procedure Report_Compilation_Failed.
12175 (Initialize): Create mapping files unconditionally when using project
12176 files.
12177
12178 * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
12179 Pragma_CIL_Constructor): New names.
12180
12181 * targparm.ads, targparm.adb
12182 (Compiler_System_Version): Removed, no longer used.
12183 (Get_Target_Parameters): Relax checks on system.ads validity. Add
12184 handling of two new system flags: JVM and CLI.
12185
121862007-06-06 Jose Ruiz <ruiz@adacore.com>
12187 Arnaud Charlet <charlet@adacore.com>
12188
12189 * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
12190 time, use the default s-interr body that provides interrupt support
12191 based on signals.
12192 (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
12193 a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
12194 g-soccon.ads, and s-taprop.adb for the marte run time.
12195 (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
12196 timers are supported on marte.
12197 (EH_MECHANISM for marte): Do not use ZCX.
12198 (THREADSLIB for marte): Use -lmarte.
12199 Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
12200 Add mlib-tgt-specific.o to gnatmake objects
12201 mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
12202 longer of MLib.Tgt.
12203 (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
12204 6, either kernel or rtp, use a specialized version of s-osinte.ads.
12205
122062007-06-06 Pascal Obry <obry@adacore.com>
12207
12208 * mkdir.c (__gnat_mkdir): Add support for UTF-8.
12209
122102007-06-06 Vincent Celier <celier@adacore.com>
12211
12212 * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
12213 separator, use instead the proper host directory separator.
12214 (Copy_ALI_Files): Make sure that an already existing ALI file in the
12215 ALI copy dir is writable, before doing the copy.
12216
12217 * mlib-utl.ads, mlib-utl.adb:
12218 (Gcc): If length of command line is too long, put the list of object
12219 files in a response file, if this is supported by the platform.
12220 (Ar): If invocation of the archive builder is allowed to be done in
12221 chunks and building it in one shot would go above an OS dependent
12222 limit on the number of characters on the command line, build the archive
12223 in chunks.
12224
122252007-06-06 Vincent Celier <celier@adacore.com>
12226
12227 * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
12228 of specified object file is not equal to base name of source.
12229
122302007-06-06 Javier Miranda <miranda@adacore.com>
12231 Hristian Kirtchev <kirtchev@adacore.com>
12232 Ed Schonberg <schonberg@adacore.com>
12233
12234 * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
12235 the full type declaration.
12236 (Analyze_Component_Declaration): Add local variable E to capture the
12237 initialization expression of the declaration. Replace the occurences of
12238 Expression (N) with E.
12239 (OK_For_Limited_Init_In_05): Allow initialization of class-wide
12240 limited interface object with a function call.
12241 (Array_Type_Declaration): If the declaration lacks subtype marks for
12242 indices, create a simple index list to prevent cascaded errors.
12243 (Is_Null_Extension): Ignore internal components created for secondary
12244 tags when checking whether a record extension is a null extension.
12245 (Check_Abstract_Interfaces): Add missing support for interface subtypes
12246 and generic formals.
12247 (Derived_Type_Declaration): Add missing support for interface subtypes
12248 and generic formals.
12249 (Analyze_Object_Declaration): If an initialization expression is
12250 present, traverse its subtree and mark all allocators as static
12251 coextensions.
12252 (Add_Interface_Tag_Component): When looking for components that may be
12253 secondary tags, ignore pragmas that can appear within a record
12254 declaration.
12255 (Check_Abstract_Overriding): an inherited function that dispatches on
12256 result does not need to be overriden if the controlling type is a null
12257 extension.
12258 (Mentions_T): Handle properly a 'class attribute in an anonymous access
12259 component declaration, when the prefix is an expanded name.
12260 (Inherit_Component): If the derivation is for a private extension,
12261 inherited components remain visible and their ekind should not be set
12262 to Void.
12263 (Find_Type_Of_Object): In the case of an access definition, always set
12264 Is_Local_Anonymous_Access. We were previously not marking the anonymous
12265 access type of a return object as a local anonymous type.
12266 (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
12267 range with character literal bounds.
12268 (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
12269 (Access_Subprogram_Declaration): Indicate that the type declaration
12270 depends on an incomplete type only if the incomplete type is declared
12271 in an open scope.
12272 (Analyze_Subtype_Declaration): Handle properly subtypes of
12273 synchronized types that are tagged, and that may appear as generic
12274 actuals.
12275 (Access_Subprogram_Declaration): An anonymous access to subprogram can
12276 appear as an access discriminant in a private type declaration.
12277 (Add_Interface_Tag_Components): Complete decoration of the component
12278 containing the tag of a secondary dispatch table and the component
12279 containing the offset to the base of the object (this latter component
12280 is only generated when the parent type has discriminants --as documented
12281 in this routine).
12282 (Inherit_Components): Use the new decoration of the tag components to
12283 improve the condition that avoids inheriting the components associated
12284 with secondary tags of the parent.
12285 (Build_Discriminanted_Subtype): Indicate to the backend that the
12286 size of record types associated with dispatch tables is known at
12287 compile time.
12288 (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
12289 (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
12290 to include task, protected, and synchronized interfaces as limited
12291 interfaces.
12292 (Process_Discriminants): Remove the setting of
12293 Is_Local_Anonymous_Access on the type of (anonymous) access
12294 discriminants of nonlimited types.
12295 (Analyze_Interface_Type_Declaration): Complete the decoration of the
12296 class-wide entity it is is already present. This situation occurs if
12297 the limited-view has been previously built.
12298 (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
12299 field.
12300 (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
12301 Related_Interface.
12302
123032007-06-06 Ed Schonberg <schonberg@adacore.com>
12304
12305 * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
12306 of the type that specify the position of interface tags when the type
12307 inherits discriminated array components from the parent type.
12308 If a component is initialized with a box, check for the presence of a
12309 default expression in its declaration before using its default
12310 initialization procedure.
12311 (Resolve_Record_Aggregate): If a component is box-initialized, and the
12312 component type has a discriminants, create a partial aggregate for it
12313 by copying the discriminants of the component subtype.
12314 Reject attempt to initialize a discriminant with a box.
12315 (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
12316 associated with dispatch tables is known at compile time.
12317 (Get_Value): If an association in a record aggregate has a box
12318 association, and the corresponding record component has a default
12319 expression, always copy the default expression, even when the
12320 association has a single choice, in order to create a proper
12321 association for the expanded aggregate.
12322
123232007-06-06 Ed Schonberg <schonberg@adacore.com>
12324 Robert Dewar <dewar@adacore.com>
12325
12326 * par-ch12.adb (P_Generic_Associations): The source position of an
12327 Others association is that of the others keyword, not that of the token
12328 that follows the box.
12329 (P_Formal_Type_Definition): Handle formal access types that carry a
12330 not null indicator.
12331
12332 * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
12333 multiple identifier are present, save Scan_State before scanning the
12334 colon, to ensure that separate trees are constructed for each
12335 declaration.
12336 (P_Identifier_Declarations): For object declaration, set new flag
12337 Has_Init_Expression if initialization expression present.
12338 (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
12339 Improve NOT NULL error messages
12340
123412007-06-06 Robert Dewar <dewar@adacore.com>
12342
12343 * par-ch4.adb: (P_Name): Recover from literal used as name
12344
123452007-06-06 Vincent Celier <celier@adacore.com>
12346
12347 * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
12348 defaulted to False.
12349 In the "not" case, recursive call with Complemented set to True.
12350 Do not allow "or" or "and" operators when Complemented is True.
12351
123522007-06-06 Vincent Celier <celier@adacore.com>
12353
12354 * prj.adb (Project_Empty): Gives default value for new component
12355 Libgnarl_Needed
12356
12357 * prj-attr.ads: Minor reformatting
12358
12359 * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
12360 directory using the untouched casing.
12361 (For_All_Source_Dirs): Idem.
12362
12363 * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
12364 directories specified with switches -aP.
12365 (Add_Search_Project_Directory): New procedure
12366 (Initialize_Project_Path): Put the directories in table
12367 Search_Directories in the project search path.
12368 (Initialize_Project_Path): For VMS, transform into canonical form the
12369 project path.
12370
123712007-06-06 Arnaud Charlet <charlet@adacore.com>
12372
12373 * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
12374 true if configurable run-time or No_Run_Time is set.
12375 (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
12376 processing an unit which is not the one being compiled.
12377
123782007-06-06 Arnaud Charlet <charlet@adacore.com>
12379
12380 * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
12381 Replace UC by Ada.UC
12382
12383 * s-bitops.adb: Get rid of System.Pure_Exceptions.
12384 Replace UC by Ada.UC
12385
123862007-06-06 Robert Dewar <dewar@adacore.com>
12387
12388 * scng.adb: (Check_End_Of_Line): Deal with very long lines
12389
123902007-06-06 Robert Dewar <dewar@adacore.com>
12391
12392 * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
12393 Remove no longer used nodes.
12394
123952007-06-06 Javier Miranda <miranda@adacore.com>
12396 Ed Schonberg <schonberg@adacore.com>
12397 Robert Dewar <dewar@adacore.com>
12398
12399 * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
12400 on obsolescent withed unit in case of limited-withed units.
12401 (Analyze_Compilation_Unit): Add guard to code that removed an
12402 instantiation from visibility, to prevent compiler aborts when
12403 instantiation is abandoned early on.
12404 (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
12405 current unit being analyzed, and Distinguish local incomplete types
12406 from limited views of types declared elsewhere.
12407 (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
12408 to state that the class-wide entity is shared by the limited-view
12409 and the full-view.
12410 (Analyze_With_Clause): Improve placement of flag for case of
12411 unimplemented unit.
12412 (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
12413 manner similar to GNAT.Current_Exception. This is a violation of
12414 restriction (No_Exception_Propagation), and also inhibits the
12415 optimization of local raise to goto.
12416 (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
12417 and if so set Most_Recent_Exception_Used flag in Opt, and also check
12418 for violation of restriction No_Exception_Propagation.
12419
124202007-06-06 Javier Miranda <miranda@adacore.com>
12421 Hristian Kirtchev <kirtchev@adacore.com>
12422 Gary Dismukes <dismukes@adacore.com>
12423
12424 * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
12425 use of entity Exception_Occurrence if it is not available in the
12426 target run-time.
12427
12428 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
12429 concurrent types are declared within an Ada 2005 generic, build their
12430 corresponding record types since they are needed for overriding-related
12431 semantic checks.
12432 (Analyze_Protected_Type): Rearrange and simplify code for testing that a
12433 protected type does not implement a task interface or a nonlimited
12434 interface.
12435 (Analyze_Task_Type): Rearrange and simplify code for testing that a task
12436 type does not implement a protected interface or a nonlimited interface.
12437 (Single_Task_Declaration, Single_Protected_Declaration): use original
12438 entity for variable declaration, to ensure that debugging information
12439 is correcty generated.
12440 (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
12441 routines if the expander is not active.
12442 (Analyze_Task_Body): Mark all handlers to stop optimization of local
12443 raise, since special things happen for task exception handlers.
12444
12445 * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
12446 concurrent types declared within a generic.
12447 (Check_Dispatching_Operation): Do not emit warning about late interface
12448 operations in the context of an instance.
12449 (Check_Dispatching_Call): Remove restriction against calling a
12450 dispatching operation with a limited controlling result.
12451 (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
12452 Register_Interface_DT_Entry by calls to Register_Primitive.
12453 (Check_Dispatching_Formals): Handle properly a function with a
12454 controlling access result.
12455
124562007-06-06 Robert Dewar <dewar@adacore.com>
12457 Arnaud Charlet <charlet@adacore.com>
12458
12459 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
12460 Check for restriction No_Implementation_Attributes if in Ada 95 mode.
12461 (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
12462 (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
12463 message when using a VM, since this attribute is not supported.
12464 (Analyze_Record_Representation_Clause): Give unrepped component warnings
12465
12466 * usage.adb: Add new warning for renaming of function return objects
12467 Indicate that -gnatwp and -gnatwP concern front-end inlining
12468 Add line for -gnatyg
12469 Add usage information for -gnatw.c/C
12470
124712007-06-06 Robert Dewar <dewar@adacore.com>
12472 Ed Schonberg <schonberg@adacore.com>
12473
12474 * sem_ch5.adb
12475 (Find_Var): Do not consider function call in test for infinite loop
12476 warning if warnings set off for function entity.
12477 (One_Bound): Do not create a temporary for a loop bound if it is a
12478 character literal.
12479 (Analyze_Assignment): Traverse the right hand side of an assignment and
12480 mark all allocators as static coextensions.
12481 (Analyze_Assignment): Exempt assignments involving a dispatching call
12482 to a function with a controlling access result from the check requiring
12483 the target to be class-wide.
12484
124852007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
12486 Ed Schonberg <schonberg@adacore.com>
12487 Robert Dewar <dewar@adacore.com>
12488 Javier Miranda <miranda@adacore.com>
12489
12490 * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
12491 chain of coextensions when an allocator serves as the root of such a
12492 chain.
12493 (Propagate_Coextensions): Remove the test for the root being an
12494 allocator.
12495 (Resolve_Allocator): Add condition to ensure that all future decoration
12496 occurs on an allocator node. Add processing and cleanup for static
12497 coextensions.
12498 (Valid_Conversion): If the operand type is the limited view of a
12499 class-wide type, use the non-limited view is available to determine
12500 legality of operation.
12501 (Ambiguous_Character): move to spec, for use elsewhere.
12502 (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
12503 (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
12504 character literals.
12505 (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
12506 Do_Division_Check flag explicitly.
12507 (Resolve_Actuals): If the actual is of a synchronized type, and the
12508 formal is of the corresponding record type, this is a call to a
12509 primitive operation of the type, that is declared outside of the type;
12510 the actual must be unchecked-converted to the type of the actual
12511 (Resolve_Call): Kill all current values for any subprogram call if
12512 flag Suppress_Value_Tracking_On_Call is set.
12513 (Resolve_Type_Conversion): Generate error message the the operand
12514 or target of interface conversions come from a limited view.
12515 (Check_Infinite_Recursion): Ignore generated calls
12516 (Check_Allocator_Discrim_Accessibility): New procedure for checking
12517 that an expression that constrains an access discriminant in an
12518 allocator does not denote an object with a deeper level than the
12519 allocator's access type.
12520 (Resolve_Allocator): In the case of an allocator initialized by an
12521 aggregate of a discriminated type, check that associations for any
12522 access discriminants satisfy accessibility requirements by calling
12523 Check_Allocator_Discrim_Accessibility.
12524 (Resolve_Equality_Op): Handle comparisons of anonymous access to
12525 subprogram types in the same fashion as other anonymous access types.
12526 (Resolve_Concatenation_Arg): Remove initial character '\' in an error
12527 message that is not a continuation message.
12528 (Resolve_Type_Conversion): Add missing support for conversion to
12529 interface type.
12530 (Resolve_Actuals): Introduce a transient scope around the call if an
12531 actual is a call to a function returning a limited type, because the
12532 resulting value must be finalized after the call.
12533 (Resolve_Actuals): If the call was given in prefix notations, check
12534 whether an implicit 'Access reference or implicit dereference must be
12535 added to make the actual conform to the controlling formal.
12536
125372007-06-06 Robert Dewar <dewar@adacore.com>
12538 Javier Miranda <miranda@adacore.com>
12539
12540 * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
12541 (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
12542 overriding of an inherited private subprogram now there is no need to
12543 inherit its dispatching slot and reduce the size of the dispatch table.
12544 Set_All_DT_Position now ensures that the same slot is now assigned to
12545 both entities. This is required to statically build the dispatch table.
12546 (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
12547 of calling Set_All_DT_Position to re-evaluate the position of the
12548 entries in the dispatch table. Such reevaluation is not desired if
12549 the tagged type is already frozen.
12550
125512007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
12552 Gary Dismukes <dismukes@adacore.com>
12553 Robert Dewar <dewar@adacore.com>
12554 Javier Miranda <miranda@adacore.com>
12555
12556 * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
12557 reference acts as an lvalue when the attribute name modifies the prefix
12558 (Is_Coextension_Root): New routine.
12559 (Mark_Static_Coextensions): New routine.
12560 (Type_Access_Level): Revise code for checking the level of the
12561 anonymous access type of a return object.
12562 (Safe_To_Capture_Value): Not safe to capture if Address_Taken
12563 (Matches_Prefixed_View_Profile): Remove the no longer necessary
12564 retrieval of the corresponding controlling record type.
12565 (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
12566 concurrent types declared within a generic as well as class wide types.
12567 Emit a mode incompatibility error whenever a protected entry or routine
12568 override an interface routine whose first parameter is not of mode
12569 "out", "in out" or access to variable.
12570 (Overrides_Synchronized_Primitive): Rename to
12571 Find_Overridden_Synchronized_Primitive.
12572 (Collect_Interface_Components): New subprogram that collects all the
12573 components of a tagged record containing tags of secondary dispatch
12574 tables.
12575 (Add_Global_Declaration): New procedure
12576 (Abstract_Interface_List): Handle properly the case of a subtype of a
12577 private extension.
12578 (Type_Access_Level): In the case of a type whose parent scope is a
12579 return statement, call Type_Access_Level recursively on the enclosing
12580 function's result type to determine the level of the return object's
12581 type.
12582 (Build_Elaboration_Entity): Build name of elaboration entity from the
12583 scope chain of the entity, rather than the unit name of the file name.
12584 (Check_Nested_Access): New procedure.
12585 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
12586 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
12587 (Get_Renamed_Entity): Utility routine for performing common operation
12588 of chasing the Renamed_Entity field of an entity.
12589
125902007-06-06 Robert Dewar <dewar@adacore.com>
12591
12592 * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
12593 elaboration model
12594 (Check_A_Call): Add check for entry call which was causing blowup
12595
125962007-06-06 Olivier Hainque <hainque@adacore.com>
12597
12598 * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
12599 special code on ia64-vms to handle major incompatibilities between the
12600 GCC unwinding ABI and the VMS Condition Handling Facility, both calling
12601 this routine with a very different set of arguments and expectations on
12602 the return value.
12603
126042007-06-06 Thomas Quinot <quinot@adacore.com>
12605
12606 * socket.c (__gnat_close_signalling_fd): New function.
12607 (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
12608 __gnat_safe_getservbyname, __gnat_safe_getservbyport):
12609 New supporting functions for task safe Netdb operations.
12610
126112007-06-06 Thomas Quinot <quinot@adacore.com>
12612 Olivier Hainque <hainque@adacore.com>
12613
12614 * a-except-2005.ads, a-except-2005.adb
12615 (Raise_From_Controlled_Operation): New procedure in
12616 (private part of) Ada.Exceptions (standard runtime version). Used to
12617 provide informational exception message when Program_Error is raised as
12618 a result of an Adjust or Finalize operation propagating an exception.
12619 (Rmsg_28): Fix description for E.4(18) check.
12620 (Raise_Current_Excep): Call Debug_Raise_Exception just before
12621 propagation starts, to let debuggers know about the event in a reliable
12622 fashion.
12623 Take the address of E and dereference to make sure it is homed on stack
12624 and prevent the stores from being deleted, necessary for proper
12625 debugger behavior on "break exception" hits.
12626 (Local_Raise): Moved to System.Exceptions
12627
12628 * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
12629 exception message from the current occurrence and raise Program_Error
12630 has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
12631
126322007-06-06 Jose Ruiz <ruiz@adacore.com>
12633 Arnaud Charlet <charlet@adacore.com>
12634
12635 * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
12636 lock, if needed.
12637
12638 * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
12639 priority associated to a lock.
12640
12641 * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
12642 assertion to take into account case of no abort restriction.
12643 (Initialize_Protection_Entries): Add initialization for the field
12644 New_Ceiling associated to the protected object.
12645 (Unlock_Entries): Change the ceiling priority of the underlying lock, if
12646 needed.
12647
12648 * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
12649 since this function needs to be set consistently with Update_Exception.
12650
12651 * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
12652 since this function needs to be set consistently with Update_Exception.
12653
12654 * s-taskin.ads: Update comments on
12655 Interrupt_Server_Blocked_On_Event_Flag.
12656 (Unbind_Handler): Fix handling of server_task wakeup
12657 (Server_Task): Set self's state so that Unbind_Handler can take
12658 appropriate actions.
12659 (Common_ATCB): Now use a constant from System.Parameters to determine
12660 the max size of the Task_Image field.
12661
12662 * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
12663 Initialize_Analyzer function.
12664 ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
12665 take into account case of no abort restriction.
12666 ([Vulnerable_]Complete_Master): Modify assertion.
12667
12668 * s-tataat.adb (Finalize): Use the nestable versions of
12669 Defer/Undefer_Abort.
12670
12671 * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
12672
12673 * s-tpobop.ads: Update comments.
12674
12675 * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
12676 of locking the object manually, to avoid inconsistencies between
12677 Lock/Unlock_Entry assertions.
12678
12679 * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
12680 terminating
12681 application and System.Parameters.No_Abort is True.
12682 Update comments on Interrupt_Server_Blocked_On_Event_Flag.
12683 (Unbind_Handler): Fix handling of server_task wakeup
12684 (Server_Task): Set self's state so that Unbind_Handler can take
12685 appropriate actions.
12686
126872007-06-06 Thomas Quinot <quinot@adacore.com>
12688
12689 * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
12690 declarations instead of an explicit null body, for conciseness.
12691
126922007-06-06 Robert Dewar <dewar@adacore.com>
12693
12694 * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
12695 illegal aggregate and the type is still Any_Composite.
12696 (Subtypes_Statically_Match): Fix problem of empty discriminant list
12697
126982007-06-06 Ed Schonberg <schonberg@adacore.com>
12699
12700 * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
12701 to prevent subsequent expansion.
12702
127032007-06-06 Robert Dewar <dewar@adacore.com>
12704
12705 * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
12706
127072007-06-06 Ed Schonberg <schonberg@adacore.com>
12708 Robert Dewar <dewar@adacore.com>
12709
12710 * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
12711 exceptions.
12712 (Write_Itype): Handle case of string literal subtype, which
12713 comes up in this context.
12714 (Update_Itype): when debugging expanded code, update sloc of itypes
12715 associated with defining_identifiers and ranges, for gdb use.
12716 (Sprint_Node_Actual): Add static keyword to object or exception
12717 declaration output if Is_Statically_Allocated is True.
12718 (Sprint_End_Label): Set entity of end marker for a subprogram, package,
12719 or task body, so that the tree carries the proper Sloc information for
12720 debugging use.
12721 (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
12722
127232007-06-06 Arnaud Charlet <charlet@adacore.com>
12724
12725 * s-secsta.adb (Chunk): Ensure this object has a static size known at
12726 compile time, to avoid dynamic memory allocation
12727 (Elaboration code): Only use dynamic memory allocation when needed.
12728
127292007-06-06 Quentin Ochem <ochem@adacore.com>
12730
12731 * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
12732 "Overflow_Guard".
12733 (Stack_Analyzer): Added field "Overflow_Guard"
12734 (Task_Result): Added field "Overflow_Guard".
12735 (Index_Str): New constant.
12736 (Task_Name_Str): New constant.
12737 (Actual_Size_Str): New constant.
12738 (Pattern_Array_Element_Size): New constant.
12739 (Get_Usage_Range): New subprogram.
12740 (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
12741 Now align the output.
12742 Added comments.
12743 (Initialize): Added value for Overflow_Guard.
12744 (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
12745 Update the value of the overflow guard according to the actual
12746 beginning of the pattern array.
12747 (Initialize_Analyzer): Added parameter Overflow_Guard.
12748 Take this parameter into accound when computing the max size.
12749 (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
12750 (Report_Result): Removed extra useless procedure.
12751 Updated call to Output_Result.
12752 Moved full computation of the Task_Result here.
12753
127542007-06-06 Thomas Quinot <quinot@adacore.com>
12755
12756 * g-soccon-darwin.ads, gen-soccon.c: Add new constant
12757 Thread_Blocking_IO, always True by default, set False on a per-runtime
12758 basis.
12759 Add Windows-specific constants
12760 Add new constant Need_Netdb_Buffer.
12761 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
12762 not, whether to use getXXXbyYYY_r.
12763
12764 * gsocket.h: Add new constant Need_Netdb_Buffer.
12765 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
12766 not, whether to use getXXXbyYYY_r.
12767
127682007-06-06 Eric Botcazou <ebotcazou@adacore.com>
12769
12770 * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
12771 than their first call.
12772 Add type Dummy_Communication_Block used in the generation of the pre-
12773 defined dispatching primitive _disp_asynchronous_select.
12774 (Storage_Element): Put Pragma Universal_Aliasing on it.
12775
127762007-06-06 Vincent Celier <celier@adacore.com>
12777
12778 * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
12779 function.
12780
12781 * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
12782 letter if it is not followed by a '/' or a '\'.
12783 (Windows): New Boolean function
12784
12785 * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
12786 Ada 2005.
12787 (Containing_Directory): On Windows, keep at least one '/' or '\' after a
12788 drive letter.
12789 (Containing_Directory): Raise Use_Error when the directory is a root
12790 directory.
12791 (Extension): When returning the result, use a conversion to Result_Type,
12792 not a qualification.
12793
127942007-06-06 Robert Dewar <dewar@adacore.com>
12795
12796 * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
12797 (Set_Style_Check_Options): Recognize new -gnatyg style switch
12798
12799 * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
12800 Warn_On_Non_Local_Exception to False, to turn off warnings for
12801 No_Exception_Propagation in ZFP runtime.
12802 (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
12803 back-ends.
12804 (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
12805
128062007-06-06 Vincent Celier <celier@adacore.com>
12807
12808 * switch-b.adb (Scan_Binder_Switches): Add processing for new
12809 switches -R and -Z
12810
12811 * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
12812 (Scan_Make_Switches): Recognize new switch -aP
12813
128142007-06-06 Matthew Gingell <gingell@adacore.com>
12815 Jose Ruiz <ruiz@adacore.com>
12816
12817 * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
12818 VxWorks task descriptor in the Ada run time, call a C subprogram
12819 (__gnat_get_stack_info) that extracts the required information.
12820
12821 * sysdep.c: Back out temporary lynxos workaround.
12822 (__gnat_get_stack_info): Add this procedure that passes to the Ada run
12823 time the stack information associated to the currently executing task.
12824 Only VxWorks systems require this function.
12825
128262007-06-06 Eric Botcazou <ebotcazou@adacore.com>
12827
12828 * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
12829 add the stack bias if the offset is computed from a frame address.
12830 (__gnat_backtrace): Adjust for above change.
12831
128322007-06-06 Thomas Quinot <quinot@adacore.com>
12833
12834 * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
12835 PE_Non_Transportable_Actual.
12836 (By_Descriptor_Last): New constant.
12837 (By_Copy_Return): Likewise.
12838
128392007-06-06 Vincent Celier <celier@adacore.com>
12840
12841 * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
12842 is.
12843
12844 * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
12845 /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
12846 /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
12847 Add missing comment for /OPTIMIZE=SPACE
12848 Add entry for OPTIMIZE=SPACE
12849 Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
12850 Add documentation for new qualifiers corresponding to -gnatw.c/.C
12851
128522007-06-06 Vincent Celier <celier@adacore.com>
12853 Robert Dewar <dewar@adacore.com>
12854
12855 * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
12856 -gnatw.C)
12857
12858 * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
12859 Document gnatbind switch -a
12860 (case Constructions): Document that variables declarations are allowed
12861 for previously declared variables.
12862 Fix external lib project example
12863 -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
12864 Indicate that "#if not X or Y then" is not allowed in input files to
12865 gnatprep.
12866 Document gnatw.x and gnatw.X warning flags
12867 Mention -Winline switch to activate warnings when back-end inlining is
12868 ineffective.
12869 Add gnatcheck rule descriptions
12870 Describe how to use the GNAT driver to call a tool on a closure.
12871 Describe how to run project-wide checks or metrics.
12872 Document gnatbind's -R option
12873 Updated to account for Ada 2005 support
12874
12875 * gnat_rm.texi (Case Construction): Allow variable declarations for
12876 previously declared variables.
12877 (Representation Clauses and Pragmas): Lift restriction on alignment
12878 clauses for record types.
12879 (Ada.Characters.*): Fix typo in reference to A.3.3(27).
12880 Document No_Exception_Propagation restriction
12881 Document No_Body pragma
12882 Updated to account for Ada 2005 support; corrected some typos
12883 (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
12884
12885 * gnat-style.texi: Make it clear that we never use mode IN for
12886 procedures or functions
12887
12888 * ug_words: Add entries for -gnatw.x and -gnatw.X
12889 Add entries for -gnatw.c/.C
12890
128912007-06-06 Pascal Obry <obry@adacore.com>
12892 Vincent Celier <celier@adacore.com>
12893
12894 * makegpr.adb (Add_Archive_Path): Use untouched object and library
12895 dirs and library name.
12896 (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
12897 comments.
12898 (Build_Library): Idem.
12899 (Compile_Individual_Sources): Idem.
12900 (Compile_Link_With_Gnatmake): Idem.
12901 (Compile_Sources): Idem.
12902 (Get_Imported_Directories): Idem.
12903 (Link_Executables): Idem. Same change for the executable dir.
12904 (Check_Compilation_Needed): C_Source_Path new variable containing
12905 the canonical form of Source_Path to check against the source names
12906 in the dependency file.
12907 (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
12908 verbose mode, display the name of the object directory we're changing
12909 to.
12910 (Saved_Switches): New name of table X_Switches
12911 (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
12912 (Usage): New line for switch -aP
12913 (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
12914 testing if a directory should be added to the search path.
12915
129162007-06-06 Javier Miranda <miranda@adacore.com>
12917
12918 * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads,
12919 a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
12920 declaration after freezing point of all its associated tagged types;
12921 otherwise such types are frozen too early.
12922
129232007-06-06 Robert Dewar <dewar@adacore.com>
12924
12925 * a-reatim.adb: Documentation addition
12926
12927 * g-cgideb.adb: Minor code reorganization
12928
12929 * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
12930 mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
12931 s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
12932
12933 * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
12934 function. Change name New_Scope to Push_Scope
12935 (Get_Debug_Flag_K): Remove unused obsolete function.
12936
12937 * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
12938 Push_Scope.
12939
12940 * makeusg.adb: Update Copyright notice
12941 Add line for switch -aP
12942
12943 * makeusg.adb: Fix wording of some usage messages
12944
12945 * s-assert.adb (Raise_Assert_Failure): Add call to
12946 Debug_Raise_Assert_Failure.
12947
12948 * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
12949 (2, Standard'Alignment) for compatibility with AAMP (where alignment
12950 is restricted to 1).
12951
12952 * s-wchjis.adb: Remove use of System.Pure_Exceptions
12953
12954 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
12955 node location to No_Location when we're not debugging the expanded
12956 code.
12957
dbc30a96
AO
129582007-05-22 Alexandre Oliva <aoliva@redhat.com>
12959
12960 * misc.c (enumerate_modes): Consider log2_b to always be one.
12961
ca5ba2a3
RAE
129622007-05-14 Rafael Avila de Espindola <espindola@google.com>
12963
12964 * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
12965
d7598e11
PO
129662007-05-02 Pascal Obry <obry@adacore.com>
12967
12968 * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
12969 to use Stream_IO.File_Type. This is needed to make use of the UTF-8
12970 encoding support of Stream_IO.
12971 (Write_Unit): Idem.
12972
12973 * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
12974 filename and corresponding encoding to match the OS requirement.
12975 (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
12976 routine will fail on specific devices like CON: AUX: ...
12977
12978 PR ada/29856: Add missing braces
12979
1be52f61
AP
129802007-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
12981
12982 PR ada/31660
12983 * ada-tree.h (lang_tree_node): Fix typo in chain_next.
12984
395a40e0
JH
129852007-04-21 Jan Hubicka <jh@suse.cz>
12986
12987 * misc.c (gnat_expand_body): Don't call target for destructors,
12988 avoid redundant check on syntax errors.
12989
3d95caa4
AP
129902007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
12991
12992 * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
12993 instead of checking GIMPLE_STMT_P in chain_next.
12994
ea30850a
AK
129952007-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
12996
12997 PR ada/31576
12998 * system-linux-alpha.ads: Disable constant condition warning for the
12999 Default_Bit_Order variable.
13000 * system-linux-s390.ads: Likewise.
13001 * system-linux-s390x.ads: Likewise.
13002 * system-linux-sparc.ads: Likewise.
13003
4b437c6b
AC
130042007-04-06 Javier Miranda <miranda@adacore.com>
13005 Matt Heaney <heaney@adacore.com>
13006 Robert Dewar <dewar@adacore.com>
13007
13008 a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
13009 a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
13010 a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
13011 a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
13012 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
13013 a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
13014 a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
13015 a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
13016 a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
13017 a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
13018 a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
13019 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
13020 a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
13021 a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
13022 a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
13023 a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
13024 a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
13025 i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
13026 unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
13027 a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
13028 a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
13029 a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
13030 expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
13031 s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
13032 s-taprop-tru64.adb, s-taprop-irix.adb,
13033 s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
13034 s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
13035 s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
13036 s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb,
13037 s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads,
13038 a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb,
13039 a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads,
13040 g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads,
13041 s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb,
13042 s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads,
13043 s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb,
13044 s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
13045 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb,
13046 s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb,
13047 a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads,
13048 a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads,
13049 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb,
13050 a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
13051 a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads,
13052 a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
13053 access types.
13054 Update documentation.
13055 Minor rewording.
13056
130572007-04-06 Robert Dewar <dewar@adacore.com>
13058
13059 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
13060 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
13061 system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
13062 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
13063 system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
13064 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
13065 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
13066 system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
13067 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
13068 system-hpux-ia64.ads, targparm.adb,
13069 targparm.ads (Functions_Return_By_DSP_On_Target): Removed
13070
13071 * system.ads: Move Functions_Return_By_DSP to obsolete section,
13072 kept for bootstrap purposes only.
13073
130742007-04-06 Arnaud Charlet <charlet@adacore.com>
13075
13076 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
13077 s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
13078 s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
13079 (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
13080
130812007-04-06 Robert Dewar <dewar@adacore.com>
13082
13083 * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
13084 (Local_Raise): New dummy procedure called when a raise is converted
13085 to a local goto. Used for debugger to detect that the exception
13086 is raised.
13087
13088 * debug.adb: Document new d.g flag (expand local raise statements to
13089 gotos even if pragma Restriction (No_Exception_Propagation) is not set)
13090
13091 * exp_sel.adb: Use Make_Implicit_Exception_Handler
13092
13093 * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
13094 suppress warnings for unused handlers.
13095 (Warn_If_No_Propagation): Use new flag -gnatw.x to suppress
13096 warnings for raise statements not handled locally.
13097 (Get_RT_Exception_Entity): New function
13098 (Get_Local_Call_Entity): New function
13099 (Find_Local_Handler): New function
13100 (Warn_If_No_Propagation): New procedure
13101 (Expand_At_End_Handler): Call Make_Implicit_Handler
13102 (Expand_Exception_Handlers): Major additions to deal with local handlers
13103 (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
13104 Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
13105 for local raise
13106
13107 * exp_ch11.ads (Get_RT_Exception_Entity): New function
13108 (Get_Local_Call_Entity): New function
13109
13110 * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
13111 of restrictions that the binder will never suggest adding.
13112
13113 * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
13114 to No_Elist.
13115
13116 * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
13117 be with'ed in the presence of pragma Restriction
13118 (No_Exception_Propagation).
13119
13120 * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
13121
13122 * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
13123 parameter, then the handler is not a suitable target for a local raise,
13124 and this is a violation of restriction No_Exception_Propagation.
13125 (Analyze_Handled_Statements): Analyze choice parameters in exception
13126 handlers before analyzing statement sequence (needed for proper
13127 detection of local raise statements).
13128 (Analyze_Raise_Statement): Reraise statement is a violation of the
13129 No_Exception_Propagation restriction.
13130
13131 * s-rident.ads: Add new restriction No_Exception_Propagation
13132
13133 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
13134 function, like Make_Exception_Handler but sets Local_Raise_Statements
13135 to No_List.
13136 (Add_Unique_Serial_Number): Deal with case where this is called during
13137 processing of configuration pragmas.
13138
131392007-04-06 Thomas Quinot <quinot@adacore.com>
13140 Pat Rogers <rogers@adacore.com>
13141 Pascal Obry <obry@adacore.com>
13142
13143 * g-stsifd-sockets.adb: New file.
13144
13145 * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
13146 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
13147 g-socthi-vms.adb: Move signalling
13148 fd management to a nested package, so that they can conveniently be
13149 moved to a subunit that is shared across Windows, VMS, and VxWorks
13150 (Ada implementation) or completed with imported bodies from socket.c
13151 (UNIX case).
13152 (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
13153 subprograms.
13154 (Check_Selector): Use Read_Signalling_Fd to read and discard data from
13155 the signalling file descriptor.
13156 (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
13157 signalling file descriptor.
13158 (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
13159 instead of creating a pair of sockets for signalling here.
13160
13161 * g-socthi.adb: Ditto.
13162 Set the runtime process to ignore SIGPIPEs on platforms that support
13163 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
13164
13165 * g-socthi-mingw.adb: Ditto.
13166 (WS_Version): Use Windows 2.2.
13167 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
13168
13169 * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
13170 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
13171
13172 * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
13173 added GNAT byte swapping facility
13174 Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
13175
13176 * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
13177
13178 * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
13179 New subprograms.
13180 (__gnat_create_signalling_fds): New subprogram.
13181 Set the runtime process to ignore SIGPIPEs on platforms that support
13182 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
13183
131842007-04-06 Hristian Kirtchev <kirtchev@adacore.com>
13185 Vincent Celier <celier@adacore.com>
13186
13187 * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
13188 New version of Ada.Calendar which supports the new upper bound of Ada
13189 time (2399-12-31 86_399.999999999).
13190 The following modifications have been made to the package:
13191 - New representation of time as count of nanoseconds since the start of
13192 Ada time (1901-1-1 0.0).
13193 - Target independent Split and Time_Of routines which service both
13194 Ada 95 and Ada 2005 code.
13195 - Target independent interface to the Ada 2005 children of Calendar.
13196 - Integrated leap seconds into Ada 95 and Ada 2005 mode.
13197 - Handling of non-leap centenial years.
13198 - Updated clock function.
13199 - Updated arithmetic and comparison operators.
13200
13201 * a-caldel.adb (To_Duration): Add call to target independent routine in
13202 Ada.Calendar to handle the conversion of time to duration.
13203
13204 * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
13205 (UTC Offset).
13206 If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
13207 set off to 0.
13208 (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
13209 targets do not have a natural time zone, GMT is used as a default.
13210 (__gnat_get_task_options): New.
13211
13212 * a-direct.adb (Modification_Time): Add with and use clauses for
13213 Ada.Calendar and Ada.
13214 Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
13215 since it is no longer needed.
13216 (Duration_To_Time): Removed.
13217 (OS_Time_To_Long_Integer): Removed.
13218 (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
13219 Formatting Time_Of routines which automatically handle time zones,
13220 buffer periods and leap seconds.
13221
13222 * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
13223 target independent routines in Ada.Calendar.
13224
13225 * a-calfor.ads, a-calfor.adb:
13226 Code cleanup and addition of validity checks in various routines.
13227 (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
13228 Ada.Calendar.
13229
13230 * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
13231 independent routine in Ada.Calendar.
13232
132332007-04-06 Olivier Hainque <hainque@adacore.com>
13234
13235 * adaint.c:
13236 (convert_addresses): Adjust prototype and dummy definition to expect an
13237 extra file_name argument.
13238
13239 * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
13240 filling the now expected file_name argument with the appropriate
13241 argv[0] expansion.
13242 (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
13243 (tracebk): Array of void * instead of char *, corresponding to what
13244 convert_addresses expects.
13245 (exename): New static global, to hold the executable file name to be
13246 used in all convert_addresses invocations.
13247 (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
13248 change.
13249 (__gnat_gmem_a2l_initialize): Resolve exename.
13250 (__gnat_convert_addresses): Use exename as the convert_addresses
13251 file_name argument.
13252
13253 * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
13254 "convert_addresses", now expecting a filename argument. Import the
13255 necessary entities to compute the filename to use and pass it to
13256 convert_addresses.
13257
132582007-04-06 Matt Gingell <gingell@adacore.com>
13259
13260 * system-aix.ads: Back out previous change.
13261 (Functions_Return_By_DSP): Removed
13262
132632007-04-06 Pascal Obry <obry@adacore.com>
13264
13265 * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
13266 or the monotonic used by Ada.Real_Time) to compute the sleep duration
13267 on Windows.
13268
132692007-04-06 Jose Ruiz <ruiz@adacore.com>
13270
13271 * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
13272 function. Its value changes in different VxWorks versions, and it is
13273 now handled by the function __gnat_get_task_options.
13274
13275 * s-taprop-vxworks.adb (Create_Task): Call the function
13276 __gnat_get_task_options to get the required options for creating a task.
13277
132782007-04-06 Pascal Obry <obry@adacore.com>
13279 Thomas Quinot <quinot@adacore.com>
13280
13281 * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
13282 dealing with filename.
13283 (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
13284 filename from a standard string to a wide-string depending on the
13285 encoding value.
13286 (__gnat_freopen): Idem.
13287 (__gnat_current_time): New function (wrapper for time(3) standard C
13288 function).
13289
13290 * g-os_lib.ads (Current_Time): New function. Returns the current
13291 system time as an OS_Time value.
13292
13293 * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
13294 (Monotonic_Clock): Same.
13295
132962007-04-06 Quentin Ochem <ochem@adacore.com>
13297
13298 * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
13299 not on a natural.
13300 (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
13301
133022007-04-06 Jose Ruiz <ruiz@adacore.com>
13303
13304 * a-retide.adb: Add elaboration code to ensure that the tasking run
13305 time is initialized when using delay operations even when no task is
13306 created.
13307
133082007-04-06 Javier Miranda <miranda@adacore.com>
13309
13310 * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
13311 component Num_Prim_Ops.
13312 (Set_Num_Prim_Ops): Removed.
13313 Remove all the assertions because all the routines of this
13314 package are inline always.
13315 (Get_Offset_Index): Add support to primary dispatch tables.
13316 Move the documentation about the dispatch table to a-tags.ads
13317 (Set_External_Tag): Removed
13318 (Inherit_TSD): Removed.
13319 (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
13320 moved to a-tags.ads
13321 (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
13322 Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
13323 of the TSD field "Table" because this field has been renamed to
13324 "Ifaces_Table".
13325 (Inherit_CPP_DT): Removed.
13326 (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
13327 Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
13328 declarations have been moved to a-tags.ads
13329 (Check_Size): Removed.
13330 (Expanded_Name): Updated to get access to the new field of TSD
13331 containing the address of the expanded name.
13332 (Get_Access_Level/Set_Access_Level): Removed.
13333 (Get_Predefined_Prim_Op_Address): Removed.
13334 (Set_Predefined_Prim_Op_Address): Removed.
13335 (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
13336 (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
13337 (Set_Expanded_Name): Removed.
13338 (Inherit_DT): Removed.
13339 (Inherit_CPP_DT): Removed.
13340 (Set_RC_Offset): Removed.
13341 (Set_TSD): Removed.
13342 (Base_Address): New function that displaces "this" to point to the base
13343 of the object (that is, to point to the primary tag of the object).
13344
133452007-04-06 Ed Schonberg <schonberg@adacore.com>
13346 Javier Miranda <miranda@adacore.com>
13347
13348 * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
13349 anonymous access component, do not create a master_id if type already
13350 has one, as may happen if the type is a subcomponent of a packed array
13351 type.
13352 (Build_Init_Procedure, Component_Needs_Simple_Initialization,
13353 Initialize_Tag): Remove code associated with the old CPP pragmas.
13354 CPP_Virtual and CPP_Vtable are no longer supported.
13355 (Build_Offset_To_Top_Internal): Add support for concurrent record types
13356 (Build_Offset_To_Top_Functions): Add support for concurrent record types
13357 (Freeze_Record_Type): Remove call to
13358 Init_Predefined_Interface_Primitives.
13359 (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
13360 code required to initialize the tags of the secondary dispatch tables.
13361 This leaves the algoritm more clear.
13362 (Init_Secondary_Tags): Add support for concurrent record types
13363 (Make_Predefined_Primitive_Specs): Code cleanup.
13364 (Predefined_Primitive_Bodies): Code cleanup.
13365 (Build_Master_Renaming): New local subprogram.
13366 (Expand_N_Full_Type_Declaration): Build the master_id associated with
13367 anonymous access to task type components.
13368 (Expand_N_Subtype_Indication): The bounds of a range constraint in a
13369 subtype indication are resolved during analysis, and must not be done
13370 here.
13371 (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
13372
133732007-04-06 Geert Bosch <bosch@adacore.com>
13374 Ed Schonberg <schonberg@adacore.com>
13375 Javier Miranda <miranda@adacore.com>
13376 Bob Duff <duff@adacore.com>
13377
13378 * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
13379 for conversion of a Float_Type'Truncation to integer.
13380
13381 * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
13382 check if a node is an attribute that can be handled directly by the
13383 back end.
13384 (Expand_N_Attribute_Reference): Suppress expansion of floating-point
13385 attributes that can be handled directly by the back end.
13386 (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
13387 use new predicate Is_Access_Protected_Subprogram_Type.
13388 (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
13389 and Unchecked_Union if it is generated as part of the default Output
13390 procedure for a type with default discriminants.
13391 (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
13392 if we are compiling under restriction No_Dispatching_Calls.
13393 (Constrained): Use Underlying_Type, in case the type is private without
13394 discriminants, but the full type has discriminants.
13395 (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
13396 call to Build_Get_Access_Level.
13397 (Expand_N_Attribute_Reference): The use of 'Address with class-wide
13398 interface objects requires a call to the run-time subprogram that
13399 returns the base address of the object.
13400 (Valid_Conversion): Improve error message on illegal attempt to store
13401 an anonymous access to subprogram value into a record component.
13402
13403 * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
13404 null".
13405 (Simplify_Type_Conversion): New procedure that performs simplification
13406 of Int_Type (Float_Type'Truncation (X)).
13407 (Resolve_Type_Conversion): Call above procedure after resolving operand
13408 and before performing checks. This replaces the existing ineffective
13409 code in Exp_Ch4.
13410 (Set_String_Literal_Subtype): When creating the internal static lower
13411 bound subtype for a string literal, use a newly created copy of the
13412 subtree representing the lower bound.
13413 (Resolve_Call): Exclude build-in-place function calls from transient
13414 scope treatment. Update comments to describe this exception.
13415 (Resolve_Equality_Op): In case of dispatching call check violation of
13416 restriction No_Dispatching_Calls.
13417 (Resolve_Call): If the call returns an array, the context imposes the
13418 component type of the array, and the function has one non-defaulted
13419 parameter, rewrite the call as the indexing of a call with a single
13420 parameter, to handle an Ada 2005 syntactic ambiguity for calls written
13421 in prefix form.
13422 (Resolve_Actuals): If an actual is an allocator for an access parameter,
13423 the master of the created object is the innermost enclosing statement.
13424 (Remove_Conversions): For a binary operator, check if type of second
13425 formal is numeric, to check if an abstract interpretation is present
13426 in the case of exponentiation as well.
13427
134282007-04-06 Ed Schonberg <schonberg@adacore.com>
13429 Bob Duff <duff@adacore.com>
13430
13431 * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
13432 copying a parameter list in a call, set properly the First_Named_Formal
13433 and Next_Named_Formal fields in the new list and in the enclosing call.
13434 (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
13435 names, to ease typing in the debugger. Improve comments.
13436 (Watch_Node): New variable, intended to be set in the debugger.
13437 (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
13438 called when the watched node is created.
13439 (New_Node_Debugging_Output): Combined version of local procedures
13440 New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
13441 with a parameter so that conditional breakpoints like "if Node = 12345"
13442 work.
13443 (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
13444 Add Elist1 function
13445
134462007-04-06 Thomas Quinot <quinot@adacore.com>
13447 Ed Schonberg <schonberg@adacore.com>
13448 Gary Dismukes <dismukes@adacore.com>
13449
13450 * checks.ads, checks.adb (Selected_Range_Checks): No range check is
13451 required for a conversion between two access-to-unconstrained-array
13452 types.
13453 (Expr_Known_Valid): Validity checks do not apply to discriminants, but
13454 to discriminant constraints on discriminant objects. This rule must
13455 apply as well to discriminants of protected types in private components.
13456 (Null_Exclusion_Static_Checks): If No_Initialization is set on an
13457 object of a null-excluding access type then don't require the
13458 the object declaration to have an expression and don't emit a
13459 run-time check.
13460
134612007-04-06 Arnaud Charlet <charlet@adacore.com>
9e94c78f 13462 Eric Botcazou <botcazou@adacore.com>
4b437c6b
AC
13463
13464 * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
13465 and made constant.
13466
13467 * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
13468 Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
13469 carry any.
13470
13471 * fe.h (Compiler_Abort): Add third parameter.
13472
13473 * misc.c (internal_error_function): Build third argument from current
13474 input location and pass it to Compiler_Abort.
13475
134762007-04-06 Gary Dismukes <dismukes@adacore.com>
13477
13478 * cstand.adb (Create_Standard): When the target's storage unit size is
13479 greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
13480 Standard_String.
13481
134822007-04-06 Nicolas Roche <roche@adacore.com>
13483
13484 * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
13485 absolute path can have the following form: device:/a/b. In this case
13486 '/' should be inserted between the path and the filename.
13487
134882007-04-06 Olivier Hainque <hainque@adacore.com>
9e94c78f 13489 Eric Botcazou <botcazou@adacore.com>
4b437c6b
AC
13490
13491 * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
13492 VAR_DECL to a CONST_DECL we make for a public constant when we know the
13493 corresponding definition has created the so made visible variable.
13494 Handle anonymous access to protected subprogram.
13495 (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
13496 object with an address clause volatile. Re-enable original fix.
13497 <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
13498 too.
13499 (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
13500 associated with either the Equivalent or Root type, instead of the
13501 naked type node.
13502 (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
13503 subtree for every field of a global record type.
13504 (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
13505 discriminants, invoke again variable_size on its newly computed sizes.
13506
135072007-04-06 Robert Dewar <dewar@adacore.com>
13508 Thomas Quinot <quinot@adacore.com>
13509 Ed Schonberg <schonberg@adacore.com>
13510 Bob Duff <duff@adacore.com>
13511
13512 * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
13513 (Next_Component_Or_Discriminant): New function and procedure
13514 (First_Index, First_Literal, Master_Id,
13515 Set_First_Index, Set_First_Literal, Set_Master_Id):
13516 Add missing Ekind assertions.
13517 (Is_Access_Protected_Subprogram_Type): New predicate.
13518 (Has_RACW): New entity flag, set on package entities to indicate that
13519 the package contains the declaration of a remote accecss-to-classwide
13520 type.
13521 (E_Return_Statement): This node type has the Finalization_Chain_Entity
13522 attribute, in case the result type has controlled parts.
13523 (Requires_Overriding): Add this new flag, because "requires
13524 overriding" is subtly different from "is abstract" (see AI-228).
13525 (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
13526 Is_Abstract_Type. Make sure these are called only when appropriate.
13527 (Has_Pragma_Unreferenced_Objects): New flag
13528
13529 * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
13530 class-wide, the tag of the right-hand side must be an exact match, not
13531 an ancestor of that of the object on left-hand side.
13532 (Move_Activation_Chain): New procedure to create the call to
13533 System.Tasking.Stages.Move_Activation_Chain.
13534 (Expand_N_Extended_Return_Statement): Generate code to call
13535 System.Finalization_Implementation.Move_Final_List at the end of a
13536 return statement if the function's result type has controlled parts.
13537 Move asserts to Build_In_Place_Formal.
13538 (Move_Final_List): New function to create the call statement.
13539 (Expand_N_Assignment_Statement): In case of assignment to a class-wide
13540 tagged type, replace generation of call to the run-time subprogram
13541 CW_Membership by call to Build_CW_Membership.
13542 (Expand_N_Return_Statement): Replace generation of call to the run-time
13543 subprogram Get_Access_Level by call to Build_Get_Access_Level.
13544 (Expand_N_Simple_Function_Return): Replace generation of call to the
13545 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
13546
13547 * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
13548 Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
13549 access to protected operations.
13550 (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
13551 master and chain actual parameters to a build-in-place function call
13552 involving tasks.
13553 (BIP_Formal_Suffix): Add new enumeration literals to complete the case
13554 statement.
13555 (Make_Build_In_Place_Call_In_Allocator,
13556 Make_Build_In_Place_Call_In_Anonymous_Context,
13557 Make_Build_In_Place_Call_In_Assignment,
13558 Make_Build_In_Place_Call_In_Object_Declaration): Call
13559 Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
13560 (Expand_Inlined_Call): If the subprogram is a null procedure, or a
13561 stubbed procedure with a null body, replace the call with a null
13562 statement without using the full inlining machinery, for efficiency
13563 and to avoid invalid values in source file table entries.
13564
13565 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
13566 renamings of calls to build-in-place functions.
13567
13568 * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
13569 provides the functionality of RTE_Available to record components.
13570 (RTU_Entity): The function Entity has been renamed to RTU_Entity
13571 to avoid undesired overloading.
13572 (Entity): New subprogram that returns the entity for the referened
13573 unit. If this unit has not been loaded, it returns Empty.
13574 (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
13575 Remove no longer used entities.
13576 (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
13577 (RE_Type_Specific_Data): New entity.
13578 (RE_Move_Any_Value): New entity.
13579 (RE_TA_A, RE_Get_Any_Type): New entities.
13580 (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
13581 RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
13582 RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
13583 (Entity): New subprogram that returns the entity for the referened
13584 unit. If this unit has not been loaded, it returns Empty.
13585 (RTE): Addition of a new formal that extends the search to the scopes
13586 of the record types found in the chain of the package.
13587
13588 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
13589 "abstract subprograms must be visible" message, whether or not the type
13590 is an interface; that is, remove the special case for interface types.
13591 (Analyze_Function_Return): Remove error message "return of task objects
13592 is not yet implemented" because this is now implemented.
13593 (Create_Extra_Formals): Add the extra master and activation chain
13594 formals in case the result type has tasks.
13595 Remove error message "return of limited controlled objects is not yet
13596 implemented".
13597 (Create_Extra_Formals): Add the extra caller's finalization list formal
13598 in case the result type has controlled parts.
13599 (Process_Formals): In case of access formal types there is no need
13600 to continue with the analysis of the formals if we already notified
13601 errors.
13602 (Check_Overriding_Indicator): Add code to check overriding of predefined
13603 operators.
13604 (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
13605 flags for formals that do not require them,.
13606 (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
13607 hidden entity is use visible or directly visible.
13608 (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
13609 Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
13610 Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
13611 New_Overloaded_Entity): Split Is_Abstract flag into
13612 Is_Abstract_Subprogram and Is_Abstract_Type.
13613
13614 * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
13615 a return statement's finalization list to the caller's list, used for
13616 build-in-place functions with result type with controlled parts.
13617 Remove no longer used entities.
13618
13619 * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
13620 longer needed, because the full type is now limited, and therefore a
13621 pass-by-reference type.
13622 (Foreign_Task_Level): New constant.
13623
13624 * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
13625 move tasks from the activation chain belonging to a return statement to
13626 the one passed in by the caller, and update the master to the one
13627 passed in by the caller.
13628 (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
13629 of unactivated tasks, so we don't kill the ones that are being returned
13630 by a build-in-place function.
13631 (Create_Task): Ignore AI-280 for foreign threads.
13632
136332007-04-06 Ed Schonberg <schonberg@adacore.com>
13634 Robert Dewar <dewar@adacore.com>
13635 Bob Duff <duff@adacore.com>
13636 Gary Dismukes <dismukes@adacore.com>
13637
13638 * errout.adb (Unwind_Internal_Type): Use predicate
13639 Is_Access__Protected_Subprogram_Type.
13640
13641 * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
13642 (Freeze_Entity, packed array case): Do not override explicitly set
13643 alignment and size clauses.
13644 (Freeze_Entity): An entity declared in an outer scope can be frozen if
13645 the enclosing subprogram is a child unit body that acts as a spec.
13646 (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
13647 (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
13648 Remove all code for DSP option
13649
13650 * layout.adb (Layout_Record_Type): Use First/
13651 Next_Component_Or_Discriminant
13652 (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
13653 to handle properly the anonymous access case.
13654
13655 * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
13656 for all access attributes, because overload resolution should work the
13657 same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
13658 causes the error message for the ambiguous "X'Access = Y'Access" and
13659 "X'Unrestricted_Access = Y'Access" and so forth to match.
13660 (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
13661 now that anonymous access to protected operations have their own kind.
13662 (Resolve_Attribute): In case of dispatching call check the violation of
13663 restriction No_Dispatching_Calls.
13664 (Check_Array_Type): Check new -gnatyA array index style option
13665
13666 * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
13667 attempt to derive from a synchronized tagged type.
13668 (Analyze_Type_Declaration): If there is a incomplete tagged view of the
13669 type, inherit the class-wide type already created, because it may
13670 already have been used in a self-referential anonymous access component.
13671 (Mentions_T): Recognize self-referential anonymous access components
13672 that use (a subtype of) the class-wide type of the enclosing type.
13673 (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
13674 Derived_Type for Prev formal on call to
13675 Check_Anonymous_Access_Components rather than Empty.
13676 (Make_Incomplete_Type_Declaration): Add test for case where the type has
13677 a record extension in deciding whether to create a class-wide type,
13678 rather than just checking Tagged_Present.
13679 (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
13680 to stand-alone object declarations as well as component declarations.
13681 (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
13682 prevent accidental overwriting when enclosing package appears in
13683 a limited_with_clause.
13684 (Array_Type_Declaration): If the component type is an anonymous access,
13685 the associated_node for the itype is the type declaration itself.
13686 (Add_Interface_Tag_Components): Modified to support concurrent
13687 types with abstract interfaces.
13688 (Check_Abstract_Interfaces): New subprogram that verifies the ARM
13689 rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
13690 (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
13691 to complete the decoration of synchronized interface types. Add also
13692 a call to Check_Abstract_Interfaces to verify the ARM rules.
13693 (Derive_Interface_Subprograms): Modified to support concurrent types
13694 with abstract interfaces.
13695 (Analyze_Subtype_Indication): Resolve the range with the given subtype
13696 mark, rather than delaying the full resolution depending on context.
13697 (Analyze_Component_Declaration,Analyze_Interface_Declaration,
13698 Analyze_Object_Declaration,Analyze_Subtype_Declaration,
13699 Array_Type_Declaration,Build_Derived_Record_Type,
13700 Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
13701 Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
13702 Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
13703 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
13704 called only when appropriate.
13705 (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
13706 to private type.
13707 (Analyze_Subtype_Declaration): For an access subtype declaration, create
13708 an itype reference for the anonymous designated subtype, to prevent
13709 scope anonmalies in gigi.
13710 (Build_Itype_Reference): New utility, to simplify construction of such
13711 references.
13712
137132007-04-06 Vincent Celier <celier@adacore.com>
13714
13715 * errutil.adb (Initialize): Initialize warnings table, if all warnings
13716 are suppressed, supply an initial dummy entry covering all possible
13717 source locations.
13718
13719 * make.adb (Scan_Make_Arg): Reject options that should start with "--"
13720 and start with only one, such as "-RTS=none".
13721 (Collect_Arguments): Do not check for sources outside of projects.
13722 Do not collect arguments if project is externally built.
13723 (Compile_Sources): Do nothing, not even check if the source is up to
13724 date, if its project is externally built.
13725 (Compile): When compiling a predefined source, add -gnatpg
13726 as the second switch, after -c.
13727 (Compile_Sources): Allow compilation of Annex J renames without -a
13728 (Is_In_Object_Directory): Check if the ALI file is in the object
13729 even if there is no project extension.
13730 (Create_Binder_Mapping_File): Only put a unit in the mapping file for
13731 gnatbind if the ALI file effectively exists.
13732 (Initialize): Add the directory where gnatmake is invoked in front of
13733 the path if it is invoked from a bin directory, even without directory
13734 information, so that the correct GNAT tools will be used when spawned
13735 without directory information.
13736
13737 * makeusg.adb: Change switch -S to -eS
13738 Add lines for new switches -we, -wn and -ws
13739 Add line for new switch -p
13740
13741 * prj-proc.adb (Process): Set Success to False when Warning_Mode is
13742 Treat_As_Error and there are warnings.
13743
13744 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
13745 -gnatww Change gnatmake switch -S to -eS
13746 (Scan_Make_Switches): Code reorganisation. Process separately multi
13747 character switches and single character switches.
13748 (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
13749 False when switch is not recognized by gnatmake.
13750 (Scan_Make_Switches): Set Setup_Projects True when -p or
13751 --create-missing-dirs is specified.
13752
13753 * fname.adb (Is_Predefined_File_Name): Return True for annex J
13754 renamings Calendar, Machine_Code, Unchecked_Conversion and
13755 Unchecked_Deallocation only when Renamings_Included is True.
13756
13757 * par.adb: Allow library units Calendar, Machine_Code,
13758 Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
13759 when -gnatg is not specified.
13760 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
13761 there is no need to generate always a record_definition_node in case
13762 of synchronized interface types.
13763 (SIS_Entry_Active): Initialize global variable to False
13764 (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
13765 indicate cases where AI-447 says "not null" is legal.
13766
13767 * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
13768
13769 * makegpr.adb (Check_Compilation_Needed): Take into account dependency
13770 files with with several lines starting with the object fileb name.
13771 (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
13772 is specified.
13773 (Initialize): Add the directory where gprmake is invoked in front of the
13774 path, if it is invoked from a bin directory or with directory
13775 information, so that the correct GNAT tools will be used when invoked
13776 directly.
13777 (Check_Compilation_Needed): Process correctly backslashes on Windows.
13778
13779 * vms_data.ads: Update switches/qualifiers
13780
137812007-04-06 Ed Schonberg <schonberg@adacore.com>
13782 Thomas Quinot <quinot@adacore.com>
13783
13784 * exp_aggr.adb:
13785 If the array component is a discriminated record, the array aggregate
13786 is non-static even if the component is given by an aggregate with
13787 static components.
13788 (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
13789 (Convert_Aggr_In_Allocator): If the allocator is for an access
13790 discriminant and the type is controlled. do not place on a finalization
13791 list at this point. The proper list will be determined from the
13792 enclosing object.
13793 (Build_Record_Aggr_Code): If aggregate has box-initialized components,
13794 initialize record controller if needed, before the components, to ensure
13795 that they are properly finalized.
13796 (Build_Record_Aggr_Code): For the case of an array component that has a
13797 corresponding array aggregate in the record aggregate, perform sliding
13798 if required.
13799
138002007-04-06 Javier Miranda <miranda@adacore.com>
13801 Gary Dismukes <dismukes@adacore.com>
13802 Ed Schonberg <schonberg@adacore.com>
13803
13804 * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
13805 run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
13806
13807 * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
13808 accessibility on class-wide allocators if the allocator occurs at the
13809 same scope level as the allocator's type. The check is guaranteed to
13810 succeed in that case, even when the expression originates from a
13811 parameter of the containing subprogram.
13812 (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
13813 under No_Dispatching_Calls restriction. During the semantic analysis
13814 we already notified such violation.
13815 (Tagged_Membership): Constant folding. There is no need to check
13816 the tag at run-time if the type of the right operand is non
13817 class-wide abstract.
13818 Replace call to Is_Ancestor by call to Is_Parent
13819 to support concurrent types with interface types.
13820 (Expand_N_Allocator): Add an assertion associated with the generation
13821 of the master_id.
13822 (Expand_N_Slice): Do not enable range check to nodes associated
13823 with the frontend expansion of the dispatch table.
13824 (Is_Local_Access_Discriminant): Subsidiary function to
13825 Expand_N_Allocator.
13826 (Tagged_Membership): Replace generation of call to the run-time
13827 subprogram CW_Membership by call to Build_CW_Membership.
13828 (Expand_Allocator_Expression): Replace generation of call to the
13829 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
13830
13831 * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
13832 initialize most the TSD components by means of an aggregate.
13833 Modify the declaration of the object containing the TSD
13834 because we now expand code that has a higher level of abstraction.
13835 The TSD has a discriminant containing the Inheritance Depth Level,
13836 value that is used in the membership test but also to fix the size
13837 of the table of ancestors.
13838 (Expand_Interface_Conversion): Insert function body at the closest place
13839 to the conversion expression, to prevent access-before-elaboration
13840 errors in the backend.
13841 Code improved to reduce the size of the dispatch table if
13842 compiling under restriction No_Dispatching_Calls plus code cleanup.
13843 Code reorganization plus removal of calls to Set_Num_Prim_Ops
13844 (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
13845 (Expand_Dispatching_Call): Minor code reorganization plus addition of
13846 code to return immediately if compiling under No_Dispatching_Calls
13847 restriction.
13848 (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
13849 CPP_Virtual and CPP_Vtable are no longer supported.
13850 (Expand_Interface_Conversion): Add missing support for interface type
13851 derivations.
13852 (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
13853 Is_Parent to support concurrent types with interfaces.
13854 (Init_Predefined_Interface_Primitives): Removed.
13855 (Make_Secondary_DT): Modified to support concurrent record types.
13856 (Set_All_DT_Position): Modified to support concurrent record types.
13857 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
13858 with Get_External_Tag, Inherit_TSD, Set_External_Tag.
13859 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
13860 with CW_Membership.
13861 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
13862 with Get_Access_Level, Get_Predefined_Prim_Op_Address,
13863 Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
13864 Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
13865 Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
13866 (Expand_Dispatching_Call): Replace generation of call to the run-time
13867 subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
13868 calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
13869 Address.
13870 (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
13871 the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
13872 Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
13873 Build_Set_Prim_Op_Address.
13874 (Get_Remotely_Callable): Subprogram removed.
13875 (Init_Predefined_Interface_Primitives): Replace generation of call to
13876 the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
13877 Prims.
13878
13879 * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
13880 First (Parameter_Associations ()) with the call to First_Actual that
13881 returns an actual parameter expression for both named and positional
13882 associations.
13883
13884 * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
13885 check violation of restriction No_Dispatching_Calls.
13886 (Check_Controlling_Type): A formal of a tagged incomplete type is a
13887 controlling argument.
13888
13889 * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
13890 First/Next_Component_Or_Discriminant
13891 (Insert_Actions): Add entries for new N_Push and N_Pop nodes
13892 (Find_Implemented_Interface): Removed. All the calls to this subprogram
13893 specify Any_Limited_Interface, and this functionality is already
13894 provided by the function Has_Abstract_Interfaces.
13895 (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
13896 support concurrent types implementing interfaces.
13897 (Find_Implemented_Interface): Removed. All the calls to this subprogram
13898 specify kind Any_Limited_Interface, and this functionality is already
13899 provided by the function Has_Abstract_Interfaces.
13900 (Remove_Side_Effects): replace Controlled_Type by
13901 CW_Or_Controlled_Type whenever the issue is related to
13902 using or not the secondary stack.
13903
13904 * par-ch12.adb (P_Formal_Type_Definition): Update calls to
13905 P_Interface_Type_Definition to fulfill the new interface (the formal
13906 Is_Synchronized is no longer required).
13907
13908 * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
13909 Update dependencies.
13910
13911 * exp_atag.ads, exp_atag.adb: New file
13912
139132007-04-06 Ed Schonberg <schonberg@adacore.com>
13914 Bob Duff <duff@adacore.com>
13915 Cyrille Comar <comar@adacore.com>
13916
13917 * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
13918 anonymous, use finalization list of enclosing dynamic scope.
13919 (Expand_N_Package_Declaration): For a library package declaration
13920 without a corresponding body, generate RACW subprogram bodies in the
13921 spec (just as we do for the task activation call).
13922 (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
13923 Is_Abstract_Type. Make sure these are called only when appropriate.
13924 Remove all code for DSP option
13925 (CW_Or_Controlled_Type): new subprogram.
13926
9e94c78f 139272007-04-06 Eric Botcazou <botcazou@adacore.com>
4b437c6b
AC
13928 Ed Schonberg <schonberg@adacore.com>
13929 Gary Dismukes <dismukes@adacore.com>
13930
13931 * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
13932 parameter. If it is set to true, return a result capped according to
13933 the global upper bound for the index of an entry family.
13934 (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
13935 (Build_Find_Body_Index): Adjust for above change.
13936 (Entry_Index_Expression): Likewise.
13937 (Is_Potentially_Large_Family): New function extracted from...
13938 (Collect_Entry_Families): ...here. Call it to detect whether the family
13939 is potentially large.
13940 (Build_Entry_Count_Expression): If the family is potentially large, call
13941 Family_Size with 'Cap' set to true.
13942 (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
13943 a protected version of an operation declared in the private part of
13944 a protected object, because they may be invoked through a callback.
13945 (Set_Privals): If the type of a private component is an anonymous access
13946 type, do not create a new itype for each protected body.
13947 If the body of a protected operation creates
13948 controlled types (including allocators for class-widetypes), the
13949 body of the corresponding protected subprogram must include a
13950 finalization list.
13951 (Build_Activation_Chain_Entity): Build the chain entity for extended
13952 return statements.
13953 (Type_Conformant_Parameters): Use common predicate Conforming_Types
13954 to determine whether operation overrides an inherited primitive.
13955 (Build_Wrapper_Spec): Add code to examine the parents while looking
13956 for a possible overriding candidate.
13957 (Build_Simple_Entry_Call): Set No_Initialization on the object used to
13958 hold an actual parameter value since its initialization is separated
13959 from the the declaration. Prevents errors on null-excluding access
13960 formals.
13961
139622007-04-06 Thomas Quinot <quinot@adacore.com>
8a57e48f 13963 Pablo Oliveira <oliveira@adacore.com>
4b437c6b
AC
13964
13965 * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
13966 Do an Unchecked_Conversion to handle the passage from the Underlying
13967 Type to the Base Type when calling Build_To_Any_Call and
13968 Build_From_Any_Call.
13969 (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
13970 E_Constant, depending upon Variable formal.
13971 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
13972 PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
13973 parameter that requires an extra constrained parameter, declare
13974 temporary for actual as a variable, not a constant.
13975 (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
13976 the unit being compiled is the one that contains the stub type.
13977 Change primitive operation name for the RACW associated with a RAS
13978 from Call to _Call so it cannot clash with any legal identifier.
13979 (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
13980 Is_RAS.
13981 (Append_RACW_Bodies): New subprogram.
13982 (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
13983 Add_Receiving_Stubs_To_Declarations functions.
13984 When expanding a package body, this list correspond to the
13985 statements in the HSS at the end of the pacakge.
13986 When expanding a package spec, this list correspond to the
13987 spec declarations.
13988 (Add_Receiving_Stubs_To_Declarations): Append the function
13989 registering the receiving stubs at the end of the 'Stmts' list.
13990 (RCI_Package_Locator): Pass the new Version generic formal when
13991 instantiating a RCI_Locator package.
13992 (Build_From_Any_Function): To compute the High bound for an
13993 unconstrained array actual, we add the Low bound with the length.
13994 Thus we must convert the low bound and the length to an appropriate
13995 type before doing the sum.
13996 (Build_Subprogram_Receiving_Stubs, PolyORB):
13997 * Retrieve the extra formals parameters at the
13998 end of the parameter stream.
13999 * Use Move_Any_Value to write back out parameters
14000 after executing the request as it is more efficient
14001 than Copy_Any_Value.
14002 * Build the any containing Extra Formals with the
14003 appropriate typecode.
14004 (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
14005 empty Component_List.
14006 (Build_Actual_Object_Declaration): New subprogram. Build and insert into
14007 the tree the declaration for an object that serves as actual parameter
14008 in server-side stubs.
14009 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
14010 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
14011 Use Build_Actual_Object_Declaration to prepare the actuals.
14012 (Add_Parameter_To_NVList): Set the parameter mode to In for
14013 Extra Constrained Parameters.
14014 (Build_General_Calling_Stubs): Set the parameter type to boolean for
14015 Extra Constrained parameters.
14016 (Build_To_Any_Function, Build_From_Any_Function,
14017 Built_TypeCode_Function): When Typ is implicit, call the correct
14018 function with the first not implicit parent type.
14019 (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
14020 (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
14021 typecode from the Etype. Therefore we retrieve the correct typecode
14022 with a call to Get_Any_Type.
14023 (Copy_Specification): Do controlling formal type substitution based on
14024 Is_Controlling_Formal flag, instead of caller-provided object type.
14025 (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
14026 a RACW primitive operation, we might get a subprogram declaration for an
14027 ancestor of the RACW designated type (not for the designated type
14028 itself), in the case where this operation is inherited. In this case we
14029 have no easy means of determining the original tagged type for which
14030 the primitive was declared, so instead we now rely on
14031 Copy_Specification to use the Is_Controlling_Formal flag to determine
14032 which formals require type substitution.
14033
140342007-04-06 Robert Dewar <dewar@adacore.com>
14035 Ed Schonberg <schonberg@adacore.com>
14036
14037 * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
14038 GNAT.Current_Exception are not allowed if pragma Restrictions
14039 (No_Exception_Propagation) is set and in any case make the associated
14040 handler unsuitable as a target for a local raise statement.
14041 (Expand_Dispatching_Constructor_Call): Replace generation of call to the
14042 run-time subprogram CW_Membership by call to Build_CW_Membership.
14043 (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
14044 by a function call, a temporary must be created before expanding the
14045 Constructor_Call itself, to prevent out-of-order elaboration in the
14046 back-end when stack checking is enabled..
14047
140482007-04-06 Ed Schonberg <schonberg@adacore.com>
14049
14050 * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
14051 result are the bounds of the left operand, not the right.
14052
140532007-04-06 Ed Schonberg <schonberg@adacore.com>
14054
14055 * exp_strm.adb
14056 (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
14057 discriminant defaults.
14058 (Build_Record_Or_Elementary_Output_Procedure): Ditto.
14059 (Make_Component_List_Attributes): Ditto.
14060
140612007-04-06 Ed Schonberg <schonberg@adacore.com>
14062 Bob Duff <duff@adacore.com>
14063
14064 * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
14065 an association with a box as providing a value even though the
14066 initialization procedure for the type is not available.
14067 (Resolve_Record_Aggregate): Check that a choice of an association with a
14068 box corresponds to a component of the type.
14069 (Resolve_Record_Aggregate): Split Is_Abstract flag into
14070 Is_Abstract_Subprogram and Is_Abstract_Type.
14071
14072 * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
14073 assert.
14074
14075 * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
14076 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
14077 called only when appropriate.
14078
140792007-04-06 Olivier Hainque <hainque@adacore.com>
14080
14081 * g-alleve.ads (Low Level Vector type definitions): Map each to the
14082 associated vector view instead of all to the unsigned char view.
14083
14084 * g-altcon.adb (Generic_Conversions): New internal generic package,
14085 offering facilities for all the Vector/View conversion routines
14086 implemented by this unit.
14087 (To_View/To_Vector - all versions): Reimplemented in a systematic
14088 manner, using the internal Generic_Conversions facilities.
14089
140902007-04-06 Pascal Obry <obry@adacore.com>
14091
14092 * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
14093 string.
14094 (Create): Free the source string before storing the new one.
14095
140962007-04-06 Vincent Celier <celier@adacore.com>
14097
14098 * g-debpoo.adb (Validity): New package with a complete new
14099 implementation of subprograms Is_Valid and Set_Valid.
14100 (Is_Valid): Move to local package Validity
14101 (Set_Valid): Move to local package Validity
14102
141032007-04-06 Arnaud Charlet <charlet@adacore.com>
8a57e48f 14104 Pablo Oliveira <oliveira@adacore.com>
4b437c6b
AC
14105
14106 * g-expect.adb (Get_Command_Output): When expanding the output buffer
14107 we must ensure that there is enough place for the new data we are going
14108 to copy in.
14109
141102007-04-06 Thomas Quinot <quinot@adacore.com>
14111
14112 * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
14113 computation.
14114
141152007-04-06 Jose Ruiz <ruiz@adacore.com>
14116 Vincent Celier <celier@adacore.com>
14117
14118 * gnatcmd.adb (B_Start): Add prefix of binder generated file.
14119 (Stack_String): Add this String that contains the name of the Stack
14120 package in the project file.
14121 (Packages_To_Check_By_Stack): Add this list that contains the packages
14122 to be checked by gnatstack, which are the naming and the stack packages.
14123 (Check_Files): If no .ci files were specified for gnatstack we add all
14124 the .ci files belonging to the projects, including binder generated
14125 files.
14126 (Non_VMS_Usage): Document that gnatstack accept project file switches.
14127 (GNATCmd): Update the B_Start variable if we are in a VMS environment.
14128 Add gnatstack to the list of commands that use project file related
14129 switches, and get the single attribute Switches from the stack package
14130 in a project file when calling gnatstack. Parse the -U flag for
14131 processing files belonging to all projects in the project tree.
14132 Remove all processing for command Setup
14133
14134 * prj-attr.adb: Add new package Stack with single attribute Switches
14135
14136 * vms_conv.ads (Command_Type): Add command Stack.
14137 Move to body declarations that are only used in the body: types Item_Id,
14138 Translation_Type, Item_Ptr, Item and its subtypes.
14139
14140 * vms_conv.adb: (Initialize): Add data for new command Stack.
14141 Add declarations moved from the spec: types Item_Id, Translation_Type,
14142 Item_Ptr, Item and its subtypes.
14143 (Cargs_Buffer): New table
14144 (Cargs): New Boolean global variable
14145 (Process_Buffer): New procedure to create arguments
14146 (Place): Put character in table Buffer or Cargs_Buffer depending on the
14147 value of Cargs.
14148 (Process_Argument): Set Cargs when processing qualifiers for GNAT
14149 COMPILE
14150 (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
14151 empty, for table Cargs_Buffer.
14152 (Initialize): Remove component Setup in Command_List
14153
141542007-04-06 Vincent Celier <celier@adacore.com>
14155
14156 * gprep.adb (Process_Files.Process_One_File): Use full file name when
14157 issuing pragma Source_Reference.
14158
141592007-04-06 Emmanuel Briot <briot@adacore.com>
14160
14161 * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
14162 [[:xdigit:]] character class.
14163 Also raise an exception when an invalid character class is used.
14164
141652007-04-06 Pascal Obry <obry@adacore.com>
14166
14167 * i-cstrea.ads: (fopen): Add encoding parameter.
14168 (freopen): Idem.
14169 Change reference from a-sysdep.c to sysdep.c in comment.
14170 Update copyright notice.
14171 This set of patch add support for the encoding form parameter.
14172
14173 * mingw32.h (S2WSU): New macro to convert from a string to a
14174 wide-string using the UTF-8 encoding. The S2WS macro supports now only
14175 standard 8bits encoding.
14176 (WS2SU): As above but converting from wide-sring to string.
14177 This is needed as it is necessary to have access to both versions in the
14178 runtime for the form parameter encoding support.
14179 This set of patch add support for the encoding form parameter.
14180 (S2WS): Improve implementation to handle cases where the filename is not
14181 UTF-8 encoded. In this case we default to using the current code page
14182 for the conversion.
14183
14184 * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
14185 type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
14186 the constants defined in adaint.h.
14187 (fopen): Add encoding parameter.
14188 (freopen): Idem.
14189
14190 * s-ficobl.ads (AFCB): Add Encoding field to record the filename
14191 encoding. This is needed for the Reset routine (freopen low level-call).
14192
14193 * s-fileio.adb (Open): Decode encoding form parameter and set the
14194 corresponding encoding value into AFCB structure.
14195 (Reset): Pass the encoding value to freopen.
14196 (Close): Move the call to Lock_Task to the beginning of the procedure.
14197
141982007-04-06 Geert Bosch <bosch@adacore.com>
14199 Robert Dewar <dewar@adacore.com>
14200
14201 * i-fortra.ads: Add Double_Complex type.
14202
14203 * impunit.adb: (Is_Known_Unit): New function
14204 Add Gnat.Byte_Swapping
14205 Add GNAT.SHA1
14206 Add new Ada 2005 units
14207 Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
14208 Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
14209 Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
14210 Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
14211
14212 * impunit.ads (Is_Known_Unit): New function
14213
14214 * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
14215 a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
14216 a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
14217 g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
14218 s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
14219 s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
14220 New files.
14221
14222 * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
14223
14224 * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
14225
9e94c78f 142262007-04-06 Eric Botcazou <botcazou@adacore.com>
4b437c6b
AC
14227 Arnaud Charlet <charlet@adacore.com>
14228
14229 * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
14230 __gnat_adjust_context_for_raise.
14231 (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
14232 implementation of floating point operations as native x86 targets.
14233 So the FPU should be initialized in the same way using finit. Fix
14234 floating point operations accuracy issues.
14235 (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
14236 member in struct sigaction, so as to avoid warning for incompatible
14237 pointer types.
14238
9e94c78f 142392007-04-06 Serguei Rybin <rybin@adacore.com>
4b437c6b
AC
14240
14241 * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
14242 switches from previously loaded tree
14243
142442007-04-06 Thomas Quinot <quinot@adacore.com>
14245
14246 * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
14247 cases where a given dependency has a body or not.
14248 (Write_With_File_Names): New subprogram, common code for the two cases
14249 above.
14250
142512007-04-06 Ed Schonberg <schonberg@adacore.com>
14252 Javier Miranda <miranda@adacore.com>
14253
14254 * lib-xref.ads, lib-xref.adb:
14255 Modify the loop that collects type references, to include interface
14256 types that the type implements. List each of these interfaces when
14257 building the entry for the type.
14258 (Generate_Definition): Initialize component Def and Typ of new entry
14259 in table Xrefs, to avoid to have these components unitialized.
14260 (Output_References): Split Is_Abstract flag into
14261 Is_Abstract_Subprogram and Is_Abstract_Type.
14262 (Generate_Reference): Add barrier to do not generate the warning
14263 associated with Ada 2005 entities with entities generated by the
14264 expander.
14265
142662007-04-06 Robert Dewar <dewar@adacore.com>
14267 Arnaud Charlet <charlet@adacore.com>
14268 Vincent Celier <celier@adacore.com>
14269
14270 * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
14271 Update 'Exception Handling Control' chapter which was outdated.
14272 Minor fix to documentation of -gnatwq
14273 Remove section "Adapting the Run Time to a New C++ Compiler" because
14274 it is now obsolete.
14275 Add passage on need of -nostart-files in some non-ada-main cases.
14276 Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
14277 Update documentation about Interfacing with C++
14278 Add documentation for new gnatmake switch -p
14279 Add missing protocol part in URLs.
14280 Document -gnatyA
14281 Document pragma Compile_Time_Error
14282 Add documentation for Object_Size indicating that stand alone
14283 objects can have a larger size in some cases.
14284 Add node for GNAT.Byte_Swapping, GNAT.SHA1
14285 Update reference to the Ravenscar profile.
14286 Document pragma Unreferenced_Objects
14287
14288 * gnat-style.texi: Fix typo
14289
142902007-04-06 Vincent Celier <celier@adacore.com>
14291
14292 * mlib.adb (Building_Library): Only output "building a library..." in
14293 verbose mode
14294
14295 * mlib-prj.adb (Build_Library): Only output lists of object and ALI
14296 files in verbose mode.
14297
14298 * mlib-utl.adb (Ar): Only output the first object files when not in
14299 verbose mode.
14300 (Gcc): Do not display all the object files if not in verbose mode, only
14301 the first one.
14302
143032007-04-06 Robert Dewar <dewar@adacore.com>
14304
14305 * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
14306 it no longer destroys the contents of Name_Buffer or Name_Len and
14307 non-standard and invalid names are handled better.
14308 (Get_Decoded_Name_String): Improve performance by using
14309 Name_Has_No_Encodings flag in the name table.
14310 (Is_Valid_Name): New function to determine whether a Name_Id is valid.
14311 Used for debugging printouts.
14312
143132007-04-06 Robert Dewar <dewar@adacore.com>
14314 Javier Miranda <miranda@adacore.com>
14315 Bob Duff <duff@adacore.com>
14316
14317 * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
14318 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
14319 there is no need to generate always a record_definition_node in case
14320 of synchronized interface types.
14321 (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
14322 (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
14323 illegal in Ada 95, in cases where it is legal. Change the warnings to
14324 errors in other cases. Don't give the error unless the "not null"
14325 parses properly. Correct the source position at which the error occurs.
14326 (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
14327 P_Null_Exclusion, to suppress "not null" warnings.
14328 (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
14329 associated goto statements.
14330
14331 * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
14332 of END RECORD
14333
14334 * scans.ads (Type_Token_Location): New flag
14335
14336 * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
14337 (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
14338 P_Null_Exclusion, to suppress "not null" warnings.
14339
143402007-04-06 Robert Dewar <dewar@adacore.com>
14341 Javier Miranda <miranda@adacore.com>
14342 Bob Duff <duff@adacore.com>
14343 Vincent Celier <celier@adacore.com>
14344
14345 * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
14346 (Extensions_Allowed): No longer sets Ada_Version
14347 Entry for pragma Unreferenced_Objects
14348
14349 * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
14350 system.tasking if pragma priority used in a procedure
14351 (Analyze_Pragma, case Warning): Handle dot warning switches
14352 (Process_Compile_Time_Warning_Or_Error): New procedure
14353 (Analyze_Pragma): Add processing for Compile_Time_Error
14354 Add support for extra arguments External_Name and Link_Name.
14355 Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
14356 (Process_Import_Or_Interface): Add support for the use of pragma Import
14357 with tagged types.
14358 (Extensions_Allowed): No longer affects Ada_Version
14359 (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
14360 Is_Abstract_Type. Make sure these are called only when appropriate.
14361 Add processing for pragma Unreferenced_Objects
14362
14363 * snames.h, snames.ads, snames.adb: Add entry for pragma
14364 Compile_Time_Error
14365 Add new standard name Minimum_Binder_Options for new gprmake
14366 Add new standard names for gprmake: Archive_Suffix,
14367 Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
14368 Library_Support, Library_Version_Options,
14369 Shared_Library_Minimum_Options,
14370 Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
14371 Change Name_Call to Name_uCall so that it cannot clash with a legal
14372 subprogram name.
14373 Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
14374 Append C_Plus_Plus to convention identifiers as synonym for CPP
14375 Add new standard names Stack and Builder_Switches
14376 Add new standard names: Compiler_Minimum_Options, Global_Config_File,
14377 Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
14378 Run_Path_Option, Toolchain_Version.
14379 Entry for pragma Unreferenced_Objects
14380
14381 * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
14382 switches, without repetition of "eD". Make sure that last character of
14383 -gnatep= switch is not taken as -gnat switch character.
14384 Complete rewrite of circuit for handling saving compilation options
14385 Occasioned by need to support dot switchs for -gnatw, but cleans up
14386 things in general.
14387 -gnatX does not affect Ada_Version
14388 Include -gnatyA in -gnatg style switches
14389
14390 * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
14391 warnings on return objects.
14392 (Warn_On_Useless_Assignment): Exclude warnings on return objects
14393 (Set_Dot_Warning_Switch): New procedure
14394 (Check_References): Add missing case of test for
14395 Has_Pragma_Unreferenced_Objects
14396 (Output_Unreferenced_Messages): Implement effect of new pragma
14397 Unreferenced_Objects, remove special casing of limited controlled
14398 variables.
14399
144002007-04-06 Vincent Celier <celier@adacore.com>
14401
14402 * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
14403 the default project path, initially done during elaboration of the
14404 package.
14405 If the prefix returned by Sdefault is null, get the prefix from a call
14406 to Executable_Prefix_Path.
14407 (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
14408 null.
14409
14410 * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
14411 canonical directory name to open the directory from which files are
14412 retrieved.
14413 (Record_Other_Sources): Idem.
14414 (Locate_Directory): Add the possibility to create automatically missing
14415 directories when Setup_Projects is True.
14416 Call Locate_Directory so that the directory will be created when
14417 Setup_Projects is True, for object dir, library dir, library ALI dir,
14418 library source copy dir and exec dir.
14419
14420 * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
14421 versions of GNAT.
14422
144232007-04-06 Robert Dewar <dewar@adacore.com>
14424
14425 * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
14426 Use First/Next_Component_Or_Discriminant
14427 (Analyze_Record_Representation_Clause):
14428 Use First/Next_Component_Or_Discriminant
14429 (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
14430 (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
14431 definition if type is unconstrained.
14432 (Adjust_Record_For_Reverse_Bit_Order): New procedure
14433 (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
14434 Is_Abstract_Subprogram and Is_Abstract_Type.
14435 (Adjust_Record_For_Reverse_Bit_Order): New procedure
14436
14437 * repinfo.adb (List_Record_Info): Use First/
14438 Next_Component_Or_Discriminant.
14439
14440 * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
14441 New procedure.
14442
14443 * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
14444 Include -gnatyA in default switches
14445
14446 * opt.ads: (Warn_On_Non_Local_Exception): New flag
14447 (Warn_On_Reverse_Bit_Order): New flag
14448 (Extensions_Allowed): Update the documentation.
14449 (Warn_On_Questionable_Missing_Parens): Now on by default
14450
14451 * usage.adb: Add documentation of -gnatw.x/X switches
14452 Document new -gnatyA style switch
14453 -gnatq warnings are on by default
14454
144552007-04-06 Ed Falis <falis@adacore.com>
14456
14457 * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
14458 full word is no longer compared twice.
14459
144602007-04-06 Ed Schonberg <schonberg@adacore.com>
14461
14462 * sem_ch10.adb (Install_Limited_Context_Clauses.
14463 Expand_Limited_With_Clause): Use a new copy of selector name in the
14464 call to Make_With_Clause. This fixes the tree structure for ASIS
14465 purposes. Nothing is changed in the compiler behaviour.
14466 (Process_Body_Clauses): Handle properly use clauses whose prefix is
14467 a package renaming.
14468 (Install_Limited_With_Clauses): Do not install non-limited view when it
14469 is still incomplete.
14470
144712007-04-06 Ed Schonberg <schonberg@adacore.com>
14472 Gary Dismukes <dismukes@adacore.com>
14473
14474 * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
14475 when capturing size information, instead of base type, which for a
14476 formal array type will be the unconstrained type.
14477 (Analyze_Formal_Object_Declaration): Add check for illegal default
14478 expressions for a formal in object of a limited type.
14479 (Instantiate_Object): Ditto.
14480 (Check_Formal_Package_Instance): Skip entities that are formal objects,
14481 because they were defaulted in the formal package and no check applies
14482 to them.
14483 (Check_Formal_Package_Instance): Extend conformance check to other
14484 discrete types beyond Integer.
14485 (Process_Default): Copy directly the unmatched formal. A generic copy
14486 has already been performed in Analyze_Formal_Package.
14487 (Analyze_Associations): If a formal subprogram has no match, check for
14488 partial parametrization before looking for a default, to prevent
14489 spurious errors.
14490 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
14491 not set the instantiation environment before analyzing the actuals.
14492 Fixes regression on 8515-003 with implementation of AI-133.
14493 Set_Instance_Env checks whether the generic unit is a predefined
14494 unit, in which case the instance must be analyzed with the latest Ada
14495 mode. This setting must take place after analysis of the actuals,
14496 because the actuals must be analyzed and frozen in the Ada mode extant
14497 outside of the current instantiation.
14498 (Save_Env, Restore_Env): Preserve and restore the configuration
14499 parameters so that predefined units can be compiled in the proper Ada
14500 mode.
14501 (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
14502 Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
14503 and Is_Abstract_Type.
14504 (Analyze_Formal_Package): For better error recovery, Add exception
14505 handler to catch Instantion_Error, which can be raised in
14506 Analyze_Associations
14507
145082007-04-06 Ed Schonberg <schonberg@adacore.com>
14509 Bob Duff <duff@adacore.com>
14510 Gary Dismukes <dismukes@adacore.com>
14511
14512 * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
14513 prefix type is a discriminated subtype of the type of the formal.
14514 (Analyze_Allocator): Collect all coextensions regardless of the context.
14515 Whether they can be allocated statically is determined in exp_ch4.
14516 (Analyze_Selected_Component): If the prefix is a limited view and the
14517 non-limited view is available, use the non-limited one.
14518 (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
14519 therefore illegal), suggest a qualified expression rather than a type
14520 conversion, because a type conversion would be illegal in this context.
14521 (Anayze_Allocator): Trace recursively all nested allocators so that all
14522 coextensions are on the corresponding list for the root. Do no mark
14523 coextensions if the root allocator is within a declaration for a stack-
14524 allocated object, because the access discriminants will be allocated on
14525 the stack as well.
14526 (Analyze_Call): Remove restriction on calls to limited functions for the
14527 cases of generic actuals for formal objects, defaults for formal objects
14528 and defaults for record components.
14529 (Analyze_Allocator): Before analysis, chain coextensions on the proper
14530 element list. Their expansion is delayed until the enclosing allocator
14531 is processed and its finalization list constructed.
14532 (Try_Primitive_Operation): If the prefix is a concurrent type, looks
14533 for an operation with the given name among the primitive operations of
14534 the corresponding record type.
14535 (Analyze_Selected_Component): If the prefix is a task type that
14536 implements an interface, and there is no entry with the given name,
14537 check whether there is another primitive operation (e.g. a function)
14538 with that name.
14539 (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
14540 properly the indexing of a function call written in prefix form, where
14541 the function returns an array type, and all parameters of the function
14542 except the first have defaults.
14543 (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
14544 the original operands, rather than relocating them, for efficiency and
14545 to work properly when an operand is overloaded.
14546 (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
14547 Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
14548 (Analyze_Selected_Component): If the prefix is a private extension, only
14549 scan the visible components, not those of the full view.
14550 (Try_Primitive_Operation): If the operation is a procedure, collect all
14551 possible interpretations, as for a function, because in the presence of
14552 classwide parameters several primitive operations of the type can match
14553 the given arguments.
14554
145552007-04-06 Ed Schonberg <schonberg@adacore.com>
14556 Robert Dewar <dewar@adacore.com>
14557
14558 * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
14559 tag-indeterminate call to an abstract function, when the left-hand side
14560 is not classwide.
14561 (Analyze_Loop_Statement): Improve detection of infinite loops
14562
145632007-04-06 Ed Schonberg <schonberg@adacore.com>
14564 Thomas Quinot <quinot@adacore.com>
14565
14566 * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
14567 out of Analyze_Package_Declaration, because processing must be applied
14568 to package bodies as well, for deferred constants completed by pragmas.
14569 (Analyze_Package_Declaration): When the package declaration being
14570 analyzed does not require an explicit body, call Check_Completion.
14571 (May_Need_Implicit_Body): An implicit body is required when a package
14572 spec contains the declaration of a remote access-to-classwide type.
14573 (Analyze_Package_Body): If the package contains RACWs, append the
14574 pending subprogram bodies generated by exp_dist at the end of the body.
14575 (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
14576 Is_Abstract_Subprogram and Is_Abstract_Type.
14577 (Preserve_Full_Attributes): The full entity list is not an attribute
14578 that must be preserved from full to partial view.
14579
14580 * sem_dist.adb (Add_RAS_Dereference_TSS):
14581 Change primitive name to _Call so it cannot clash with any legal
14582 identifier, and be special-cased in Check_Completion.
14583 Mark the full view of the designated type for the RACW associated with
14584 a RAS as Comes_From_Source to get proper view switching when installing
14585 private declarations.
14586 Provite a placeholder nested package body along with the nested spec
14587 to have a place for Append_RACW_Bodies to generate the calling stubs
14588 and stream attributes.
14589
145902007-04-06 Ed Schonberg <schonberg@adacore.com>
14591 Robert Dewar <dewar@adacore.com>
14592
14593 * sem_ch8.adb (Has_Components): If the argument is an incomplete type
14594 that is a limited view, check the non-limited view if available.
14595 (Undefined): Refine error message for missing with of Text_IO
14596 (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
14597 to distinguish real missing with cases.
14598 Fix format of all missing with messages
14599 (Analyze_Subprogram_Renaming): Emit proper error message on illegal
14600 renaming as body when renamed entity is abstract.
14601
146022007-04-06 Ed Schonberg <schonberg@adacore.com>
14603 Javier Miranda <miranda@adacore.com>
14604
14605 * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
14606 predicate recursive, to handle complex expressions on literals whose
14607 spurious ambiguity comes from the abstract interpretation of some
14608 subexpression.
14609 (Interface_Present_In_Ancestor): Add support to concurrent record
14610 types.
14611 (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
14612 Is_Abstract_Subprogram and Is_Abstract_Type.
14613
146142007-04-06 Ed Schonberg <schonberg@adacore.com>
14615 Javier Miranda <miranda@adacore.com>
14616
14617 * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
14618 dereference of a local object R created as a reference to another
14619 object O, use the access level of O.
14620 (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
14621 rather than local Same_Formal_Type, to check whether protected operation
14622 overrides an inherited one.
14623 (Same_Formal_Type): New predicate, used when matching signatures of
14624 overriding synchronized operations, to handle the case when a formal
14625 has a type that is a generic actual.
14626 (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
14627 predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
14628 (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
14629 syntactic ambiguities involving indexing of function calls that return
14630 arrays.
14631 (Abstract_Interface_List): New subprogram that returns the list of
14632 abstract interfaces associated with a concurrent type or a
14633 concurrent record type.
14634 (Interface_Present_In_Parent): New subprogram used to check if a
14635 given type or some of its parents implement a given interface.
14636 (Collect_Abstract_Interfaces): Add support for concurrent types
14637 with interface types.
14638 (Has_Abstract_Interfaces): Add support for concurrent types with
14639 interface types.
14640 (Is_Parent): New subprogram that determines whether E1 is a parent
14641 of E2. For a concurrent type its parent is the first element of its
14642 list of interface types; for other types this function provides the
14643 same result than Is_Ancestor.
14644 (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
14645 (Collect_Synchronized_Interfaces): Removed because the subprogram
14646 Collect_Abstract_Interfaces provides this functionality.
14647 (Collect_Abstract_Interfaces): Minor update to give support to
14648 concurrent types and thus avoid undesired code duplication.
14649 (Get_Subprogram_Entity): Handle entry calls.
14650 (May_Be_Lvalue): Include actuals that appear as in-out parameters in
14651 entry calls.
14652 (Enter_Name): Do not give -gnatwh hiding warning for record component
14653 entities, they never result in hiding.
14654
146552007-04-06 Ed Schonberg <schonberg@adacore.com>
14656 Robert Dewar <dewar@adacore.com>
14657
14658 * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
14659 to chain nested components that are allocators for access discriminants
14660 of the enclosing object.
14661 Add N_Push and N_Pop nodes
14662 New field Exception_Label added
14663 (Local_Raise_Statements): New field in N_Exception_Handler_Node
14664 (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
14665 (Is_Coextension): New flag for allocators, to mark allocators that
14666 correspond to access discriminants of dynamically allocated objects.
14667 (N_Block_Statement): Document the fact that the corresponding entity
14668 can be an E_Return_Statement.
14669 (Is_Coextension): New flag for allocators.
14670 Remove all code for DSP option
14671
14672 * sprint.ads, sprint.adb: Display basic information for class_wide
14673 subtypes. Add handling of N_Push and N_Pop nodes
14674
146752007-04-06 Arnaud Charlet <charlet@adacore.com>
14676
14677 * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
14678 before propagating exception.
14679
146802007-04-06 Olivier Hainque <hainque@adacore.com>
14681
14682 * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
14683 an address always within the call instruction from a return address.
14684
146852007-04-06 Olivier Hainque <hainque@adacore.com>
9e94c78f 14686 Eric Botcazou <botcazou@adacore.com>
4b437c6b
AC
14687
14688 * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
14689 expression with a COMPOUND_EXPR including the call instead of emitting
14690 the call directly here.
14691 (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
14692 high bound is constant and the slice is empty. Tidy.
14693 (tree_transform, case N_Op_Not): Handle properly the case where the
14694 operation applies to a private type whose full view is a modular type.
14695 (Case_Statement_To_gnu): If an alternative is an E_Constant with an
14696 Address_Clause, use the associated Expression as the GNAT tree
14697 representing the choice value to ensure the corresponding GCC tree is
14698 of the proper kind.
14699 (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
14700 instead of just the operands, as the base GCC stabilize_reference does.
14701 <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
14702 requested; otherwise fail.
14703 (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
14704
147052007-04-06 Thomas Quinot <quinot@adacore.com>
14706
14707 * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
14708 implementation of UI_Div.
14709 (UI_Div): Reimplement as a call to UI_Div_Rem.
14710 (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
14711 remainder, avoiding the cost of a multiplication and a subtraction.
14712 (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
14713 provides both quotient and remainder in a single computation.
14714 (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
14715 functions for uint.
14716 (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
14717 is undefined if the given n is not inversible.
14718
147192007-04-06 Olivier Hainque <hainque@adacore.com>
14720
14721 * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
14722 BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
14723 opcodes.
14724
9e94c78f 147252007-04-06 Eric Botcazou <botcazou@adacore.com>
4b437c6b
AC
14726 Olivier Hainque <hainque@adacore.com>
14727
14728 * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
14729 when updating the contents of the old pointer to an unconstrained array.
14730 (end_subprog_body): Set error_gnat_node to Empty.
14731 (write_record_type_debug_info): Do not be unduly sparing with our bytes.
14732 (unchecked_convert): For subtype to base type conversions, require that
14733 the source be a subtype if it is an integer type.
14734 (builtin_decls): New global, vector of available builtin functions.
14735 (gnat_pushdecl): Add global builtin function declaration nodes to the
14736 builtin_decls list.
14737 (gnat_install_builtins): Adjust comments.
14738 (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
14739 calling gnat_pushdecl, so that it knows when it handed a builtin
14740 function declaration node.
14741 (builtin_decl_for): Search the builtin_decls list.
14742
9e94c78f 147432007-04-06 Eric Botcazou <botcazou@adacore.com>
4b437c6b
AC
14744
14745 * s-stchop-vxworks.adb:
14746 (Stack_Check): Raise Storage_Error if the argument has wrapped around.
14747
147482007-04-06 Robert Dewar <dewar@adacore.com>
14749 Arnaud Charlet <charlet@adacore.com>
14750
14751 * a-diroro.ads: Inserted the pragma Unimplemented_Unit
14752
14753 * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
14754 of files
14755 Add mention of -Sev (set initialize_scalars option from environment
14756 variable at run time) in gnatbind usage message.
14757
14758 * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
14759
14760 * fname-uf.ads: Minor comment fix
14761
14762 * osint.ads: Change pragma Elaborate to Elaborate_All
14763
14764 * par-load.adb: Add documentation.
14765
14766 * sem_cat.ads, sem_cat.adb: Minor code reorganization
14767
14768 * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
14769
14770 * s-secsta.ads: Extra comments
14771
14772 * s-soflin.ads: Minor comment fixes
14773
14774 * s-stratt.ads (Block_Stream_Ops_OK): Removed.
14775
14776 * s-wchcon.ads: Minor comment addition
14777
14778 * treepr.adb: Minor change in message
14779 (Print_Name,Print_Node): Make these debug printouts more robust: print
14780 "no such..." instead of crashing on bad input.
14781
47ecd38d
RAE
147822007-03-30 Rafael Avila de Espindola <espindola@google.com>
14783
14784 * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
14785 instead of gnat_signed_or_unsigned_type.
14786 * utils.c (gnat_signed_or_unsigned_type): Remove.
14787 * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
14788 * gigi.h (gnat_signed_or_unsigned_type): Remove
14789
9645c3c5
RS
147902007-03-09 Roger Sayle <roger@eyesopen.com>
14791
14792 * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
14793 fold with the result of buildN.
14794 * decl.c (gnat_to_gnu_entity): Likewise.
14795 * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
14796 * utils.c (finish_record_type, merge_sizes, max_size, convert):
14797 Likewise.
14798 * utils2.c (gnat_truthvalue_conversion, compare_arrays,
14799 nonbinary_modular_operation, build_binary_op, build_unary_op,
14800 build_cond_expr): Likewise.
14801
14802 * utils.c (convert): Use fold_build1 when casting values to void.
14803 * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
14804 fold_convert instead of convert when appropriate.
14805
c279aa90
BM
148062007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
14807
14808 * Make-lang.in: Add install-pdf target as copied from
14809 automake v1.10 rules.
14810
c2615f30
AS
148112007-02-28 Andreas Schwab <schwab@suse.de>
14812
14813 * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
14814 $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
14815 (doc/gnat-style.info): Likewise.
14816
7771bb62
BM
148172007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
14818
14819 * gnat-style.texi: Standardize title page.
14820 * gnat_rm.texi: Likewise.
14821 * gnat_ugn.texi: Likewise.
14822
ae19c041
MM
148232007-02-25 Mark Mitchell <mark@codesourcery.com>
14824
14825 * decl.c (annotate_value): Adjust for refactoring of tree_map
14826 hierarchy.
14827
fc8600f9
MM
148282007-02-24 Mark Mitchell <mark@codesourcery.com>
14829
14830 * decl.c (annotate_value): Adjust for refactoring of tree_map
14831 hierarchy.
14832
c0bca7e1
EB
148332007-02-21 Ed Schonberg <schonberg@adacore.com>
14834
14835 PR ada/18819
14836 * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
14837 untagged derived type, add hidden components to keep discriminant
14838 layout consistent, when a given discriminant of the derived type
14839 constraints several discriminants of the parent type.
14840
9f3432b8 148412007-02-16 Eric Botcazou <ebotcazou@adacore.com>
6f7f72f9 14842 Sandra Loosemore <sandra@codesourcery.com>
9f3432b8
EB
14843
14844 * trans.c (call_to_gnu): Use build_call_list instead of build3 to
14845 build the call expression.
14846 (gnat_stabilize_reference_1): Handle tcc_vl_exp.
14847 * utils.c (max_size) <tcc_exceptional>: Delete.
14848 <tcc_vl_exp>: New case.
14849 <tcc_expression>: Delete CALL_EXPR subcase.
14850 (build_global_cdtor): Use build_call_nary instead of build3.
14851 * utils2.c (build_call_1_expr): Likewise.
14852 (build_call_2_expr): Likewise.
14853 (build_call_0_expr): Likewise.
14854 (build_call_alloc_dealloc): Likewise.
14855
8438091f
AK
148562007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
14857
14858 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
ed41063a 14859 get_action_description_for): Replace _Unwind_Word with _uleb128_t
8438091f
AK
14860 and _Unwind_SWord with _sleb128_t.
14861
0802f6a2
PB
148622007-02-06 Paolo Bonzini <bonzini@gnu.org>
14863
14864 * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
14865 * decl.c: Include gt-ada-decl.h.
14866 (annotate_value_cache): New.
14867 (annotate_value): Use it instead of TREE_COMPLEXITY.
14868
326f9a75
KH
148692007-02-03 Kazu Hirata <kazu@codesourcery.com>
14870
14871 * misc.c, utils2.c: Fix comment typos.
14872
cd259a98
RS
148732007-01-24 Roger Sayle <roger@eyesopen.com>
14874
14875 * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
14876 TREE_CONSTANT_OVERFLOW.
14877 (allocatable_size_p, annotate_value): Likewise.
14878 * trans.c (gnat_to_gnu): Likewise.
14879 * utils.c (unchecked_convert): Likewise.
14880 * utils2.c (build_simple_component_ref): Likewise.
14881
5305be7e
RG
148822007-01-23 Richard Guenther <rguenther@suse.de>
14883
14884 PR bootstrap/30541
14885 * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
14886 (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
14887 (gnatboot3): Likewise.
14888 (GNATBIND): Do not define.
14889 * Makefile.in (GNATBIND): Do not define.
14890
2ac7cbb5
RG
148912007-01-08 Richard Guenther <rguenther@suse.de>
14892
14893 * cuintp.c (build_cst_from_int): Use built_int_cst_type.
14894 * trans.c (gnat_to_gnu): Likewise.
14895
2989d30c
GK
148962006-12-07 Geoffrey Keating <geoffk@apple.com>
14897
14898 * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
14899 * adaint.c: Likewise.
14900
5848e34a
EB
149012006-12-05 Aldy Hernandez <aldyh@redhat.com>
14902
6f7f72f9 14903 Merge from gimple-tuples-branch:
5848e34a 14904 2006-11-02 Aldy Hernandez <aldyh@redhat.com>
6f7f72f9 14905
5848e34a
EB
14906 * ada-tree.h (lang_tree_node): Handle gimple tuples.
14907 * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
14908 GIMPLE_MODIFY_STMT.
14909
d3c56bc8
KH
149102006-12-02 Kazu Hirata <kazu@codesourcery.com>
14911
14912 * Makefile.in, mingw32.h, trans.c: Fix comment typos.
14913 * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
14914 Fix typos.
14915
9fa25ead
EB
149162006-11-17 Eric Botcazou <ebotcazou@adacore.com>
14917
14918 PR ada/27936
14919 * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
14920 if the initializer takes into account the padding.
14921
f9f770a8
RG
149222006-11-11 Richard Guenther <rguenther@suse.de>
14923
14924 * trans.c (maybe_stabilize_reference): Remove handling of
14925 FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
14926
75c0ed05
AC
149272006-11-05 Arnaud Charlet <charlet@adacore.com>
14928
ed41063a 14929 PR ada/29707
75c0ed05
AC
14930 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
14931 (To_Target_Priority): New function.
75c0ed05 14932
70198b9f
AC
149332006-10-31 Robert Dewar <dewar@adacore.com>
14934
14935 * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
14936 a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
14937 s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
14938 a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
14939 a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
14940 a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
14941 a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
14942 a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
14943 a-szbzha.adb: Minor reformatting. Fix header.
14944
14945 * a-numaux-x86.adb: Add parentheses for use of unary minus
14946 * a-ngcefu.adb: Supply missing parentheses for unary minus
14947 * a-ngcoty.adb: Add parens for use of unary minus
14948 * a-ngelfu.adb: Add missing parens for unary minus
14949 * a-tifiio.adb: Add parentheses for uses of unary minus
14950
149512006-10-31 Robert Dewar <dewar@adacore.com>
14952 Bob Duff <duff@adacore.com>
14953 Ed Schonberg <schonberg@adacore.com>
14954
6f7f72f9 14955 * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
70198b9f
AC
14956 with multiplying operator.
14957 (Expected_Type_Is_Any_Real): New function to determine from the Parent
14958 pointer whether the context expects "any real type".
14959 (Resolve_Arithmetic_Op): Do not give an error on calls to the
14960 universal_fixed "*" and "/" operators when they are used in a context
14961 that expects any real type. Also set the type of the node to
14962 Universal_Real in this case, because downstream processing requires it
14963 (mainly static expression evaluation).
14964 Reword some continuation messages
14965 Add some \\ sequences to continuation messages
14966 (Resolve_Call): Refine infinite recursion case. The test has been
14967 sharpened to eliminate some false positives.
14968 Check for Current_Task usage now includes entry barrier, and is now a
14969 warning, not an error.
14970 (Resolve): If the call is ambiguous, indicate whether an interpretation
14971 is an inherited operation.
14972 (Check_Aggr): When resolving aggregates, skip associations with a box,
14973 which are priori correct, and will be replaced by an actual default
14974 expression in the course of expansion.
14975 (Resolve_Type_Conversion): Add missing support for conversion from
14976 a class-wide interface to a tagged type. Minor code cleanup.
14977 (Valid_Tagged_Converion): Add support for abstact interface type
14978 conversions.
14979 (Resolve_Selected_Component): Call Generate_Reference here rather than
14980 during analysis, and use May_Be_Lvalue to distinguish read/write.
14981 (Valid_Array_Conversion): New procedure, abstracted from
14982 Valid_Conversion, to incorporate accessibility checks for arrays of
14983 anonymous access types.
14984 (Valid_Conversion): For a conversion to a numeric type occurring in an
14985 instance or inlined body, no need to check that the operand type is
14986 numeric, since this has been checked during analysis of the template.
14987 Remove legacy test for scope name Unchecked_Conversion.
14988
14989 * sem_res.ads: Minor reformatting
14990
14991 * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
14992 (PE_Current_Task_In_Entry_Body): New exception code
14993 (SE_Restriction_Violation): Removed, not used
14994
14995 * a-except.ads: Update comments.
14996
14997 * types.h, types.ads: Add definition for Validity_Check
14998 (PE_Current_Task_In_Entry_Body): New exception code
14999 (SE_Restriction_Violation): Removed, not used
15000
150012006-10-31 Thomas Quinot <quinot@adacore.com>
15002
15003 * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
15004 error status.
15005
150062006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
15007 Jose Ruiz <ruiz@adacore.com>
15008
15009 * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
15010 part of Ada.Calendar: all subprogram raise Unimplemented.
15011 (Split_W_Offset): Temp function body, raising Unimplemented
15012
15013 * a-calend.ads, a-calend-vms.ads:
15014 Add imported variable Invalid_TZ_Offset used to designate targets unable
15015 to support time zones.
15016 (Unimplemented): Temporary function raised by the body of new
15017 subprograms below.
15018 (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
15019 unit provides handling of leap seconds and is used by the new Ada 2005
15020 packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
15021 (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
15022 version returns an extra value which is the offset to UTC.
15023
15024 * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
15025 (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
15026 (Split_W_Offset): New function body.
15027 (Time_Of): When a date is close to UNIX epoch, compute the time for
15028 that date plus one day (that amount is later substracted after
15029 executing mktime) so there are no problems with time zone adjustments.
15030
15031 * a-calend-mingw.adb: Remove Windows specific version no longer needed.
15032
15033 * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
15034 a-catizo.ads, a-catizo.adb: New files.
15035
6f7f72f9 15036 * impunit.adb: Add new Ada 2005 entries
70198b9f
AC
15037
15038 * sysdep.c: Add external variable __gnat_invalid_tz_offset.
15039 Rename all occurences of "__gnat_localtime_r" to
15040 "__gnat_localtime_tzoff".
15041 (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
15042 zone data and calculate the GMT offset.
15043 (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
15044 Use the field "tm_gmtoff" to extract the GMT offset.
15045 (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
15046 the external variable "timezone" to calculate the GMT offset.
15047
150482006-10-31 Arnaud Charlet <charlet@adacore.com>
15049 Jose Ruiz <ruiz@adacore.com>
15050
15051 * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
15052 s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
15053 s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
15054 s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
15055 System.Any_Priority to a POSIX priority on the target.
15056
15057 * system-linux-ia64.ads:
15058 Extend range of Priority types on Linux to use the whole range made
15059 available by the system.
15060
15061 * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
15062 function maps from System.Any_Priority to a POSIX priority on the
15063 target.
15064 (PTHREAD_PRIO_PROTECT): Set real value.
15065 (PTHREAD_PRIO_INHERIT): Now a function.
15066 (SIGCPUFAIL): New signal.
15067 (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
15068 are documented as reserved by the OS.
15069
15070 * system-aix.ads: Use the full range of priorities provided by the
15071 system on AIX.
15072
15073 * s-taprop-posix.adb: Call new function To_Target_Priority.
15074 (Set_Priority): Take into account Task_Dispatching_Policy and
15075 Priority_Specific_Dispatching pragmas when determining if Round Robin
15076 must be used for scheduling the task.
15077
15078 * system-linux-x86_64.ads, system-linux-x86.ads,
15079 system-linux-ppc.ads: Extend range of Priority types on Linux to use
15080 the whole range made available by the system.
15081
15082 * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
15083 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
15084 s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
15085 when deallocating the TCB in order to avoid potential references to
15086 deallocated data.
15087 (Set_Priority): Take into account Task_Dispatching_Policy and
15088 Priority_Specific_Dispatching pragmas when determining if Round Robin
15089 or FIFO within priorities must be used for scheduling the task.
15090
15091 * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
15092 the Thread field (to be used internally by the run-time system) and the
15093 kernel-level task id in the LWP field (to be used by the debugger).
15094 (Create_Task): Reorganize to unify the calls to taskSpawn into a single
15095 instance, and propagate the current task options to the spawned task.
15096 (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
15097 (Initialize): Set Round Robin dispatching when the corresponding pragma
15098 is in effect.
15099
151002006-10-31 Robert Dewar <dewar@adacore.com>
15101
15102 * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
15103 system-linux-hppa.ads, system-hpux-ia64.ads,
15104 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
15105 system-vxworks-sparcv9.ads, system-solaris-x86.ads,
15106 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
15107 system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
15108 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
15109 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
15110 system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
15111 Default_Bit_Order) to kill constant condition warnings for references
15112 to this switch.
15113
151142006-10-31 Vincent Celier <celier@adacore.com>
15115 Eric Botcazou <ebotcazou@adacore.com>
15116
15117 * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
15118 mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
15119 mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
15120 Ext_To, when building the library file name
15121
15122 * mlib-tgt-vxworks.adb: ditto.
15123 (Get_Target_Suffix): Add support for x86 targets.
15124
15125 * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
15126
15127 * mlib-tgt-darwin.adb:
15128 Use Append_To, instead of Ext_To, when building the library file name
15129 (Flat_Namespace): New global variable.
15130 (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
15131 (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
15132 (Link_Shared_Libgcc): Delete.
15133 (Build_Dynamic_Library): Adjust for above changes.
15134 Use Opt package.
15135 (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
15136
151372006-10-31 Eric Botcazou <ebotcazou@adacore.com>
15138
15139 * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
15140 (Initialize): Add type conversions required by above change.
15141
151422006-10-31 Jose Ruiz <ruiz@adacore.com>
15143
15144 * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
15145 (getpid): New body for this function that uses the underlying taskIdSelf
15146 function for VxWorks 5 and VxWorks 6 in kernel mode.
15147 (unsigned_int): New type, modular to allow logical bit operations.
15148 (taskOptionsGet): New imported function.
15149
15150 * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
15151 field to be compliant with the type used by the corresponding operating
15152 system primitive.
15153
151542006-10-31 Pascal Obry <obry@adacore.com>
15155 Eric Botcazou <ebotcazou@adacore.com>
15156 Vincent Celier <celier@adacore.com>
15157
15158 * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
15159 ASCII version of the registry API. This is needed as the GNAT runtime
15160 is now UNICODE by default.
15161 Include version.h.
15162 (get_gcc_version): Do not hardcode the return value.
15163 (__gnat_file_time_name): On Windows properly set the default returned
15164 value to -1 which corresponds to Invalid_Time.
15165 (__gnat_fopen): New routine. A simple wrapper on all plateforms
15166 except on Windows where it does conversion for unicode support.
15167 (__gnat_freopen): Idem.
15168 (__gnat_locate_exec_on_path): If environment variable PATH does not
15169 exist, return a NULL pointer
15170
15171 * adaint.h: (__gnat_fopen): Declare.
15172 (__gnat_freopen): Likewise.
15173
15174 * mingw32.h (_tfreopen): Define this macro here for older MingW
15175 version.
15176 Activate the unicode support on platforms using a MingW runtime
15177 version 3.9 or newer.
15178
15179 * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
15180 This is needed for proper unicode support on Windows.
15181 (freopen): Idem.
15182
151832006-10-31 Eric Botcazou <ebotcazou@adacore.com>
15184 Nicolas Setton <setton@adacore.com>
15185 Olivier Hainque <hainque@adacore.com>
15186 Gary Dismukes <dismukes@adacore.com>
15187
15188 * gigi.h: (tree_code_for_record_type): Declare.
15189 (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
15190 (get_global_renaming_pointers): Rename to
15191 invalidate_global_renaming_pointers.
15192 (static_ctors): Delete.
15193 (static_dtors): Likewise.
15194 (gnat_write_global_declarations): Declare.
15195 (create_var_decl): Adjust descriptive comment to indicate that the
15196 subprogram may return a CONST_DECL node.
15197 (create_true_var_decl): Declare new function, similar to
15198 create_var_decl but forcing the creation of a VAR_DECL node.
15199 (get_global_renaming_pointers): Declare.
15200 (add_global_renaming_pointer): Likewise.
15201
15202 * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
15203
15204 * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
15205 tree before setting TREE_ADDRESSABLE for by-reference return mechanism
15206 processing.
15207 (gnat_to_gnu_entity): Remove From_With_Type from computation for
15208 imported_p.
15209 <E_Access_Type>: Use the Non_Limited_View as the full view of the
15210 designated type if the pointer comes from a limited_with clause. Make
15211 incomplete designated type if it is in the main unit and has a freeze
15212 node.
15213 <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
15214 Underlying_Full_View similarly. Return earlier if the full view already
15215 has an associated tree.
15216 (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
15217 (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
15218 (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
15219 reference type built for objects with an address clause.
15220 Use create_true_var_decl with const_flag set for
15221 DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
15222 TREE_READONLY set.
15223 (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
15224 for Character and Wide_Character types. This info is read by the
15225 dwarf-2 writer, and is needed to be able to use the command "ptype
15226 character" in the debugger.
15227 (gnat_to_gnu_entity): When generating a type representing
15228 a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
15229 so that debug writers can distinguish it from ordinary integers.
15230 (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
15231 addition to TREE_READONLY to assert the constantness of variables for
15232 elaboration purposes.
15233 (gnat_to_gnu_entity, subprogram cases): Change loops on formal
15234 parameters to call new Einfo function First_Formal_With_Extras.
15235 (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
15236 protected type with its corresponding discriminant, to obtain a usable
15237 declaration
15238 (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
15239 for a multiple elaboration of the "equivalent" type.
15240 (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
15241 into record_global_renaming_pointer.
15242 (gnat_to_gnu_entity) <E_Array_Type>: Do not force
15243 TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
15244 <E_Array_Subtype>: Likewise.
15245 (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
15246 incomplete subtypes and incomplete subtypes of incomplete types visible
15247 through a limited with clause.
15248 (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
15249 the base index type for the maximum size of the array only if they are
15250 constant.
15251 (gnat_to_gnu_entity, renaming object case): Do not wrap up the
15252 expression into a SAVE_EXPR if stabilization failed.
15253
15254 * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
15255 a result decl into DECL_BY_REFERENCE on this decl, now what is expected
15256 by lower level compilation passes.
15257 (gnat_genericize): New function, lowering a function body to GENERIC.
15258 Turn the type of RESULT_DECL into a real reference type if the decl
15259 has been marked DECL_BY_REFERENCE, and adjust references to the latter
15260 accordingly.
15261 (gnat_genericize_r): New function. Tree walking callback for
15262 gnat_genericize.
15263 (convert_from_reference, is_byref_result): New functions. Helpers for
15264 gnat_genericize_r.
15265 (create_type_decl): Call gnat_pushdecl before calling
15266 rest_of_decl_compilation, to make sure that field TYPE_NAME of
15267 type_decl is properly set before calling the debug information writers.
15268 (write_record_type_debug_info): The heuristics which compute the
15269 alignment of a field in a variant record might not be accurate. Add a
15270 safety test to make sure no alignment is set to a smaller value than
15271 the alignment of the field type.
15272 (make_dummy_type): Use the Non_Limited_View as the underlying type if
15273 the type comes from a limited_with clause. Do not loop on the full view.
15274 (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
15275 (dummy_node_table): New global variable, moved from decl.c.
15276 (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
15277 (save_gnu_tree): Use above macros.
15278 (get_gnu_tree): Likewise.
15279 (present_gnu_tree): Likewise.
15280 (init_dummy_type): New function, moved from decl.c. Use above macros.
15281 (make_dummy_type): Likewise.
15282 (tree_code_for_record_type): New function extracted from make_dummy_type
15283 (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
15284 (static_ctors): Change it to a vector, make static.
15285 (static_dtors): Likewise.
15286 (end_subprog_body): Adjust for above change.
15287 (build_global_cdtor): Moved from trans.c.
15288 (gnat_write_global_declarations): Emit global constructor and
15289 destructor, and call cgraph_optimize before emitting debug info for
15290 global declarations.
15291 (global_decls): New global variable.
15292 (gnat_pushdecl): Store the global declarations in global_decls, for
15293 later use.
15294 (gnat_write_global_declarations): Emit debug information for global
15295 declarations.
15296 (create_var_decl_1): Former create_var_decl, with an extra argument to
15297 state whether the creation of a CONST_DECL is allowed.
15298 (create_var_decl): Behavior unchanged. Now a wrapper around
15299 create_var_decl_1 allowing CONST_DECL creation.
15300 (create_true_var_decl): New function, similar to create_var_decl but
15301 forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
15302 (create_field_decl): Do not always mark the field as addressable
15303 if its type is an aggregate.
15304 (global_renaming_pointers): New static variable.
15305 (add_global_renaming_pointer): New function.
15306 (get_global_renaming_pointers): Likewise.
15307
15308 * misc.c (gnat_dwarf_name): New function.
15309 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
15310 (gnat_post_options): Add comment about structural alias analysis.
15311 (gnat_parse_file): Do not call cgraph_optimize here.
15312 (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
15313
15314 * trans.c (process_freeze_entity): Don't abort if we already have a
15315 non dummy GCC tree for a Concurrent_Record_Type, as it might
15316 legitimately have been elaborated while processing the associated
15317 Concurrent_Type prior to this explicit freeze node.
15318 (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
15319 exception handler volatile if it is of variable size.
15320 (process_type): Remove bypass for types coming from a limited_with
15321 clause.
15322 (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
15323 actual, convert the corresponding gnu_actual to the real destination
15324 type when necessary.
15325 (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
15326 originally TREE_READONLY but whose elaboration cannot be performed
15327 statically.
15328 Part of fix for F504-021.
15329 (tree_transform, subprogram cases): Change loops on formal parameters to
15330 call new Einfo function First_Formal_With_Extras.
15331 (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
15332 stemming from type conversion for the lhs.
15333 (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
15334 number of bits per unit for components of records.
15335 (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
15336 (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
15337 with At_End_Proc after the SJLJ EH cleanup.
15338 (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
15339 compilation unit.
15340 (elaborate_all_entities): Do not retest type_annotate_only.
15341 (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
15342 result type of an abstract subprogram, which may be an itype associated
15343 with an anonymous access result (related to AI-318-02).
15344 (build_global_cdtor): Move to utils.c.
15345 (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
15346 this choice is not a null tree nor an integer constant.
15347 (gigi): Run unshare_save_expr via walk_tree_without_duplicates
15348 on the body of elaboration routines instead of mark_unvisited.
15349 (add_stmt): Do not mark the tree.
15350 (add_decl_expr): Tweak comment.
15351 (mark_unvisited): Delete.
15352 (unshare_save_expr): New static function.
15353 (call_to_gnu): Issue an error when making a temporary around a
15354 procedure call because of non-addressable actual parameter if the
15355 type of the formal is by_reference.
15356 (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
15357 after building the elaboration routine.
15358
153592006-10-31 Bob Duff <duff@adacore.com>
15360
15361 * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
15362 as finalization-started, so we can raise Program_Error on 'new'.
15363
15364 * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
15365 collection has already started.
15366
15367 * s-finimp.ads (Collection_Finalization_Started): Added new special
15368 flag value for indicating that a collection's finalization has started.
15369
15370 * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
15371 create a task whose master has already waited for dependent tasks.
15372
153732006-10-31 Robert Dewar <dewar@adacore.com>
15374
15375 * lib.adb, lib.ads: (In_Predefined_Unit): New functions
15376
15377 * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
15378 a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
15379 a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
15380 a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
15381 a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
15382 a-except-2005.ads: Add pragma Preelaborable_Warning
15383
153842006-10-31 Robert Dewar <dewar@adacore.com>
15385 Jose Ruiz <ruiz@adacore.com>
15386
15387 * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
15388
15389 * ali.adb (Get_Name): Properly handle scanning of wide character names
15390 encoded with brackets notation.
15391 (Known_ALI_Lines): Add S lines to this list.
15392 (Scan_ALI): Acquire S (priority specific dispatching) lines.
15393 New flag Elaborate_All_Desirable in unit table
15394
15395 * ali.ads (Priority_Specific_Dispatching): Add this range of
15396 identifiers to be used for Priority_Specific_Dispatching table entries.
15397 (ALIs_Record): Add First_Specific_Dispatching and
15398 Last_Specific_Dispatching that point to the first and last entries
15399 respectively in the priority specific dispatching table for this unit.
15400 (Specific_Dispatching): Add this table for storing each S (priority
15401 specific dispatching) line encountered in the input ALI file.
15402 New flag Elaborate_All_Desirable in unit table
15403
15404 * bcheck.adb: (Check_Configuration_Consistency): Add call to
15405 Check_Consistent_Dispatching_Policy.
15406 (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
15407 verifying that the use of Priority_Specific_Dispatching,
15408 Task_Dispatching_Policy, and Locking_Policy is consistent across the
15409 partition.
15410
15411 * bindgen.adb: (Public_Version_Warning): function removed.
15412 (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
15413 required information from ALI files in order to initialize the table
15414 containing the specific dispatching policy.
15415 (Gen_Adainit_Ada): Generate the variables required for priority specific
15416 dispatching entries (__gl_priority_specific_dispatching and
15417 __gl_num_specific_dispatching).
15418 (Gen_Adainit_C): Generate the variables required for priority specific
15419 dispatching entries (__gl_priority_specific_dispatching and
15420 __gl_num_specific_dispatching).
15421 (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
15422 pragma entries.
15423 (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
15424 (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
15425 (Tab_To): Removed.
15426 (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
15427 a call to gnat_set_globals.
15428 Generate a string containing settings from
15429 Priority_Specific_Dispatching pragma entries.
15430 (Gen_Object_Files_Options): Do not include the runtime libraries when
15431 pragma No_Run_Time is specified.
15432
15433 * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
15434 consistency with s-intman-posix.adb.
15435 (__gnat_error_handler, case FreeBSD): Account for the fact that the
15436 handler is installed with SA_SIGINFO.
15437 (__gnat_adjust_context_for_raise, FreeBSD case): New function for
15438 FreeBSD ZCX support, copied from Linux version.
15439 Add MaRTE-specific definitions for the linux target. Redefine sigaction,
15440 sigfillset, and sigemptyset so the routines defined by MaRTE.
15441 (__gl_priority_specific_dispatching): Add this variable that stores the
15442 string containing priority specific dispatching policies in the
15443 partition.
15444 (__gl_num_specific_dispatching): Add this variable that indicates the
15445 highest priority for which a priority specific dispatching pragma
15446 applies.
15447 (__gnat_get_specific_dispatching): Add this routine that returns the
15448 priority specific dispatching policy, as set by a
15449 Priority_Specific_Dispatching pragma appearing anywhere in the current
15450 partition. The input argument is the priority number, and the result
15451 is the upper case first character of the policy name.
15452 (__gnat_set_globals): Now a dummy function.
15453 (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
15454 mechargs instead of sigargs, as the latter can be retrieved from the
15455 former and sigargs is not what we want on ia64.
15456 (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
15457 mechargs argument.
15458 (__gnat_adjust_context_for_raise, ia64-vms): New function.
15459 (tasking_error): Remove unused symbol.
15460 (_abort_signal): Move this symbol to the IRIX specific part since this
15461 is the only target that uses this definition.
15462 (Check_Abort_Status): Move this symbol to the IRIX specific part since
15463 this is the only target that uses this definition.
15464 (Lock_Task): Remove unused symbol.
15465 (Unlock_Task): Remove unused symbol.
15466
15467 * lib-writ.adb (Write_ALI): Output new S lines for
15468 Priority_Specific_Dispatching pragmas.
15469 Implement new flag BD for elaborate body desirable
15470
15471 * lib-writ.ads: Document S lines for Priority Specific Dispatching.
15472 (Specific_Dispatching): Add this table for storing the entries
15473 corresponding to Priority_Specific_Dispatching pragmas.
15474 Document new BD flag for elaborate body desirable
15475
15476 * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
15477 of known pragmas.
15478
154792006-10-31 Javier Miranda <miranda@adacore.com>
15480
15481 * a-tags.ads, a-tags.adb:
15482 (Predefined_DT): New function that improves readability of the code.
15483 (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
15484 Inherit_DT): Use the new function Predefined_DT to improve code
15485 readability.
15486 (Register_Interface_Tag): Update assertion.
15487 (Set_Interface_Table): Update assertion.
15488 (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
15489 determining progenitor interfaces in Tags.
15490 (Inherit_CPP_DT): New subprogram.
15491
6f7f72f9 15492 * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
70198b9f 15493 analysis of the thunk code.
6f7f72f9
EB
15494 (Expand_Interface_Conversion): Handle run-time conversion of
15495 access to class wide types.
70198b9f
AC
15496 (Expand_Dispatching_Call): When generating the profile for the
15497 subprogram itype for a dispatching operation, properly terminate the
15498 formal parameters chaind list (set the Next_Entity of the last formal
15499 to Empty).
15500 (Collect_All_Interfaces): Removed. This routine has been moved to
15501 sem_util and renamed as Collect_All_Abstract_Interfaces.
15502 (Set_All_DT_Position): Hidden entities associated with abstract
15503 interface primitives are not taken into account in the check for
15504 3.9.3(10); this check is done with the aliased entity.
15505 (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
15506 interfacing with CPP by default.
15507 (Expand_Interface_Conversion): Add missing support for static conversion
15508 from an interface to a tagged type.
15509 (Collect_All_Interfaces): Add new out formal containing the list of
15510 abstract interface types to cleanup the subprogram Make_DT.
15511 (Make_DT): Update the code to generate the table of interfaces in case
15512 of abstract interface types.
15513 (Is_Predefined_Dispatching_Alias): New function that returns true if
15514 a primitive is not a predefined dispatching primitive but it is an
15515 alias of a predefined dispatching primitive.
15516 (Make_DT): If the ancestor of the type is a CPP_Class and we are
15517 compiling under full ABI compatibility mode we avoid the generation of
15518 calls to run-time services that fill the dispatch tables because under
15519 this mode we currently inherit the dispatch tables in the IP subprogram.
15520 (Write_DT): Emit an "is null" indication for a null procedure primitive.
15521 (Expand_Interface_Conversion): Use an address as the type of the formal
15522 of the internally built function that handles the case in which the
15523 target type is an access type.
15524
155252006-10-31 Robert Dewar <dewar@adacore.com>
15526
15527 * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
15528
155292006-10-31 Robert Dewar <dewar@adacore.com>
15530
15531 * bindusg.ads, bindusg.adb:
15532 Change to package and rename procedure as Display, which
15533 now ensures that it only outputs usage information once.
15534
155352006-10-31 Jose Ruiz <ruiz@adacore.com>
15536
15537 * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
15538 using RTPs.
15539
15540 * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
15541 when using RTPs.
15542
155432006-10-31 Robert Dewar <dewar@adacore.com>
15544 Ed Schonberg <schonberg@adacore.com>
15545
15546 * treepr.adb: Use new subtype N_Membership_Test
15547
6f7f72f9
EB
15548 * checks.ads, checks.adb: Add definition for Validity_Check
15549 (Range_Or_Validity_Checks_Suppressed): New function
15550 (Ensure_Valid): Test Validity_Check suppressed
15551 (Insert_Valid_Check): Test Validity_Check suppressed
15552 (Insert_Valid_Check): Preserve Do_Range_Check flag
70198b9f
AC
15553 (Validity_Check_Range): New procedure
15554 (Expr_Known_Valid): Result of membership test is always valid
15555 (Selected_Range_Checks): Range checks cannot be applied to discriminants
15556 by themselves. Disabling those checks must also be done for task types,
15557 where discriminants may be used for the bounds of entry families.
15558 (Apply_Address_Clause_Check): Remove side-effects if address expression
15559 is non-static and is not the name of a declared constant.
15560 (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
15561 Code cleanup and new error messages.
15562 (Enable_Range_Check): Test for some cases of suppressed checks
15563 (Generate_Index_Checks): Suppress index checks if index checks are
15564 suppressed for array object or array type.
15565 (Apply_Selected_Length_Checks): Give warning for compile-time detected
15566 length check failure, even if checks are off.
15567 (Ensure_Valid): Do not generate a check on an indexed component whose
15568 prefix is a packed boolean array.
15569 * checks.adb: (Alignment_Checks_Suppressed): New function
15570 (Apply_Address_Clause_Check): New procedure, this is a completely
15571 rewritten replacement for Apply_Alignment_Check
15572 (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
15573 we request a discriminal value only in case of discriminants.
15574 (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
15575 assignments where the target subtype is unconstrained and the target
15576 object is a parameter or dereference (other aliased cases are known
15577 to be unconstrained).
15578
155792006-10-31 Robert Dewar <dewar@adacore.com>
15580
15581 * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
15582 prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
15583 vms_conv.adb: Fix bad table increment values (much too small)
15584
15585 * table.adb (Realloc): Make sure we get at least some new elements
15586 Defends against silly small values for table increment
15587
155882006-10-31 Robert Dewar <dewar@adacore.com>
15589 Ed Schonberg <schonberg@adacore.com>
15590 Bob Duff <duff@adacore.com>
15591
15592 * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
15593 entities. Move other fields around to make this possible
15594 (Is_Derived_Type): Add missing call to Is_Type.
15595 (Extra_Formals): New function for subprograms, entries, subprogram
15596 types.
15597 (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
15598 (First_Formal_With_Extras): New function for subprogs, entries, subp
15599 types.
15600 (Write_Field28_Name): New procedure for node display of "Extra_Formals".
15601 Add node information for E_Return_Statement.
15602 (Elaborate_Body_Desirable): New flag
15603 (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
15604 to be Is_Inherently_Limited_Type, because return-by-reference has
15605 no meaning in Ada 2005.
15606 (E_Return_Statement): New entity kind.
15607 (Return_Applies_To): Field of E_Return_Statement.
15608 (Is_Return_Object): New flag in object entities.
15609 (Is_Dynamic_Scope): Make it True for E_Return_Statement.
15610 (Must_Have_Preelab_Init): New flag
15611 (Known_To_Have_Preelab_Init): New flag
15612 (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
15613 (Is_Visible_Formal): New flag on entities in formal packages.
15614 (Low_Bound_Known): New flag
15615 (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
15616 Incomplete_Kind.
15617 (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
15618 output when Id is an incomplete subtype.
15619
156202006-10-31 Robert Dewar <dewar@adacore.com>
15621
15622 * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
15623 Avoid abbreviation Creat
15624 (Finalize): List all sources in extended mail source if -gnatl
15625 switch is active.
15626 Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
15627 (Finalize): Implement new -gnatl=xxx switch to output listing to file
15628 (Set_Specific_Warning_On): New procedure
15629 (Set_Specific_Warning_Off): New procedure
15630 Add implementation of new insertion \\
15631 (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
15632 (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
15633 types.
15634 (Error_Msg_Internal): Make sure that we set Last_Killed to
15635 True when a message from another package is suppressed.
15636 Implement insertion character ~ (insert string)
15637 (First_Node): Minor adjustments to get better placement.
15638
15639 * frontend.adb:
15640 Implement new -gnatl=xxx switch to output listing to file
15641
15642 * gnat1drv.adb:
15643 Implement new -gnatl=xxx switch to output listing to file
15644
6f7f72f9 15645 * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
70198b9f
AC
15646 (Commands_To_Stdout): New flag
15647 Implement new -gnatl=xxx switch to output listing to file
15648 New switch Dump_Source_Text
15649 (Warn_On_Deleted_Code): New warning flag for -gnatwt
15650 Define Error_Msg_Line_Length
15651 (Warn_On_Assumed_Low_Bound): New switch
15652
15653 * osint.ads, osint.adb
15654 (Normalize_Directory_Name): Fix bug.
15655 Implement new -gnatl=xxx switch to output listing to file
15656 (Concat): Removed, replaced by real concatenation
15657 Make use of concatenation now allowed in compiler
15658 (Executable_Prefix.Get_Install_Dir): First get the full path, so that
15659 we find the 'lib' or 'bin' directory even when the tool has been
15660 invoked with a relative path.
15661 (Executable_Name): New function taking string parameters.
15662
15663 * osint-c.ads, osint-c.adb:
15664 Implement new -gnatl=xxx switch to output listing to file
15665
15666 * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
15667
15668 * switch-c.adb:
15669 Implement new -gnatl=xxx switch to output listing to file
15670 Recognize new -gnatL switch
15671 (no longer keep in old warning about old style usage)
15672 Use concatenation to simplify code
15673 Recognize -gnatjnn switch
15674 (Scan_Front_End_Switches): Clean up handling of -gnatW
15675 (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
15676
156772006-10-31 Robert Dewar <dewar@adacore.com>
15678
15679 * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
15680 (Set_Specific_Warning_Off): New procedure
15681 (Warning_Specifically_Suppressed): New function
15682 (Validate_Specific_Warnings): New procedure
15683 (Output_Msg_Text): Complete rewrite to support -gnatjnn
15684
15685 * err_vars.ads: Implement insertion character ~ (insert string)
15686
156872006-10-31 Bob Duff <duff@adacore.com>
15688 Ed Schonberg <schonberg@adacore.com>
15689
15690 * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
15691 the parent part is a build-in-place function call, generate assignments.
15692 (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
15693 are build-in-place function calls.
15694 (Replace_Self_Reference): New subsidiary of
15695 Make_OK_Assignment_Statement, to replace an access attribute that is a
15696 self-reference into an access to the appropriate component of the
15697 target object. Generalizes previous mechanism to handle self-references
15698 nested at any level.
15699 (Is_Self_Referential_Init): Remove, not needed.
15700 (Is_Self_Referential_Init): New predicate to simplify handling of self
15701 referential components in record aggregates.
15702 (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
15703 check for presence of entity before checking for self-reference.
15704 (Has_Default_Init_Comps): Return True if a component association is a
15705 self-reference to the enclosing type, which can only come from a
15706 default initialization.
15707 (Make_OK_Assignment_Statement): If the expression is of the form
15708 Typ'Acc, where Acc is an access attribute, the expression comes from a
15709 default initialized self-referential component.
15710 (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
15711 that has been derived from several abstract interfaces we must also
15712 initialize the tags of the secondary dispatch tables.
15713
157142006-10-31 Ed Schonberg <schonberg@adacore.com>
15715 Thomas Quinot <quinot@adacore.com>
15716 Javier Miranda <miranda@adacore.com>
15717 Robert Dewar <dewar@adacore.com>
6f7f72f9
EB
15718
15719 * exp_attr.adb:
15720 (Expand_Access_To_Protected_Op): If the context indicates that an access
15721 to a local operation may be transfered outside of the object, create an
15722 access to the wrapper operation that must be used in an external call.
70198b9f
AC
15723 (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
15724 target, pass the Valid attribute applied to a floating-point prefix on
15725 to the back end without expansion.
15726 (Storage_Size): Use the new run-time function Storage_Size to retrieve
15727 the allocated storage when it is specified by a per-object expression.
15728 (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
15729 Nothing to do here, the attribute has been rewritten during semantic
15730 analysis.
15731 (Expand_Attribute_Reference): Handle expansion of the new Priority
15732 attribute
15733 (Find_Fat_Info): Handle case of universal real
15734 (Expand_Access_To_Protected_Op): Fix use of access to protected
15735 subprogram from inside the body of a protected entry.
15736 (Expand_Access_To_Protected_Op): Common procedure for the expansion of
15737 'Access and 'Unrestricted_Access, to transform the attribute reference
15738 into a fat pointer.
15739 (Is_Constrained_Aliased_View): New predicate to help determine whether a
15740 subcomponent's enclosing variable is aliased with a constrained subtype.
15741 (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
15742 test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
15743 an aliased prefix must be known to be constrained in order to use True
15744 for the attribute value, and now it's possible for some aliased views
15745 to be unconstrained.
15746
157472006-10-31 Robert Dewar <dewar@adacore.com>
15748
15749 * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
15750 (Expand_Entity_Reference): Correct error of not handling subprogram
15751 formals in current_value processing.
15752
157532006-10-31 Javier Miranda <miranda@adacore.com>
15754 Robert Dewar <dewar@adacore.com>
15755 Ed Schonberg <schonberg@adacore.com>
15756 Gary Dismukes <dismukes@adacore.com>
15757
6f7f72f9 15758 * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
70198b9f
AC
15759 register in the final list objects containing class-wide interfaces;
15760 otherwise we incorrectly register the tag of the interface in the final
15761 list.
6f7f72f9
EB
15762 (Make_Controlling_Function_Wrappers): Add missing barrier to do not
15763 generate the wrapper if the parent primitive is abstract. This is
15764 required to report the correct error message.
15765 (Expand_N_Subtype_Indication): Do validity checks on range
70198b9f
AC
15766 (Clean_Task_Names): If an initialization procedure includes a call to
15767 initialize a task (sub)component, indicate that the procedure will use
15768 the secondary stack.
15769 (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
15770 compatibility for interfacing with CPP by default.
15771 (Expand_N_Object_Declaration): Only build an Adjust call when the
15772 object's type is a nonlimited controlled type.
15773 * exp_ch3.adb: Add with and use of Exp_Ch6.
15774 (Expand_N_Object_Declaration): Check for object initialization that is a
15775 call to build-in-place function and apply Make_Build_In_Place_Call_In_
15776 Object_Declaration to the call.
15777 (Freeze_Type): When the designated type of an RACW was not frozen at the
15778 point where the RACW was declared, validate the primitive operations
15779 with respect to E.2.2(14) when it finally is frozen.
15780 (Build_Initialization_Call,Expand_Record_Controller): Rename
15781 Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
15782 return-by-reference has no meaning in Ada 2005.
15783 (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
15784 to register tag of the immediate ancestor interfaces in the
15785 run-time structure.
15786 (Init_Secondary_Tags): Moved to the specification to allow the
15787 initialization of extension aggregates with abstract interfaces.
15788 (Build_Master_Renaming): Make public, for use by function declarations
15789 whose return type is an anonymous access type.
15790 (Freeze_Record_Type): Replace call to Insert_List_Before by call to
15791 Insert_List_Before_And_Analyze after the generation of the specs
15792 associated with null procedures.
15793 (Expand_Tagged_Root): Update documentation in its specification.
15794 (Init_Secondary_Tags): Update documentation.
15795 (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
15796 tibility mode and the immediate ancestor is a CPP_Pragma tagged type
15797 then generate code to inherit the contents of the dispatch table
15798 directly from the ancestor.
15799 (Expand_Record_Controller): Insert controller component after tags of
15800 implemented interfaces.
15801 (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
15802 create null procedure overridings when null procedures are inherited
15803 from interfaces.
15804 (Make_Null_Procedure_Specs): New procedure to generate null procedure
15805 declarations for overriding null primitives inherited from interfaces.
15806 (Is_Null_Interface_Procedure): New function in
15807 Make_Null_Procedure_Specs.
15808 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
15809 immediate ancestor of a tagged type is an abstract interface type we
15810 must generate the specification of the predefined primitives associated
15811 with controlled types (because the dispatch table of the ancestor is
15812 null and hence these entries cannot be inherited). This is required to
15813 elaborate well the dispatch table.
15814
158152006-10-31 Javier Miranda <miranda@adacore.com>
15816 Ed Schonberg <schonberg@adacore.com>
15817 Bob Duff <duff@adacore.com>
15818 Gary Dismukes <dismukes@adacore.com>
15819 Robert Dewar <dewar@adacore.com>
6f7f72f9
EB
15820
15821 * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
70198b9f 15822 conversion.
6f7f72f9 15823 (Expand_N_In): Do validity checks on range
70198b9f
AC
15824 (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
15825 (Expand_N_Allocator): For "new T", if the object is constrained by
15826 discriminant defaults, allocate the right amount of memory, rather than
15827 the maximum for type T.
15828 (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
15829 when the allocator is initialized by a build-in-place call, since the
15830 allocator is already rewritten as a reference to the function result,
15831 and this prevents an unwanted duplication of the function call.
15832 Add with and use of Exp_Ch6.
15833 (Expand_Allocator_Expresssion): Check for an allocator whose expression
15834 is a call to build-in-place function and apply
15835 Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
15836 untagged designated types).
15837 (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
15838 optimization if source or target is biased.
15839 (Expand_N_Allocator): Add comments for case of an allocator within a
15840 function that returns an anonymous access type designating tasks.
15841 (Expand_N_Allocator): apply discriminant checks for access
15842 discriminants of anonymous access types (AI-402, AI-416)
15843
158442006-10-31 Bob Duff <duff@adacore.com>
15845 Robert Dewar <dewar@adacore.com>
15846 Gary Dismukes <dismukes@adacore.com>
15847 Ed Schonberg <schonberg@adacore.com>
15848
15849 * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
15850
6f7f72f9 15851 * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
70198b9f
AC
15852 (Expand_N_Assignment_Statement): Call
15853 Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
15854 build-in-place function call. Currently, this can happen only for
15855 assignments that come from aggregates.
15856 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
15857 in order to alleviate the upward compatibility introduced by AI-318.
15858 (Expand_N_Extended_Return_Statement): Add support for handling the
15859 return object as a build-in-place result.
15860 (Expand_Non_Function_Return): Implement simple return statements nested
15861 within an extended return.
15862 (Enable_New_Return_Processing): Turn on the new processing of return
15863 statements.
15864 (Expand_Non_Function_Return): For a return within an extended return,
15865 don't raise Program_Error, because Sem_Ch6 now gives a warning.
15866 (Expand_N_Extended_Return_Statement): Implement AI-318
15867 (Expand_Simple_Function_Return): Ditto.
15868 (Expand_N_If_Statement): Handle new -gnatwt warning
15869 (Expand_N_Case_Statement): Handle new -gnatwt warning
15870 (Expand_N_Assignment): Handle assignment to the Priority attribute of
15871 a protected object.
15872 (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
15873 validity checking of assignments to elementary record components.
15874 (Expand_N_Return_Statement): return Class Wide types on the secondary
15875 stack independantly of their controlled status since with HIE runtimes,
15876 class wide types are not potentially controlled anymore.
15877
15878 * expander.adb (Expand): Add case for new N_Extended_Return_Statement
15879 node kind.
15880
15881 * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
15882 Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
15883 it expects a block, procedure, or task. The return statement will get
15884 turned into a block, and Expand_Cleanup_Actions will happen then.
15885
158862006-10-31 Robert Dewar <dewar@adacore.com>
15887 Ed Schonberg <schonberg@adacore.com>
15888 Bob Duff <duff@adacore.com>
15889 Gary Dismukes <dismukes@adacore.com>
15890
15891 * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
15892 capability.
15893 (Expand_Inlined_Call): Tagged types are by-reference types, and
15894 therefore should be replaced by a renaming declaration in the expanded
15895 body, as is done for limited types.
15896 (Expand_Call): If this is a call to a function with dispatching access
15897 result, propagate tag from context.
15898 (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
15899 CPP by default.
15900 (Make_Build_In_Place_Call_In_Assignment): New procedure to do
15901 build-in-place when the right-hand side of an assignment is a
15902 build-in-place function call.
15903 (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
15904 of the explicit dereference of the allocator to the result subtype of
15905 the build-in-place function. This is needed to satisfy type checking
15906 in cases where the caller's return object is created by an allocator for
15907 a class-wide access type and the type named in the allocator is a
15908 specific type.
15909 (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
15910 conversion of the reference to the declared object to the result subtype
15911 of the build-in-place function. This is needed to satisfy type checking
15912 in cases where the declared object has a class-wide type. Also, in the
15913 class-wide case, change the type of the object entity to the specific
15914 result subtype of the function, to avoid passing a class-wide object
15915 without explicit initialization to the back end.
15916 (Register_Interface_DT_Entry): Moved outside the body of
15917 Freeze_Subprogram because this routine is now public; it is called from
15918 Check_Dispatching_Overriding to handle late overriding of abstract
15919 interface primitives.
15920 (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
15921 adding an implicit access actual on a call to a build-in-place function.
15922 (Expand_Actuals): Test for an actual parameter that is a call to a
15923 build-in-place function and apply
15924 Make_Build_In_Place_Call_In_Anonymous_Context to the call.
15925 (Is_Build_In_Place_Function): New function to determine whether an
15926 entity is a function whose calls should be handled as build-in-place.
15927 (Is_Build_In_Place_Function_Call): New function to determine whether an
15928 expression is a function call that should handled as build-in-place.
15929 (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
15930 calls to build-in-place functions as the initialization of an allocator.
15931 (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
15932 handling calls to build-in-place functions in contexts that do not
15933 involve init of a separate object (for example, actuals of subprogram
15934 calls).
15935 (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
15936 handling calls to build-in-place functions as the initialization of an
15937 object declaration.
15938 (Detect_Infinite_Recursion): Add explicit parameter Process to
15939 instantiation of Traverse_Body to avoid unreferenced warning.
15940 (Check_Overriding_Inherited_Interfaces): Removed.
15941 (Register_Interface_DT_Entry): Code cleanup.
15942 (Register_Predefined_DT_Entry): Code cleanup.
15943 (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
15944 inlined statements if within a transient scope.
15945 (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
15946 formal parameters with occurrences of actuals in inlined body, establish
15947 visibility on the proper view of the actual's subtype for the body's
15948 context.
15949 (Freeze_Subprogram): Do nothing if we are compiling under full ABI
15950 compatibility mode and we have an imported CPP subprogram because
15951 for now we assume that imported CPP primitives correspond with
15952 objects whose constructor is in the CPP side (and therefore we
15953 don't need to generate code to register them in the dispatch table).
15954 (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
15955 aligned selected component.
15956 (Add_Call_By_Copy_Node): Add missing code to handle the case in which
15957 the actual of an in-mode parameter is a type conversion.
15958 (Expand_Actuals): If the call does not come from source and the actual
15959 is potentially misaligned, let gigi handle it rather than rejecting the
15960 (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
15961 Class Wide types as returning by reference independantly of their
15962 controlled status since with HIE runtimes class wide types are not
15963 potentially controlled anymore.
15964
6f7f72f9 159652006-10-31 Ed Schonberg <schonberg@adacore.com>
70198b9f 15966
6f7f72f9 15967 * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
70198b9f
AC
15968 references that are private components of the protected object.
15969 (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
15970 (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
15971 instantiation to deal with warnings.
15972 (Initialize_Protection): If expression for priority is non-static, use
15973 System_Priority as its expected type, in case the expression has not
15974 been analyzed yet.
15975
159762006-10-31 Robert Dewar <dewar@adacore.com>
15977
15978 * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
15979 initialization of Homonym_Len.
15980 (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
15981 names from fully qualified name. Fixes problem of duplicate
15982 external names differing only in the presence of such a block name.
15983
159842006-10-31 Thomas Quinot <quinot@adacore.com>
15985 Pablo Oliveira <oliveira@adacore.com>
6f7f72f9
EB
15986
15987 * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
70198b9f
AC
15988 subprogram Ids, even if they are not yet assigned.
15989 (Build_Subprogram_Id): It is now this function that will take care of
15990 calling Assign_Subprogram_Ids if necessary.
15991 (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
15992 should be done only once they are assigned.
15993 (Build_From_Any_Function, case of tagged types): Add missing call to
15994 Allocate_Buffer.
15995 (Corresponding_Stub_Type): New subprogram. Returns the associated stub
15996 type for an RACW type.
15997 (Add_RACW_Features): When processing an RACW declaration for which the
15998 designated type is already frozen, enforce E.2.2(14) rules immediately.
15999 (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
16000 special reordering of controlling formals.
16001
16002 * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
16003 associated stub type for an RACW type.
16004
160052006-10-31 Ed Schonberg <schonberg@adacore.com>
16006
16007 * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
16008 fixed-point operations in an integer context, i.e. as operands of a
16009 conversion to an integer type, indicate that result must be rounded.
16010
160112006-10-31 Robert Dewar <dewar@adacore.com>
16012
16013 * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
16014 cases, pass the encoding method, since it is now required by the run
16015 time.
16016
16017 * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
16018 assumption that Str'First = 1.
16019 (Value_Wide_Character): Takes EM (encoding method) parameter and passes
16020 it on to the Value_Wide_Wide_Character call.
16021 (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
16022 properly handles a string of the form quote-encoded_wide_char-quote.
16023
16024 * s-wchcnv.adb: Minor reformatting
16025
160262006-10-31 Javier Miranda <miranda@adacore.com>
6f7f72f9 16027
70198b9f
AC
16028 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
16029 run-time membership test to ensure that the constructed object
16030 implements the target abstract interface.
16031
160322006-10-31 Robert Dewar <dewar@adacore.com>
16033
16034 * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
16035 Machine_Attribute pragma internally to implement the user pragma.
16036 Add processing for pragma Interface so that it is now completely
16037 equivalent to pragma Import.
16038
16039 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
16040 so that it can be applied to all entities, including record components
16041 and enumeration literals.
16042 (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
16043 priority ranges are correct, verify compatibility against task
16044 dispatching and locking policies, and if everything is correct an entry
16045 is added to the table containing priority specific dispatching entries
16046 for this compilation unit.
16047 (Delay_Config_Pragma_Analyze): Delay processing
16048 Priority_Specific_Dispatching pragmas because when processing the
16049 pragma we need to access run-time data, such as the range of
16050 System.Any_Priority.
16051 (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
16052 Allow pragma Unreferenced as a context item
16053 Add pragma Preelaborable_Initialization
16054 (Analyze_Pragma, case Interface): Interface is extended so that it is
16055 now syntactically and semantically equivalent to Import.
16056 (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
16057 insertion characters.
16058 Add handling for Pragma_Wide_Character_Encoding
16059 (Process_Restrictions_Restriction_Warnings): Ensure that a warning
16060 never supercedes a real restriction, and that a real restriction
16061 always supercedes a warning.
16062 (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
16063 appropriate form.
16064
160652006-10-31 Bob Duff <duff@adacore.com>
16066 Ed Schonberg <schonberg@adacore.com>
16067 Robert Dewar <dewar@adacore.com>
16068
16069 * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
16070 Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
16071 Is_Inherently_Limited_Type, because return-by-reference has no meaning
16072 in Ada 2005.
16073 (Find_Node_To_Be_Wrapped): Use new method of determining the result
16074 type of the function containing a return statement, because the
16075 Return_Type field was removed. We now use the Return_Applies_To field.
16076
6f7f72f9 16077 * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
70198b9f
AC
16078 (Build_Task_Image_Decl): If procedure is not called from an
16079 initialization procedure, indicate that function that builds task name
16080 uses the sec. stack. Otherwise the enclosing initialization procedure
16081 will carry the indication.
16082 (Insert_Actions): Remove N_Return_Object_Declaration. We now use
16083 N_Object_Declaration instead.
16084 (Kill_Dead_Code): New interface to implement -gnatwt warning for
16085 conditional dead code killed, and change implementation accordingly.
16086 (Insert_Actions): Add N_Return_Object_Declaration case.
16087 Correct comment to mention N_Extension_Aggregate node.
16088 (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
16089 attempts to save information for global variables which cannot be
16090 safely tracked.
16091 (Get_Current_Value_Condition): Handle conditions the other way round
16092 (constant on left). Also handle right operand of AND and AND THEN
16093 (Set_Current_Value_Condition): Corresponding changes
16094 (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
16095 (Get_Current_Value_Condition): Handle simple boolean operands
16096 (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
16097 (Get_Current_Value_Condition): If the variable reference is within an
16098 if-statement, does not appear in the list of then_statments, and does
16099 not come from source, treat it as being at unknown location.
16100 (Get_Current_Value_Condition): Enhance to allow while statements to be
16101 processed as well as if statements.
16102 (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
16103 come from source.
16104 (OK_To_Do_Constant_Replacement): Allow constant replacement within body
16105 of loop. This is safe now that we fixed Kill_Current_Values.
16106 (OK_To_Do_Constant_Replacement): Check whether current scope is
16107 Standard, before examining outer scopes.
16108
161092006-10-31 Vincent Celier <celier@adacore.com>
16110
16111 * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
16112 When True, apply VMS treatment to children of packages A, G, I and S.
16113 For F320-016
16114
16115 * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
16116
161172006-10-31 Robert Dewar <dewar@adacore.com>
16118 Ed Schonberg <schonberg@adacore.com>
16119
16120 * freeze.adb: Add handling of Last_Assignment field
16121 (Warn_Overlay): Supply missing continuation marks in error msgs
16122 (Freeze_Entity): Add check for Preelaborable_Initialization
16123
16124 * g-comlin.adb: Add Warnings (Off) to prevent new warning
16125
16126 * g-expect.adb: Add Warnings (Off) to prevent new warning
16127
16128 * lib-xref.adb: Add handling of Last_Assignment field
16129 (Generate_Reference): Centralize handling of pragma Obsolescent here
16130 (Generate_Reference): Accept an implicit reference generated for a
16131 default in an instance.
16132 (Generate_Reference): Accept a reference for a node that is not in the
16133 main unit, if it is the generic body corresponding to an subprogram
16134 instantiation.
16135
16136 * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
16137
6f7f72f9 16138 * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
70198b9f
AC
16139 -gnatwq/Q.
16140 (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
16141 exception handler.
16142 (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
16143 use clauses, to avoid messages on packages used to qualify, and also
16144 to avoid messages from obsolescent units.
16145 (Warn_On_Useless_Assignments): Don't generate messages for imported
16146 and exported variables.
16147 (Warn_On_Useless_Assignments): New procedure
16148 (Output_Obsolescent_Entity_Warnings): New procedure
16149 (Check_Code_Statement): New procedure
16150
6f7f72f9 16151 * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
70198b9f
AC
16152 Change name Is_Ada_2005 to Is_Ada_2005_Only
16153 (Last_Assignment): New field for useless assignment warning
16154
161552006-10-31 Olivier Hainque <hainque@adacore.com>
16156
16157 * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
16158 closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
16159
161602006-10-31 Bob Duff <duff@adacore.com>
16161 Robert Dewar <dewar@adacore.com>
16162 Ed Schonberg <schonberg@adacore.com>
16163
16164 * g-awk.adb (Default_Session, Current_Session): Compile this file in
16165 Ada 95 mode, because it violates the new rules for AI-318.
16166
16167 * g-awk.ads: Use overloaded subprograms in every case where we used to
16168 have a default of Current_Session. This makes the code closer to be
16169 correct for both Ada 95 and 2005.
16170
16171 * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
16172 code, relying on the fact that the compiler generates a warning
16173 instead of an error in -gnatg mode.
16174
16175 * lib-xref.ads (Xref_Entity_Letters): Add entry for new
16176 E_Return_Statement entity kind.
16177 Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
16178
16179 * par.adb (P_Interface_Type_Definition): Addition of one formal to
16180 report an error if the reserved word abstract has been previously found.
16181 (SS_End_Type): Add E_Return for new extended_return_statement syntax.
6f7f72f9
EB
16182
16183 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
70198b9f
AC
16184 parenthesized range attribute usage
16185 (P_Expression_No_Right_Paren): Add missing comment about error recovery.
16186
16187 * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
16188 in the syntax for extended_return_statement. This is not in the latest
16189 RM, but the ARG is expected to issue an AI allowing this.
16190 (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
16191 N_Return_Object_Declaration. We now use N_Object_Declaration instead.
16192 (P_Return_Object_Declaration, P_Return_Subtype_Indication,
16193 P_Return_Statement): Parse the new syntax for extended_return_statement.
16194
16195 * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
16196 Output_End_Missing): Add error-recovery code for the new
16197 extended_return_statement syntax; that is, the new E_Return entry on
16198 the scope stack.
16199
16200 * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
16201 limited to nonlimited, because otherwise we violate the new Ada 2005
16202 rules about returning limited types in function Create_AST_Handler in
16203 s-asthan.adb.
16204
16205 * sem.adb (Analyze): Add cases for new node kinds
16206 N_Extended_Return_Statement and N_Return_Object_Declaration.
16207
16208 * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
16209 type is in the same category as type of context before applying check,
16210 to prevent anomalies in instantiations.
16211 (Resolve_Aggregate): Remove test for limited components in aggregates.
16212 It's unnecessary in Ada 95, because if it has limited components, then
16213 it must be limited. It's wrong in Ada 2005, because limited aggregates
16214 are now allowed.
16215 (Resolve_Record_Aggregate): Move check for limited types later, because
16216 OK_For_Limited_Init requires its argument to have been resolved.
16217 (Get_Value): When copying the component default expression for a
16218 defaulted association in an aggregate, use the sloc of the aggregate
16219 and not that of the original expression, to prevent spurious
16220 elaboration errors, when the expression includes function calls.
16221 (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
16222 were missing. We also didn't handle qualified expressions. Now also
16223 allow function calls. Use new common routine OK_For_Limited_Init.
16224 (Resolve_Extension_Aggregate): Minor fix to bad error message (started
16225 with space can upper case letter).
16226
6f7f72f9 16227 * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
70198b9f 16228 Has_Static_Discriminants flag
6f7f72f9
EB
16229 (Record_Type_Declaration): Diagnose an attempt to declare an interface
16230 type with discriminants.
16231 (Process_Range_Expr_In_Decl): Do validity checks on range
70198b9f
AC
16232 (Build_Discriminant_Constraints): Use updated form of
16233 Denotes_Discriminant.
16234 (Process_Subtype): If the subtype is a private subtype whose full view
16235 is a concurrent subtype, introduce an itype reference to prevent scope
16236 anomalies in gigi.
16237 (Build_Derived_Record_Type, Collect_Interface_Primitives,
16238 Record_Type_Declaration): The functionality of the subprograms
16239 Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
16240 is now performed by a single routine.
16241 (Build_Derived_Record_Type): If the type definition includes an explicit
16242 indication of limitedness, then the type must be marked as limited here
16243 to ensure that any access discriminants will not be treated as having
16244 a local anonymous access type.
16245 (Check_Abstract_Overriding): Issue a detailed error message when an
16246 abstract subprogram was not overridden due to incorrect mode of its
16247 first parameter.
16248 (Analyze_Private_Extension_Declaration): Add support for the analysis of
16249 synchronized private extension declarations. Verify that the ancestor is
16250 a limited or synchronized interface or in the generic case, the ancestor
16251 is a tagged limited type or synchronized interface and all progenitors
16252 are either limited or synchronized interfaces.
16253 Derived_Type_Declaration): Check for presence of private extension when
16254 dealing with synchronized formal derived types.
16255 Process_Full_View): Enchance the check done on the usage of "limited" by
16256 testing whether the private view is synchronized.
16257 Verify that a synchronized private view is completed by a protected or
16258 task type.
16259 (OK_For_Limited_Init_In_05): New function.
16260 (Analyze_Object_Declaration): Move check for limited types later,
16261 because OK_For_Limited_Init requires its argument to have been resolved.
16262 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
16263 in order to alleviate the upward compatibility introduced by AI-318.
16264 (Constrain_Corresponding_Record): If the constraint is for a component
16265 subtype, mark the itype as frozen, to avoid out-of-scope references to
16266 discriminants in the back-end.
16267 (Collect_Implemented_Interfaces): Protect the recursive algorithm of
16268 this subprogram against wrong sources.
16269 (Get_Discr_Value, Is_Discriminant): Handle properly references to a
16270 discriminant of limited type completed with a protected type, when the
16271 discriminant is used to constrain a private component of the type, and
16272 expansion is disabled.
16273 (Find_Type_Of_Object): Do not treat a return subtype that is an
16274 anonymous subtype as a local_anonymous_type, because its accessibility
16275 level is the return type of the enclosing function.
16276 (Check_Initialization): In -gnatg mode, turn the error "cannot
16277 initialize entities of limited type" into a warning.
16278 (OK_For_Limited_Init): Return true for generated nodes, since it
16279 sometimes violates the legality rules.
16280 (Make_Incomplete_Declaration): If the type for which an incomplete
16281 declaration is created happens to be the currently visible entity,
16282 preserve the homonym chain when removing it from visibility.
16283 (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
16284 inherited subprograms.
16285 (Access_Definition): If this is an access to function that is the return
16286 type of an access_to_function definition, context is a type declaration
16287 and the scope of the anonymous type is the current one.
16288 (Analyze_Subtype_Declaration): Add the defining identifier of a regular
16289 incomplete subtype to the set of private dependents of the original
16290 incomplete type.
16291 (Constrain_Discriminated_Type): Emit an error message whenever an
16292 incomplete subtype is being constrained.
16293 (Process_Incomplete_Dependents): Transform an incomplete subtype into a
16294 corresponding subtype of the full view of the original incomplete type.
16295 (Check_Incomplete): Properly detect invalid usage of incomplete types
16296 and subtypes.
16297
162982006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
16299
16300 * g-catiio.ads, g-catiio.adb (Value): New function.
16301 Given an input String, try and parse a valid Time value.
16302
163032006-10-31 Vincent Celier <celier@adacore.com>
16304
16305 * g-debpoo.adb (Is_Valid): Correctly compute Offset using
16306 Integer_Address arithmetic, as in Set_Valid.
16307
163082006-10-31 Arnaud Charlet <charlet@adacore.com>
16309 Robert Dewar <dewar@adacore.com>
16310
16311 * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
16312 handling executable extension manually and duplicating code.
16313
16314 * make.adb: Implement new -S switch
16315 (Gnatmake): Use new function Osint.Executable_Name instead
16316 of handling executable extension manually.
16317
16318 * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
16319 is specified, the executable name ends with this suffix.
16320 Take advantage of Osint.Executable_Name instead of duplicating code.
16321
16322 * switch-m.adb: Recognize new gnatmake -S switch
16323
16324 * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
16325 variable.
16326 (Get_Target_Parameters): Set Executable_Extension_On_Target if
16327 available.
16328
16329 * makeusg.adb: Add line for gnatmake -S switch
16330
163312006-10-31 Vincent Celier <celier@adacore.com>
16332
16333 * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
16334 call it with -static-libgcc, as there are some platforms, such as
16335 Darwin, where one of these two switches is compulsory to link.
16336
163372006-10-31 Vincent Celier <celier@adacore.com>
6f7f72f9 16338
70198b9f
AC
16339 * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
16340 instead of ADA_PROJECT_PATH, for the project path.
16341 (Gnatls): When displaying the project path directories, use host dir
16342 specs.
16343
16344 * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
16345 names in the project path, as absolute paths may correspond to
16346 multi-valued VMS logical names.
16347
163482006-10-31 Vincent Celier <celier@adacore.com>
16349
16350 * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
16351 absolute path name.
16352 (Locate_Regular_File): Ditto
16353 (Change_Dir): Remove, no longer used
16354 (Normalize_Pathname): Do not use Change_Dir to get the drive letter
16355 on Windows. Get it calling Get_Current_Dir.
16356 (OpenVMS): Remove imported boolean, no longer needed.
16357 (Normalize_Pathname)[VMS]: Do not resolve directory names.
16358 (Pid_To_Integer): New function to convert a Process_Id to Integer
16359
163602006-10-31 Thomas Quinot <quinot@adacore.com>
16361
16362 * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
16363 sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
16364 to No_Socket.
16365 (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
16366 W_Sig_Socket.
16367
163682006-10-31 Robert Dewar <dewar@adacore.com>
16369
16370 * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
16371 initial letter o as a zero.
16372
163732006-10-31 Robert Dewar <dewar@adacore.com>
16374
16375 * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
16376
163772006-10-31 Robert Dewar <dewar@adacore.com>
16378
6f7f72f9
EB
16379 * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
16380 variant records
16381 (Layout_Variant_Record): Retrieve the discriminants from the entity
70198b9f
AC
16382 rather than from the type definition, because in the case of a full
16383 type for a private type we need to take the discriminants from the
16384 partial view.
6f7f72f9
EB
16385 (Layout_Component_List): When applying the Max operator to variants with
16386 a nonstatic size, check whether either operand is static and scale that
16387 operand from bits to storage units before applying Max.
70198b9f
AC
16388 (Layout_Type): In VMS, if a C-convention access type has no explicit
16389 size clause (and does not inherit one in the case of a derived type),
16390 then the size is reset to 32 from 64.
16391
163922006-10-31 Vincent Celier <celier@adacore.com>
16393
16394 * lib-load.adb (Load_Unit): Skip the test for a unit not found when
16395 its file has already been loaded, according to the unit being loaded,
16396 not to the current value of Multiple_Unit_Index.
16397
163982006-10-31 Thomas Quinot <quinot@adacore.com>
16399 Eric Botcazou <ebotcazou@adacore.com>
16400 Arnaud Charlet <charlet@adacore.com>
16401
16402 * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
16403 (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
16404 possible.
16405 (a-except.o): Pass it to the compiler.
16406 (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
16407 (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
16408 a-calend-mingw.adb version.
16409
6f7f72f9 16410 * Makefile.rtl: Added s-dsaser.
70198b9f
AC
16411 Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
16412 (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
16413 Ada.Dispatching.Round_Robin.
16414 Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
16415
16416 * Make-lang.in: Remove all references to gt-ada-decl.h.
16417 Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
16418 sources.
16419 Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
16420 Update dependencies.
16421
16422 * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
16423
164242006-10-31 Vincent Celier <celier@adacore.com>
16425
16426 * mlib-utl.adb (Initialized): Remove, no longer used
16427 (Initialize): Remove, no longer used
16428 (Ar): If Ar_Exec is null, get the location of the archive builder and,
16429 if there is one, the archive indexer. Fail if the archive builder cannot
16430 be found.
16431 (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
16432 be found.
16433
164342006-10-31 Ed Schonberg <schonberg@adacore.com>
16435
16436 * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
16437 Process_Body_Clauses): If the context of a body includes a use clause
16438 for P.Q then a with_clause for P in the same body is not redundant,
16439 even if the spec also has a with_clause on P.
16440 Add missing continuation mark to error msg
16441 (Build_Limited_Views): A limited view of a type is tagged if its
16442 declaration includes a record extension.
16443 (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
16444 node, even if the subunit has errors. This avoids malfunction by
16445 Lib.Check_Same_Extended_Unit in the presence of syntax errors.
16446 (Analyze_Compilation_Unit): Add circuit to make sure we get proper
16447 generation of obsolescent messages for with statements (cannot do
16448 this too early, or we cannot implement avoiding the messages in the
16449 case of obsolescent units withing obsolescent units).
16450 (Install_Siblings): If the with_clause is on a remote descendant of
16451 an ancestor of the current compilation unit, find whether there is
16452 a sibling child unit that is immediately visible.
16453 (Remove_Private_With_Clauses): New procedure, invoked after completing
16454 the analysis of the private part of a nested package, to remove from
16455 visibility the private with_clauses of the enclosing package
16456 declaration.
16457 (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
16458 now centralized in Generate_Reference.
16459 (Install_Limited_Context_Clauses): Remove superfluous error
16460 message associated with unlimited view visible through use
16461 and renamings. In addition, at the point in which the error
16462 is reported, we add the backslash to the text of the error
16463 to ensure that it is reported as a single error message.
16464 Use new // insertion for some continuation messages
16465 (Expand_Limited_With_Clause): Use copy of name rather than name itself,
16466 to create implicit with_clause for parent unit mentioned in original
16467 limited_with_clause.
16468 (Install_Limited_With_Unit): Set entity of parent identifiers if the
16469 unit is a child unit. For ASIS queries.
16470 (Analyze_Subunit): If the subunit appears within a child unit, make all
16471 ancestor child units directly visible again.
16472
164732006-10-31 Robert Dewar <dewar@adacore.com>
16474
16475 * par-ch10.adb (P_Context_Clause): Minor error message fix
16476
164772006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
16478 Javier Miranda <miranda@adacore.com>
16479
16480 * par-ch12.adb: Grammar update and cleanup.
16481 (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
16482 support for synchronized derived type definitions.
16483 Add the new actual Abstract_Present to every call to
16484 P_Interface_Type_Definition.
16485 (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
16486 a formal object declaration with an access definition or a subtype mark
16487 with a null exclusion.
16488 (P_Generic_Association): Handle association with box, and others_choice
16489 with box, to support Ada 2005 partially parametrized formal packages.
16490
164912006-10-31 Robert Dewar <dewar@adacore.com>
16492 Javier Miranda <miranda@adacore.com>
6f7f72f9 16493
70198b9f
AC
16494 * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
16495 (P_Type_Declaration): Remove barrier against the reserved word "limited"
16496 after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
16497 (P_Type_Declaration): Minor code cleanup. Add support for synchronized
16498 private extensions.
16499 (P_Type_Declaration): Add the new actual Abstract_Present to every call
16500 to P_Interface_Type_Definition.
16501 (P_Interface_Type_Definition): Addition of one formal to report an error
16502 if the reserved word abstract has been previously found.
16503 (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
16504 object renaming declaration with an access definition or subtype mark
16505 with a possible null exclusion.
16506
16507 * par-ch9.adb: Minor error msg fix
16508
16509 * par-load.adb: Add missing continuation mark to error msg
16510
16511 * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
16512
165132006-10-31 Vincent Celier <celier@adacore.com>
16514
16515 * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
16516 unknown attribute in unknown package or in package that does not need
16517 to be checked.
16518 (Parse_Package_Declaration): Do not issue warning for unknown package in
16519 quiet output.
16520
165212006-10-31 Vincent Celier <celier@adacore.com>
16522
16523 * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
16524 (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
16525 Packages_To_Check.
16526
165272006-10-31 Vincent Celier <celier@adacore.com>
16528
16529 * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
16530 on VMS, change "__" to '.' before checking the name.
16531 (Record_Ada_Source): Always add the source file name in the list of
16532 of sources, even if it is not the first time, as it is for another
16533 source index.
16534 (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
16535 dot, instead of replacing only the first '_'.
16536
16537 * prj-part.adb (Parse): Convert project file path to canonical form
16538
16539 * prj-proc.adb (Recursive_Process): Make sure that, when a project is
16540 extended, the project id of the project extending it is recorded in its
16541 data, even when it has already been processed as an imported project.
16542
165432006-10-31 Robert Dewar <dewar@adacore.com>
16544
16545 * repinfo.adb (List_Entities): Don't list entities from renaming
16546 declarations.
16547
165482006-10-31 Arnaud Charlet <charlet@adacore.com>
16549 Robert Dewar <dewar@adacore.com>
16550
16551 * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
16552 only a restriction warning is active for the given restriction. This is
16553 desirable because we do not want to modify code in the case where only
16554 a warning is set.
16555 (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
16556 causes overriding of real restrictions.
16557 Take advantage of new No_Restrictions constant.
16558
16559 * raise.h: (__gnat_set_globals): Change profile.
16560
165612006-10-31 Arnaud Charlet <charlet@adacore.com>
70198b9f 16562
6f7f72f9
EB
16563 * rtsfind.adb: Remove s-polint from comment as it exists no more.
16564
16565 * rtsfind.ads:
16566 Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
16567 Move all the entities in obsolete package System.PolyORB_Interface to
16568 System.Partition_Interface.
70198b9f
AC
16569 (RE_Storage_Size): New function in System.Tasking.
16570 (RE_Get_Ceiling): New entity.
16571 (RE_Set_Ceiling): New entity.
16572 (RO_PE_Get_Ceiling): New entity.
16573 (RO_RE_Set_Ceiling): New entity.
16574 (Inherit_CPP_DT): New entity
16575
165762006-10-31 Robert Dewar <dewar@adacore.com>
16577
16578 * scng.adb (Scan, case of numeric literal): Better msg for identifier
16579 starting with a digit.
16580
165812006-10-31 Ed Schonberg <schonberg@adacore.com>
16582 Thomas Quinot <quinot@adacore.com>
16583 Javier Miranda <miranda@adacore.com>
16584 Gary Dismukes <dismukes@adacore.com>
16585
16586 * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
16587 properly an attempt to apply Unchecked_Access to a protected operation.
16588 (OK_Self_Reference): New subprogram to check the legality of an access
16589 attribute whose prefix is the type of an enclosing aggregate.
16590 Generalizes previous mechanism to handle attribute references nested
16591 arbitrarily deep within the aggregate.
16592 (Analyze_Access_Attribute): An access attribute whose prefix is a type
16593 can appear in an aggregate if this is a default-initialized aggregate
16594 for a self-referential type.
16595 (Resolve_Attribute, case Access): Ditto.
16596 Add support for new implementation defined attribute Stub_Type.
16597 (Eval_Attribute, case Attribute_Stub_Type): New case.
16598 (Analyze_Attribute, case Attribute_Stub_Type): New case.
16599 (Stream_Attribute_Available): Implement using new subprogram from
16600 sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
16601 Has_Specified_Stream_Attribute flag.
16602 Disallow Storage_Size and Storage_Pool for access to subprogram
16603 (Resolve_Attribute, case 'Access et al): Take into account anonymous
16604 access types of return subtypes in extended return statements. Remove
16605 accessibility checks on anonymous access types when Unchecked_Access is
16606 used.
16607 (Analyze_Attribute): Add support for the use of 'Class to convert
16608 a class-wide interface to a tagged type.
16609 Add support for the attribute Priority.
16610 (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
16611 whether the designated type is discriminated with a constrained partial
16612 view and require static matching in that case.
16613 Add local variable Des_Btyp. The Designated_Type
16614 of an access to incomplete subtype is either its non-limited view if
16615 coming from a limited with or its etype if regular incomplete subtype.
16616
16617 * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
16618 Fix predicate to identify and allow cases of (expander-generated)
16619 references to tag of designated object of a RACW.
16620 (Validate_Static_Object_Name): In Ada 2005, a formal object is
16621 non-static, and therefore cannot appear as a primary in a preelaborable
16622 package.
16623 (Has_Stream_Attribute_Definition): New subprogram, abstracted from
16624 Has_Read_Write_Attributes.
16625 (Has_Read_Write_Attributes): Reimplement in termes of
16626 Has_Stream_Attribute_Definition.
16627 (Missing_Read_Write_Attributes): When checking component types in a
16628 record, unconditionally call Missing_Read_Write_Attributes recursively
16629 (remove guard checking for Is_Record_Type / Is_Access_Type).
16630
166312006-10-31 Robert Dewar <dewar@adacore.com>
16632
16633 * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
16634 useless assignments here and conditionalize it on absence of exception
16635 handlers.
16636 (Analyze_Exception_Handlers): Small code reorganization of error
16637 detection code, for new handling of formal packages.
16638
166392006-10-31 Ed Schonberg <schonberg@adacore.com>
16640 Hristian Kirtchev <kirtchev@adacore.com>
6f7f72f9
EB
16641
16642 * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
70198b9f
AC
16643 that has been constant-folded, preserve information of original tree,
16644 for ASIS uses.
16645 (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
16646 generated private extension declaration if the formal derived type is
16647 synchronized. Carry synchronized present over to the generated private
16648 extension.
16649 (Validate_Derived_Type_Instance): Ensure that the actual of a
16650 synchronized formal derived type is a synchronized tagged type.
16651 (Instantiate_Formal_Package): When creating the instantiation used to
16652 validate the actual package of a formal declared without a box, check
16653 whether the formal itself depends on a prior actual.
16654 (Instantiate_Formal_Subprogram): Create new entities for the defining
16655 identifiers of the formals in the renaming declaration, for ASIS use.
16656 (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
16657 a renaming declaration or a subtype declaration for an actual in an
16658 instance, capture location information of declaration in generic, for
16659 ASIS use.
16660 (Instantiate_Formal_Package): Add comments on needed additional tests.
16661 AI-317 (partial parametrization) is fully implemented.
16662 (Validate_Private_Type_Instance): Add check for actual which
16663 must have preelaborable initialization
16664 Use new // insertion for some continuation messages
16665 (Analyze_Formal_Object_Declaration): Change usage of Expression to
16666 Default_Expression. Add type retrieval when the declaration has an
16667 access definition. Update premature usage of incomplete type check.
16668 (Check_Access_Definition): New subsidiary routine. Check whether the
16669 current compilation version is Ada 05 and the supplied node has an
16670 access definition.
16671 (Instantiate object): Alphabetize local variables. Handle the creation
16672 of new renaming declarations with respect to the kind of definition
16673 used - either an access definition or a subtype mark. Guard against
16674 unnecessary error message in the context of anonymous access types after
16675 they have been resolved. Add check for required null exclusion in a
16676 formal object declaration.
16677 (Switch_View): A private subtype of a non-private type needs to be
16678 switched (the base type can have been switched without its private
16679 dependents because of the last branch of Check_Private_View.
16680 (Check_Private_View): Do not recompute Base_Type (T), instead use cached
16681 value from BT.
16682 (Instantiate_Type): Emit an error message whenever a class-wide type of
16683 a tagged incomplete type is used as a generic actual.
16684 (Find_Actual_Type): Extend routine to handle a component type in a child
16685 unit that is imported from a formal package in a parent.
16686 (Validate_Derived_Type_Instance): Check that analyzed formal and actual
16687 agree on constrainedness, rather than checking against ultimate ancestor
16688 (Instantiate_Subprogram_Body): Create a cross-reference link to the
16689 generic body, for navigation purposes.
16690
166912006-10-31 Robert Dewar <dewar@adacore.com>
16692 Thomas Quinot <quinot@adacore.com>
16693
16694 * sem_ch13.adb: Storage pool cannot be given for access to subprogram
16695 type.
16696 (New_Stream_Subprogram): When processing an attribute definition clause
16697 for a stream-oriented subprogram, record an entity node occurring at
16698 the point of clause to use for checking the visibility of the clause,
16699 as defined by 8.3(23) as amended by AI-195.
16700 (New_Stream_Subprogram): New procedure, factoring behaviour from both
16701 New_Stream_Function and New_Stream_Procedure.
16702 (New_Stream_Function, New_Stream_Procedure): Removed.
16703 (Analyze_Attribute_Definition_Clause, case Address): Check new
16704 Alignment_Check check
16705
167062006-10-31 Ed Schonberg <schonberg@adacore.com>
16707 Javier Miranda <miranda@adacore.com>
16708 Robert Dewar <dewar@adacore.com>
16709
16710 * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
16711 generate the same errors compiling under -gnatc.
16712 (Try_Object_Operation): If no candidate interpretation succeeds, but
16713 there is at least one primitive operation with the right name, report
16714 error in call rather than on a malformed selected component.
16715 (Analyze_Selected_Component): If the prefix is an incomplete type from
16716 a limited view, and the full view is available, use the full view to
16717 determine whether this is a prefixed call to a primitive operation.
16718 (Operator_Check): Verify that a candidate interpretation is a binary
16719 operation before checking the type of its second formal.
16720 (Analyze_Call): Add additional warnings for function call contexts not
16721 yet supported.
16722 (Analyze_Allocator): Move the check for "initialization not allowed for
16723 limited types" after analyzing the expression. This is necessary,
16724 because OK_For_Limited_Init looks at the structure of the expression.
16725 Before analysis, we don't necessarily know what sort of expression it
16726 is. For example, we don't know whether F(X) is a function call or an
16727 indexed component; the former is legal in Ada 2005; the latter is not.
16728 (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
16729 were missing. We also didn't handle qualified expressions. Now also
16730 allow function calls. Use new common routine OK_For_Limited_Init.
16731 (Analyze_Type_Conversion): Do not perform some legality checks in an
16732 instance, because the error message will be redundant or spurious.
16733 (Analyze_Overloaded_Selected_Component): Do not do style check when
16734 setting an entity, since we do not know it is the right entity yet.
16735 (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
16736 (Analyze_Overloaded_Selected_Component): Same change
16737 (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
16738 since regular incomplete subtypes are transformed into corresponding
16739 subtypes of their full views.
16740 (Complete_Object_Operation): Treat name of transformed subprogram call
16741 as coming from source, for browsing purposes.
16742 (Try_Primitive_Operation): If formal is an access parameter, compare
16743 with base type of object to determine whether it is a primitive
16744 operation.
16745 (Operator_Check): If no interpretation of the operator matches, check
16746 whether a use clause on any candidate might make the operation legal.
16747 (Try_Class_Wide_Operation): Check whether the first parameter is an
16748 access type whose designated type is class-wide.
16749
167502006-10-31 Robert Dewar <dewar@adacore.com>
16751 Ed Schonberg <schonberg@adacore.com>
16752 Gary Dismukes <dismukes@adacore.com>
16753
16754 * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
16755 warn on infinite loops.
16756 Add \\ to some continuation messages
16757 (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
16758 (Process_Bounds): If the bounds are integer literals that result from
16759 constant-folding, and they carry a user-defined type, preserve that type
16760 rather than treating this as an integer range.
16761 (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
16762 (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
16763 (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
16764 left hand side of assignment.
16765 (Analyze_Assignment): Add suport to manage assigments to the attribute
16766 priority of a protected object.
16767 (Check_Possible_Current_Value_Condition): Allow fully qualified names
16768 not just identifiers.
16769 (Check_Possible_Current_Value_Condition): Acquire left operand of AND
16770 or AND THEN for possible tracking.
16771 (Analyze_Iteration_Scheme): Check for setting Current_Value for the
16772 case of while loops so we can track values in the loop body.
16773
167742006-10-31 Ed Schonberg <schonberg@adacore.com>
16775 Hristian Kirtchev <kirtchev@adacore.com>
16776 Bob Duff <duff@adacore.com>
6f7f72f9 16777
70198b9f
AC
16778 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
16779 procedure cannot be a protected operation (it is a basic_declaration,
16780 not a subprogram_declaration).
16781 (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
16782 Subp. Add logic for entry processing.
16783 (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
16784 Determine whether an entry or subprogram of a protected or task type
16785 override an inherited primitive of an implemented interface.
16786 (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
16787 Update the actual used in calls to Check_Overriding_Indicator.
16788 (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
16789 generate the proper reference to the parent unit, for cross-reference.
16790 (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
16791 Is_Formal.
16792 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
16793 (Add_Extra_Formal): Revise procedure to allow passing in associated
16794 entity, scope, and name suffix, and handle setting of the new
16795 Extra_Formals field.
16796 (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
16797 pass new parameters. Add support for adding the new extra access formal
16798 for functions whose calls are treated as build-in-place.
16799 (Analyze_A_Return_Statement): Correct casing in error message.
16800 Move Pop_Scope to after Analyze_Function_Return, because an extended
16801 return statement really is a full-fledged scope. Otherwise, visibility
16802 doesn't work right. Correct use of "\" for continuation messages.
16803 (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
16804 evilly trying to call Analyze_Object_Declaration directly. Otherwise,
16805 the node doesn't get properly marked as analyzed.
16806 (Analyze_Subprogram_Body): If subprogram is a function that returns
16807 an anonymous access type that denotes a task, build a Master Entity
16808 for it.
16809 (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
16810 proper usage of null exclusion in a result definition.
16811 (Process_Formals): Code cleanup and new error message.
16812 (Process_Formals): Detect incorrect application of null exclusion to
16813 non-access types.
16814 (Conforming_Types): Handle conformance between [sub]types and itypes
16815 generated for entities that have null exclusions applied to them.
16816 (Maybe_Primitive_Operation): Add an additional type retrieval when the
16817 base type is an access subtype. This case arrises with null exclusions.
16818 (New_Overloaded_Entity): Do not remove the overriden entity from the
16819 homonym chain if it corresponds with an abstract interface primitive.
16820 (Process_Formals): Replace membership test agains Incomplete_Kind with a
16821 call to the synthesized predicate Is_Incomplete_Type.
16822 (Analyze_Subprogram_Body): Check wrong placement of abstract interface
16823 primitives.
16824 (Analyze_Subprogram_Declaration): Check that abstract interface
16825 primitives are abstract or null.
16826 (Analyze_Subprogram_Specification): Remove previous check for abstract
16827 interfaces because it was not complete.
16828 (Has_Interface_Formals): Removed.
16829
168302006-10-31 Ed Schonberg <schonberg@adacore.com>
16831 Javier Miranda <miranda@adacore.com>
16832
16833 * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
16834 of Analyze_Package_Body, to create Itype references for anonymous
16835 access types created in the package declaration, whose designated types
16836 may have only a limited view.
16837 (Analyze_Package_Specification): For the private part of a nested
16838 package, install private_with_clauses of enclosing compilation unit if
16839 we are in its visible part.
16840 (Declare_Inherited_Private_Subprograms): Complete barrier
16841 to ensure that the primitive operation has an alias to some parent
16842 primitive. This is now required because, after the changes done for the
16843 implementation of abstract interfaces, the contents of the list of
16844 primitives has entities whose alias attribute references entities of
16845 such list of primitives.
16846 (Analyze_Package_Specification): Simplify code that handles parent units
16847 of instances and formal packages.
16848 (Uninstall_Declarations): Check the convention consistency among
16849 primitive overriding operations of a tagged record type.
16850
168512006-10-31 Robert Dewar <dewar@adacore.com>
16852 Hristian Kirtchev <kirtchev@adacore.com>
16853 Javier Miranda <miranda@adacore.com>
16854 Ed Schonberg <schonberg@adacore.com>
6f7f72f9 16855
70198b9f
AC
16856 * sem_ch8.adb: Minor error msg rewording
16857 (Undefined): When checking for misspellings, invert arguments (to get
16858 expected and found set right)
16859 (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
16860 (Analyze_Generic_Renaming): Same fix
16861 (Use_One_Package): Do not take into account the internal entities of
16862 abstract interfaces during the analysis of entities that are marked
16863 as potentially use-visible.
16864 (Find_Type): Handle the case of an attribute reference for
16865 implementation defined attribute Stub_Type (simply let the analysis of
16866 the attribute reference rewrite it).
16867 (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
16868 type that appears in a Use_Type clause.
16869 (Analyze_Object_Renaming): Add support for renaming of the Priority
16870 attribute.
16871 (Find_Type): In Ada 2005, a task type can be used within its own body,
16872 when it appears in an access definition.
16873 (Analyze_Object_Renaming): Remove warning on null_exclusion.
16874 (Analyze_Object_Renaming): Introduce checks for required null exclusion
16875 in a formal object declaration or in a subtype declaration.
16876 (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
16877 (Check_Null_Exclusion): New local routine to
16878 Analyze_Subprogram_Renaming. Check whether the formals and return
16879 profile of a renamed subprogram have required null exclusions when
16880 their counterparts of the renaming already impose them.
16881 (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
16882 Determine whether an entity is inside a generic scope.
16883 (In_Open_Scope): First pass of documentation update.
16884 (Find_Expanded_Name): Add support for shadow entities associated with
16885 limited withed packages. This is required to handle nested packages.
16886 (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
16887 that makes a renaming of a limited withed package illegal.
16888
168892006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
16890 Ed Schonberg <schonberg@adacore.com>
16891
16892 * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
16893 Check_Overriding_Indicator.
16894 (Analyze_Task_Definition): Ditto.
16895 (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
16896 (Check_Overriding_Indicator): To find overridden interface operation,
16897 examine only homonyms that have an explicit subprogram declaration, not
16898 inherited operations created by an unrelated type derivation.
16899 (Check_Overriding_Indicator): When checking for the presence of "null"
16900 in a procedure, ensure that the queried node is a procedure
16901 specification.
16902 (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
16903 type when the formal is an access to variable.
16904 (Analyze_Protected_Type): Add check for Preelaborable_Initialization
16905 (Analyze_Task_Type): Same addition
16906 (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
16907 provide navigation capabilities for entries.
16908
169092006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
16910 Ed Schonberg <schonberg@adacore.com>
16911 Javier Miranda <miranda@adacore.com>
16912 Gary Dismukes <dismukes@adacore.com>
16913
16914 * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
16915 inherited from an interface ancestor by another interface in the
16916 context of an instance as 'late'.
16917 (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
16918 of a call to a function that dispatches on access result.
16919 (Check_Dispatching_Operation): In case of late overriding of a primitive
16920 that covers abstract interface subprograms we register it in all the
16921 secondary dispatch tables associated with abstract interfaces.
16922 (Check_Dispatching_Call): Add check that a dispatching call is not made
16923 to a function with a controlling result of a limited type. This is a
16924 current implementation restriction.
16925 (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
16926 (Check_Dispatching_Operation): Do no emit a warning if the controlling
16927 argument is an interface type that is a generic formal.
16928 (Is_Interface_Subprogram): Removed.
16929 (Check_Dispatching_Operation): If the subprogram is not a dispatching
16930 operation, check the formals to handle the case in which it is
16931 associated with an abstract interface type.
16932
169332006-10-31 Robert Dewar <dewar@adacore.com>
16934 Ed Schonberg <schonberg@adacore.com>
16935
16936 * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
16937 Add new calls to this procedure during traversal
16938 (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
16939 another unit if expansion is disabled.
16940
169412006-10-31 Robert Dewar <dewar@adacore.com>
16942
16943 * sem_eval.adb (Compile_Time_Compare): Make use of information from
16944 Current_Value in the conditional case, to evaluate additional
16945 comparisons at compile time.
16946
169472006-10-31 Ed Schonberg <schonberg@adacore.com>
16948 Hristian Kirtchev <kirtchev@adacore.com>
16949 Javier Miranda <miranda@adacore.com>
16950
16951 * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
16952 subprogram type to provide better diagnostics in case of ambiguity.
16953 (Covers): Handle coverage of formal and actual anonymous access types in
16954 the context of generic instantiation.
16955 (Covers/Interface_Present_In_Ancestors): Use the base type to manage
16956 abstract interface types; this is required to handle concurrent types
16957 with discriminants and abstract interface types.
16958 (Covers): Include type coverage of both regular incomplete subtypes and
16959 incomplete subtypes of incomplete type visibles through a limited with
16960 clause.
16961
169622006-10-31 Robert Dewar <dewar@adacore.com>
16963 Hristian Kirtchev <kirtchev@adacore.com>
16964 Ed Schonberg <schonberg@adacore.com>
6f7f72f9
EB
16965
16966 * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
70198b9f
AC
16967 messages for entities in packages which are not used.
16968 (Collect_Synchronized_Interfaces): New procedure.
16969 (Overrides_Synchronized_Primitive): New function.
16970 (Denotes_Discriminant): Extend predicate to apply to task types.
16971 Add missing continuation marks in error msgs
16972 (Unqualify): New function for removing zero or more levels of
16973 qualification from an expression. There are numerous places where this
16974 ought to be used, but we currently only deal properly with zero or one
16975 level.
16976 (In_Instance); The analysis of the actuals in the instantiation of a
16977 child unit is not within an instantiation, even though the parent
16978 instance is on the scope stack.
16979 (Safe_To_Capture_Value): Exclude the case of variables that are
16980 renamings.
16981 (Check_Obsolescent): Removed
16982 (Is_Aliased_View): A reference to an enclosing instance in an aggregate
16983 is an aliased view, even when rewritten as a reference to the target
16984 object in an assignment.
16985 (Get_Subprogram_Entity): New function
16986 (Known_To_Be_Assigned): New function
16987 (Type_Access_Level): Compute properly the access level of a return
16988 subtype that is an anonymous access type.
16989 (Explain_Limited_Type): Correct use of "\" for continuation messages.
16990 (Is_Transfer): The new extended_return_statement causes a transfer of
16991 control.
16992 (Has_Preelaborable_Initialization): New function
16993 (Has_Null_Exclusion): New function. Given a node N, determine whether it
16994 has a null exclusion depending on its Nkind.
16995 Change Is_Lvalue to May_Be_Lvalue
16996 (May_Be_Lvalue): Extensive additional code to deal with subprogram
16997 arguments (IN parameters are not Lvalues, IN OUT parameters are).
16998 (Safe_To_Capture_Value): Extend functionality so it can be used for
16999 the current value condition case.
17000 (Has_Compatible_Alignment): New function
17001 (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
17002 objects to handle the Ada 2005 case, where aliasedness no longer implies
17003 that the object is constrained. In particular, for dereferenced names,
17004 the designated object must be assumed to be unconstrained.
17005 (Kill_Current_Values): Properly deal with the case where we encounter
17006 a loop in the scope chain.
17007 (Safe_To_Capture_Value): Do not let a loop stop us from capturing
17008 a value.
17009 (Compile_Time_Constraint_Error): Improve error message in error case
17010
17011 * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
17012 associated with entities of abstract interface primitives.
17013 Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
17014
170152006-10-31 Robert Dewar <dewar@adacore.com>
17016
17017 * s-osinte-tru64.adb:
17018 Mark Asm statements Volatile to prevent warnings (seems a
17019 reasonable change anyway)
17020 Fixes new warnings
17021
17022 * s-mastop-irix.adb: Add Volatile to Asm statements
17023 Suppresses warning, and seems appropriate in any case
17024
17025 * s-osinte-vms.adb: Add Volatile to Asm statement
17026
17027 * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
17028
17029 * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
17030 returned.
17031 Add call to Check_Code_Statement
17032
170332006-10-31 Robert Dewar <dewar@adacore.com>
17034 Ed Schonberg <schonberg@adacore.com>
17035 Bob Duff <duff@adacore.com>
17036
17037 * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
17038 Synchronized_Present): Add Formal_Derived_Type_Definition and
17039 Private_Extension_Declaration to the list of assertions.
17040 (Is_Entry_Barrier_Function): New flag
17041 (Has_Self_Reference): New flag on aggregates, to indicate that they
17042 contain a reference to the enclosing type, inserted through a default
17043 initialization.
17044 (Next_Rep_Item): Move from Node4 to Node5.
17045 (Entity): Add this field for N_Attribute_Definition_Clause.
17046 (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
17047 (N_Return_Object_Declaration): Remove this node kind. We now use
17048 N_Object_Declaration instead.
17049 (Actual_Designated_Subtype): Move to a different place to make room in
17050 N_Extended_Return_Statement.
17051 (Procedure_To_Call): Move to a different place to make room in
17052 N_Extended_Return_Statement.
17053 (Return_Type): Removed this field to make room in return statements
17054 (both kinds).
17055 (Return_Statement_Entity): New field in return statements, in part to
17056 replace Return_Type, and in part to support the fact that return
17057 statements are now pushed on the scope stack during semantic analysis.
17058 (Return_Object_Declarations): New field to support extended return
17059 statements.
17060 (N_Extended_Return_Statement): New node for extended_return_statement
17061 nonterminal.
17062 (N_Return_Object_Declaration): New node for part of
17063 extended_return_statement nonterminal. Needed because all the necessary
17064 fields won't fit in N_Extended_Return_Statement.
17065 Generic_associations now carry the Box_Present flag, to indicate a
17066 default for an actual in a partially parametrized formal package.
17067
6f7f72f9 17068 * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
70198b9f
AC
17069 (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
17070 and for the new predefined dispatching policies: EDF_Across_Priorities,
17071 Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
17072 Introduce new name Stub_Type for implementation defined attribute.
17073 Add pragma Preelaborable_Initialization
17074 Add entry for Priority attribute.
17075 Add Pragma_Wide_Character_Encoding
17076 (Get_Convention_Name): Given a convention id, this function returns the
17077 corresponding name id from the names table.
17078
170792006-10-31 Ed Schonberg <schonberg@adacore.com>
17080 Robert Dewar <dewar@adacore.com>
17081 Bob Duff <duff@adacore.com>
17082
17083 * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
17084 print null exclusion twice in the case of an access definition,
17085 Implement new -gnatL switch
17086 Remove N_Return_Object_Declaration. We now use
17087 N_Object_Declaration instead. Implement the case for
17088 N_Extended_Return_Statement. Alphabetize the cases.
17089 Add cases for new nodes N_Extended_Return_Statement and
17090 N_Return_Object_Declaration. The code is not yet written.
17091 Update the output for N_Formal_Object_Declaration
17092 and N_Object_Renaming_Declaration.
17093 (Write_Itype): Account for the case of a modular integer subtype whose
17094 base type is private.
17095
170962006-10-31 Arnaud Charlet <charlet@adacore.com>
17097
17098 * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
17099 Remove elaboration code, now done in the binder.
17100
17101 * s-rident.ads: Make this unit Preelaborate.
17102 (No_Restrictions): New constant used to clean up code and follow
17103 preelaborate constraints.
17104
17105 * s-stalib.adb:
17106 Add System.Restrictions dependence, referenced directly from the
17107 binder generated file.
17108
171092006-10-31 Gary Dismukes <dismukes@adacore.com>
17110
17111 * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
17112 True when AAMP extended floating-point is in use (48-bit). Change type
17113 ByteLF to ByteLLF, add new array type ByteLF and condition the size of
17114 the two byte array types on AFloat. Change type of IV_Ilf overlay
17115 variable from Byte8 to ByteLF. Add appropriate initializations of
17116 floating-point overlays for AAMP cases.
17117
171182006-10-31 Javier Miranda <miranda@adacore.com>
17119
17120 * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
17121 (Get_Ceiling): New subprogram that returns
17122 the ceiling priority of the protected object.
17123 (Set_Ceiling): New subprogram that sets the new ceiling priority of
17124 the protected object.
17125
17126 * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
17127
17128 * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
17129
171302006-10-31 Jose Ruiz <ruiz@adacore.com>
17131
17132 * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
17133 requeuing to the same protected object to give higher priority tasks
17134 the opportunity to execute.
17135
171362006-10-31 Robert Dewar <dewar@adacore.com>
17137
17138 * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
17139 add more precise check for the character sequence that follows '[' to
17140 avoid possible confusion in case if '[' is the last character of a
17141 string literals.
17142 (Scan_Wide): Always allow brackets encoding
17143
171442006-10-31 Olivier Hainque <hainque@adacore.com>
17145
17146 * s-stchop.ads: make this unit preelaborate. This is desirable in
17147 general and made mandatory by the use of this unit by s-taprop which
17148 is itself preelaborate.
17149
17150 * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
17151 Td_Events component.
17152
171532006-10-31 Vincent Celier <celier@adacore.com>
17154
17155 * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
17156 in file names.
17157
171582006-10-31 Vincent Celier <celier@adacore.com>
17159
17160 * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
17161
171622006-10-31 Vincent Celier <celier@adacore.com>
17163
17164 * makegpr.adb (Check_Compilation_Needed): Take into account path names
17165 with spaces.
17166 (Check_Compilation_Needed): When checking a C or C++ source, do not
17167 resolve symbolic links.
17168 (Display_Command): New Boolean parameter Ellipse, defaulted to False.
17169 When not in verbose mode and Ellipse is True, display "..." for the
17170 first argument with Display set to False.
17171 (Build_Global_Archive): Always set Display True for the first object
17172 file. Call Display_Command with Ellipse set to True.
17173
171742006-10-31 Matt Heaney <heaney@adacore.com>
17175
17176 * a-crbtgo.ads: Commented each subprogram
17177
17178 * a-crbtgo.adb: Added reference to book from which algorithms were
17179 adapted.
17180
6f7f72f9 17181 * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
70198b9f
AC
17182 indicate which child.
17183 (Generic_Conditional_Insert): changed parameter name from "Success" to
17184 "Inserted".
17185 (Generic_Unconditional_Insert_With_Hint): improved algorithm
17186
17187 * a-coorse.adb (Replace_Element): changed parameter name in call to
17188 conditional insert operation.
17189
17190 * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
17191
17192 * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
17193 Generic_Iteration
17194
17195 * a-ciorse.adb (Replace_Element): changed parameter name in call to
17196 conditional insert operation.
17197
17198 * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
17199 Generic_Iteration.
17200
17201 * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
17202 instead of mode inout.
17203
17204 * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
17205 draft
17206 (Generic_Read): preserve existing buckets array if possible
17207 (Generic_Write): don't send buckets array length anymore
17208
17209 * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
17210 instead of mode inout.
17211
17212 * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
17213 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
17214
17215 * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
17216 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
17217 (Replace_Element): local operation is now an instantiation
17218
17219 * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
17220 check current length.
17221 (Generic_Replace_Element): new operation
17222
172232006-10-31 Doug Rupp <rupp@adacore.com>
17224
17225 * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
17226 Call TBK$SYMBOLIZE without omitting parameters.
17227
172282006-10-31 Vincent Celier <celier@adacore.com>
17229
17230 * symbols-processing-vms-ia64.adb,
17231 symbols-processing-vms-alpha.adb (Process): Do not include symbols
17232 that come from generic instantiations in bodies.
17233
172342006-10-31 Pat Rogers <rogers@adacore.com>
17235
17236 * a-rttiev.ads, a-rttiev.adb:
17237 This is a significant redesign primarily for the sake of automatic
17238 timer task termination but also to fix a design flaw.
17239 Therefore we are now using an RTS lock, instead of a protected
17240 object, to provide mutual exclusion to the queue of pending events
17241 and the type Timing_Event is no longer a protected type.
17242
172432006-10-31 Robert Dewar <dewar@adacore.com>
17244 Cyrille Comar <comar@adacore.com>
17245 Ben Brosgol <brosgol@adacore.com>
17246
17247 * debug.adb: Update flags documentation
17248
6f7f72f9
EB
17249 * gnat_ugn.texi: Add documentation for new -gnatwq switch
17250 Clean up documentation for several other warning switches
17251 Clarify how task stack size can be specified with various
17252 versions of Windows.
17253 Add note that -gnatVo includes ranges including loops
70198b9f
AC
17254 Add documentation for -gnatL switch
17255 Add note on elaboration warning for initializing variables
17256 Add documentation for new -gnatwt warning switch
17257 Document new form of pragma Warnings (On|Off, string)
17258 Add comment on use of pragma Warnings to control warnings
17259 Add documentation for -gnatjnn switch
17260 Modify section on interfacing with C for VMS 64-bit.
17261 Add doc for -gnatVe/E
17262 Add documentation of new warning flags -gnatww/-gnatwW
17263 Add warnings about address clause overlays to list of warnings
17264 (Exception Handling Control): Document that the option --RTS must be
17265 used consistently for gcc and gnatbind.
17266 Clarify that inlining is not always possible
17267 Update documentation on pragma Unchecked_Union.
17268
17269 * gnat_rm.texi:
17270 Add documentation for new extended version of pragma Obsolescent
17271 Add documentation for implementation defined attribute 'Stub_Type.
17272 Add note on use of Volatile in asm statements
17273 Add documentation on use of pragma Unreferenced in context clause
17274 Document new form of pragma Warnings (On|Off, pattern)
17275 Document pragma Wide_Character_Encoding
17276 Add note that pragma Restrictions (No_Elaboration_Code) is only fully
17277 enforced if code generation is active.
17278 Add section on pragma Suppress to document GNAT specific check
17279 Alignment_Check
17280 Clarify difference between No_Dispatching_Calls & No_Dispatch.
17281 Add documentation for pragma Restrictions (No_Elaboration_Code)
17282
17283 * gnat-style.texi:
17284 Add comments on layout of subprogram local variables in the
17285 presence of nested subprograms.
17286
6f7f72f9 17287 * ug_words: Resync.
70198b9f
AC
17288
17289 * elists.ads: Minor reformatting
17290 Node returns Node_Or_Entity_Id (doc change only)
17291
17292 * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
17293
17294 * g-arrspl.ads (Create): Update comments.
17295
17296 * sem.ads: Add details on the handling of the scope stack.
17297
6f7f72f9 17298 * usage.adb: Update documentation.
70198b9f
AC
17299
17300 * validsw.ads, validsw.adb:
17301 Add definition of Validity_Check_Components and implement -gnatVe/E
17302
6f7f72f9 17303 * vms_data.ads: Add missing VMS qualifiers.
70198b9f
AC
17304
17305 * s-addope.ads: Add documentation on overflow and divide by zero
17306
173072006-10-31 Robert Dewar <dewar@adacore.com>
17308 Thomas Quinot <quinot@adacore.com>
17309 Arnaud Charlet <charlet@adacore.com>
17310
17311 * fmap.adb: Put routines in alpha order
17312
17313 * g-boumai.ads: Remove redundant 'in' keywords
17314
17315 * g-cgi.adb: Minor reformatting
17316
17317 * g-cgi.ads: Remove redundant 'in' keywords
17318
17319 * get_targ.adb: Put routines in alpha order
17320
17321 * prj-attr.ads: Minor reformatting
17322
17323 * s-atacco.ads: Minor reformatting
17324
17325 * scn.adb: Put routines in alpha order
17326
17327 * sinput-l.adb: Minor comment fix
17328
17329 * sinput-p.adb: Minor comment fix
17330
17331 * s-maccod.ads: Minor reformatting
17332
17333 * s-memory.adb: Minor reformatting
17334
17335 * s-htable.adb: Fix typo in comment.
17336
17337 * s-secsta.adb: Minor comment update.
17338
17339 * s-soflin.adb: Minor reformatting
17340
17341 * s-stoele.ads:
17342 Add comment about odd qualification in Storage_Offset declaration
17343
17344 * s-strxdr.adb:
17345 Remove unnecessary 'in' keywords for formal parameters.
17346
17347 * treeprs.adt: Minor reformatting
17348
17349 * urealp.adb: Put routines in alpha order
17350
17351 * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
17352 taking string.
17353
17354 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
17355
17356 * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
17357
17358 * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
17359 workaround as on other platforms.
17360
17361 * g-eacodu-vms.adb: Remove redundant 'in' keywords
17362 * g-expect-vms.adb: Remove redundant 'in' keywords
17363
17364 * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
17365 clear error message if the list-of-files file cannot be opened.
17366
17367 * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
17368 equality operator is always visible.
17369
17370 * lang.opt: Woverlength-strings: New option.
17371
17372 * nmake.adt:
17373 Update copyright, since nmake.ads and nmake.adb have changed.
17374
17375 * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
17376 (Binder_Output_Time_Stamps_Set): removed.
17377 (Old_Binder_Output_Time_Stamp): idem.
17378 (New_Binder_Output_Time_Stamp): idem.
17379 (Recording_Time_From_Last_Bind): idem.
17380 (Recording_Time_From_Last_Bind): Make constant.
17381
17382 * output.ads, output.adb (Write_Str): Allow LF characters
17383 (Write_Spaces): New procedure
17384
17385 * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
17386
17387 * inline.adb: Minor reformatting
17388
17389 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
17390
17391 * s-mastop-vms.adb: Remove redundant 'in' keywords
17392
17393 * s-osprim-vms.adb: Remove redundant 'in' keywords
17394
17395 * s-trafor-default.adb: Remove redundant 'in' keywords
17396
17397 * 9drpc.adb: Remove redundant 'in' keywords
17398
17399 * s-osinte-mingw.ads: Minor reformatting
17400
17401 * s-inmaop-posix.adb: Minor reformatting
17402
17403 * a-direio.ads: Remove quotes from Compile_Time_Warning message
17404
17405 * a-exexda.adb: Minor code reorganization
17406
17407 * a-filico.adb: Minor reformatting
17408
17409 * a-finali.adb: Minor reformatting
17410
17411 * a-nudira.ads: Remove quote from Compile_Time_Warning message
17412
17413 * a-numeri.ads: Minor reformatting
17414
17415 * a-sequio.ads: Remove quotes from Compile_Time_Warning message
17416
17417 * exp_pakd.ads: Fix obsolete comment
17418
17419 * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
17420 a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
17421 Probably not a bug, but certainly neater and more efficient.
17422
17423 * a-tienio.adb: Minor reformatting
17424
17425 * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
17426 Avoid assuming low bound of string is 1.
17427
17428 * gnatbind.adb: Change Bindusg to package and rename procedure as
17429 Display, which now ensures that it only outputs usage information once.
17430 (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
17431
17432 * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
17433 Table'First.
17434
17435 * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
17436 warning.
17437 (Match): Add pragma Assert to ensure that Matches'First is zero
17438
17439 * g-regpat.ads (Match): Document that Matches lower bound must be zero
17440
17441 * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
17442 documented preconditions (also kills warnings about bad indexes).
17443
17444 * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
17445 is 1.
17446 (Build_Import_Library): Ditto;
17447
17448 * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
17449
17450 * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
17451
17452 * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
17453 lower bound of choice table is 1.
17454
17455 * sem_case.ads (Analyze_Choices): Document that lower bound of
17456 Choice_Table is 1.
17457
17458 * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
17459 string is 1.
17460
17461 * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
17462 and add appropriate Assert pragma to suppress warnings.
17463
17464 * atree.h, atree.ads, atree.adb
17465 Change Elist24 to Elist25
17466 Add definitions of Field28 and Node28
17467 (Traverse_Field): Use new syntactic parent table in sinfo.
17468
17469 * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
17470
17471 * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
17472
17473 * exp_tss.adb: Put routines in alpha order
17474
17475 * fe.h: Remove redundant declarations.
17476
c79efc4d 174772006-10-23 Rafael Avila de Espindola <rafael.espindola@gmail.com>
ed41063a 17478
c79efc4d
RÁE
17479 * utils.c (builtin_function): Rename to gnat_builtin_function.
17480 Move common code to add_builtin_function.
17481 * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
17482 gnat_builtin_function.
17483 * gigi.h (builtin_function): Rename to gnat_builtin_function.
17484 Change the signature.
17485
a8384928
BM
174862006-10-16 Brooks Moses <bmoses@stanford.edu>
17487
17488 * Makefile.in: Add TEXI2PDF definition.
17489 * Make-lang.in: Add "ada.pdf" target.
17490
2285b053
KH
174912006-10-03 Kazu Hirata <kazu@codesourcery.com>
17492
17493 * decl.c, utils.c: Fix comment typos.
c0a69967
KH
17494 * utils.c: Fix a typo.
17495
b55e7f34
EB
174962006-09-28 Eric Botcazou <ebotcazou@adacore.com>
17497
17498 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
17499 on "pure" Ada subprograms if SJLJ exceptions are used.
17500 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
17501 on the declaration node of JMPBUF_SAVE.
17502 * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
17503 of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
17504 * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
17505
9e94c78f 175062006-08-20 Laurent Guerby <laurent@guerby.net>
d2b40c09 17507
7a197678
EB
17508 PR ada/28716
17509 g-socket.adb (Bind_Socket): Call Set_Address.
17510
41d9adc7
EB
175112006-09-15 Eric Botcazou <ebotcazou@adacore.com>
17512
17513 PR ada/15802
17514 * decl.c (same_discriminant_p): New static function.
17515 (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
17516 subtype and we have discriminants, fix up the COMPONENT_REFs
17517 for the discriminants to make them reference the corresponding
17518 fields of the parent subtype after it has been built.
17519
21cc3719
RS
175202006-09-15 Roger Sayle <roger@eyesopen.com>
17521
17522 PR ada/18817
17523 * utils.c (max_size): Perform constant folding of (A ? B : C) - D
17524 into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
17525
6f2789da
OH
175262006-09-13 Olivier Hainque <hainque@adacore.com>
17527
17528 PR ada/29025
17529 * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
17530 of a SAVE_EXPR, just make the operand addressable/not-readonly and
17531 let the common gimplifier code make and propagate a temporary copy.
17532 (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
17533 out/in-out actuals and defer setting the addressable/readonly bits
17534 to the gimplifier.
17535
efaa616e
EB
175362006-09-13 Eric Botcazou <ebotcazou@adacore.com>
17537
17538 PR ada/28591
17539 * decl.c (components_to_record): Defer emitting debug info for the
17540 record type associated with the variant until after we are sure to
17541 actually use it.
17542
2655f1c6
EB
175432006-09-13 Eric Botcazou <ebotcazou@adacore.com>
17544
17545 PR ada/21952
17546 * gigi.h (gnat_internal_attribute_table): Declare.
17547 * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
17548 * utils.c (gnat_internal_attribute_table): New global variable.
17549 (builtin_function): Always call decl_attributes on the builtin.
17550 (handle_const_attribute): New static function.
17551 (handle_nothrow_attribute): Likewise.
17552
48779194
VR
175532006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
17554
17555 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
17556
8df7d439
EB
175572006-06-23 Olivier Hainque <hainque@adacore.com>
17558
17559 * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
17560 not been able to get a constant upper bound from TYPE_SIZE_UNIT.
17561
83fdc7c4 175622006-06-20 James A. Morrison <phython@gcc.gnu.org>
6f7f72f9 17563 Eric Botcazou <ebotcazou@adacore.com>
83fdc7c4
JM
17564
17565 PR ada/18692
17566 * Make-lang.in: Add check-gnat to lang_checks. Rename existing
17567 check-gnat into check-acats.
17568
5f516f59
KB
175692006-06-17 Karl Berry <karl@gnu.org>
17570
6f7f72f9 17571 * gnat-style.texi (@dircategory): Use "Software development"
5f516f59
KB
17572 instead of "Programming", following the Free Software Directory.
17573
ce0d1b88
JDA
175742006-06-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17575
17576 PR ada/27944
17577 * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
17578
9e94c78f 175792006-06-06 Laurent Guerby <laurent@guerby.net>
8c60f779 17580
6f7f72f9
EB
17581 PR ada/27769
17582 mlib-utl.adb: Use Program_Name.
17583
ce2e12c2
KH
175842006-05-28 Kazu Hirata <kazu@codesourcery.com>
17585
17586 * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
17587 sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
17588 trans.c, utils.c: Fix comment typos. Follow spelling
17589 conventions.
17590 * gnat_rm.texi, gnat_ugn.texi, : Fix typos. Follow spelling
17591 conventions.
17592
ba4ac682
EB
175932006-05-19 Nicolas Setton <setton@adacore.com>
17594
17595 * misc.c (gnat_dwarf_name): New function.
17596 (LANG_HOOKS_DWARF_NAME): Define to it.
17597
05b44921
L
175982006-05-14 H.J. Lu <hongjiu.lu@intel.com>
17599
17600 * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
17601 (ada/misc.o): Likewise.
17602 (ada/utils.o): Likewise.
17603
a3bd7058
AJ
176042006-04-08 Aurelien Jarno <aurel32@debian.org>
17605
17606 * Makefile.in: Add Ada support for GNU/kFreeBSD.
17607 * s-osinte-kfreebsd-gnu.ads: New file.
17608
ad3a7ce3
CD
176092006-03-29 Carlos O'Donell <carlos@codesourcery.com>
17610
17611 * Make-lang.in: Rename docdir to gcc_docdir.
17612
936a6fa7
EB
176132006-03-04 Eric Botcazou <ebotcazou@adacore.com>
17614
17615 * gigi.h (get_ada_base_type): Delete.
17616 * utils2.c (get_ada_base_type): Likewise.
17617 * trans.c (convert_with_check): Operate in the real base type.
17618
93f978b7
RK
176192006-03-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17620
17621 * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
17622
434aeebb
RS
176232006-03-02 Richard Sandiford <richard@codesourcery.com>
17624
17625 * utils.c (create_var_decl): Use have_global_bss_p when deciding
17626 whether to make the decl common.
17627
01ddebf2 176282006-02-20 Rafael �vila de Esp�ndola <rafael.espindola@gmail.com>
93f978b7 17629
ed41063a 17630 * Make-lang.in (Ada): Remove.
9d29a5b7
RE
17631 (.PHONY): Remove Ada
17632
c63f730e
AC
176332006-02-17 Ed Schonberg <schonberg@adacore.com>
17634
17635 * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
17636 aggregate, check the interpretations of the other operand to find one
17637 that may be a boolean array.
17638
17639 (Analyze_Selected_Component): Fix flow-of-control typo in case where
17640 the prefix is a private extension.
17641
176422006-02-17 Eric Botcazou <botcazou@adacore.com>
17643
17644 PR ada/26315
c63f730e
AC
17645 * utils2.c (find_common_type): If both input types are BLKmode and
17646 have the same constant size, keep using the first one.
17647
17648 * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
17649
17650 * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
17651
17652 * misc.c (gnat_handle_option): New case for -Woverlength-strings.
17653
176542006-02-17 Jose Ruiz <ruiz@adacore.com>
17655
17656 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
17657 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
17658 s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
17659 s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
17660 Abort_Defer/Undefer pairs to avoid the possibility of a task being
17661 aborted while owning a lock.
17662
176632006-02-17 Javier Miranda <miranda@adacore.com>
17664 Robert Dewar <dewar@adacore.com>
17665
17666 * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
17667 through an access to class-wide interface we force the displacement of
17668 the pointer to the allocated object to reference the corresponding
17669 secondary dispatch table.
17670 (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
17671 if Long_Shifts are supported on the target, even if 64 bit divides
17672 are not supported (configurable run time mode).
17673 (Expand_N_Type_Conversion): Do validity check if validity checks on
17674 operands are enabled.
17675 (Expand_N_Qualified_Expression): Do validity check if validity checks
17676 on operands are enabled.
17677
176782006-02-17 Ed Schonberg <schonberg@adacore.com>
17679
17680 * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
17681 must be materialized when the renamed expression is an explicit
17682 dereference.
17683
176842006-02-17 Ed Schonberg <schonberg@adacore.com>
17685
17686 * freeze.adb (Statically_Discriminated_Components): Return false if
17687 the bounds of the type of the discriminant are not static expressions.
17688
17689 * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
17690 the bounds of the discriminant type are not static.
17691
176922006-02-17 Robert Dewar <dewar@adacore.com>
17693
17694 * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
17695 then we close To if it is valid.
17696
176972006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
17698
17699 * init.c (facility_resignal_table): new array
17700 (__gnat_default_resignal_p): enhance default predicate to resignal if
17701 VMS condition has one of the predefined facility codes.
17702
177032006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
17704
17705 * Makefile.in: Use VMS64 specialized versions of several units in
17706 Interfaces.C hierarchy to be compatible with HP C default size choices.
17707 Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
17708
177092006-02-17 Ed Schonberg <schonberg@adacore.com>
17710
17711 * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
17712 instantiation, the corresponding entity is the related_instance of the
17713 wrapper package created for the instance.
17714
177152006-02-17 Ed Schonberg <schonberg@adacore.com>
17716
17717 * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
17718 the current instance is nested within another instance in a child unit.
17719
177202006-02-17 Javier Miranda <miranda@adacore.com>
17721 Ed Schonberg <schonberg@adacore.com>
17722
17723 * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
17724 type we cannot inherit the primitive operations; we inherit the
17725 Corresponding_Record_Type (which has the list of primitive operations).
17726 (Check_Anonymous_Access_Types): When creating anonymous access types for
17727 access components, use Rewrite in order to preserve the tree structure,
17728 for ASIS use.
17729 (Analyze_Object_Declaration): For limited types with access
17730 discriminants with defaults initialized by an aggregate, obtain
17731 subtype from aggregate as for other mutable types.
17732 (Derived_Type_Declaration): If the derived type is a limited interface,
17733 set the corresponding flag (Is_Limited_Record is not sufficient).
17734
177352006-02-17 Ed Schonberg <schonberg@adacore.com>
17736
17737 * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
17738 to inline a function that returns an unconstrained type, the return
17739 expression must be the first variable declared in the body of the
17740 function.
17741
177422006-02-17 Javier Miranda <miranda@adacore.com>
17743
17744 * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
17745 abstract interface type, the static analysis is not enough to know if
17746 the interface is implemented or not by the source tagged type. Hence
17747 we must pass the work to the expander to generate the required code to
17748 evaluate the conversion at run-time.
17749 (Resolve_Equality_Op): Do not apply previous
17750 transformation if expansion is disasbled, to prevent anomalies when
17751 locating global references in a generic unit.
17752
177532006-02-17 Vincent Celier <celier@adacore.com>
17754
17755 * snames.ads, snames.adb: New standard names for new project attributes:
17756 archive_builder, archive_indexer, compiler_pic_option,
17757 config_body_file_name, config_body_file_name_pattern,
17758 config_file_switches, config_file_unique, config_spec_file_name,
17759 config_spec_file_name_pattern, default_builder_switches,
17760 default_global_compiler_switches, default_language,
17761 dependency_file_kind, global_compiler_switches, include_path,
17762 include_path_file, language_kind, linker_executable_option,
17763 linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
17764 roots, runtime_project.
17765
177662006-02-17 Matthew Heaney <heaney@adacore.com>
17767
17768 * a-convec.ads, a-convec.adb:
17769 (operator "&"): handle potential overflow for large index types
17770 (Insert): removed Contraint_Error when using large index types
17771 (Insert_Space): removed Constraint_Error for large index types
17772 (Length): moved constraint check from Length to Insert
17773
17774 * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
17775 as not null access.
17776 Explicit raise statements now include an exception message.
17777 (operator "&"): handle potential overflow for large index types
17778 (Insert): removed Contraint_Error when using large index types
17779 (Insert_Space): removed Constraint_Error for large index types
17780 (Length): moved constraint check from Length to Insert
17781
177822006-02-17 Robert Dewar <dewar@adacore.com>
17783
17784 * s-wchcnv.adb: Document handling of [ on output (we do not change
17785 this to ["5B"] and the new comments say why not.
17786
17787 * gnat_ugn.texi:
17788 Add note for -gnatVo that this now includes the cases of type
17789 conversions and qualified expressions.
17790 Add comments on handling of brackets encoding for Text_IO
17791
177922006-02-17 Ramon Fernandez <fernandez@adacore.com>
17793 Thomas Quinot <quinot@adacore.com>
17794 Robert Dewar <dewar@adacore.com>
17795 Javier Miranda <miranda@adacore.com>
17796
17797 * expander.adb: Fix typo in comment
17798
17799 * exp_pakd.adb: Fix typo
17800 Minor comment reformatting.
17801
17802 * g-dyntab.adb: Minor reformatting
17803
17804 * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
17805 aliased subprograms to look for the abstract interface subprogram.
17806
fd7927cd
EB
178072006-02-16 Eric Botcazou <ebotcazou@adacore.com>
17808
17809 * env.c (__gnat_setenv): Use size_t.
17810 (__gnat_unsetenv): Likewise.
17811 (__gnat_clearenv): Likewise.
17812
3f806915
AC
178132006-02-16 Arnaud Charlet <charlet@adacore.com>
17814
17815 * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
17816
cc26ad97
AC
178172006-02-13 Arnaud Charlet <charlet@adacore.com>
17818
17819 * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
17820 g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
17821 i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
17822 s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
17823 s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
17824 s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
17825 s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
17826 s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
17827 s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
17828 no longer used.
17829
178302006-02-13 Jose Ruiz <ruiz@adacore.com>
17831
17832 * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
17833 protection against race conditions is not needed.
17834 (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
17835 fallback handler.
17836 (Set_Specific_Handler): Add mutual exclusive access to the specific
17837 handler.
17838 (Specific_Handler): Add mutual exclusive access for retrieving the
17839 specific handler.
17840
17841 * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
17842 back handler.
17843
17844 * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
17845 Fall_Back_Handler and Specific_Handler.
17846
17847 * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
17848 termination handlers.
17849 Set two different owerflow depending on the maximal stack size.
17850
17851 * s-solita.adb (Task_Termination_Handler_T): Document why explicit
17852 protection against race conditions is not needed when executing the
17853 task termination handler.
17854
178552006-02-13 Robert Dewar <dewar@adacore.com>
17856
17857 * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
17858 a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
17859 a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
17860 a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
17861 a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
17862 a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
17863 a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
17864 a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
17865 a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
17866 a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
17867 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
17868 a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
17869 a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
17870 a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
17871 a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
17872 a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
17873 a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
17874 a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
17875 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
17876 a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
17877 g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
17878 g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
17879 mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
17880 prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
17881 s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
17882 s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
17883 s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
17884 s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
17885 s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
17886 s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
17887 a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
17888 fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
17889 par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
17890 system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
17891 reformatting.
17892
178932006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
17894
17895 * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
17896 s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
17897 s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
17898 s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
17899 a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
17900 s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
17901 a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
17902 s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
17903 s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
17904
179052006-02-13 Arnaud Charlet <charlet@adacore.com>
17906
17907 * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
17908 s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
17909 s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
17910 s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
17911 s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
17912 s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
17913 replaced by anonymous access type.
17914 (pthread_sigmask): Now take an access sigset_t
17915
17916 * s-osinte-hpux.ads: Ditto.
17917 (pthread_mutex_t, pthread_cond_t): Update definitions to support
17918 properly 32 and 64 bit ABIs.
17919
179202006-02-13 Pascal Obry <obry@adacore.com>
17921
17922 * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
17923 s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
17924 s-taprop-linux.adb, s-taprop-solaris.adb,
17925 s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
17926 adjustement is already done when calling this routine.
17927
179282006-02-13 Pascal Obry <obry@adacore.com>
17929
17930 * system-mingw.ads (Underlying_Priorities): Update the priority mapping
17931 table to take advantage of the 16 priority levels available on Windows
17932 2000 and XP. On NT4 there are only 7 priority levels, this is properly
17933 supported by this new mapping.
17934
179352006-02-13 Nicolas Setton <setton@adacore.com>
17936
17937 * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
17938 (get_encoding): New subprogram. Extracts the encodings from an encoded
17939 Ada name.
17940
179412006-02-13 Pascal Obry <obry@adacore.com>
17942 Nicolas Roche <roche@adacore.com>
17943 Arnaud Charlet <charlet@adacore.com>
17944
17945 * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
17946 support.
17947 (__gnat_try_lock): Add unicode support by using a specific section on
17948 Windows.
17949 (__gnat_get_current_dir): Idem.
17950 (__gnat_open_read): Idem.
17951 (__gnat_open_rw): Idem.
17952 (__gnat_open_create): Idem.
17953 (__gnat_create_output_file): Idem.
17954 (__gnat_open_append): Idem.
17955 (__gnat_open_new): Idem.
17956 (__gnat_file_time_name): Idem.
17957 (__gnat_set_file_time_name): Idem.
17958 (__gnat_stat): Idem.
17959 (win32_no_block_spawn): Idem.
17960 (__gnat_locate_exec_on_path): Idem.
17961 (__gnat_opendir): New routine.
17962 (__gnat_closedir): Idem.
17963 (__gnat_readdir): Add new parameter length (pointer to int). Update
17964 implementation to use it and add specific Win32 code for Unicode
17965 support.
17966 (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
17967 (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
17968 (convert_addresses): Do not define this dummy routine on VMS.
17969
17970 * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
17971 runtime Unicode support will be activated.
17972 (S2WS): String to Wide-String conversion. This version just copy a
17973 string in non Unicode version.
17974 (WS2S): Wide-String to String conversion. This version just copy a
17975 string in non Unicode version.
17976
17977 * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
17978 (Open): Now import __gnat_opendir from adaint.c.
17979 (Read): Change the implementation to support unicode characters. It is
17980 not possible to use strlen() on Windows as this version supports only
17981 standard ASCII characters. So the length of the directory entry is now
17982 returned from the imported __gnat_readdir routine.
17983 Update copyright notice.
17984
17985 * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
17986 (opendir): Moved to adaint.c.
17987
17988 * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
17989 (Get_Directory): Fix wrong indexing.
17990 (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
17991 __gnat_getenv from env.c
17992 (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
17993 from env.c
17994
17995 * env.h, env.c: New file.
17996
17997 * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
17998 adaint.c by __gnat_getenv from env.c
17999
18000 * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
18001 adaint.c by __gnat_getenv from env.c
18002
18003 * Make-lang.in: Add env.o in the list of C object needed by gnat1
18004 and gnatbind.
18005 Update dependencies.
18006
180072006-02-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18008 Olivier Hainque <hainque@adacore.com>
18009 Eric Botcazou <ebotcazou@adacore.com>
18010
18011 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
18012
18013 * gigi.h (value_factor_p): Add prototype and description, now public.
18014
18015 * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
18016 promotion for field with rep clause if the associated size was proven
18017 to be in error.
18018 Expand comments describing attempts to use a packable type.
18019 (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
18020 E_Floating_Point_Subtype>: Inherit alias set of what we are making a
18021 subtype of to ensure conflicts amongst all subtypes in a hierarchy,
18022 necessary since these are not different types and pointers may
18023 actually designate any subtype in this hierarchy.
18024 (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
18025 discriminants but put them into record only if not Unchecked_Union;
18026 pass flag to components_to_record showing Unchecked_Union.
18027 (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
18028 components before variants; don't set TYPE_UNCHECKED_UNION_P.
18029 (components_to_record): New argument UNCHECKED_UNION.
18030 Remove special case code for Unchecked_Union and instead use main code
18031 with small changes.
18032
18033 PR ada/26096
ed41063a
EB
18034 (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
18035 variable with the expression being built, only its inner field.
cc26ad97
AC
18036
18037 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
18038 emit_sequence_entry_statements.
18039 (emit_sequence_entry_statements, body_with_handlers_p): Delete.
18040 (establish_gnat_vms_condition_handler): Move before
18041 Subprogram_Body_to_gnu.
18042 (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
18043 for a subprogram if it has a foreign convention or is exported.
18044 (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
18045 substituted for a CONST_DECL.
18046 (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
18047 Etype to assoc_to_constructor.
18048 (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
18049 discriminants of Unchecked_Union.
18050 (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
18051 don't need cluttering preprocessor directives.
18052 (establish_gnat_vms_condition_handler): New function. Establish the GNAT
18053 condition handler as current in the compiled function.
18054 (body_with_handlers_p): New function. Tell whether a given sequence of
18055 statements node is attached to a package or subprogram body and involves
18056 exception handlers possibly nested within inner block statements.
18057 (emit_sequence_entry_statements): New function, to emit special
18058 statements on entry of sequences when necessary. Establish GNAT
18059 condition handler in the proper cases for VMS.
18060 (Handled_Sequence_Of_Statements_to_gnu): Start block code with
18061 emit_sequence_entry_statements.
18062
18063 * utils2.c (find_common_type): If both input types are BLKmode and
18064 have a constant size, use the smaller one.
18065 (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
18066 the same.
18067
18068 * utils.c (value_factor_p): Make public, to allow uses from other gigi
18069 units.
18070 (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
18071 (convert, case UNION_TYPE): Remove special treatment for unchecked
18072 unions.
18073
18074 PR ada/18659
ed41063a
EB
18075 (update_pointer_to): Update variants of pointer types to unconstrained
18076 arrays by attaching the list of fields of the main variant.
cc26ad97
AC
18077
180782006-02-13 Arnaud Charlet <charlet@adacore.com>
18079 Robert Dewar <dewar@adacore.com>
18080
18081 * a-exexpr.adb, a-exexpr-gcc.adb
18082 (Process_Raise_Exception): Removed, merged with Propagate_Exception.
18083 (Propagate_Exception): Now take extra From_Signal_Handler parameter.
18084 Remove code unused for exception propagation for the compiler itself
18085 from a-except.adb and update to still share separate packages.
18086
18087 * a-except.ads, a-except.adb: Ditto.
18088 Add comments that this version is now used only by the compiler and
18089 other basic tools. The full version that includes the Ada 2005 stuff
18090 is in separate files a-except-2005.ads/adb. The reason is that we do
18091 not want to cause bootstrap problems with compilers not recognizing
18092 Wide_Wide_String.
18093 Add exception reason code PE_Implicit_Return
18094 Add new exception reason code (Null Exception_Id)
18095
18096 * a-except-2005.adb, a-except-2005.ads: New files.
18097
18098 * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
18099
18100 * s-wchcon.adb: New file.
18101
18102 * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
18103 (traceback.o deps): Likewise.
18104 (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
18105 Activate build of GMEM instrumentation library on VMS targets.
18106 (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
18107 Use a-except-2005.ads/adb for all run-time library builds unless
18108 specified otherwise.
18109 [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
18110 s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
18111 Use s-parame.adb on all native platforms.
18112 Use s-parame-vxworks.adb on all vxworks platforms.
18113 Add env.c env.h in LIBGNAT_SRCS
18114 Add env.o in LIBGNAT_OBJS
18115 (GNATMAKE_OBJS): Remove ctrl_c.o object.
18116 (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
18117 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
18118 supports VxWorks 6 RTPs.
18119 (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
18120 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
18121
18122 * types.h, types.ads (Terminate_Program): New exception
18123 Add comment on modifying multiple versions of a-except.adb when the
18124 table of exception reasons is modified.
18125 Add exception reason code PE_Implicit_Return
18126 Add new exception reason code (Null Exception_Id)
18127
6f7f72f9
EB
18128 * clean.adb (Initialize): Get the target parameters before checking
18129 if target is OpenVMS. Move the OpenVMS specific code here from package
18130 body elaboration code.
cc26ad97
AC
18131
181322006-02-13 Thomas Quinot <quinot@adacore.com>
18133 Vincent Celier <celier@adacore.com>
18134 Robert Dewar <dewar@adacore.com>
18135
18136 * ali-util.adb (Get_File_Checksum): Update to account for change in
18137 profile of Initialize_Scanner.
18138
18139 * gprep.adb (Gnatprep): Update to account for change in profile of
18140 Initialize_Scanner.
18141 (Process_One_File): Same.
18142
18143 * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
18144 common code between Get_Code_Unit and Get_Source_Unit. Reimplement
18145 that behaviour using the new Unit information recorded in the source
18146 files table, rather than going through all units every time.
18147 (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
18148 (Get_Source_Unit): Same.
18149
18150 * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
18151 change in profile of Initialize_Scanner.
18152 (Prepare_To_Preprocess): Same.
18153
18154 * lib.ads: Fix typo in comment (templace -> template).
18155
18156 * prj-part.adb (Parse_Single_Project): Update to account for change in
18157 profile of Initialize_Scanner.
18158
18159 * scn.adb (Initialize_Scanner): Account for change in profile of
18160 Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
18161 Also record the association of the given Source_File_Index to the
18162 corresponding Unit_Number_Type.
18163
18164 * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
18165 procedure.
18166 (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
18167 Remove Unit formal for generic scanner: this formal
18168 is only relevant to Scn (the scanner instance used to parse Ada source
18169 files), not to other instances. Update comment accordingly.
18170 (Scan): Use new function Snames.Is_Keyword_Name.
18171
18172 * sinfo-cn.adb: Fix typo in comment.
18173
18174 * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
18175 Unit.
18176
18177 * sinput.ads (Source_File_Record): New component Unit, used to capture
18178 the unit identifier (if any) associated to a source file.
18179
18180 * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
18181 Unit in Source_File_Record.
18182
18183 * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
18184 in profile of Initialize_Scanner.
18185
18186 * scans.adb (Initialize_Ada_Keywords): New procedure
18187
18188 * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
18189 Ada keywords in the Namet table, without the need to call
18190 Initialize_Scanner.
18191
18192 * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
18193 (Is_Keyword_Name): New function
18194
18195 * snames.ads: Add subtype Configuration_Pragma_Names
18196 Add pragma Ada_2005 (synonym for Ada_05)
18197 (Is_Keyword_Name): New function
18198
18199 * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
18200
182012006-02-13 Arnaud Charlet <charlet@adacore.com>
18202
18203 * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
18204 index.
18205
18206 * a-stwima.adb (To_Set): Add extra check when N = 0.
18207
18208 * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
18209
182102006-02-13 Arnaud Charlet <charlet@adacore.com>
18211
18212 * s-parame-mingw.adb, s-parame-linux.adb,
18213 s-parame-solaris.adb: Removed, replaced by s-parame.adb
18214
18215 * s-parame-vxworks.ads: Fix typo.
18216
18217 * s-parame-vxworks.adb: New file.
18218
18219 * s-parame.adb: Version now used by all native platforms.
18220 (Default_Stack_Size): Use 2 megs for default stack size and use
18221 __gl_default_stack_size when available.
18222 (Minimum_Stack_Size): Use 12K.
18223
18224 * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
18225 (Create_Task): Refine implementation taking advantage of the XP stack
18226 size support. On XP, we now create the thread using the flag
18227 STACK_SIZE_PARAM_IS_A_RESERVATION.
18228
18229 * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
18230
18231 * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
18232 XP and 0 on older Windows versions.
18233
18234 * interfac-vms.ads: Removed, no longer used.
18235
182362006-02-13 Matthew Heaney <heaney@adacore.com>
18237
18238 * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
18239 a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
18240 a-cohase.adb: All explicit raise statements now include an exception
18241 message.
18242
18243 * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
18244 (Update_Element_Preserving_Key): renamed op to just Update_Element.
18245 Explicit raise statements now include an exception message
18246
18247 * a-cihase.ads, a-cohase.ads: Removed comment.
18248
18249 * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
18250 a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
18251 a-szbzha.adb, a-szfzha.ads: New files.
18252
182532006-02-13 Matthew Heaney <heaney@adacore.com>
18254
18255 * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
18256 quicksort.
18257
182582006-02-13 Eric Botcazou <ebotcazou@adacore.com>
18259
18260 * lang.opt: Wvariadic-macros: New option.
18261 Wold-style-definition: Likewise.
18262 Wmissing-format-attribute: Likewise.
18263
18264 * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
18265 -Wold-style-definition and -Wmissing-format-attribute.
18266
182672006-02-13 Robert Dewar <dewar@adacore.com>
18268
18269 * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
18270
18271 * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
18272
182732006-02-13 Nicolas Roche <roche@adacore.com>
18274
18275 * a-envvar.adb, a-envvar.ads: New files.
18276
182772006-02-13 Douglas Rupp <rupp@adacore.com>
18278
18279 * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
18280
18281 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
18282
182832006-02-13 Pat Rogers <rogers@adacore.com>
18284
18285 * a-rttiev.adb, a-rttiev.ads: New files.
18286
182872006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
18288
18289 * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
18290 a-wwboio.ads, a-zzboio.adb, a-zzboio.ads: New files.
18291
18292 * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
18293
182942006-02-13 Robert Dewar <dewar@adacore.com>
18295
18296 * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
18297 sem_case.adb: Minor code reorganization (not Present should be No)
18298
182992006-02-13 Geert Bosch <bosch@adacore.com>
18300 Gary Dismukes <dismukes@adacore.com>
18301
18302 * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
18303 0, since the lower bound of the actual string may be greater than one.
18304
18305 PR ada/20753
ed41063a 18306 * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
cc26ad97
AC
18307 layout is requested.
18308
183092006-02-13 Vincent Celier <celier@adacore.com>
18310
18311 * back_end.adb (Scan_Compiler_Arguments): Check if
18312 Search_Directory_Present is True and, if it is, add the argument in
18313 the source search directory path.
18314
18315 * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
18316 Search_Directory_Present to True.
18317
183182006-02-13 Joel Brobecker <brobecke@adacore.com>
18319
18320 * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
18321 volatile, to tell the compiler to preserve this variable at any level
18322 of optimization.
18323 (Gen_Versions_Ada): Temporarily work around codegen bug.
18324
183252006-02-13 Vincent Celier <celier@adacore.com>
18326
18327 * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
18328 gcc to link with option -shared-libgcc.
18329 (Gnatlink): Remove duplicate switches -shared-libgcc
18330
183312006-02-13 Robert Dewar <dewar@adacore.com>
18332
18333 * gnatvsn.ads (Current_Year): New constant, used to easily update
18334 copyright on all GNAT tools.
18335
18336 * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
18337 copyright notice.
18338
183392006-02-13 Robert Dewar <dewar@adacore.com>
18340
18341 * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
18342 after hyphen (small aesthetic change useful for a range of numbers
18343 using ^-^.
18344 Suppress range checks for a couple of assignments which otherwise
18345 cause validity checks with validity checking turned on.
18346
18347 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
18348 Improvement in error message for object.
18349 (Rep_Item_Too_Late): Remove '!' in warning message.
18350
183512006-02-13 Robert Dewar <dewar@adacore.com>
18352 Eric Botcazou <ebotcazou@adacore.com>
18353
18354 * err_vars.ads: Suppress range checks for a couple of assignments
18355 which otherwise cause validity checks with validity checking turned on.
18356 Update comments.
18357
18358 * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
18359 Make message unconditional if it is a warning.
18360 (Error_Msg_NEL): Always output warning messages.
18361 Suppress range checks for a couple of assignments which otherwise
18362 cause validity checks with validity checking turned on.
18363
18364 * errout.ads (Message Insertion Characters): Document that '!' is
18365 implied by '?' in error messages.
18366
18367 * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
18368 (Gnat1drv): Use a goto to end of main subprogram instead of
18369 Exit_Program (E_Success) so that finalization can occur normally.
18370
183712006-02-13 Eric Botcazou <ebotcazou@adacore.com>
18372
18373 * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
18374 wrapped around.
18375
183762006-02-13 Vincent Celier <celier@adacore.com>
18377
18378 * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
18379 Unchecked_Conversion functions.
18380 (Modification_Time): Use direct conversion of OS_Time to Calendar time
18381 when OpenVMS returns False.
18382
18383 * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
18384 a-dirval.adb (OpenVMS): New Boolean function
18385
183862006-02-13 Ed Schonberg <schonberg@adacore.com>
18387 Thomas Quinot <quinot@adacore.com>
18388
18389 * checks.adb (Build_Discriminant_Checks): If the expression being
18390 checks is an aggregate retrieve the values of its discriminants to
18391 generate the check, rather than creating a temporary and a reference
18392 to it.
18393 (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
18394 (Install_Null_Excluding_Check): Ditto
18395 (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
18396 not for the renamed object, so that the actual itype is attached in the
18397 proper context.
18398
183992006-02-13 Robert Dewar <dewar@adacore.com>
18400 Vincent Celier <celier@adacore.com>
18401
18402 * debug.adb: Eliminate numeric switches for binder/gnatmake
18403
18404 * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
18405 switches for the compiler.
18406 (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
18407 (Scan_Make_Switches): When failing with an illegal switch, output an
18408 error message with the full switch.
18409 Eliminate numeric switches for binder/gnatmake
18410
18411 * switch.ads, switch.adb (Bad_Switch): New procedure
18412
18413 * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
18414 Remove 0-9 as debug flag character possibilities
18415 -d is now controlling the primary stack size when its value is a
18416 positive. Also add checks against invalid values, and support for kb,
18417 mb. Ditto for -D switch.
18418
184192006-02-13 Robert Dewar <dewar@adacore.com>
18420 Serguei Rybin <rybin@adacore.com>
18421
18422 * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
18423 save/restore routines.
18424 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
18425 were not always properly handled previously.
18426 Since we are changing the tree format anyway, also get rid of the
18427 junk obsolete Immediate_Errors flag.
18428 (Tree_Read): Change the way of reading Tree_Version_String - now we
18429 read the version string from the tree even if its length is not the
18430 same as the length of the version string computed from Gnatvsn.
18431 (Search_Directory_Present): New Boolean flag for the compiler.
18432 Define Tree_Version_String as a dynamic string.
18433 (Default_Stack_Size): new variable, used to handle switch -d.
18434
18435 * par-prag.adb:
18436 For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
18437 only for main unit.
18438 Add pragma Ada_2005 (synonym for Ada_05)
18439 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
18440 were not always properly handled previously.
18441
18442 * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
18443 explicit Ada_95 to Ada_2005.
18444
184452006-02-13 Javier Miranda <miranda@adacore.com>
18446 Robert Dewar <dewar@adacore.com>
18447 Ed Schonberg <schonberg@adacore.com>
18448
18449 * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
18450 against errors in the source program: a private types for which the
18451 corresponding full type declaration is missing and pragma CPP_Virtual
18452 is used.
18453 (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
18454 (Is_Known_Null): New flag
18455 (Has_Pragma_Pure): New flag
18456 (No_Return): Present in all entities, set only for procedures
18457 (Is_Limited_Type): A type whose ancestor is an interface is limited if
18458 explicitly declared limited.
18459 (DT_Offset_To_Top_Func): New attribute that is present in E_Component
18460 entities. Only used for component marked Is_Tag. If present it stores
18461 the Offset_To_Top function used to provide this value in tagged types
18462 whose ancestor has discriminants.
18463
18464 * exp_ch2.adb: Update status of new Is_Known_Null flag
18465
18466 * sem_ch7.adb: Maintain status of new Is_Known_Null flag
18467
18468 * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
18469 the categorization sense if Is_Pure was set by pragma Pure_Function.
18470
184712006-02-13 Quentin Ochem <ochem@adacore.com>
18472 Olivier Hainque <hainque@adacore.com>
18473
18474 * bindusg.adb: Updated documentation for -d and -D switches.
18475
18476 * raise.h (__gnat_set_globals): added new parameter for
18477 Default_Stack_Size.
18478
18479 * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
18480 (__gnat_handle_vms_condition): Adjust context before raise.
18481 (__gnat_install_handler): Restore the global vector setup for GCC
18482 versions before 3.4, as the frame based circtuitry is not available
18483 in this case.
18484 (__gnat_set_globals): added a parameter default_stack_size
18485 (__gl_default_stack_size): new variable.
18486
184872006-02-13 Ed Schonberg <schonberg@adacore.com>
18488
18489 * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
18490 "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
18491 does not exist in the Ada RM.
18492 (Compatible_Int_Bounds): Determine whether two integer range bounds
18493 are of equal length and have the same start and end values.
18494 (Is_Int_Range_Bounds): Determine whether a node is an integer range.
18495 (Build_Record_Aggr_Code): Perform proper sliding of a nested array
18496 aggregate when it is part of an object declaration.
18497 (Build_Record_Aggr_Code) If the aggregate ttype is a derived type that
18498 constrains discriminants of its parent, add explicitly the discriminant
18499 constraints of the ancestor by retrieving them from the
18500 stored_constraint of the parent.
18501
185022006-02-13 Robert Dewar <dewar@adacore.com>
18503
18504 * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
18505 attribute Mechanism_Code is applied to renamed subprogram, modify
18506 prefix to point to base subprogram.
18507 Max/Min attributes now violate Restriction No_Implicit_Conditionals
18508
18509 * sinfo.ads: Document that Mechanism_Code cannot be applied to
18510 renamed subprograms so that the front-end must replace the prefix
18511 appropriately.
18512
185132006-02-13 Javier Miranda <miranda@adacore.com>
18514 Gary Dismukes <dismukes@adacore.com>
18515
18516 * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
18517 availability of RE_Interface_Tag.
18518 (Build_Initialization_Call): Fix wrong access to the discriminant value.
18519 (Freeze_Record_Type): Do not generate the tables associated with
18520 timed and conditional dispatching calls through synchronized
18521 interfaces if compiling under No_Dispatching_Calls restriction.
18522 When compiling for Ada 2005, for a nonabstract
18523 type with a null extension, call Make_Controlling_Function_Wrappers
18524 and insert the wrapper function declarations and bodies (the latter
18525 being appended as freeze actions).
18526 (Predefined_Primitive_Bodies): Do not generate the bodies of the
18527 predefined primitives associated with timed and conditional
18528 dispatching calls through synchronized interfaces if we are
18529 compiling under No_Dispatching_Calls.
18530 (Build_Init_Procedure): Use RTE_Available to check if a run-time
18531 service is available before generating a call.
18532 (Make_Controlling_Function_Wrappers): New procedure.
18533 (Expand_N_Full_Type_Declaration): Create a class-wide master for
18534 access-to-limited-interfaces because they can be used to reference
18535 tasks that implement such limited interface.
18536 (Build_Offset_To_Top_Functions): Build the tree corresponding to the
18537 procedure spec and body of the Offset_To_Top function that is generated
18538 when the parent of a type with discriminants has secondary dispatch
18539 tables.
18540 (Init_Secondary_Tags): Handle the case in which the parent of the type
18541 containing secondary dispatch tables has discriminants to generate the
18542 correct arguments to call Set_Offset_To_Top.
18543 (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
18544
18545 * a-tags.ads, a-tags.adb: (Check_Index): Removed.
18546 Add Wide_[Wide_]Expanded_Name.
18547 (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
18548 the same functionality of Get_Prim_Op_Address but applied to predefined
18549 primitive operations because the pointers to the predefined primitives
18550 are now saved in a separate table.
18551 (Parent_Size): Modified to get access to the separate table of primitive
18552 operations or the parent type.
18553 (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
18554 functionality of Set_Prim_Op_Address but applied to predefined primitive
18555 operations.
18556 (Set_Signature): New subprogram used to store the signature of a DT.
18557 (Displace): If the Offset_To_Top value is not static then call the
18558 function generated by the expander to get such value; otherwise use
18559 the value stored in the table of interfaces.
18560 (Offset_To_Top): The type of the actual has been changed to Address to
18561 give the correct support to tagged types with discriminants. In this
18562 case this value is stored just immediately after the tag field.
18563 (Set_Offset_To_Top): Two new formals have been added to indicate if the
18564 offset_to_top value is static and hence pass this value to the run-time
18565 to store it in the table of interfaces, or else if this value is dynamic
18566 and then pass to the run-time the address of a function that is
18567 generated by the expander to provide this value for each object of the
18568 type.
18569
18570 * rtsfind.ads (Default_Prin_Op_Count): Removed.
18571 (Default_Prim_Op_Count): New entity
18572 (Get_Predefined_Prim_Op_Address): New entity
18573 (Set_Predefined_Prim_Op_Address): New entity
18574 (RE_Set_Signature): New entity
18575
185762006-02-13 Thomas Quinot <quinot@adacore.com>
18577 Ed Schonberg <schonberg@adacore.com>
18578
18579 * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
18580 Make_Adjust_Call done for a newly-allocated object.
18581
18582 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
18583 in a subprogram are wrapped in a cleanup block, indicate that the
18584 subprogram contains an inner block with an exception handler.
18585 (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
18586 Adjust call is for a newly-allocated object. In that case we must not
18587 assume that the finalization list chain pointers are correct (since they
18588 come from a bit-for-bit copy of the original object's pointers) so if
18589 the attach level would otherwise be zero (no change), we set it to 4
18590 instead to cause the pointers to be reset to null.
18591
18592 * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
18593 reset chain pointers to null.
18594
185952006-02-13 Ed Schonberg <schonberg@adacore.com>
18596
18597 * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
18598 string, and the context requires a loop for the assignment (e.g.
18599 because the left-hand side is packed), generate a unique name for the
18600 temporary that holds the string, to prevent spurious name clashes.
18601
186022006-02-13 Ed Schonberg <schonberg@adacore.com>
18603 Javier Miranda <miranda@adacore.com>
18604 Robert Dewar <dewar@adacore.com>
18605 Gary Dismukes <dismukes@adacore.com>
18606
18607 * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
18608 return unconstrained arrays.
18609 Update comments.
18610 (Expand_Call): An indirect call through an access parameter of a
18611 protected operation is not a protected call.
18612 Add circuit to raise CE in Ada 2005 mode following call
18613 to Raise_Exception.
18614 (Register_DT_Entry): Do nothing if
18615 the run-time does not give support to abstract interfaces.
18616 (Freeze_Subprogram): In case of dispatching operations, do not generate
18617 code to register the operation in the dispatch table if the source
18618 is compiled with No_Dispatching_Calls.
18619 (Register_Predefined_DT_Entry): Generate code that calls the new
18620 run-time subprogram Set_Predefined_Prim_Op_Address instead of
18621 Set_Prim_Op_Address.
18622
18623 * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
18624 on array assignments if the right-hand side is a function call that has
18625 been inlined. Check is performed on the assignment in the block.
18626 (Process_Bounds): If bounds and range are overloaded, apply preference
18627 rule for root operations to disambiguate, and diagnose true ambiguity.
18628 (Analyze_Assignment): Propagate the tag for a class-wide assignment with
18629 a tag-indeterminate right-hand side even when Expander_Active is True.
18630 Needed to ensure that dispatching calls to T'Input are allowed and
18631 get the tag of the target class-wide object.
18632
18633 * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
18634 an inherited primitive operation that already overrides several
18635 abstract interface primitives. For transitivity, the new entity must
18636 also override all the abstract interface primitives covered by the
18637 inherited overriden primitive.
18638 Emit warning if new entity differs from homograph in same scope only in
18639 that one has an access parameter and the other one has a parameter of
18640 a general access type with the same designated type, at the same
18641 position in the signature.
18642 (Make_Inequality_Operator): Use source locations of parameters and
18643 subtype marks from corresponding equality operator when creating the
18644 tree structure for the implicit declaration of "/=". This does not
18645 change anything in behaviour except that the decoration of the
18646 components of the subtree created for "/=" allows ASIS to get the
18647 string images of the corresponding identifiers.
18648 (Analyze_Return_Statement): Remove '!' in warning message.
18649 (Check_Statement_Sequence): Likewise.
18650 (Analyze_Subprogram_Body): For an access parameter whose designated type
18651 is an incomplete type imported through a limited_with clause, use the
18652 type of the corresponding formal in the body.
18653 (Check_Returns): Implicit return in No_Return procedure now raises
18654 Program_Error with a compile time warning, instead of beging illegal.
18655 (Has_Single_Return): Function returning unconstrained type cannot be
18656 inlined if expression in unique return statement is not an identifier.
18657 (Build_Body_To_Inline): It is possible to inline a function call that
18658 returns an unconstrained type if all return statements in the function
18659 return the same local variable. Subsidiary procedure Has_Single_Return
18660 verifies that the body conforms to this restriction.
18661
18662 * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
18663 same type, and one of them is of an anonymous access type, convert
18664 the other operand to it, so that this is a valid binary operation for
18665 gigi.
18666 (Resolve_Type_Conversion): Handle subtypes of protected types and
18667 task types when accessing to the corresponding record type.
18668 (Resolve_Allocator): Add '\' in 2-line warning message.
18669 Remove '!' in warning message.
18670 (Resolve_Call): Add '\' in 2-line warning message.
18671 (Valid_Conversion): Likewise.
18672 (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
18673 resulting type may be an access type with an implicit dereference.
18674 Obtain the proper component from the designated type.
18675 (Make_Call_Into_Operator): Handle properly a call to predefined equality
18676 given by an expanded name with prefix Standard, when the operands are
18677 of an anonymous access type.
18678 (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
18679 Explicit_Dereference and Resolve_Selected_Component, to verify that the
18680 prefix of the expression is not of an incomplete type. Allows full
18681 diagnoses of all semantic errors.
18682 (Resolve_Actuals): If the actual is an allocator whose directly
18683 designated type is a class-wide interface we build an anonymous
18684 access type to use it as the type of the allocator. Later, when
18685 the subprogram call is expanded, if the interface has a secondary
18686 dispatch table the expander will add a type conversion to force
18687 the displacement of the pointer.
18688 (Resolve_Call): If a function that returns an unconstrained type is
18689 marked Inlined_Always and inlined, the call will be inlined and does
18690 not require the creation of a transient scope.
18691 (Check_Direct_Boolean_Op): Removed
18692 (Resolve_Comparison_Op): Remove call to above
18693 (Resolve_Equality_Op): Remove call to above
18694 (Resolve_Logical_Op): Inline above, since this is only call.
18695 (Valid_Conversion): Handle properly conversions between arrays of
18696 convertible anonymous access types.
18697
18698 PR ada/25885
cc26ad97
AC
18699 (Set_Literal_String_Subtype): If the lower bound is not static, wrap
18700 the literal in an unchecked conversion, because GCC 4.x needs a static
18701 value for a string bound.
18702
187032006-02-13 Ed Schonberg <schonberg@adacore.com>
18704 Hristian Kirtchev <kirtchev@adacore.com>
18705
18706 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
18707 components of the corresponding record, take into account component
18708 definitions that are access definitions.
18709 (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
18710 procedure is not considered a dispatching call and will be expanded
18711 properly.
18712
187132006-02-13 Javier Miranda <miranda@adacore.com>
18714
18715 * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
18716 controlling argument of the dispatching call is an abstract interface
18717 class-wide type then we use it directly.
18718 Check No_Dispatching_Calls restriction.
18719 (Default_Prim_Op_Position): Remove the code that looks for the last
18720 entity in the list of aliased subprograms. This code was wrong in
18721 case of renamings.
18722 (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
18723 when the source is compiled with the No_Dispatching_Calls restriction.
18724 (Init_Predefined_Interface_Primitives): No need to inherit primitives
18725 if we are compiling with restriction No_Dispatching_Calls.
18726 (Make_Disp_XXX): Addition of assertion to avoid the use of all these
18727 subprograms if we are compiling under No_Dispatching_Calls restriction.
18728 (Make_DT): Generate a dispatch table with a single dummy entry if
18729 we are compiling with the No_Dispatching_Calls restriction. In
18730 addition, in this case we don't generate code that calls to the
18731 following run-time subprograms: Set_Type_Kind, Inherit_DT.
18732 (Make_Select_Specific_Data_Table): Add assertion to avoid the use
18733 of this subprogram if compiling with the No_Dispatching_Calls
18734 restriction.
18735 (Expand_Type_Conversion): Instead of using the actual parameter,
18736 the argument passed as parameter to the conversion function was
18737 erroneously referenced by the expander.
18738 (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
18739 Set_Predefined_Primitive_Op_Address and Set_Signature.
18740 (Expand_Dispatching_Call): Generate call to
18741 Get_Predefined_Prim_Op_Address for predefined primitives.
18742 (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
18743 predefined primitives.
18744 (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
18745 primitives we reserve one dummy entry to ensure that the tag does not
18746 point to some memory that is associated with some other object. In
18747 addition, remove all the old code that generated the assignments
18748 associated with the signature of the dispatch table and replace them
18749 by a call to the new subprogram Set_Signature.
18750 (Set_All_DT_Position): Change the algorithm because now we have a
18751 separate dispatch table associated with predefined primitive operations.
18752 (Expand_Interface_Conversion): In case of non-static offset_to_top
18753 add explicit dereference to get access to the object after the call
18754 to displace the pointer to the object.
18755 (Expand_Interface_Thunk): Modify the generation of the actual used
18756 in the calls to the run-time function Offset_To_Top to fulfil its
18757 new interface.
18758 (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
18759
187602006-02-13 Ed Schonberg <schonberg@adacore.com>
18761
18762 * exp_dist.adb (Copy_Specification): For access parameters, copy
18763 Null_Exclusion flag, which will have been set for stream subprograms
18764 in Ada2005 mode.
18765
187662006-02-13 Pascal Obry <obry@adacore.com>
18767
18768 * expect.c (__gnat_expect_portable_execvp): New implementation. The
18769 previous implementation was using the C runtime spawnve routine but
18770 the corresponding wait was using directly the Win32 API. This was
18771 causing some times a lock when waiting for an event using
18772 WaitForSingleObject in __gnat_waitpid. This new implementation uses
18773 the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
18774 API fixes this problem.
18775
187762006-02-13 Robert Dewar <dewar@adacore.com>
18777
18778 * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
18779 call.
18780
187812006-02-13 Thomas Quinot <quinot@adacore.com>
18782
18783 * exp_pakd.ads: Fix typos in comments.
18784
18785 * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
18786 array reference that is an explicit dereference, mark the converted
18787 (packed) array reference as analyzed to prevent a forthcoming
18788 reanalysis from resetting its type to the original (non-packed) array
18789 type.
18790
187912006-02-13 Ed Schonberg <schonberg@adacore.com>
18792 Javier Miranda <miranda@adacore.com>
18793 Eric Botcazou <ebotcazou@adacore.com>
18794
18795 * exp_util.ads, exp_util.adb (Find_Prim_Op,
18796 Is_Predefined_Primitive_Operation): When
18797 searching for the predefined equality operator, verify that operands
18798 have the same type.
18799 (Is_Predefined_Dispatching_Operation): Remove the code that looks
18800 for the last entity in the list of aliased subprograms. This code
18801 was wrong in case of renamings.
18802 (Set_Renamed_Subprogram): New procedure
18803 (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
18804 Exp_Type constant computed when entering this subprogram.
18805 (Known_Null): New function
18806 (OK_To_Do_Constant_Replacement): New function
18807 (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
18808 (Side_Effect_Free): An attribute reference 'Input is not free of
18809 side effect, unlike other attributes that are functions. (from code
18810 reading).
18811 (Remove_Side_Effects): Expressions that involve packed arrays or records
18812 are copied at the point of reference, and therefore must be marked as
18813 renamings of objects.
18814 (Is_Predefined_Dispatching_Operation): Return false if the operation is
18815 not a dispatching operation.
18816
18817 PR ada/18819
18818 (Remove_Side_Effects): Lift enclosing type conversion nodes for
18819 elementary types in all cases.
18820
188212006-02-13 Javier Miranda <miranda@adacore.com>
18822
18823 * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
18824 task types when accessing to the corresponding record type.
18825 Remove '!' in warning message.
18826
188272006-02-13 Olivier Hainque <hainque@adacore.com>
18828
18829 * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
18830 to avoid useless and space inefficient overalignments on targets where
18831 Max_Alignment is larger than 16.
18832
188332006-02-13 Pascal Obry <obry@adacore.com>
18834
18835 * g-catiio.adb (Sec_Number): New type used to compute the number of
18836 seconds since 1-1-1970.
18837 (Image) [Natural]: The parameter was an Integer, as we can't deal with
18838 negative numbers (years, months...) it is better to have a Natural here.
18839 Code clean-up.
18840 (Image) [Number]: Change parameter from Long_Integer to Number.
18841 (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
18842 overflow for dates past year 2038.
18843
188442006-02-13 Matthew Heaney <heaney@adacore.com>
18845
18846 * g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
18847 Constraint_Error.
18848
188492006-02-13 Arnaud Charlet <charlet@adacore.com>
18850
18851 * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
18852 native platforms.
18853 (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
18854 finalization can occur normally.
18855
188562006-02-13 Vincent Celier <celier@adacore.com>
18857
18858 * gnatcmd.adb (Rules_Switches): New table
18859 (Add_To_Rules_Switches): New procedure
18860 (GNATCmd): For command CHECK, put all options following "-rules" in the
18861 Rules_Switches table. Append these -rules switches after the -cargs
18862 switches.
18863
188642006-02-13 Robert Dewar <dewar@adacore.com>
18865
18866 * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
18867 These two cases were generating incorrect output, and if this unit
18868 was built with checks on, generated a discriminant mismatch constraint
18869 error.
18870
188712006-02-13 Ed Schonberg <schonberg@adacore.com>
18872 Robert Dewar <dewar@adacore.com>
18873
18874 * lib-xref.adb (Get_Type_Reference): For a private type whose full
18875 view is an array type, indicate the component type as well, for
18876 navigation purposes.
18877 (Generate_Reference): Don't consider array ref on LHS to be a case
18878 of violating pragma Unreferenced.
18879 Do not give Ada 2005 warning except on real reference.
18880
188812006-02-13 Vincent Celier <celier@adacore.com>
18882
18883 * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
18884 main source, add switch -mdebug-main=_ada_ so that the executable can
18885 be debugged by the standard VMS debugger.
18886 (Gnatmake): Set No_Main_Subprogram to True when there is no main
18887 subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
18888 Exit the Multi_Main_Loop when Unique_Compile is True after compilation
18889 of the last source, as the binding and linking phases are never
18890 performed.
18891 Set all executable obsolete when rebuilding a library.
18892
18893 * makeutl.adb (Linker_Options_Switches): Do not process empty linker
18894 options.
18895
188962006-02-13 Javier Miranda <miranda@adacore.com>
18897
18898 PR ada/23973
cc26ad97
AC
18899 * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
18900 code to improve the error message reported when the program has
18901 declarations of abstract interface types and it is not compiled with
18902 the -gnat05 switch.
18903 (P_Access_Definition): Reorganize the code to improve the error
18904 message reported when the new Ada 2005 syntax for anonymous
18905 access types is used and the program is not compiled with the
18906 -gnat05 switch.
18907
189082006-02-13 Robert Dewar <dewar@adacore.com>
18909
18910 * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
18911 stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
18912 (MODE_IN)
18913
189142006-02-13 Javier Miranda <miranda@adacore.com>
18915
18916 * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
18917 against source containing syntax errors.
18918
189192006-02-13 Vincent Celier <celier@adacore.com>
18920
18921 * prj.adb (Reset): Initialize the first element of table Namings with
18922 the standard naming data.
18923
189242006-02-13 Vincent Celier <celier@adacore.com>
18925
18926 * prj.ads (Error_Warning): New enumeration type
18927
18928 * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
18929 unknown, use the location of the project to report the error.
18930 (When_No_Sources): New global variable
18931 (Report_No_Ada_Sources): New procedure
18932 (Check): New parameter When_No_Sources. Set value of global variable
18933 When_No_Sources,
18934 (Find_Sources): Call Report_No_Ada_Sources when appropriate
18935 (Get_Sources_From_File): Ditto
18936 (Warn_If_Not_Sources): Better warning messages indicating the unit name
18937 and the file name.
18938
18939 * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
18940 Call Prj.Proc.Process with parameter When_No_Sources.
18941
18942 * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
18943 Call Recursive_Check with parameter When_No_Sources.
18944 (Recursive_Check): New parameter When_No_Sources. Call itself and
18945 Prj.Nmsc.Check with parameter When_No_Sources.
18946 (Process): New parameter When_No_Sources. Call Check with parameter
18947 When_No_Sources.
18948 (Copy_Package_Declarations): New procedure to copy renamed parameters
18949 and setting the location of the declared attributes to the location
18950 of the renamed package.
18951 (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
18952 packages.
18953
189542006-02-13 Vincent Celier <celier@adacore.com>
18955
18956 * prj-makr.adb (Make): Preserve the comments from the original project
18957 file.
18958 When removing nodes (attributes Source_Dirs, Source_Files,
18959 Source_List_File and package Naming), save the comments and attach the
18960 saved comments to the newly created nodes.
18961 Do not add a with clause for the naming package if one already exists.
18962
189632006-02-13 Javier Miranda <miranda@adacore.com>
18964 Gary Dismukes <dismukes@adacore.com>
18965 Robert Dewar <dewar@adacore.com>
18966
18967 * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
18968
18969 * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
18970 aliased entities to look for the overriden abstract interface
18971 subprogram.
18972 (Is_Interface_Subprogram): Complete documentation.
18973 (Check_Dispatching_Operation): Do not generate code to register the
18974 operation in the dispatch table if the source is compiled with
18975 restriction No_Dispatching_Calls.
18976 (Override_Dispatching_Operation): Check for illegal attempt to override
18977 No_Return procedure with procedure that is not No_Return
18978 (Check_Dispatching_Call): Suppress the check for an abstract operation
18979 when the original node of an actual is a tag-indeterminate attribute
18980 call, since the attribute, which must be 'Input, can never be abstract.
18981 (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
18982 call to the Input attribute (even when rewritten).
18983 (Propagate_Tag): Augment comment to indicate the possibility of a call
18984 to an Input attribute.
18985
18986 * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
18987 calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
18988
18989 * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
18990 No_Wide_Characters is no longer partition-wide
18991 No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
18992 rather than GNAT
18993
189942006-02-13 Douglas Rupp <rupp@adacore.com>
18995
18996 * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
18997
189982006-02-13 Javier Miranda <miranda@adacore.com>
18999
19000 * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
19001 handles default-initialized components to keep separate the management
19002 of this feature but also avoid the unrequired resolution and
19003 expansion of components that do not have partially initialized
19004 values.
19005 (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
19006 (Check_Bounds): Likewise.
19007 (Check_Length): Likewise.
19008
190092006-02-13 Javier Miranda <miranda@adacore.com>
19010 Ed Schonberg <schonberg@adacore.com>
19011
19012 * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
19013 abstract interface type call analyze_and_resolve to expand the type
19014 conversion into the corresponding displacement of the
19015 reference to the base of the object.
19016 (Eval_Attribute, case Width): For systems where IEEE extended precision
19017 is supported, the maximum exponent occupies 4 decimal digits.
19018 (Accessibility_Message): Add '\' in 2-line warning message.
19019 (Resolve_Attribute): Likewise.
19020 (case Attribute_Access): Significantly revise checks
19021 for illegal access-to-subprogram Access attributes to properly enforce
19022 the rules of 3.10.2(32/2).
19023 Diagnose use of current instance with an illegal attribute.
19024
6f7f72f9
EB
19025 * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
19026 to a Node_Id.
19027 (Enclosing_Generic_Unit): New function to return a node's innermost
19028 enclosing generic declaration node.
19029 (Compile_Time_Constraint_Error): Remove '!' in warning messages.
19030 (Type_Access_Level): The accessibility level of anonymous acccess types
19031 associated with discriminants is that of the current instance of the
19032 type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
19033 (Compile_Time_Constraint_Error): Handle case of conditional expression.
19034 (Kill_Current_Values_For_Entity): New function
19035 (Enter_Name): Change formal type to Entity_Id
cc26ad97
AC
19036
190372006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
19038 Ed Schonberg <schonberg@adacore.com>
19039 Gary Dismukes <dismukes@adacore.com>
19040
19041 * sem_ch10.adb (Check_Redundant_Withs): New procedure in
19042 Analyze_Compilation_Unit.
19043 Detect and warn on redundant with clauses detected in a package spec
19044 and/or body when -gnatwr is used.
19045 (Analyze_Context): Analyze config pragmas before other items
19046 (Install_Context_Items): Don't analyze config pragmas here
19047 (Install_Limited_Withed_Unit): Set limited entity of package in
19048 with_clause so that cross-reference information or warning messages on
19049 unused packages can be properly generated
19050 (Is_Visible_Through_Renamings): Return false if the limited_with_clause
19051 has Error_Posted set. Prevent infinite loops in illegal programs.
19052 (Check_Private_Child_Unit): Move test for a nonprivate with clause down
19053 to the point of the error test requiring the current unit to be private.
19054 This ensures that private with clauses are not exempted from the basic
19055 checking for being a descendant of the same library unit parent as a
19056 withed private descendant unit.
19057 (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
19058 handle private with clauses properly, as well as to account for cases
19059 where the withed unit is a public descendant of a private ancestor
19060 (in which case the current unit must be a descendant of the private
19061 ancestor's parent). The spec comments were updated accordingly. Also,
19062 the old error message in this subprogram was replaced with error
19063 messages that mirror the errors tested and reported by
19064 Check_Private_Child_Unit.
19065 Parameter and variable names improved for readability.
19066 (Install_Limited_Context_Clauses): Remove test for a withed unit being
19067 private as the precondition for calling
19068 Check_Private_Limited_Withed_Unit since that subprogram has been
19069 revised to test public units as well as private units.
19070
190712006-02-13 Thomas Quinot <quinot@adacore.com>
19072 Robert Dewar <dewar@adacore.com>
19073 Ed Schonberg <schonberg@adacore.com>
19074 Javier Miranda <miranda@adacore.com>
19075
19076 * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
19077 that Scope_Stack.First = 1.
19078 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
19079 were not always properly handled previously.
19080 (Formal_Entity): Complete rewrite, to handle properly some complex case
19081 with multiple levels of parametrization by formal packages.
19082 (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
19083 to the corresponding derived type declaration for proper semantics.
19084
19085 * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
19086 (Check_Component): Enforce restriction on components of
19087 unchecked_unions: a component in a variant cannot contain tasks or
19088 controlled types.
19089 (Unchecked_Union): Allow nested variants and multiple discriminants, to
19090 conform to AI-216.
19091 Add pragma Ada_2005 (synonym for Ada_05)
19092 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
19093 were not always properly handled previously.
19094 Document that pragma Propagate_Exceptions has no effect
19095 (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
19096 (Set_Convention_From_Pragma): Check that if a convention is
19097 specified for a dispatching operation, then it must be
19098 consistent with the existing convention for the operation.
19099 (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
19100 longer required to specify an vtable-ptr component in the record. For
19101 compatibility reasons we leave the support for the previous definition.
19102 (Analyze_Pragma, case No_Return): Allow multiple arguments
19103
19104 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
19105 non-overrideen inherited operation with a controlling result as
19106 illegal only its implicit declaration comes from the derived type
19107 declaration of its result's type.
19108 (Check_Possible_Deferred_Completion): Relocate the object definition
19109 node of the subtype indication of a deferred constant completion rather
19110 than directly analyzing it. The analysis of the generated subtype will
19111 correctly decorate the GNAT tree.
19112 (Record_Type_Declaration): Check whether this is a declaration for a
19113 limited derived record before analyzing components.
19114 (Analyze_Component_Declaration): Diagnose record types not explicitly
19115 declared limited when a component has a limited type.
19116 (Build_Derived_Record_Type): Code reorganization to check if some of
19117 the inherited subprograms of a tagged type cover interface primitives.
19118 This check was missing in case of a full-type associated with a private
19119 type declaration.
19120 (Constant_Redeclaration): Check that the subtypes of the partial and the
19121 full view of a constrained deferred constant statically match.
19122 (Mentions_T): A reference to the current type in an anonymous access
19123 component declaration must be an entity name.
19124 (Make_Incomplete_Type_Declaration): If type is tagged, set type of
19125 class_wide type to refer to full type, not to the incomplete one.
19126 (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
19127 available. Required to give support to the certified run-time.
19128 (Analyze_Component_Declaration): In case of anonymous access components
19129 perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
19130 (Process_Discriminants): For an access discriminant, use the
19131 discriminant specification as the associated_node_for_itype, to
19132 simplify accessibility checks.
19133
191342006-02-13 Ed Schonberg <schonberg@adacore.com>
19135 Javier Miranda <miranda@adacore.com>
19136
19137 * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
19138 abstract interpretations on an operator, remove interpretations that
19139 yield Address or a type derived from it, if one of the operands is an
19140 integer literal.
19141 (Try_Object_Operation.Try_Primitive_Operation,
19142 Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
19143 location when creating the new reference to a primitive or class-wide
19144 operation as a part of rewriting a subprogram call.
19145 (Try_Primitive_Operations): If context requires a function, collect all
19146 interpretations after the first match, because there may be primitive
19147 operations of the same type with the same profile and different return
19148 types. From code reading.
19149 (Try_Primitive_Operation): Use the node kind to choose the proper
19150 operation when a function and a procedure have the same parameter
19151 profile.
19152 (Complete_Object_Operation): If formal is an access parameter and prefix
19153 is an object, rewrite as an Access reference, to match signature of
19154 primitive operation.
19155 (Find_Equality_Type, Find_One_Interp): Handle properly equality given
19156 by an expanded name with prefix Standard, when the operands are of an
19157 anonymous access type.
19158 (Remove_Abstract_Operations): If the operation is abstract because it is
19159 inherited by a user-defined type derived from Address, remove it as
19160 well from the set of candidate interpretations of an overloaded node.
19161 (Analyze_Membership_Op): Membership test not applicable to cpp-class
19162 types.
19163
191642006-02-13 Bob Duff <duff@adacore.com>
19165
19166 * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
19167 redundant use clauses.
19168 In particular, if the scope of two use clauses overlaps, but one is not
19169 entirely included in the other, we should not warn. This can happen
19170 with nested packages.
19171 (Analyze_Subprogram_Renaming): Protect the compiler against previously
19172 reported errors. The bug was reported when the compiler was built
19173 with assertions enabled.
19174 (Find_Type): If the node is a 'Class reference and the prefix is a
19175 synchronized type without a corresponding record, return the type
19176 itself.
19177
191782006-02-13 Javier Miranda <miranda@adacore.com>
19179
19180 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
19181 if this is the full-declaration associated with a private declaration
19182 that implement interfaces, then the private type declaration must be
19183 limited.
19184 (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
19185 as aliased. The use of the 'access attribute is not available for such
19186 object (for this purpose the object should be explicitly marked as
19187 aliased, but being an anonymous type this is not possible).
19188
191892006-02-13 Ed Schonberg <schonberg@adacore.com>
19190 Robert Dewar <dewar@adacore.com>
19191
19192 * sem_elab.adb (Same_Elaboration_Scope): A package that is a
19193 compilation unit is an elaboration scope.
19194 (Add_Task_Proc): Add '\' in 2-line warning message.
19195 (Activate_All_Desirable): Deal with case of unit with'ed by parent
19196
191972006-02-13 Ed Schonberg <schonberg@adacore.com>
19198 Javier Miranda <miranda@adacore.com>
19199
19200 * sem_type.adb (Write_Overloads): Improve display of candidate
19201 interpretations.
19202 (Add_One_Interp): Do not add to the list of interpretations aliased
19203 entities corresponding with an abstract interface type that is an
19204 immediate ancestor of a tagged type; otherwise we have a dummy
19205 conflict between this entity and the aliased entity.
19206 (Disambiguate): The predefined equality on universal_access is not
19207 usable if there is a user-defined equality with the proper signature,
19208 declared in the same declarative part as the designated type.
19209 (Find_Unique_Type): The universal_access equality operator defined under
19210 AI-230 does not cover pool specific access types.
19211 (Covers): If one of the types is a generic actual subtype, check whether
19212 it matches the partial view of the other type.
19213
192142006-02-13 Thomas Quinot <quinot@adacore.com>
19215
19216 * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
19217 line. This is necessary to allow In_Extended_Main_Unit to provide
19218 correct results for itypes while writing out expanded source.
19219 (Close_File): No need to update the source_index_table here since it's
19220 now done for each line.
19221
192222006-02-13 Ed Schonberg <schonberg@adacore.com>
19223 Robert Dewar <dewar@adacore.com>
19224
19225 * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
19226 preserve the source unit where the itype is declared, and prevent a
19227 backend abort.
19228 (Note_Implicit_Run_Time_Call): New procedure
19229 (Write_Itype): Handle missing cases (E_Class_Wide_Type and
19230 E_Subprogram_Type)
19231
19232 * sprint.ads: Document use of $ for implicit run time routine call
19233
192342006-02-13 Quentin Ochem <ochem@adacore.com>
19235
19236 * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
19237 task name.
19238
192392006-02-13 Bob Duff <duff@adacore.com>
19240
19241 * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
19242 Scan_Unsigned, so we do not scan leading blanks and sign twice.
19243 Integer'Value("- 5") and Integer'Value("-+5") now correctly
19244 raise Constraint_Error.
19245
19246 * s-vallli.adb (Scan_Long_Long_Integer): Call
19247 Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
19248 do not scan leading blanks and sign twice.
19249 Integer'Value("- 5") and Integer'Value("-+5") now correctly
19250 raise Constraint_Error.
19251
19252 * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
19253 Scan_Long_Long_Unsigned): Split out most of the processing from
19254 Scan_Long_Long_Unsigned out into
19255 Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
19256 This prevents scanning leading blanks and sign twice.
19257 Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
19258 See RM-3.5(44).
19259
19260 * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
19261 out most of the processing from Scan_Unsigned out into
19262 Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
19263 This prevents scanning leading blanks and sign twice.
19264
19265 * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
19266 use with Modular'Value attribute.
19267 (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
19268 attribute.
19269
192702006-02-13 Robert Dewar <dewar@adacore.com>
19271
19272 * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
19273
192742006-02-13 Eric Botcazou <ebotcazou@adacore.com>
19275
19276 * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
19277 (PPC VxWorks): Likewise.
19278 (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
19279 (forced_callee): Make non-inlinable and non-pure.
19280 (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
19281
192822006-02-13 Arnaud Charlet <charlet@adacore.com>
19283 Ben Brosgol <brosgol@adacore.com>
19284 Robert Dewar <dewar@adacore.com>
19285
19286 * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
19287 support.
19288 Document that gnatbind -M option is for cross environments only.
19289 Added description of using gnatmem to trace gnat rtl allocs and deallocs
19290 Add note on use of $ to label implicit run time calls
19291 Add documentation for -gnatyI (check mode IN)
19292 Updated chapter on compatibility with HP Ada
19293 VMS-oriented edits.
19294 Ran spell and corrected errors
19295 Add documentation for gnatbind -d and rework documentation of -D
19296 at the same time.
19297 Add subprogram/data elimination section.
19298 Minor editing of annex A.
19299 Add section for gnatcheck.
19300 Add documentation for restriction No_Dispatching_Calls
19301 Add documentation for pragma Ada_2005
19302 Remove mention of obsolete pragma Propagate_Exceptions
19303 Document that pragma Unreferenced can appear after DO in ACCEPT
19304 Clarify Pure_Function for library level units
19305 Mention Max/Min in connection with No_Implicit_Conditionals
19306 No_Wide_Characters restriction is no longer partition-wide
19307 Add a nice example for Universal_Literal_String attribute
19308 Document that pragma No_Return can take multiple arguments
19309
19310 * ug_words: Added entry for gnatcheck
19311
19312 * g-ctrl_c.ads (Install_Handler): Enhance comments
19313
19314 * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
19315
19316 * g-trasym.ads: Add documentation on how to do off line symbolic
19317 traceback computation.
19318
19319 * s-fatgen.adb: Add comments for Unaligned_Valid
19320
19321 * stand.ads: Fix typo in comment
19322
0e692cc0
RO
193232006-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
19324
19325 * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
19326
f44013ae
RS
193272006-02-06 Roger Sayle <roger@eyesopen.com>
19328
19329 * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
19330
3df6582b
JDA
193312006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19332
19333 PR target/25926
19334 * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
19335 implementation that calls __main.
19336
f57a2203
PG
193372006-01-25 Peter O'Gorman <peter@pogma.com>
19338
19339 PR bootstrap/25859
19340 * Makefile.in (GCC_LINK): Remove quotes.
19341 (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
19342 or $(GCC_LINK).
19343
19344 (powerpc-darwin): Pass -shared-libgcc when building shared library.
19345
4bf2d473
JDA
193462006-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19347
19348 PR ada/24533
19349 * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
19350
4580c9a6
JDA
193512005-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19352
19353 * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
19354
e5c681b3
AC
193552005-12-12 Arnaud Charlet <charlet@adacore.com>
19356
19357 * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
19358 needed.
19359
b0b8e176
AC
193602005-12-12 Arnaud Charlet <charlet@adacore.com>
19361
19362 * Make-lang.in: Update dependencies
19363
53fcb103
AC
193642005-12-12 Arnaud Charlet <charlet@adacore.com>
19365
19366 * Make-lang.in: Add rule for ada/exp_sel.o
19367
25b06cda
AC
193682005-12-12 Arnaud Charlet <charlet@adacore.com>
19369
19370 * Makefile.in (mingw section): Remove EH_MECHANISM setting.
19371
aedc2c2b
AC
193722005-12-09 Arnaud Charlet <charlet@adacore.com>
19373
19374 * gnatvsn.ads (Library_Version): Bump to version 4.2
19375 (ASIS_Version_Number): Bumped.
19376
193772005-12-09 Doug Rupp <rupp@adacore.com>
19378
19379 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
19380 Ada bind file prefix on VMS from b$ to b__.
19381 (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
19382 __init.
19383
19384 * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
19385 Targparm.OpenVMS_On_Target.
19386 (Object_Suffix): Initialize with target object suffix.
19387 (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
19388
19389 * butil.adb: Change some Hostparm.OpenVMS checks to
19390 Targparm.OpenVMS_On_Target.
19391
19392 * clean.adb: Change some Hostparm.OpenVMS checks to
19393 Targparm.OpenVMS_On_Target.
19394 (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
19395 ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
19396 Ada bind file prefix on VMS from b$ to b__.
19397
19398 * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
19399 --GCC so that Get_Target_Parameters can find system.ads.
19400 (Gnatlink): Call Get_Target_Parameters in mainline.
19401 Initialize standard packages for Targparm.
19402 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
19403 (Process_Args): Also Check for object files with target object
19404 extension.
19405 (Make_Binder_File_Names): Create with target object extension.
19406 (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
19407 to b__.
19408
19409 * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
19410 Targparm.OpenVMS_On_Target.
19411 ({declaration},Build_Library,Check_Library): Change Ada bind file
19412 prefix on VMS from b$ to b__.
19413
19414 * osint-b.adb: Change some Hostparm.OpenVMS checks to
19415 Targparm.OpenVMS_On_Target.
19416 (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
19417 b__.
19418
19419 * targext.c: New file.
19420
19421 * Makefile.in: add support for vxworks653 builds
19422 (../../vxaddr2line): gnatlink with targext.o.
19423 (TOOLS_LIBS): Move targext.o to precede libgnat.
19424 (init.o, initialize.o): Minor clean up in dependencies.
19425 (GNATLINK_OBJS): Add targparm.o, snames.o
19426 Add rules fo building targext.o and linking it explicitly with all
19427 tools.
19428 Also add targext.o to gnatlib.
19429
19430 * Make-lang.in: Add rules for building targext.o and linking it in
19431 with gnat1 and gnatbind.
19432 Add entry for exp_sel.o.
19433
19434 * osint.adb Change some Hostparm.OpenVMS checks to
19435 Targparm.OpenVMS_On_Target.
19436 (Object_File_Name): Use target object suffix.
19437
19438 * osint.ads (Object_Suffix): Remove, no longer used.
19439 (Target_Object_Suffix): Initialize with target object suffix.
19440
19441 * rident.ads: Add special exception to license.
19442
19443 * targparm.adb (Get_Target_Parameters): Set the value of
19444 Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
19445 value.
19446 (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
19447
19448 * targparm.ads: Add special exception to license.
19449
19450 * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
19451 function.
19452 (Copy_File): Make sure from file is closed if error on to file
19453 (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
19454
19455 * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
19456 (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
19457
19458 * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
19459 target object suffix.
19460
194612005-12-09 Jose Ruiz <ruiz@adacore.com>
19462 Quentin Ochem <ochem@adacore.com>
19463 Florian Villoing <villoing@adacore.com>
19464
6f7f72f9 19465 * a-taster.ads, a-taster.adb: New files.
aedc2c2b
AC
19466
19467 * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
19468 link to the version that does nothing. This way the task termination
19469 routine is not executed twice for the environment task when finishing
19470 because of an unhandled exception.
19471
19472 * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
19473 handler because of an unhandled exception.
19474
19475 * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
19476 System.Tasking.Utilities instead of that in System.Tasking.Stages.
19477
19478 * s-finimp.adb (initialization code): Modify the soft link for the
19479 finalization of the global list instead of Adafinal.
19480
19481 * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
19482 non-tasking version of the soft link for task termination. We do
19483 nothing since if we are using the non-tasking version it
19484 means that the task termination functionality is not used.
19485 (Null_Finalize_Global_List): Add this null version for the procedure
19486 in charge of finalizing the global list for controlled objects.
19487 (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
19488 instead for handling run-time termination in a more flexible way.
19489 (Adafinal_NT): This new procedure will take care of finalizing the
19490 global list for controlled objects if needed, but no tasking
19491 finalization.
19492
19493 * s-tarest.adb (Task_Lock): Do not try to lock again the
19494 Global_Task_Lock if we already own it. Otherwise, we get blocked in
19495 some run-time operations.
19496 (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
19497 until all nested locks have been released.
19498 (Task_Wrapper): Call the fall-back task termination handler. It
19499 applies to all tasks but the environment task.
19500 (Finalize_Global_Tasks): Add the call for the task termination
19501 procedure for the environment task.
19502 (Task_Wrapper): suppress warnings around declaration of
19503 Secondary_Stack_Address.
19504
19505 * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
19506 moved to the Common_ATCB record.
19507 (Task_Lock): Global_Task_Lock_Nesting has been moved to the
19508 Common_ATCB record.
19509 (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
19510 Common_ATCB record.
19511
19512 * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
19513 Fall_Back_Handler, and Specific_Handler.
19514
19515 * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
19516 defined in Ada.Task_Termination, to avoid circular dependencies.
19517 (Termination_Handler): Redefine this type here, alredy defined in
19518 Ada.Task_Termination, for avoiding circular dependencies.
19519 (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
19520 for storing task termination handlers. In addition,
19521 Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
19522 Common_ATCB because it is used by both the regular and the restricted
19523 run times.
19524 (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
19525 Common_ATCB because it is used by both the regular and the restricted
19526 run times.
19527 (Common_ATCB): Added a dynamic task analyzer field.
19528
19529 * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
19530 potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
19531 (Task_Wrapper): Call the task termination handler. It applies to all
19532 tasks but the environment task.
19533 (Finalize_Global_Tasks): Call the task termination procedure for the
19534 environment task. The call to Finalize_Global_List is now performed
19535 using the soft links mechanism.
19536 (Task_Wrapper): added dynamic stack analysis.
19537
19538 * s-tasuti.adb (Abort_Tasks): The code in charge of checking
19539 potentially blocking operations has been moved from
19540 System.Tasking.Stages.Abort_Tasks to this procedure. There can be
19541 direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
19542 through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
19543 this run-time check.
19544
19545 * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
19546 of task termination procedure.
19547 (Init_Tasking_Soft_Links): Install the task-safe version of the soft
19548 link for the task termination procedure.
19549
19550 * bindusg.adb: (Bindusg): Added documentation for -u option.
19551
19552 * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
19553 (Get_Main_C): Add handling of dynamic stack analysis.
19554 (Gen_Output_File_C): Add external functions for dynamic stack analysis.
19555
19556 * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
19557 (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
19558 (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
19559
19560 * opt.ads: Added flags used by dynamic stack measurement.
19561 (Max_Line_Length): Remove (not used anymore)
19562
19563 * s-io.ads, s-io.adb (Standard_Error): new subprogram
19564 (Standart_Output): new subprogram
19565 (Set_Output): new subprogram
19566 (Put): now uses the value of Current_Out to know if the output has to be
19567 send to stderr or stdout.
19568
19569 * s-stausa.ads: Complete implementation.
19570
19571 * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
19572
19573 * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
19574 list of Ada 05 files.
19575 (GNAT Library Units): Add AltiVec files.
19576
19577 * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
19578 g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
19579 g-alvety.ads, g-alvevi.ads: New files providing altivec API.
19580
195812005-12-09 Nicolas Setton <setton@adacore.com>
19582
19583 * adaint.c (__gnat_locate_regular_file): Return immediately if
19584 file_name is empty.
19585
195862005-12-09 Javier Miranda <miranda@adacore.com>
19587 Hristian Kirtchev <kirtchev@adacore.com>
19588
19589 * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
19590 to the specification because the frontend generates code that uses this
19591 subprogram.
19592 (Set_Interface_Table): Add missing assertion.
19593 Update documentation describing the run-time structure.
19594 (Displace): New subprogram that displaces the pointer to the object
19595 to reference one of its secondary dispatch tables.
19596 (IW_Membership): Modified to use the new table of interfaces.
19597 (Inherit_TSD): Modified to use the new table of interfaces.
19598 (Register_Interface_Tag): Use the additional formal to fill the
19599 contents of the new table of interfaces.
19600 (Set_Interface_Table): New subprogram that stores in the TSD the
19601 pointer to the table of interfaces.
19602 (Set_Offset_To_Top): Use the additional formal to save copy of
19603 the offset value in the table of interfaces.
19604 Update structure of GNAT Primary and Secondary dispatch table diagram.
19605 Add comment section on GNAT dispatch table prologue.
19606 (Offset_To_Signature): Update the constant value of the Signature field.
19607 (Dispatch_Table): Update comment on hidden fields in the prologue.
19608 (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
19609 Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
19610 the type of formal parameter T to Tag, introduce additional assertions.
19611 (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
19612 conversion.
19613 (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
19614
19615 * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
19616 in all the calls to Expand_Interface_Thunk. Instead of referencing the
19617 record component containing the tag of the secondary dispatch table we
19618 have to use the Offset_To_Top run-time function to get this information;
19619 otherwise if the pointer to the base of the object has been displace
19620 we get a wrong value if we use the 'position attribute.
19621
19622 * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
19623 all the calls to Expand_Interface_Thunk.
19624 (Make_Secondary_DT): Secondary dispatch tables do not have a table of
19625 interfaces; hence the call to Set_Interface_Table was clearly wrong.
19626 (Collect_All_Interfaces): Modify the internal subprogram Collect to
19627 ensure that the interfaces implemented by the ancestors are placed
19628 at the header of the generated list.
19629 (Expand_Interface_Conversion): Handle the case in which the displacement
19630 associated with the interface conversion is not statically known. In
19631 this case we generate a call to the new run-time subprogram Displace.
19632 (Make_DT): Generate and fill the new table of interfaces.
19633 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
19634 Get_Tagged_Kind and Set_Tagged_Kind.
19635 (Tagged_Kind): New function that determines the tagged kind of a type
19636 with respect to limitedness and concurrency and returns a reference to
19637 RE_Tagged_Kind.
19638 (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
19639 Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
19640 primary dispatch table for a type.
19641 (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
19642 secondary dispatch table respectively of a tagged type.
19643
19644 * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
19645 (Expand_Interface_Conversion): New subprogram to indicate if the
19646 displacement of the type conversion is statically known.
19647 (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
19648
19649 * rtsfind.ads (RE_Offset_To_Top): New entity
19650 (RTU_Id): Add Ada_Task_Termination to the list so that it is made
19651 accessible to users.
19652 (Re_Displace): New entity
19653 (RE_Interface_Data): New entity
19654 (RE_Set_Interface_Data): New_Entity
19655 (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
19656 Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
19657 RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
19658 RE_TK_Tagged, RE_TK_Task.
19659
19660 * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
19661 Init_Secondary_Tags_Internal to allow its use with interface types and
19662 also to generate the code for the new additional actual required
19663 by Set_Offset_To_Top.
19664 (Build_Init_Statements): In case of components associated with abstract
19665 interface types there is no need to generate a call to its IP.
19666 (Freeze_Record_Type): Generate Select Specific Data tables only for
19667 concurrent types.
19668 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
19669 the bodies and specifications of the predefined primitive operations
19670 dealing with dispatching selects and abort, 'Callable, 'Terminated only
19671 for concurrent types.
19672
6f7f72f9 19673 * exp_sel.ads, exp_sel.adb: New files.
aedc2c2b
AC
19674
19675 * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
19676 Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
19677 properly protected objects and attach handler in the case of the
19678 restricted profile.
19679 Move embeded package Select_Expansion_Utilities into a separate external
19680 package.
19681 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
19682 Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
19683 (Build_K, Build_S_Assignment): New subprograms, part of the select
19684 expansion utilities.
19685 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
19686 Expand_N_Timed_Entry_Call): Optimize expansion of select statements
19687 where the trigger is a dispatching procedure of a limited tagged type.
19688
196892005-12-09 Olivier Hainque <hainque@adacore.com>
19690
19691 * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
19692 pointer initialization values. Make a SAVE_EXPR instead. Add comments
19693 about the use and expansion of SAVE_EXPRs in the various possible
19694 renaming handling cases.
19695 (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
19696 abusing DECL_FCONTEXT.
19697
196982005-12-09 Matthew Heaney <heaney@adacore.com>
19699
19700 * a-convec.adb (Merge): Added assertions to check whether vector params
19701 are sorted.
19702
19703 * a-coinve.adb (Merge): Added assertions to check whether vector params
19704 are sorted.
19705
19706 * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
19707 draft.
19708 (Cursor'Read): raises PE
19709
19710 * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
19711 to its default value.
19712
19713 * a-cihama.adb: Manually check whether cursor's key and elem are
19714 non-null
19715
19716 * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
19717 (Merge): Assert that target and source lists are in order
19718 (Swap): Declare non-const temporaries, to pass to Splice
19719
19720 * a-cdlili.ads: (Splice): Changed param name and param mode
19721
19722 * a-cdlili.adb: (Splice): Changed param name and param mode
19723 (Merge): Assert that target and source lists are in order
19724 (Swap): Declare non-const temporaries, to pass to Splice
19725
19726 * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
19727 (Write): declare Stream param as not null
19728
19729 * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
19730 an exception message.
19731
197322005-12-09 Thomas Quinot <quinot@adacore.com>
19733 Robert Dewar <dewar@adacore.com>
19734
19735 * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
19736 which is the absolute maximum length we can support.
19737
19738 * frontend.adb: For the processing of configuration pragma files,
19739 remove references to Opt.Max_Line_Length, which is not checked anymore.
19740
19741 * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
19742 length.
19743
19744 * scn.adb, scng.adb:
19745 Always check line length against the absolute supported maximum,
19746 Hostparm.Max_Line_Length.
19747
19748 * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
19749 value for the maximum line length is Max_Line_Length (not
19750 Column_Number'Last).
19751 Minor error msg update
19752 (Set_Style_Check_Options): New interface returning error msg
19753 Minor code reorganization (processing for 'M' was out of alpha order)
19754
19755 * switch-c.adb: New interface for Set_Style_Check_Options
19756
19757 * stylesw.ads (Set_Style_Check_Options): New interface returning error
19758 msg.
19759
197602005-12-09 Javier Miranda <miranda@adacore.com>
19761
19762 * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
19763 with IP subprogram were only supported if there were limited types.
19764
19765 * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
19766 records with IP subprogram were only supported if there were limited
19767 types.
19768
197692005-12-09 Olivier Hainque <hainque@adacore.com>
19770 Eric Botcazou <ebotcazou@adacore.com>
19771
19772 * trans.c (tree_transform, emit_check): Adjust calls to
19773 build_call_raise, passing the now expected GNAT_NODE argument.
19774
19775 * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
19776 source line information than what the current global locus indicates
19777 when appropriate.
19778
19779 * utils2.c (build_simple_component_ref): Return 0 if the offset of the
19780 field has overflowed.
19781 (build_call_raise): Add a GNAT_NODE argument to convey better source
19782 line information than what the current global locus indicates when
19783 appropriate.
19784 (build_component_ref): Adjust call to build_call_raise.
19785
197862005-12-09 Pascal Obry <obry@adacore.com>
19787
19788 * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
19789 the iterator is quitting iteration on parent directory.
19790
197912005-12-09 Javier Miranda <miranda@adacore.com>
19792
19793 * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
19794 and the assignment to a class-wide object, before the assignment we
19795 generate a run-time check to ensure that the tag of the Target is
19796 covered by the tag of the source.
19797
197982005-12-09 Robert Dewar <dewar@adacore.com>
19799
19800 * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
19801 parameter in call to Image_Wide_Character.
19802
19803 * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
19804 parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
19805 (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
19806 annoying FFFE/FFFF inconsistency.
19807
198082005-12-09 Robert Dewar <dewar@adacore.com>
19809 Javier Miranda <miranda@adacore.com>
19810 Ed Schonberg <schonberg@adacore.com>
19811
19812 * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
19813 of type conversion.
19814 (Find_Interface): New subprogram that given a tagged type and one of its
19815 component associated with the secondary table of an abstract interface
19816 type, return the entity associated with such abstract interface type.
19817 (Make_Subtype_From_Expr): If type has unknown discriminants, always use
19818 base type to create anonymous subtype, because entity may be a locally
19819 declared subtype or generic actual.
19820 (Find_Interface): New subprogram that given a tagged type and one of its
19821 component associated with the secondary table of an abstract interface
19822 type, return the entity associated with such abstract interface type.
19823
19824 * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
19825 conversion cannot be handled at compile time. In this case we pass this
19826 information to the expander to generate the appropriate code.
19827
198282005-12-09 Robert Dewar <dewar@adacore.com>
19829 Ed Schonberg <schonberg@adacore.com>
19830 Gary Dismukes <dismukes@adacore.com>
19831 Javier Miranda <miranda@adacore.com>
19832 Hristian Kirtchev <kirtchev@adacore.com>
19833
19834 * einfo.adb (Itype_Printed): New flag
19835 (Is_Limited_Type): Derived types do not inherit limitedness from
19836 interface progenitors.
19837 (Is_Return_By_Reference_Type): Predicate does not apply to limited
19838 interfaces.
19839
19840 * einfo.ads (Itype_Printed): New flag
19841 Move Is_Wrapper_Package to proper section
19842 Add missing Inline for Is_Volatile
19843
19844 * output.ads, output.adb (Write_Erase_Char): New procedure
19845 (Save/Restore_Output_Buffer): New procedures
19846 (Save/Restore_Output_Buffer): New procedures
19847
19848 * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
19849 Add missing support for anonymous access type
19850 (Write_Id): Insert calls to Write_Itype
19851 (Write_Itype): New procedure to output itypes
19852
19853 * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
19854 use of "limited" in declaration.
19855
19856 * sinfo.ads, sinfo.adb:
19857 Formal derived types can carry an explicit "limited" indication.
19858
19859 * sem_ch3.adb: Add with and use of Targparm.
19860 (Create_Component): If Frontend_Layout_On_Target is True and the
19861 copied component does not have a known static Esize, then reset
19862 the size and positional fields of the new component.
19863 (Analyze_Component_Declaration): A limited component is
19864 legal within a protected type that implements an interface.
19865 (Collect_Interfaces): Do not add to the list the interfaces that
19866 are implemented by the ancestors.
19867 (Derived_Type_Declaration): If the parent of the full-view is an
19868 interface perform a transformation of the tree to ensure that it has
19869 the same parent than the partial-view. This simplifies the job of the
19870 expander in order to generate the correct object layout, and it is
19871 needed because the list of interfaces of the full-view can be given in
19872 any order.
19873 (Process_Full_View): The parent of the full-view does not need to be
19874 a descendant of the parent of the partial view if both parents are
19875 interfaces.
19876 (Analyze_Private_Extension_Declaration): If declaration has an explicit
19877 "limited" the parent must be a limited type.
19878 (Build_Derived_Record_Type): A derived type that is explicitly limited
19879 must have limited ancestor and progenitors.
19880 (Build_Derived_Type): Ditto.
19881 (Process_Full_View): Verify that explicit uses of "limited" in partial
19882 and full declarations are consistent.
19883 (Find_Ancestor_Interface): Remove function.
19884 (Collect_Implemented_Interfaces): New procedure used to gather all
19885 implemented interfaces by a type.
19886 (Contain_Interface): New function used to check whether an interface is
19887 present in a list.
19888 (Find_Hidden_Interface): New function used to determine whether two
19889 lists of interfaces constitute a set equality. If not, the first
19890 differing interface is returned.
19891 (Process_Full_View): Improve the check for the "no hidden interface"
19892 rule as defined by AI-396.
19893
198942005-12-09 Robert Dewar <dewar@adacore.com>
19895
19896 * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
19897 types, not on record subtypes.
19898 (Freeze_Entity): Code cleanup. Add barrier to the loop
19899 that generates the references for primitive operations. This allows to
19900 remove an unnecessary exception handler.
19901 Code reformatting and comment clean ups.
19902
199032005-12-09 Vincent Celier <celier@adacore.com>
19904
19905 * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
19906 If GNAT CHECK is called with a project file, but with no
19907 source on the command line, call gnatcheck with all the compilable
19908 sources of the project.
19909 Take into account the new command Check, for gnatcheck. Treat as for
19910 other ASIS tools: take into account project, specific package Check and
19911 Compiler switches.
19912 For ASIS tools, add the switches in package Compiler for
19913 the invocation of the compiler.
19914
19915 * prj-attr.adb: Add package Check and its attributes
19916
19917 * vms_conv.ads (Command_Type): New command Check, for gnatcheck
19918
19919 * vms_conv.adb (Initialize): Change Params of command Check to
19920 unlimited files.
19921 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
19922 Add data for new command Check
19923
19924 * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
19925 ELIM.
19926 Add qualifiers for Check command options
19927 (Command_Type): New command Check
19928
199292005-12-09 Thomas Quinot <quinot@adacore.com>
19930
19931 * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
19932 command line switch overruns the output buffer.
19933
199342005-12-09 Robert Dewar <dewar@adacore.com>
19935
19936 * sem_prag.adb: Processing for new pragma Complete_Representation
19937 (Analyze_Pragma, case Debug): Implement two argument form.
19938
19939 * par-prag.adb: Entry for new pragma Complete_Representation
19940 (Prag, case Debug): Recognize two argument form of pragma Debug
19941 New interface for Set_Style_Check_Options.
19942
19943 * sem_ch13.adb: Implement new pragma Complete_Representation.
19944
19945 * snames.adb, snames.ads, snames.h: Entry for new pragma
19946 Complete_Representation.
19947
199482005-12-09 Gary Dismukes <dismukes@adacore.com>
19949
19950 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
19951 available user-specified stream attributes on limited parameters to
19952 also test the type directly rather than only its underlying type (for
19953 Ada 95) and, in the case of Ada 2005, to check that the user-specified
19954 attributes are visible at the point of the subprogram declaration.
19955 For Ada 2005, the error message is modified to indicate that the
19956 type's stream attributes must be visible (again, only for -gnat05).
19957
199582005-12-09 Ed Schonberg <schonberg@adacore.com>
19959
19960 * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
19961 anonymous access types.
19962
19963 * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
19964 matching of anonymous access types and anonymous access to subprogram
19965 types. 'R'M 4.9.1 (2/2).
19966
199672005-12-09 Ed Schonberg <schonberg@adacore.com>
19968
19969 * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
19970 rule prematurely when operands are universal, remaining ambiguities
19971 will be removed during resolution.
19972 Code cleanup.
19973
19974 * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
19975 that are Ada 2005 functions.
19976 (Has_Abstract_Interpretation): Subsidiary to
19977 Remove_Conversions, to remove ambiguities caused by abstract operations
19978 on numeric types when operands are universal.
19979
199802005-12-09 Robert Dewar <dewar@adacore.com>
19981
19982 * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
19983 for case where spec is categorized.
19984
199852005-12-09 Javier Miranda <miranda@adacore.com>
19986
19987 * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
19988 types use the corresponding record type. This was not needed before
19989 the implementation of Ada 2005 synchronized types because
19990 concurrent types were never tagged types in Ada 95.
19991
199922005-12-09 Ed Schonberg <schonberg@adacore.com>
19993
19994 * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
19995 first subtype of the type of the expression to verify that it is a
19996 legal Time type.
19997
199982005-12-09 Robert Dewar <dewar@adacore.com>
19999
20000 * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
20001 decoded names.
20002
200032005-12-09 Quentin Ochem <ochem@adacore.com>
20004 Robert Dewar <dewar@adacore.com>
20005 Ed Falis <falis@adacore.com>
20006 Florian Villoing <villoing@adacore.com>
20007 Thomas Quinot <quinot@adacore.com>
20008 Arnaud Charlet <charlet@adacore.com>
20009
20010 * gnat_ugn.texi: Created section "Stack Related Tools"
20011 Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
20012 "Stack Related Tools"
20013 Added subsection "Static Stack Usage Analysis"
20014 Added subsection "Dynamic Stack Usage Analysis"
20015 Include documentation of itypes in sprint listing (-gnatG)
20016 Documented gnatbind -D switch (default sec stack size for fixed sec
20017 stacks).
20018 Added Interrupt_State and Persistent_BSS to list of configuration
20019 pragmas.
20020 Add missing doc for maximum value of nnn in -gnatyMnnn
20021
20022 * gnat_rm.texi: Document the AltiVec binding.
20023 Add documentation for pragma Complete_Representation
20024 Shortened an overly long line (> 79 chars)
20025 Clarify documentation of unchecked conversion in implementation
20026 defined cases.
20027 Document two argument form of pragma Debug
20028
20029 * types.ads (Column_Number): Update documentation.
20030
20031 * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
20032 library level Finalize_Storage_Only objects (these are not attached to
20033 any finalization list).
20034
20035 * system-mingw.ads: (Underlying_Priorities): Update comment.
20036
200372005-12-09 Robert Dewar <dewar@adacore.com>
20038
20039 * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
6f7f72f9 20040 i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
aedc2c2b
AC
20041 inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
20042 i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
20043 krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
20044 lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
20045 interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
20046 s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
20047 reformatting.
20048
200492005-12-09 Robert Dewar <dewar@adacore.com>
20050
20051 * s-vaflop-vms-alpha.adb: (Ne_F): New function
20052 (Ne_G): New function
20053
20054 * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
20055 for tag assignment.
20056 (Rewrite_Comparison): Handle case where operation is not a comparison
20057 and ignore, and also handle type conversion case.
20058
200592005-12-09 Thomas Quinot <quinot@adacore.com>
20060
20061 * exp_aggr.ads: Fix typo in comment.
20062 ???-mark Convert_Aggr_In_Assignment as needing documentation.
20063
200642005-12-09 Gary Dismukes <dismukes@adacore.com>
20065
20066 * layout.adb: Replace various uses of byte by storage unit throughout.
20067 (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
20068 static size, convert to storage units before returning, to conform to
20069 spec.
20070
200712005-12-09 Matthew Gingell <gingell@adacore.com>
20072
20073 * g-exctra.ads: Fix typo in comment.
20074
200752005-12-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20076
20077 * utils.c: Minor reformatting.
20078
200792005-12-09 Robert Dewar <dewar@adacore.com>
20080
20081 * g-soccon.ads:
20082 Further comment fixes to make the status of the default file clear
20083
20084 * s-bitops.adb: Clarify comment for Bits_Array
20085
01ddebf2 200862005-12-07 Rafael �vila de Esp�ndola <rafael.espindola@gmail.com>
bd97af06
RÁE
20087
20088 * Make-lang.in (ada.install-normal): Remove.
20089
01ddebf2 200902005-12-07 Rafael �vila de Esp�ndola <rafael.espindola@gmail.com>
2f4d2d18
AM
20091
20092 * Make-lang.in: Remove all dependencies on s-gtype.
20093
53917868
RG
200942005-12-05 Richard Guenther <rguenther@suse.de>
20095
20096 * utils.c (convert): Use fold_convert where appropriate.
20097
40077270
PB
200982005-12-05 Paolo Bonzini <bonzini@gnu.org>
20099
6f7f72f9 20100 * Makefile.in (gnatlib): Fix regex, using \. instead of . when
40077270
PB
20101 a period is meant.
20102
a380cd0a
RG
201032005-12-02 Richard Guenther <rguenther@suse.de>
20104
20105 * trans.c (gnat_gimplify_expr): Use buildN instead of build.
20106
87f2a9f5
RS
201072005-12-01 Roger Sayle <roger@eyesopen.com>
20108
20109 * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
20110 nodes.
20111
9e94c78f 201122005-11-23 Laurent Guerby <laurent@guerby.net>
f8d15f14 20113
6f7f72f9 20114 * mlib-prj.adb (Build_Library): Initialize Delete.
f8d15f14 20115
9e94c78f 201162005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
04b5d587
JS
20117
20118 * socket.c: Add extern int h_errno for rtems since networking header
20119 files are not available at this point in a tool bootstrap. Newlib
20120 only has basic C library header files.
20121
452b5b1e
RG
201222005-11-19 Richard Guenther <rguenther@suse.de>
20123 Roger Sayle <roger@eyesopen.com>
20124
20125 PR ada/23717
20126 * misc.c (internal_error_function): Don't use vsprintf to format
20127 the error message text, instead use pp_format_text and the new
20128 pretty printer APIs. This allows handling of %qs, %w, etc.
20129
9e94c78f 201302005-11-18 Laurent Guerby <laurent@guerby.net>
e0709888 20131
6f7f72f9
EB
20132 PR ada/24857
20133 * Makefile.in: Use s-auxdec-empty for RTEMS.
e0709888 20134
115a82d3
RK
201352005-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20136
20137 PR ada/22333
20138 * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
20139 a temporary if taking the address of something that is neither
20140 reference, declaration, or constant, since the gimplifier
20141 can't handle that case.
20142
9e94c78f 201432005-11-17 Laurent Guerby <laurent@guerby.net>
f92af607
LG
20144
20145 PR ada/24857
20146 * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
6f7f72f9 20147
0678ec6b
RG
201482005-11-16 Richard Guenther <rguenther@suse.de>
20149
20150 * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
20151
9e94c78f 201522005-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
b381d30b 20153
6f7f72f9
EB
20154 PR ada/24855
20155 * raise-gcc.c: Add missing stdarg.h include.
b381d30b 20156
1367ca38
RG
201572005-11-16 Richard Guenther <rguenther@suse.de>
20158
20159 * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
20160 (ada/misc.o): Likewise.
20161
5de923eb
AC
201622005-11-14 Thomas Quinot <quinot@adacore.com>
20163
20164 * g-soccon.ads: Minor reformatting. Update comments.
20165
20166 * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
20167 gain visibility on the declaration of struct timeval.
20168
20169 * g-soccon-freebsd.ads,
20170 g-soccon-darwin.ads,
20171 g-soccon-tru64.ads,
20172 g-soccon-aix.ads,
20173 g-soccon-irix.ads,
20174 g-soccon-hpux.ads,
20175 g-soccon-solaris.ads,
20176 g-soccon-vms.ads,
20177 g-soccon-mingw.ads,
20178 g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
20179
20180 * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
20181 g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
20182 g-soccon-linux-x86.ads: New files.
20183
20184 * g-socthi-mingw.adb:
20185 (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
20186
20187 * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
20188 (time_t, suseconds_t): New types constructed to match the tv_sec
20189 and tv_usec fields of C struct timeval.
20190 (Timeval): Construct structure in terms of the new types.
20191 (Host_Errno): New function (imported from socket.c), returns last hosts
20192 database error.
20193
20194 * g-socthi-vxworks.adb: Add error handling circuitry.
20195
20196 * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
20197 components of struct timeval.
20198 (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
20199 (Check_Selector): In error conditions, clear internal socket sets to
20200 avoid a memory leak.
20201 (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
20202 Send_Timeout, Receive_Timeout.
20203
20204 * g-socthi.ads (time_t, suseconds_t): New types constructed to match
20205 the tv_sec and tv_usec fields of C struct timeval.
20206 (Timeval): Construct structure in terms of the new types.
20207 (Host_Errno): New function (imported from socket.c), returns last hosts
20208 database error.
20209
20210 * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
20211 hosts database last error code.
20212
20213 * gen-soccon.c: Complete value expansion should not be performed on
20214 TARGET, as it has the form of a math expression, and some components
20215 may be platform-defined macros.
20216 For VxWorks, generate the OK and ERROR values.
20217 New constants giving the sizes of the components of C struct timeval.
20218
202192005-11-14 Robert Dewar <dewar@adacore.com>
20220 Ed Schonberg <schonberg@adacore.com>
20221
20222 PR ada/18434
5de923eb
AC
20223 * types.ads: Include All_Checks in Suppress_Array
20224
20225 * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
20226 not(a=b), since we no longer do this rewriting, and hence it is not
20227 needed.
20228 (Elaboration_Checks_Suppressed): Add special casing to
20229 deal with different cases of static and dynamic elaboration checks (all
20230 checks does not count in the first case, but does in the second).
20231 (Expr_Known_Valid): Do not assume that the result of any arbitrary
20232 function call is valid, since this is not the case.
20233 (Ensure_Valid): Do not apply validity check to a real literal
20234 in a universal or fixed context
20235
20236 * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
20237 elementary types using the operator in standard. It is cleaner not to
20238 modify the programmers intent, especially in the case of floating-point.
20239 (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
20240 it did not matter because we always rewrote a/=b to not(a=b).
20241 (Expand_Allocator_Expression): For an allocator expression whose nominal
20242 subtype is an unconstrained packed type, convert the expression to its
20243 actual constrained subtype.
20244 Implement warning for <= or >= where < or > not possible
20245 Fix to Vax_Float tests (too early in many routines, causing premature
20246 Vax_Float expansions.
20247
20248 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
20249 to be used with packages and generic packages as well as with
20250 subprograms.
20251 (Suppress): Set All_Checks, but not Elaboration_Check, for case
20252 of pragma Suppress (All_Checks)
20253 (Analyze_Pragma, case Warnings): Implement first argument allowed to be
20254 a string literal for precise control over warnings.
20255 Avoid raise of pragma in case of unrecognized pragma and just return
20256 instead.
20257
20258 * sem_prag.ads: Minor reformatting
20259
20260 * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
20261 with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
20262 Switch. Do not handle any exception.
20263 Include -gnatwx as part of -gnatg (warn on redundant parens)
20264 Allow optional = after -gnatm
20265 (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
20266 longer sets Elaboration_Checks.
20267 Code to set warning mode moved to Sem_Warn
20268 so that it can be shared by pragma processing.
20269
20270 * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
20271 statement.
20272
20273 * s-taprop-solaris.adb:
20274 Change some <= to =, to avoid new warning
20275
20276 * a-exexda.adb, prj-proc.adb:
20277 Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
20278 Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
20279
202802005-11-14 Robert Dewar <dewar@adacore.com>
20281
20282 * exp_vfpt.adb: Handle /= case
20283 (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
20284 so that we do not get duplicate scaling for fixed point conversions.
20285
20286 * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
20287
202882005-11-14 Matthew Gingell <gingell@adacore.com>
20289
20290 * system-lynxos-ppc.ads, system-lynxos-x86.ads:
20291 Increase default priority on Lynx from 15 to 17, and meet the Ada
20292 requirement that Default_Priority be ((Priority'First +
20293 Priority'Last) / 2) by increasing the range of Interrupt_Priority.
20294
202952005-11-14 Vincent Celier <celier@adacore.com>
20296
20297 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
20298 mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
20299 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
20300 mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
20301 mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
20302 mlib-tgt-lynxos.adb (DLL_Prefix): New function
20303
203042005-11-14 Doug Rupp <rupp@adacore.com>
20305
20306 * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
20307 private part.
20308
203092005-11-14 Arnaud Charlet <charlet@adacore.com>
20310
20311 * s-traces-default.adb, s-trafor-default.ads,
20312 s-tratas-default.adb: Fix compilation errors.
20313
203142005-11-14 Jose Ruiz <ruiz@adacore.com>
20315
20316 * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
20317 raising the exception so the memory used is freed.
20318
203192005-11-14 Arnaud Charlet <charlet@adacore.com>
20320
20321 * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
20322 (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
20323 (convert_address): Update comments and list of platforms using this.
20324
20325 * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
20326 no longer used.
20327
203282005-11-14 Pascal Obry <obry@adacore.com>
20329 Vincent Celier <celier@adacore.com>
20330
20331 * gnatdll.adb (Parse_Command_Line): Remove redundant use of
20332 GNAT.Command_Line.
20333
20334 * memroot.adb: Remove redundant with/use clause on
20335 System.Storage_Elements.
20336
203372005-11-14 Arnaud Charlet <charlet@adacore.com>
20338
20339 * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
20340 (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
20341 related code to a-exexpr.adb
20342 (Save_Occurrence_And_Private): Move GCC EH related code to
20343 a-exexpr-gcc.adb
20344 (Raise_Current_Excep): Add new variable Id with pragma
6f7f72f9 20345 volatile, to ensure that the variable lives on stack.
5de923eb
AC
20346
20347 * a-exexpr-gcc.adb, raise-gcc.c: New file.
20348
20349 * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
20350 from a-except.adb.
20351 Move GCC EH related code to a-exexpr-gcc.adb
20352
20353 * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
20354 64-bit Solaris
20355 Split the Linux version of g-soccon into separate variants for 32 and 64
20356 bit platforms.
20357 (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
20358 vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
20359 install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
20360 of host variable $(RANLIB_FLAGS).
20361 (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
20362 Code clean up: remove unused/obsolete targets.
20363 (EH_MECHANISM): New variable introduced to differenciate between the
20364 two EH mechanisms statically.
20365 (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
20366 (LIBGNAT_OBJS): Add raise-gcc.o
20367 (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
20368 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
20369 supports VxWorks 6 RTPs.
20370 (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
20371 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
20372
20373 * raise.c: Move all GCC EH-related routines to raise-gcc.c
20374
203752005-11-14 Jose Ruiz <ruiz@adacore.com>
20376
20377 * s-tassta.adb (Create_Task): Move the code in charge of resetting the
20378 deferral level, when abort is not allowed, to a later stage (the
20379 Task_Wrapper).
20380 (Task_Wrapper): If Abort is not allowed, reset the deferral level since
20381 it will not get changed by the generated code. It was previously done
20382 in Create_Task.
20383
203842005-11-14 Thomas Quinot <quinot@adacore.com>
20385 Olivier Hainque <hainque@adacore.com>
20386 Eric Botcazou <ebotcazou@adacore.com>
20387
20388 * decl.c:
20389 Factor common code to build a storage type for an unconstrained object
20390 from a fat or thin pointer type and a constrained object type.
20391 (annotate_value): Handle BIT_AND_EXPR.
20392 (annotate_rep): Don't restrict the back annotation of inherited
20393 components to the type_annotate_only case.
20394 (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
20395 we are not defining the type.
20396 <E_Record_Type>: Likewise.
20397 (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
20398 to get advantage of the new maybe_stabilize_reference interface, to
20399 ensure that what we reference is indeed stabilized instead of relying
20400 on assumptions on what the stabilizer does.
20401 (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
20402 type imported through a limited_with clause, use its non-limited view.
20403 (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
20404 differentiation.
20405 (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
20406 of #if sections + explicit comparisons of convention identifiers.
20407 (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
20408 before early-returning for certain types when code generation is
20409 disabled.
20410 (gnat_to_gnu_entity) <object>: Adjust comment attached to the
20411 nullification of gnu_expr we do for objects with address clause and
20412 that we are not defining.
20413 (elaborate_expression_1): Do not create constants when creating
20414 variables needed by the debug info: the dwarf2 writer considers that
20415 CONST_DECLs is used only to represent enumeration constants, and emits
20416 nothing for them.
20417 (gnat_to_gnu_entity) <object>: When turning a non-definition of an
20418 object with an address clause into an indirect reference, drop the
20419 initializing expression.
20420 Include "expr.h".
20421 (STACK_CHECK_BUILTIN): Delete.
20422 (STACK_CHECK_PROBE_INTERVAL): Likewise.
20423 (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
20424 (STACK_CHECK_MAX_VAR_SIZE): Likewise.
20425 (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
20426 corresponding to the renamed object as ignored for debugging purposes.
20427
20428 * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
20429 related): For a prefix that is a dereference of a fat or thin pointer,
20430 if there is an actual subtype provided by the front-end, use that
20431 subtype to build an actual type with bounds template.
20432 (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
20433 is provided by the front-end, use that subtype to compute the size of
20434 the deallocated object.
20435 (gnat_to_gnu): When adding a statement into an elaboration procedure,
20436 check for a potential violation of a No_Elaboration_Code restriction.
20437 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
20438 with extra arguments to control whether to recurse through non-values
20439 and to let the caller know if the stabilization has succeeded.
20440 (gnat_stabilize_reference): Now a simple wrapper around
20441 maybe_stabilize, for common uses without restriction on lvalues and
20442 without need to check for the success indication.
20443 (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
20444 pass false instead of 0 as the FORCE argument which is a bool.
20445 (Identifier_to_gnu): Remove checks ensuring that an renamed object
20446 attached to a renaming pointer has been properly stabilized, as no such
20447 object is attached otherwise.
20448 (call_to_gnu): Invoke create_var_decl to create the temporary when the
20449 function uses the "target pointer" return mechanism.
20450 Reinstate conversion of the actual to the type of the formal
20451 parameter before any other specific treatment based on the passing
20452 mechanism. This turns out to be necessary in order for PLACEHOLDER
20453 substitution to work properly when the latter type is unconstrained.
20454
20455 * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
20456 common pattern.
20457 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
20458 with extra arguments to control whether to recurse through non-values
20459 and to let the caller know if the stabilization has succeeded.
20460
20461 * utils2.c (gnat_build_constructor): Only sort the fields for possible
20462 static output of record constructor if all the components are constant.
20463 (gnat_build_constructor): For a record type, sort the list of field
20464 initializers in increasing bit position order.
20465 Factor common code to build a storage type for an unconstrained object
20466 from a fat or thin pointer type and a constrained object type.
20467 (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
20468 types variants, and process special cases of VIEW_CONVERT expressions
20469 as their NOP_EXPR counterpart to ensure we get to the
20470 CORRESPONDING_VARs associated with CONST_DECls.
20471 (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
20472 on the right-hand side.
20473
20474 * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
20475 a common pattern.
20476 (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
20477 are converting back to its original type.
20478 (convert) <JM input>: Fallthrough regular conversion code instead of
20479 extracting the object if converting to a type variant.
20480 (create_var_decl): When a variable has an initializer requiring code
20481 generation and we are at the top level, check for a potential violation
20482 of a No_Elaboration_Code restriction.
20483 (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
20484 SIZE and SIZE_UNIT which we need for later back-annotations.
20485 * utils.c: (convert) <STRING_CST>: Remove obsolete code.
20486 <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
20487 is an unchecked union.
20488 (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
20489 (convert) <VIEW_CONVERT_EXPR>: When the types have the same
20490 main variant, just replace the VIEW_CONVERT_EXPR.
20491 <UNION_TYPE>: Revert 2005-03-02 change.
20492
20493 * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
20494
20495 * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
20496
204972005-11-14 Matthew Heaney <heaney@adacore.com>
20498
20499 * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
20500 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
20501 a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
20502 a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
20503 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
20504 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
20505 Compiles against the spec for ordered maps described in sections
20506 A.18.6 of the most recent (August 2005) AI-302 draft.
20507
205082005-11-14 Olivier Hainque <hainque@adacore.com>
20509
20510 * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
20511 to ensure bias adjustments take place when need be and to prevent
20512 occurrences of intermediate overflows.
20513
205142005-11-14 Matthew Gingell <gingell@adacore.com>
20515 Olivier Hainque <hainque@adacore.com>
20516
20517 * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
20518 ia64 HP-UX.
20519
20520 * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
20521 tracebacks on ia64 HP-UX and provide explanatory comment.
20522 Enable backtraces on ia64 GNU/Linux.
20523 (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
20524 base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
20525
205262005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
20527 Javier Miranda <miranda@adacore.com>
20528
20529 * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
20530 exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
20531 exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
20532 einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
20533
20534 * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
20535 properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
20536 assertions).
20537
20538 * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
20539 subprogram that generates the external name associated with a
20540 secondary dispatch table.
20541 (Get_Secondary_DT_External_Name): New subprogram that generates the
20542 external name associated with a secondary dispatch table.
20543
205442005-11-14 Emmanuel Briot <briot@adacore.com>
20545
20546 * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
20547 line in the ALI file to include both an instantiation reference, and a
20548 returned value.
20549
205502005-11-14 Vincent Celier <celier@adacore.com>
20551
20552 * clean.adb (Check_Project): Look for Ada code in extending project,
20553 even if Ada is not specified as a language.
20554 Use new function DLL_Prefix for DLL_Name
20555 (Clean_Interface_Copy_Directory): New procedure
20556 (Clean_Library_Directory): New procedure
20557 (Clean_Directory): Remove procedure, no longer used
20558 (Clean_Project): Do not delete any file in an externally built project
20559
20560 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
20561 directory of an extending project, even when there are no Ada source
20562 present.
20563 (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
20564 (Set_Ada_Paths.Add.Recursive_Add): Ditto
20565
20566 * mlib-prj.adb (Check_Library): For all library projects, get the
20567 library file timestamp.
20568 (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
20569 (Build_Library): Use new function DLL_Prefix for the DLL_Name
20570 (Clean): Remove procedure, no longer used
20571 (Ultimate_Extension_Of): New function
20572 (Build_Library): When cleaning the library directory, only remove an
20573 existing library file and any ALI file of a source of the project.
20574 When cleaning the interface copy directory, remove any source that
20575 could be a source of the project.
20576
20577 * prj.ads, prj.adb (Project_Empty): Add values of new components
20578 Library_TS and All_Imported_Projects.
20579 (Project_Empty): Add values for new components of Project_Data:
20580 Library_ALI_Dir and Display_Library_ALI_Dir
20581
20582 * prj-attr.adb: New project level attribute name Library_ALI_Dir
20583
20584 * prj-nmsc.adb (Check_Library_Attributes): Take into account new
20585 attribute Library_ALI_Dir.
20586 (Check_Library_Attributes): The library directory cannot be the same as
20587 any source directory of the project tree.
20588 (Check_Stand_Alone_Library): The interface copy directory cannot be
20589 the same as any source directory of the project tree.
20590
20591 * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
20592 all temporary files.
20593
205942005-11-14 Robert Dewar <dewar@adacore.com>
20595 Ed Schonberg <schonberg@adacore.com>
20596
20597 * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
20598 (Check_Elab_Call): A call within a protected body is never an
20599 elaboration call, and does not require checking.
20600 (Same_Elaboration_Scope): Take into account protected types for both
20601 entities.
20602 (Activate_Elaborate_All_Desirable): New procedure
20603
20604 * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
20605 desirable
20606
20607 * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
20608 (Elab_Error_Msg): Use -da to include internal unit links, not -de.
20609
20610 * lib-writ.ads, lib-writ.adb:
20611 Implement new AD/ED for Elaborate_All/Elaborate desirable
20612 Use new Elaborate_All_Desirable flag in N_With_Clause node
20613
20614 * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
20615 N_Free_Statement nodes.
20616 Define new class N_Subprogram_Instantiation
20617 Add Elaborate_Desirable flag to N_With_Clause node
20618 Add N_Delay_Statement (covering two kinds of delay)
20619
20620 * debug.adb: Introduce d.f flag for compiler
20621 Add -da switch for binder
20622
206232005-11-14 Ed Schonberg <schonberg@adacore.com>
20624 Cyrille Comar <comar@adacore.com>
20625
20626 * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
20627 for task component, in the case of a limited aggregate. The enclosed
20628 object declaration will create it earlier. Otherwise, in the case of a
20629 nested aggregate, the object may appear in the wrong scope.
20630 (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
20631 (Gen_Assign): If the component being assigned is an array type and the
20632 expression is itself an aggregate, wrap the assignment in a block to
20633 force finalization actions on the temporary created for each row of the
20634 enclosing object.
20635 (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
20636 structures are initialized after all discriminants are set so that
20637 they can be accessed even when their offset is dynamic.
20638
206392005-11-14 Robert Dewar <dewar@adacore.com>
20640 Hristian Kirtchev <kirtchev@adacore.com>
20641
20642 * sem_attr.adb: Implement Machine_Rounding attribute
20643 (Analyze_Access_Attribute): The access attribute may appear within an
20644 aggregate that has been expanded into a loop.
20645 (Check_Task_Prefix): Add semantic check for attribute 'Callable and
20646 'Terminated whenever the prefix is of a task interface class-wide type.
20647 (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
20648 the prefix is of a task interface class-wide type.
20649
20650 * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
20651 to avoid warnings.
20652
20653 * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
20654 Remove pragma Inline for [Unaligned_]Valid.
20655 Add comments that Valid routines do not work for Vax_Float
20656
20657 * exp_attr.adb: Implement Machine_Rounding attribute
20658
20659 * snames.h: Add entry for Machine_Rounding attribute
20660
206612005-11-14 Javier Miranda <miranda@adacore.com>
20662 Robert Dewar <dewar@adacore.com>
20663 Hristian Kirtchev <kirtchev@adacore.com>
20664
20665 * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
20666 and related): For a prefix that is an explicit dereference of an
20667 access to unconstrained packed array type, annotate the dereference
20668 with an actual subtype so GIGI can make a correct size computation.
20669 (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
20670 'Unrestricted_Access, if the designated type is an interface we
20671 add a type conversion to force the displacement of the pointer
20672 to the secondary dispatch table.
20673 Use Universal_Real instead of Long_Long_Float when we need a high
20674 precision float type for the generated code (prevents gratuitous
20675 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
20676 (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
20677 'Terminated for task interface class-wide objects. Generate a call to
20678 the predefined dispatching routine used to retrieve the _task_id from
20679 a task corresponding record.
20680 (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
20681
20682 * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
20683 (Check_Dispatching_Operation): Protect the frontend againts
20684 previously detected errors.
20685
20686 * Makefile.rtl: Add new instantiations of system.fat_gen
20687
20688 * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
20689 Change name of instantiated package for better consistency
20690 with newly added system.fat_gen instantiations.
20691
20692 * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
20693 s-fvagfl.ads: New files.
20694
206952005-11-14 Cyrille Comar <comar@adacore.com>
20696 Thomas Quinot <quinot@adacore.com>
20697
20698 * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
20699 assignment of a value of a tagged type that has been rewritten to a
20700 block statement, it is known by construction that no checks are
20701 necessary for the statements within the block: analyze it with checks
20702 suppressed.
20703 (Expand_N_If_Statement): When killing a dead then-branch in an
20704 if-statement that has elsif_parts, recompute the Current_Value node
20705 for any entity whose value is known from the condition of the first
20706 elsif_part.
20707 (Expand_N_Return_Statement): When returning a mutable record, convert
20708 the return value into its actual subtype in order to help the backend
20709 to return the actual size instead of the maximum. This is another
20710 aftermath of not returning mutable records on the sec-stack anymore.
20711
20712 * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
20713 handling of error msg for suspicious reverse range iteration.
20714 (Check_Possible_Current_Value_Condition): Move declaration from body to
20715 spec, to allow this subprogram to be called from exp_ch5.
20716
207172005-11-14 Thomas Quinot <quinot@adacore.com>
20718
20719 * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
20720 generate a set of nested array aggregates instead of a single flat
20721 aggregate for multi-dimensional arrays.
20722
207232005-11-14 Pascal Obry <obry@adacore.com>
20724
20725 * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
20726 by spawnve is a process handle, no need to convert. Add a parameter
20727 close to control wether the process handle must be closed.
20728 (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
20729 a process handle, not need to convert.
20730 (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
20731
20732 * g-expect.adb: (Kill): Document the new close parameter.
20733 (Close): Do not release the process handle in the kill there as
20734 waitpid() is using it.
20735 (Send_Signal): Release the process handle.
20736
207372005-11-14 Robert Dewar <dewar@adacore.com>
20738
20739 * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
20740 need a high precision float type for the generated code (prevents
20741 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
20742 used).
20743
20744 * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
20745 need a high precision float type for the generated code (prevents
20746 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
20747 used).
20748 (Expand_Width_Attribute): In configurable run-time, the attribute is not
20749 allowed on non-static enumeration subtypes. Force a load error to emit
20750 the correct diagnostic.
20751
207522005-11-14 Thomas Quinot <quinot@adacore.com>
20753 Robert Dewar <dewar@adacore.com>
20754 Ed Schonberg <schonberg@adacore.com>
20755
20756 * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
20757 subtype to compute the size of the designated object at run-time,
20758 create such a subtype and store it in the Actual_Designated_Subtype
20759 attribute of the N_Free_Statement.
20760 Generate itype for classwide designated object in both cases of
20761 user-specified storage pool: specific and class-wide, not only in the
20762 specific case.
20763 Raise CE when trying to set a not null access type object to null.
20764 (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
20765 an explicit loop, because freeze nodes make its position variable.
20766
20767 * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
20768 null object.
20769
207702005-11-14 Javier Miranda <miranda@adacore.com>
20771
20772 * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
20773 Build_Stream_Procedure): Add the null-excluding attribute to the first
20774 formal.
20775 This has no semantic meaning under Ada95 mode but it is a
20776 requirement under Ada05 mode.
20777
20778 * par-ch3.adb (P_Access_Definition): Addition of warning message if
20779 the null exclusion is used under Ada95 mode
20780 (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
20781 (P_Access_Definition): Remove assertion that forbids the use of
20782 the null-exclusion feature in Ada95.
20783
207842005-11-14 Robert Dewar <dewar@adacore.com>
20785
20786 * impunit.adb: Exclude container helper units not intended for use by
20787 users.
20788
207892005-11-14 Ed Schonberg <schonberg@adacore.com>
20790
20791 * freeze.adb (Freeze_Entity): For an access formal that is an access
20792 to subprogram, freeze the anonymous subprogram type at the same time,
20793 to prevent later freezing in the wrong scope, such as the enclosing
20794 subprogram body.
20795 (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
20796 subprogram whenever available.
20797
207982005-11-14 Arnaud Charlet <charlet@adacore.com>
20799
20800 PR ada/23732
20801 * gnatvsn.ads (Library_Version): Bump to 4.1
20802
208032005-11-14 Robert Dewar <dewar@adacore.com>
20804
20805 * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
20806 Storage_Offset to avoid wrap around causing invalid results.
20807
208082005-11-14 Pascal Obry <obry@adacore.com>
20809
20810 * gnatbind.adb (Is_Cross_Compiler): New function returning True for
20811 cross-compiler.
20812 (Scan_Bind_Arg): Fail with an error message if -M option is used
20813 on a native compiler.
20814
208152005-11-14 Robert Dewar <dewar@adacore.com>
20816 Vincent Celier <celier@adacore.com>
20817
20818 * gprep.adb: Implement -C switch to scan comments
20819
20820 * scng.adb: Scan comment symbol separately if Replace_In_Comments set
20821
20822 * scans.ads: Comment updates (including new use of Tok_Comment in
20823 preprocessing)
20824
20825 * opt.ads: Add documentation for flags that are used by gprmake,
20826 currently and in the next version of gprmake.
20827 (Verbosity_Level): New variable
20828 Add Replace_In_Comments switch
20829
20830 * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
20831 and -vm.
20832 Add /REPLACE_IN_COMMENTS for gnatprep -C switch
20833
208342005-11-14 Arnaud Charlet <charlet@adacore.com>
20835
20836 * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
20837 message, friendlier.
20838
208392005-11-14 Robert Dewar <dewar@adacore.com>
20840
20841 * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
20842
208432005-11-14 Doug Rupp <rupp@adacore.com>
20844
20845 * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
20846
208472005-11-14 Robert Dewar <dewar@adacore.com>
20848
20849 * interfac.ads: Change declarations of IEEE float types so that we no
20850 longer need a separate version of this package for VMS.
20851
208522005-11-14 Ed Schonberg <schonberg@adacore.com>
20853
20854 * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
20855 internal entity created for the declaration of a child subprogram body
20856 with no spec as coming from source, to generate proper cross-reference
20857 information.
20858
208592005-11-14 Vincent Celier <celier@adacore.com>
20860
20861 * make.adb (Compile_Sources): Change verbose message to minimum
20862 verbosity level High for "is in an Ada library", "is a read-only
20863 library" and "is an internal library",
20864 (Create_Binder_Mapping_File): Path name of ALI file for library project
20865 must include the library directory, not the object directory.
20866 (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
20867 for new switches -vl, -vm and -vh.
20868 (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
20869 (Check): Use minimum verbosity Medium for some Verbose_Msg calls
20870 (Compile_Sources): Do not attempt to compile if an ALI file is missing
20871 in a project that is externally built.
20872 (Compute_All_Imported_Projects): New procedure
20873 (Gnatmake): Check if importing libraries should be regenerated because
20874 at least an imported library is more recent.
20875 (Initialize): For each project compute the list of the projects it
20876 imports directly or indirectly.
20877 (Add_Library_Search_Dir): New procedure, used in place of
20878 Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
20879 put in the search paths.
20880 (Add_Source_Search_Dir): New procedure, used in place of
20881 Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
20882 put in the search paths.
20883 (Mark_Directory): Resolve the absolute path the directory before marking
20884 it.
20885
20886 * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
20887 call to new procedure Bad_Switch. Call Scan_Pos with new parameter
20888 Switch. Do not handle any exception.
20889 (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
20890 so that the switch is recognized as valid.
20891 (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
20892
208932005-11-14 GNAT Script <nobody@adacore.com>
20894
20895 * Make-lang.in: Makefile automatically updated
20896
208972005-11-14 Pascal Obry <obry@adacore.com>
20898
20899 * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
20900 used.
20901 (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
20902 In both cases the last argument was dropped.
20903
209042005-11-14 Eric Botcazou <ebotcazou@adacore.com>
20905
20906 * namet.h: (Column_Numbe): New type.
20907 (Get_Column_Number): Define to sinput__get_column_number.
20908 (Instantiation): Define to sinput__instantiation.
20909 (Get_Column_Number): Declare.
20910 (Instantiation): Likewise.
20911
209122005-11-14 Robert Dewar <dewar@adacore.com>
20913
20914 * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
20915 syntax, which could cause compiler hangs.
20916
209172005-11-14 Vincent Celier <celier@adacore.com>
20918
20919 * prj-ext.adb: Take into account new environment variable
20920 GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
20921 are defined.
20922 (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
20923 normalize its path name, making it absolute and resolving symbolic
20924 links, and replace the original if resolved path is different.
20925
209262005-11-14 Vincent Celier <celier@adacore.com>
20927
20928 * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
20929 into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
20930
209312005-11-14 Emmanuel Briot <briot@adacore.com>
20932
20933 * prj-pp.adb (Print): Do not output the with statement if the
20934 associated name is empty, which happens for virtual extending projects.
20935 (Print): Preserve the "extends all" attribute when printing the project.
20936
20937 * prj-tree.ads (String_Value_Of): Add comment about returned value for
20938 a virtual extending project.
20939
209402005-11-14 Ed Schonberg <schonberg@adacore.com>
20941
20942 * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
20943 rhs of an assignment even if the type is unconstrained, when the
20944 context is non-expanding.
20945 In an inlined body, if the context type is private,
20946 resolve with its full view, which must be a composite type.
20947
209482005-11-14 Robert Dewar <dewar@adacore.com>
20949 Ed Schonberg <schonberg@adacore.com>
20950
20951 * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
20952 Do not give obsolescent warning on with of subprogram (since we
20953 diagnose calls)
20954 (Analyze_With_Clause): Add test for obsolescent package
20955 (Install_Context_Clauses): If the unit is the body of a child unit, do
20956 not install twice the private declarations of the parents, to prevent
20957 circular lists of Use_Clauses in a parent.
20958 (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
20959 compiling body of child unit.
20960 Use new class N_Subprogram_Instantiation
20961 (Expand_With_Clause): If this is a private with_clause for a child unit,
20962 appearing in the context of a package declaration, then the implicit
20963 with_clauses generated for parent units are private as well.
20964 (License_Check): Do not generate message if with'ed unit is internal
20965
209662005-11-14 Gary Dismukes <dismukes@adacore.com>
20967 Ed Schonberg <schonberg@adacore.com>
20968 Thomas Quinot <quinot@adacore.com>
20969
20970 * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
20971 names are internal, because they will not have a corresponding partner
20972 in the actual package.
20973 (Analyze_Formal_Package): Move the setting of the formal package spec's
20974 Generic_Parent field so that it occurs prior to analyzing the package,
20975 to allow proper operation of Install_Parent_Private_Declarations.
20976 (Analyze_Package_Instantiation): Set the instantiated package entity's
20977 Package_Instantiation field.
20978 (Get_Package_Instantiation_Node): Move declaration to package spec.
20979 Retrieve the N_Package_Instantiation node when the Package_Instantiation
20980 field is present.
20981 (Check_Generic_Child_Unit): Within an inlined call, the only possible
20982 instantiation is Unchecked_Conversion, for which no parents are needed.
20983 (Inline_Instance_Body): Deinstall and record the use_clauses for all
20984 parent scopes of a scope being removed prior to inlining an instance
20985 body.
20986 (Analyze_Package_Instantiation): Do not perform front-end inlining when
20987 the current context is itself an instance within a non-instance child
20988 unit, to prevent scope stack errors.
20989 (Save_References): If the node is an aggregate that is an actual in a
20990 call, rewrite as a qualified expression to preserve some type
20991 information, to resolve possible ambiguities in the instance.
20992 (Instance_Parent_Unit): New global variable to record the ultimate
20993 parent unit associated with a generic child unit instance (associated
20994 with the existing Parent_Unit_Visible flag).
20995 (type Instance_Env): New component Instance_Parent_Unit for stacking
20996 parents recorded in the global Instance_Parent_Unit.
20997 (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
20998 stack.
20999 (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
21000 it's not a top-level unit, and only do this if Instance_Parent_Unit is
21001 not already set. Replace test of Is_Child_Unit with test of parent's
21002 scope against package Standard. Add comments and a ??? comment.
21003 (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
21004 on a child instance parent to test that the parent equals
21005 Instance_Parent rather than simply checking that the unit is not a
21006 child unit.
21007 (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
21008 (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
21009 a formal interface are ancestors of the corresponding actual.
21010 (Validate_Formal_Interface_Type): Additional legality checks.
21011 (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
21012 interface types with ancestors.
21013 (Analyze_Formal_Package): If formal is a renaming, use renamed entity
21014 to diagnose attempts to use generic within its own declaration.
21015
210162005-11-14 Ed Schonberg <schonberg@adacore.com>
21017 Javier Miranda <miranda@adacore.com>
21018
21019 * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
21020 discriminant.
21021 (Build_Private_Derived_Type): The entity of the created full view of the
21022 derived type does not come from source. If after installing the private
21023 declarations of the parent scope the parent is still private, use its
21024 full view to construct the full declaration of the derived type.
21025 (Build_Derived_Record_Type): Relax the condition that controls the
21026 execution of the check that verifies that the partial view and
21027 the full view agree in the set of implemented interfaces. In
21028 addition, this test now only takes into account the progenitors.
21029 (Derive_Interface_Subprograms): No need to derive subprograms
21030 of ancestors that are interfaces.
21031 (Derive_Subprograms): Remove formal No_Predefined_Prims and the
21032 associated code.
21033 Change name Is_Package to Is_Package_Or_Generic_Package
21034 (Complete_Subprograms_Derivation): Handle the case in which the full
21035 view is a transitive derivation of the ancestor of the partial view.
21036 (Process_Full_View): Rename local subprogram Find_Interface_In_
21037 Descendant to Find_Ancestor_Interface to leave the code more clear.
21038 Remove wrong code that avoids the generation of an error message
21039 when the immediate ancestor of the partial view is an interface.
21040 In addition some minor reorganization of the code has been done to
21041 leave it more clear.
21042 (Analyze_Type_Declaration): If type has previous incomplete tagged
21043 partial view, inherit properly its primitive operations.
21044 (Collect_Interfaces): Make public, for analysis of formal
21045 interfaces.
21046 (Analyze_Interface_Declaration): New procedure for use for regular and
21047 formal interface declarations.
21048 (Build_Derived_Record_Type): Add support for private types to the code
21049 that checks if a tagged type implements abstract interfaces.
21050 (Check_Aliased_Component_Type): The test applies in the spec of an
21051 instance as well.
21052 (Access_Type_Declaration): Clean up declaration of malformed type
21053 declared as an access to its own classwide type, to prevent cascaded
21054 crash.
21055 (Collect_Interfaces): For private extensions and for derived task types
21056 and derived protected types, the parent may be an interface that must
21057 be included in the interface list.
21058 (Access_Definition): If the designated type is an interface that may
21059 contain tasks, create Master_Id for it before analyzing the expression
21060 of the declaration, which may be an allocator.
21061 (Record_Type_Declaration): Set properly the interface kind, for use
21062 in allocators, the creation of master id's for task interfaces, etc.
21063
210642005-11-14 Javier Miranda <miranda@adacore.com>
21065 Ed Schonberg <schonberg@adacore.com>
21066
21067 * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
21068 omitted in case of stream attribute subprograms.
21069 (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
21070 appear immediately after a subprogram body, when there is no previous
21071 subprogram declaration.
21072 Change name Is_Package to Is_Package_Or_Generic_Package
21073 (Process_Formals): A non null qualifier on a non null named access
21074 type is not an error, and is a warning only if Redundant_Constructs
21075 are flagged.
21076
210772005-11-14 Gary Dismukes <dismukes@adacore.com>
21078 Ed Schonberg <schonberg@adacore.com>
21079
21080 * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
21081 nested within Analyze_Package_Specification to install the private
21082 declarations and use clauses within each of the parent units of a
21083 package instance of a generic child package.
21084 (Analyze_Package_Specification): When entering a private part of a
21085 package associated with a generic instance or formal package, the
21086 private declarations of the parent must be installed (by calling new
21087 procedure Install_Parent_Private_Declarations).
21088 Change name Is_Package to Is_Package_Or_Generic_Package
21089 (Preserve_Full_Attributes): For a synchronized type, the corresponding
21090 record is absent in a generic context, which does not indicate a
21091 compiler error.
21092
210932005-11-14 Ed Schonberg <schonberg@adacore.com>
21094
21095 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
21096 not try to rewrite a renamed stream attribute, because the operations
21097 on the type may not have been generated.
21098 Handle properly a renaming_as_body generated for a stream operation
21099 whose default is abstract because the object type itself is abstract.
21100 (Find_Type): If the type is incomplete and appears as the prefix of a
21101 'Class reference, it is tagged, and its list of primitive operations
21102 must be initialized properly.
21103 (Chain_Use_Clauses): When chaining the use clauses that appear in the
21104 private declaration of a parent unit, prior to compiling the private
21105 part of a child unit, find on the scope stack the proper parent entity
21106 on which to link the use clause.
21107 (Note_Redundant_Use): Emit a warning when a redundant use clause is
21108 detected.
21109 (Analyze_Object_Renaming): An attribute reference is not a legal object
21110 if it is not a function call.
21111
211122005-11-14 Robert Dewar <dewar@adacore.com>
21113 Ed Schonberg <schonberg@adacore.com>
21114
21115 * sem_eval.adb: Implement d.f flag
21116 (Subtype_Statically_Match): A generic actual type has unknown
21117 discriminants when the corresponding actual has a similar partial view.
21118 If the routine is called to validate the signature of an inherited
21119 operation in a child instance, the generic actual matches the full view,
21120
211212005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
21122 Ed Schonberg <schonberg@adacore.com>
21123 Robert Dewar <dewar@adacore.com>
21124 Thomas Quinot <quinot@adacore.com>
21125
21126 * sem_res.adb (Resolve_Call): Provide a better error message whenever
21127 a procedure call is used as a select statement trigger and is not an
21128 entry renaming or a primitive of a limited interface.
21129 (Valid_Conversion): If the operand has a single interpretation do not
21130 remove address operations.
21131 (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
21132 statement to inhibit warning.
21133 (Resolve_Unary_Op): Do not produce a warning when
21134 processing an expression of the form -(A mod B)
21135 Use Universal_Real instead of Long_Long_Float when we need a high
21136 precision float type for the generated code (prevents gratuitous
21137 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
21138 (Resolve_Concatenation_Arg): Improve error message when argument is an
21139 ambiguous call to a function that returns an array.
21140 (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
21141 there is an implicit operator in the given scope if we are within an
21142 instance: legality check has been performed on the generic.
21143 (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
21144 after resolving operand, to avoid false warnings on overloaded calls.
21145
211462005-11-14 Ed Schonberg <schonberg@adacore.com>
21147 Javier Miranda <miranda@adacore.com>
21148
21149 PR ada/15604
5de923eb
AC
21150 * sem_type.adb (Covers): In an inlined body, a composite type matches
21151 a private type whose full view is a composite type.
21152 (Interface_Present_In_Ancestor): Protect the frontend against
21153 previously detected errors to ensure that its compilation
21154 with assertions enabled gives the same output that its
21155 compilation without assertions.
21156 (Interface_Present_In_Ancestor): Add support for private types.
21157 Change name In_Actual to In_Generic_Actual (clean up)
21158 (Disambiguate): New predicate In_Actual, to recognize expressions that
21159 appear in the renaming declaration generated for generic actuals, and
21160 which must be resolved in the outer context.
21161
211622005-11-14 Robert Dewar <dewar@adacore.com>
21163 Thomas Quinot <quinot@adacore.com>
21164 Hristian Kirtchev <kirtchev@adacore.com>
21165 Ed Schonberg <schonberg@adacore.com>
21166
21167 * sem_util.ads, sem_util.adb: Change name Is_Package to
21168 Is_Package_Or_Generic_Package.
21169 (Check_Obsolescent): New procedure.
21170 (Set_Is_Public): Remove obsolete junk test.
21171 (Set_Public_Status): Do not set Is_Public on an object whose declaration
21172 occurs within a handled_sequence_of_statemets.
21173 (Is_Controlling_Limited_Procedure): Factor some of the logic, account
21174 for a parameterless procedure.
21175 (Enter_Name): Recognize renaming declarations created for private
21176 component of a protected type within protected operations, so that
21177 the source name of the component can be used in the debugger.
21178
211792005-11-14 Ed Schonberg <schonberg@adacore.com>
21180 Robert Dewar <dewar@adacore.com>
21181
21182 * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
21183 of a generic subprogram are not visible outside the body.
21184 (Set_Warning_Switch): New procedure (code to set warning mode moved
21185 here from Switch.C so that it can be shared by pragma processing.
21186 (Check_References): Special case warning for non-modified non-imported
21187 volatile objects.
21188 * par-prag.adb: Modify processing of pragma Warnings to accomodate new
21189 form with a string literal argument
21190
211912005-11-14 Javier Miranda <miranda@adacore.com>
21192
21193 * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
21194 anonymous access.
21195 (Write): Addition of "not null" to the anonymous access.
21196 (Read): Addition of "not null" to the anonymous access.
21197 (Write): Addition of "not null" to the anonymous access.
21198
21199 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
21200 I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
21201 I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
21202 (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
21203 W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
21204 "not null" to the anonymous access.
21205
212062005-11-14 Robert Dewar <dewar@adacore.com>
21207
21208 * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
21209 offset values
21210
212112005-11-14 Vincent Celier <celier@adacore.com>
21212
21213 * switch.adb (Bad_Switch): New procedure
21214 (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
21215 message when in error.
21216
21217 * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
21218 Too_Many_Output_Files): Remove declarations, no longer used.
21219 (Scan_Nat): New parameter Switch
21220 (Scan_Pos): Ditto
21221 (Bad_Switch): New procedure
21222
21223 * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
21224 with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
21225 new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
21226 to Osint.Fail. Do not handle any exception.
21227
212282005-11-14 Vincent Celier <celier@adacore.com>
21229
21230 * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
21231 designates a non existent directory.
21232
212332005-11-14 Robert Dewar <dewar@adacore.com>
21234
21235 * xgnatugn.adb: Replace invalid membership test by 'Valid
21236
212372005-11-14 Vincent Celier <celier@adacore.com>
21238
21239 * makegpr.adb (Gprmake): Do not attempt to build the global archive if
21240 there is no object directory.
21241
212422005-11-14 Robert Dewar <dewar@adacore.com>
21243
21244 * usage.adb: Minor adjustment to output format, use nn instead of nnn
21245 (so that -gnateInnn does not run into next column)
21246
212472005-11-14 Ed Falis <falis@adacore.com>
21248
21249 * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
21250 "constrained"
21251
212522005-11-14 Cyrille Comar <comar@adacore.com>
21253
21254 * s-chepoo.ads: Add comments on Dereference.
21255 Remove unnecessary inherited abstract primitives.
21256 Cosmetic cleanup.
21257
212582005-11-14 Robert Dewar <dewar@adacore.com>
21259
21260 * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
21261 node parameter, not needed, since it is available as Declaration_Node.
21262
212632005-11-14 Geert Bosch <bosch@adacore.com>
21264
21265 * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
21266 grammatically correct.
21267
212682005-11-14 Vincent Celier <celier@adacore.com>
21269
21270 * s-fileio.ads: Correct spelling error in comment
21271
212722005-11-14 Cyrille Comar <comar@adacore.com>
21273 Robert Dewar <dewar@adacore.com>
21274 Vincent Celier <celier@adacore.com>
21275 Ben Brosgol <brosgol@adacore.com>
21276 Jose Ruiz <ruiz@adacore.com>
21277 Pascal Obry <obry@adacore.com>
21278
21279 * gnat_ugn.texi:
21280 Document that -fstack-check is needed for strict compliance with the
21281 Ada 95 Reference Manual.
21282 Correct reference to VAX systems to meet HP guidelines
21283 Add documentation for new gnatmake switches -vl, -vm and -vh
21284 Replace DEC Ada by HP Ada
21285 Replace DIGITAL by HP
21286 Remove empty section on tools in compatibility section
21287 Clarify the Windows convention semantics.
21288 Document the Win32 calling convention.
21289 The Stdcall, Win32 and DLL convention are synonyms.
21290 Add a note in -gnatR description about zero size record components
21291 Note on new >= and <= warnings for -gnatwc
21292 Document that equal sign after -gnatm is optional.
21293 Note that strip is working fine on DLL built with a Library
21294 Project. The restriction apply only to DLL built with gnatdll.
21295 Update section about the way to debug a DLL.
21296 Update information about the DLL convention.
21297 Document -C switch for gnatprep
21298 Document new attribute Library_ALI_Dir
21299 Update elaboration doc to include implicit Elaborate pragmas now
21300 generated for subprogram instantiations.
21301 Document limitation on executable names that include spaces for --GCC,
21302 --GNATBIND, and --GNATLINK switches.
21303 Document that -w causes -gnatws to be added at start of gcc switches
21304
21305 * gnat_rm.texi: Document that -mieee is needed for generating infinite
21306 and NaN values in case of overflow on machines that are not fully
21307 compliant with the IEEE floating-point standard.
21308 Create a section describing the set of compiler options needed for
21309 strict compliance with the Ada 95 Reference Manual.
21310 Add documentation for pragma Obsolescent applied to a package
21311 Clarify potential issues of mixed language programs related to the
21312 I/O buffering enabling in the elaboration of the GNAT runtime.
21313 Add extra documentation for pragma Restrictions (No_Elaboration_Code)
21314 This documentation only patch adds extra documentsion for pragma
21315 Restrictions (No_Elaboration_Code), explaining why it is not possible
21316 to document this restriction in terms of allowed source constructs.
21317 Document string literal form of pragma Warnings
21318 Document new attribute Library_ALI_Dir
21319 Add documentation on stable attributes in project files that was missing
21320
21321 * gnat-style.texi: Indicate that paragraphs within a single comment
21322 should be separated by empty comment lines
21323
21324 * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
21325 /05 respectively)
21326
21327 * bindusg.adb: Minor cleanup, put -m before -M for consistency
21328
213292005-11-14 Robert Dewar <dewar@adacore.com>
21330
21331 * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
21332 a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
21333 a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
21334 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
21335 a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
21336 a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
21337 a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
21338 a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
21339 a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
21340 a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
21341 a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
21342 a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
21343 g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
21344 a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
21345 a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
21346 system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
21347 g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
21348 g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
21349 a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
21350 a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
21351 a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
21352 a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
21353 a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
21354 a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
21355 system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
21356 system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
21357 a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
21358 a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
21359 a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
21360 system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
21361 system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
21362 s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
21363 system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
21364 system-interix.ads, system-solaris-sparc.ads,
21365 system-solaris-sparcv9.ads, s-inmaop-vms.adb,
21366 s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
21367 system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
21368 s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
21369 a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
21370 a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
21371 a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
21372 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
21373 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
21374 a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
21375 a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
21376 a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
21377 a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
21378 a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
21379 a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
21380 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
21381 a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
21382 a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
21383 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
21384 a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
21385 a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
21386 a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
21387 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
21388 a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
21389 a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
21390 a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
21391 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
21392 a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
21393 a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
21394 a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
21395 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
21396 a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
21397 a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
21398 a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
21399 bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
21400 csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
21401 errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
21402 errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
21403 exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
21404 exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
21405 freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
21406 g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
21407 g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
21408 g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
21409 g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
21410 g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
21411 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
21412 g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
21413 g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
21414 gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
21415 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
21416 g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
21417 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
21418 g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
21419 g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
21420 g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
21421 layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
21422 mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
21423 mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
21424 nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
21425 osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
21426 par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
21427 par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
21428 par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
21429 prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
21430 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
21431 prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
21432 prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
21433 sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
21434 sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
21435 sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
21436 sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
21437 s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
21438 sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
21439 s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
21440 s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
21441 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
21442 s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
21443 s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
21444 s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
21445 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
21446 s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
21447 s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
21448 s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
21449 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
21450 s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
21451 s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
21452 s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
21453 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
21454 s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
21455 s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
21456 s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
21457 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
21458 s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
21459 s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
21460 s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
21461 s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
21462 s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
21463 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
21464 s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
21465 styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
21466 s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
21467 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
21468 s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
21469 s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
21470 s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
21471 s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
21472 s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
21473 s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
21474 s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
21475 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
21476 table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
21477 tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
21478 ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
21479 usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
21480 xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
21481 xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
21482 a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
21483 a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
21484 a-numaux-darwin.ads, a-numaux-darwin.adb,
21485 a-swuwha.ads, a-stunha.ads: Minor reformatting
21486
e0ac6309
RD
214872005-11-14 Robert Dewar <dewar@adacore.com>
21488
21489 PR ada/18434
21490 * osint-m.adb: Add pragma Elaborate_All for Osint
21491
f45ddfe0
EB
214922005-11-10 Eric Botcazou <ebotcazou@adacore.com>
21493
21494 PR ada/23995
21495 * trans.c (call_to_gnu): Restore statement lost in translation.
21496
13bb031a
EB
214972005-11-08 Eric Botcazou <ebotcazou@adacore.com>
21498
21499 * init.c: Use the Linux-specific section for the IA-64/Linux target.
21500 (__gnat_adjust_context_for_raise): Add conditional code so that the
21501 IA-64 is also supported.
21502
72098128
JW
215032005-11-03 James E Wilson <wilson@specifix.com>
21504
21505 PR ada/23427
13bb031a
EB
21506 * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
21507 TREE_OVERFLOW check.
72098128 21508
8fafe21d
OH
215092005-09-21 Olivier Hainque <hainque@adacore.com>
21510
21511 PR ada/22418
21512 * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
21513 as we create them to store a size in bits.
21514
552725e3
EB
215152005-10-21 Eric Botcazou <ebotcazou@adacore.com>
21516
21517 PR ada/21937
21518 PR ada/22328
21519 PR ada/22381
21520 PR ada/22383
21521 PR ada/22419
21522 PR ada/22420
21523 * utils2.c (build_return_expr): New helper function.
21524 * gigi.h (build_return_expr): Declare it.
21525 * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
21526 of manually building the RETURN_EXPR tree.
21527 (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
21528 (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
8fafe21d 21529 build_binary_op for the "target pointer" case. Use build_return_expr
552725e3
EB
21530 instead of manually building the RETURN_EXPR tree.
21531
9e94c78f 215322005-09-16 Laurent Guerby <laurent@guerby.net>
ccdeca37
LG
21533
21534 PR ada/23788
21535 * s-tpinop.ads: Make this unit Preelaborate.
21536
da8f5fd9
AJ
215372005-09-16 Andreas Jaeger <aj@suse.de>
21538
21539 * socket.c: Add string.h for memcpy.
21540
98b40956
AC
215412005-09-05 Arnaud Charlet <charlet@adacore.com>
21542
21543 * dec-io.ads, dec-io.adb: Removed, no longer used.
21544
215452005-09-01 Arnaud Charlet <charlet@adacore.com>
21546
21547 * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
21548
21549 * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
21550 s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
21551 s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
21552 s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
21553 dependent units are Preelaborate.
21554 (Initialize): Call Interrupt_Managemeent.Initialize and
21555 OS_Primitives.Initialize to ensure proper initialization of this unit.
21556 Remove use of System.Soft_Links
21557 Make this unit Preelaborate.
21558
21559 * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
21560 s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
21561 s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
21562 s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
21563 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
21564 s-tratas.ads, s-tasinf.ads: Minor reformatting.
21565 Add pragma Preelaborate, since these packages are suitable for this
21566 categorization.
21567 Update comments.
21568
21569 * s-traent-vms.ads, s-intman-dummy.adb,
21570 s-taprop-dummy.adb: Make this unit Preelaborate.
21571
21572 * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
da8f5fd9 21573 s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
98b40956
AC
21574 s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
21575 s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
21576 s-intman-solaris.adb, s-intman-irix-athread.adb,
21577 s-intman-irix.adb: Mark this unit Preelaborate.
21578 (Initialize): New procedure.
21579 Update comments.
21580
21581 * s-taspri-linux.ads: Removed.
21582
21583 * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
21584 as done by other implementations (e.g. posix).
21585
21586 * s-taprop.ads (Timed_Delay): Update spec since the caller now is
21587 responsible for deferring abort.
21588 Mark this unit Preelaborate.
21589
21590 * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
21591 proper initialization of the tasking run-time.
21592
21593 * s-tasdeb.ads: Mark this unit Preelaborate.
21594 (Known_Tasks): Add explicit default value to avoid elaboration code.
21595
21596 * s-inmaop-vms.adb (Elaboration code): Add call to
21597 Interrupt_Management.Initialize since the elaboration code depends on
21598 proper initialization of this package.
21599
21600 * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
21601 s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
21602 s-osprim-posix.adb: Make this unit Preelaborate.
21603
21604 * a-calend.adb: Add call to OS_Primitives.Initialize
21605
21606 * a-elchha.adb: Update use of Except.Id.Full_Name.
21607 Minor reformatting.
21608 Remove use of Ada.Exceptions.Traceback when possible, cleaner.
21609
21610 * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
21611 Move with clauses outside Warnings Off now that dependent units are
21612 Preelaborate.
21613 Use raise xxx with "..."; Ada 2005 form.
21614
da8f5fd9 21615 * a-taside.ads, a-taside.adb:
98b40956
AC
21616 Remove some dependencies, to make it easier to make this unit truly
21617 Preelaborate.
21618 Rewrite some code to be conformant with Preelaborate rules.
21619
21620 * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
21621 marked Preelaborate in the future.
21622
21623 * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
21624 these units Preelaborate.
21625
21626 * s-exctab.adb: Update use of Except.Id.Full_Name.
21627
21628 * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
21629 (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
21630 Set_Exc_Stack_Addr): Removed, no longer used.
21631 Remove reference to *Machine_State_Addr*, no longer needed.
21632
21633 * s-stalib.ads: Mark this unit as Preelaborate[_05].
21634 (Exception_Data): Full_Name is now a System.Address so that this unit
21635 can be made Preelaborate.
21636 Clean up/simplify code thanks to Full_Name being a System.Address.
21637 Remove obsolete pragma Suppress (All_Checks), no longer needed.
21638
da8f5fd9 21639 * s-taskin.ads, s-taskin.adb:
98b40956
AC
21640 Move with clauses outside Warnings Off now that dependent units are
21641 Preelaborate.
21642 Make this unit Preelaborate.
21643 (Initialize): New proceduure, replace elaboration code and makes the
21644 set up of the tasking run-time cleaner.
21645 (Detect_Blocking): Now a function instead of a deferred boolean, to
21646 obey Preelaborate rules.
21647
21648 * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
21649 soft links, no longer used.
21650
21651 * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
21652 packages are suitable for this categorization.
21653
21654 * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
21655 since we compile run-time sources in Ada 2005 mode.
21656 (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
21657 avoid having s-taprop*.adb depend on s-soflin and to avoid code
21658 duplication.
21659 Remove reference to *Machine_State_Addr*, no longer needed.
21660
216612005-09-01 Arnaud Charlet <charlet@adacore.com>
21662
21663 * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
21664 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
21665 Remove reference to System.Exceptions.
21666
21667 * s-mastop-x86.adb: Removed, no longer used.
21668
21669 * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
21670
21671 * a-excach.adb: Minor reformatting.
21672
21673 * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
21674 instead fix new warnings that were hidden by this change.
21675 (AAA, ZZZ): Removed, replaced by...
21676 (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
21677 are used instead of constants, to help make Ada.Exception truly
21678 preelaborate.
21679 (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
21680 Raise_Storage_Error): File is now a System.Address, to simplify code.
21681 (Elab code): Removed, no longer used.
21682 (Null_Occurrence): Remove Warnings Off and make this construct
21683 preelaborate.
21684 Remove code related to front-end zero cost exception handling, since
21685 it is no longer used.
21686 Remove -gnatL/-gnatZ switches.
21687
21688 * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
21689 Update use of Except.Msg.
21690
21691 * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
21692 freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
21693 to front-end zero cost exception handling, since it is no longer used.
21694 Remove -gnatL/-gnatZ switches.
21695
21696 * lib-writ.ads: Minor reformatting
21697 Remove doc of UX
21698
21699 * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
21700
21701 * Make-lang.in: Remove references to s-except.ads
21702
21703 * s-except.ads: Removed, no longer used.
21704
da8f5fd9 21705 * s-mastop.ads, s-mastop.adb:
98b40956
AC
21706 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
21707 Remove reference to System.Exceptions.
21708
21709 * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
21710 switch-b.adb: Remove code related to front-end zero cost exception
21711 handling, since it is no longer used.
21712 Remove -gnatL/-gnatZ switches.
21713
217142005-09-01 Robert Dewar <dewar@adacore.com>
21715 Gary Dismukes <dismukes@adacore.com>
21716 Javier Miranda <miranda@adacore.com>
21717
21718 * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
21719 type by valid test and generate warning.
21720 (Tagged_Membership): Generate call to the run-time
21721 subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
21722 Change formal name Subtype_Mark to Result_Definition in several calls to
21723 Make_Function_Specification.
21724 (Expand_Allocator_Expression): Add tests for suppression of the AI-344
21725 check for proper accessibility of the operand of a class-wide allocator.
21726 The check can be left out if checks are suppressed or if the expression
21727 has a specific tagged type whose level is known to be safe.
21728
21729 * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
21730 generates the run-time check associated with null-excluding entities.
21731 (Expand_N_Return_Statement): Add tests to determine if the accessibility
21732 check on the level of the return expression of a class-wide function
21733 can be elided. The check usually isn't needed if the expression has a
21734 specific type (unless it's a conversion or a formal parameter). Also
21735 add a test for whether accessibility checks are suppressed. Augment
21736 the comments to describe the conditions for performing the check.
21737
217382005-09-01 Hristian Kirtchev <kirtchev@adacore.com>
21739 Javier Miranda <miranda@adacore.com>
21740 Gary Dismukes <dismukes@adacore.com>
21741 Ed Schonberg <schonberg@adacore.com>
21742
21743 * a-tags.adb (IW_Membership): Give support to
21744 "Iface_CW_Typ in T'Class". For this purpose the functionality of this
21745 subprogram has been extended to look for the tag in the ancestors tag
21746 table.
21747 Update the structure of the GNAT Dispatch Table to reflect the
21748 additional two tables used in dispatching selects.
21749 Introduce appropriate array types and record components in
21750 Type_Specific_Data to reflect the two tables.
21751 (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
21752 the TSD of a tag, indexed by position.
21753 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
21754 operation kind in the TSD of a tag, indexed by position.
21755
21756 * a-tags.ads: Introduce an enumeration type to capture different
21757 primitive operation kinds. Define a constant reflecting the number of
21758 predefined primitive operations.
21759 (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
21760 of an entry wrapper.
21761 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
21762 callable entity of a primitive operation.
21763
21764 * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
21765 primitive operations used in dispatching selects for limited
21766 interfaces, limited tagged, task and protected types what implement a
21767 limited interface.
21768 (Freeze_Type): Generate the bodies of the primitive operations used in
21769 dispatching selects for limited tagged, task and protected types that
21770 implement a limited interface. Generate statements to populate the two
21771 auxiliary tables used for dispatching in select statements.
21772 (Freeze_Record_Type): Add call to initialize the dispatch table entries
21773 associated with predefined interface primitive operations.
21774 (Build_Dcheck_Function): Change Set_Subtype_Mark to
21775 Set_Result_Definition.
21776 (Build_Variant_Record_Equality): Change Subtype_Mark to
21777 Result_Definition.
21778 (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
21779 (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
21780 (Build_Assignment): Simplify the code that adds the run-time-check.
21781 (Expand_N_Object_Declaration): Code cleanup.
21782
21783 * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
21784 entries when there is a protected type that implements a limited
21785 interface.
21786
21787 * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
21788 common routines used in expansion of dispatching selects.
21789 (Add_Private_Declarations): Select the appropriate protection type when
21790 there is a protected type that implements a limited interface.
21791 (Build_Parameter_Block): Generate a wrapped parameter block.
21792 (Build_Protected_Subprogram_Body): Select the appropriate type for
21793 locking entries when there is a protected type that implements a
21794 limited interface.
21795 (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
21796 classified as entry wrappers.
21797 (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
21798 asynchronous selects.
21799 (Expand_N_Conditional_Entry_Call): Add support for expansion of
21800 dispatching conditional selects.
21801 (Expand_N_Protected_Type_Declaration): Select the appropriate type for
21802 protection when there is a protected type that implements limited
21803 interfaces.
21804 (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
21805 timed selects.
21806 (Extract_Dispatching_Call): Extract the entity of the name of a
21807 dispatching call, the object parameter, actual parameters and
21808 corresponding formals.
21809 (Make_Initialize_Protection): Correct logic of protection initialization
21810 when there is a protected type that implements a limited interface.
21811 (Parameter_Block_Pack): Populate a wrapped parameter block with the
21812 values of actual parameters.
21813 (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
21814 block and assign them to the original actual parameters.
21815
21816 * exp_ch9.ads (Subprogram_Protection_Mode): New type.
21817 (Build_Protected_Sub_Specification): Change the type and name of the
21818 last formal to account for the increased variety of protection modes.
21819
21820 * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
21821 entities. Used to save the value of the Is_Hidden attribute when the
21822 limited-view is installed.
21823 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
21824 the attribute of procedures classified as entry wrappers.
21825 (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
21826 entity of a primitive wrapper.
21827 (Write_Entity_Flags): Output the name and value of the
21828 Is_Primitive_Wrapper attribute.
21829 (Write_Field27_Name): Output the name and entity of the field Wrapped_
21830 Entity.
21831 (Underlying_Type): If we have an incomplete entity that comes from
21832 the limited view then we return the Underlying_Type of its non-limited
21833 view if it is already available.
21834 (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
21835 including operators.
21836 (Write_Field26_Name): Add entry for Overridden_Operation
21837 (Overridden_Operation): New attribute of functions and procedures.
21838
21839 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
21840 predefined position in the dispatch table for the primitive operations
21841 used in dispatching selects.
21842 (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
21843 predefined primitive operations and replace it with
21844 Default_Prim_Op_Count.
21845 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
21846 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
21847 the names of the generated primitive operations used in dispatching
21848 selects.
21849 (Init_Predefined_Interface_Primitives): No need to inherit primitives in
21850 case of abstract interface types. They will be inherit by the objects
21851 implementing the interface.
21852 (Make_DT): There is no need to inherit the dispatch table of the
21853 ancestor interface for the elaboration of abstract interface types.
21854 The dispatch table will be inherited by the object implementing the
21855 interface.
21856 (Copy_Secondary_DTs): Add documentation.
21857 (Validate_Position): Improve this static check in case of
21858 aliased subprograms because aliased subprograms must have
21859 the same position.
21860 (Init_Predefined_Interface_Primitives): New subprogram that initializes
21861 the entries associated with predefined primitives of all the secondary
21862 dispatch tables.
21863 (Build_Anonymous_Access_Type): Removed.
21864 (Expand_Interface_Actuals): With the previous cleanup there is no need
21865 to build an anonymous access type. This allows further cleanup in the
21866 code generated by the expander.
21867 (Expand_Interface_Conversion): If the actual is an access type then
21868 build an internal function to handle the displacement. If the actual
21869 is null this function returns null because no displacement is
21870 required; otherwise performs a type conversion that will be
21871 expanded in the code that returns the value of the displaced actual.
21872 (Expand_Interface_Actuals): Avoid the generation of unnecessary type
21873 conversions that have no effect in the generated code because no
21874 displacement is required. Code cleanup; use local variables to
21875 avoid repeated calls to the subprogram directly_designated_type().
21876
21877 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
21878 Classify the primitive operations used in dispatching selects as
21879 predefined.
21880 (Implements_Limited_Interface): Determine whether some type either
21881 directly implements a limited interface or extends a type that
21882 implements a limited interface.
21883 (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
21884 (Expand_Subtype_From_Expr): Do not build actual subtype if the
21885 expression is limited.
21886 (Find_Interface_Tag): Add code to handle class-wide types and
21887 entities from the limited-view.
21888
21889 * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
21890 Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
21891 POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
21892 POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
21893 Set_Prim_Op_Kind.
21894
21895 * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
21896 of procedure name or prefix that appears as a trigger in a triggering
21897 alternative.
21898
21899 * uintp.ads: Introduce constants Uint_11 and Uint_13.
21900
219012005-09-01 Arnaud Charlet <charlet@adacore.com>
21902
21903 * s-tataat.adb, a-tasatt.adb:
21904 Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
21905
21906 * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
21907 these procedures to body, and renamed Abort_Defer, Abort_Undefer.
21908 (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
21909 longer used.
21910
219112005-09-01 Arnaud Charlet <charlet@adacore.com>
21912 Jose Ruiz <ruiz@adacore.com>
21913
da8f5fd9 21914 * s-taprop-vxworks.adb:
98b40956
AC
21915 Move with clauses outside Warnings Off now that dependent units are
21916 Preelaborate.
21917 (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
21918 initialization of this unit.
21919 (Specific): Add new procedures Initialize and Delete so that this
21920 package can be used for VxWorks 5.x and 6.x
21921 (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
21922 differences between VxWorks 5.x and 6.x
21923 Minor reformatting.
21924 (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
21925 caller.
21926 Use only Preelaborate-compatible constructs.
21927
21928 * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
21929 Primitives.Operations.
21930 (Delete, Initialize): New procedures.
21931
21932 * s-osinte-vxworks.adb: Body used to handle differences between
21933 VxWorks 5.x and 6.x
21934 (kill, Set_Time_Slice, VX_FP_TASK): New functions.
21935
21936 * s-osinte-vxworks.ads: Minor reformatting.
21937 Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
21938 (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
21939 and 6.
21940 (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
21941 between Vxworks 5 and 6.
21942 (taskLock, taskUnlock): Removeed, no longer used.
21943
21944 * adaint.c: The wait.h header is not located in the sys directory on
21945 VxWorks when using RTPs.
21946 (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
21947 using RTPs.
21948 (__gnat_dup): dup is available on Vxworks when using RTPs.
21949 (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
21950
21951 * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
21952
21953 * expect.c: The wait.h header is not located in the sys directory on
21954 VxWorks when using RTPs.
21955
219562005-09-01 Thomas Quinot <quinot@adacore.com>
21957
21958 * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
21959
21960 * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
21961
21962 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
21963 g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
21964 g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
21965 g-soccon-freebsd.ads: Add new constants:
21966 IP_MULTICAST_IF
21967 SO_RCVTIMEO/SO_SNDTIMEO
21968 IOV_MAX
21969
da8f5fd9 21970 * gen-soccon.c:
98b40956
AC
21971 Move all target-specific file inclusions and macro definitions to
21972 gsocket.h, in order to ensure that any C code in socket.c will see a
21973 set of constants that is consistent with the contents of g-soccon.ads.
21974
21975 * gsocket.h: Code imported from gen-soccon.c:
21976 Move all target-specific file inclusions and macro definitions to
21977 gsocket.h, in order to ensure that any C code in socket.c will see a set
21978 of constants that is consistent with the contents of g-soccon.ads.
21979 This change also makes gen-soccon self-contained (removing dependencies
21980 upon GCC internal headers).
21981
21982 * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
21983 iovecs at a time.
21984 (To_Inet_Addr): Now a procedure instead of a function, more efficient.
21985
21986 * socket.c: Minor reformatting.
21987
219882005-09-01 Ed Schonberg <schonberg@adacore.com>
21989 Thomas Quinot <quinot@adacore.com>
21990
21991 * fname-sf.adb, mlib-tgt.ads,
21992 back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
21993 g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
21994 osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
21995 prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
21996 prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
21997 prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
21998 sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
21999 makegpr.adb: Remove redundant use_clauses.
22000
220012005-09-01 Arnaud Charlet <charlet@adacore.com>
22002
da8f5fd9
AJ
22003 * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
22004 s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
22005 s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
22006 s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
22007 s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
22008 s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
22009 s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
22010 table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
22011 s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
22012 s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
22013 a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
22014 a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
22015 a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
22016 a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
22017 system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
98b40956 22018 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
da8f5fd9
AJ
22019 s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
22020 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
22021 s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
22022 s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
22023 s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
22024 s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
22025 system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
22026 s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
22027 system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
22028 s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
22029 a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
22030 a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
98b40956
AC
22031 a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
22032 a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
da8f5fd9
AJ
22033 a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
22034 a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
22035 a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
22036 a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
22037 a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
22038 a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
22039 csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
22040 g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
22041 a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
22042 a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
22043 a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
22044 a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
22045 g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
22046 i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
22047 interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
22048 i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
22049 s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
22050 s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
22051 s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
22052 s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
22053 s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
22054 s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
22055 s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
22056 s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
22057 s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
22058 s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
22059 s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
22060 s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
22061 s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
22062 s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
22063 s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
22064 s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
22065 s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
22066 s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
22067 s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
22068 s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
22069 s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
98b40956
AC
22070 s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
22071 and always use the no parameter form for consistency.
22072
22073 * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
22074
220752005-09-01 Robert Dewar <dewar@adacore.com>
22076
22077 * binde.adb: Minor reformatting
22078 (Find_Elab_Order): Output warning if -p used with static elab order
22079
220802005-09-01 Robert Dewar <dewar@adacore.com>
22081
22082 * checks.adb (Check_Needed): New procedure, deals with removing checks
22083 based on analysis of short-circuited forms. Also generates warnings for
22084 improper use of non-short-circuited forms.
22085 Code clean ups.
22086
220872005-09-01 Robert Dewar <dewar@adacore.com>
22088
22089 * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
22090 with 'Valid tests.
22091
220922005-09-01 Robert Dewar <dewar@adacore.com>
22093
22094 * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
22095 spec.
22096 Implement new insertion char < (conditional warning)
22097 * errutil.adb, erroutc.adb: Implement new insertion char <
22098 (conditional warning).
22099 * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
22100 (Error_Msg_Warn): New variable for < insertion char.
22101 * prj-nmsc.adb: Implement new errout insertion char < (conditional
22102 warning).
22103 (Check_For_Source): Change value of Source_Id only after the current
22104 source has been dealt with.
22105
221062005-09-01 Robert Dewar <dewar@adacore.com>
22107 Doug Rupp <rupp@adacore.com>
22108
22109 * exp_attr.adb: Handle vax fpt for 'Valid attribute
22110 * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
22111 * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
22112 (Valid_D, Valid_F, Valid_G): New functions
22113
221142005-09-01 Ed Schonberg <schonberg@adacore.com>
22115 Hristian Kirtchev <kirtchev@adacore.com>
22116 Javier Miranda <miranda@adacore.com>
22117
22118 * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
22119 from object notation, the original node is unanalyzed and carries no
22120 semantic information, so that accessiblity checks must be performed on
22121 the type of the actual itself.
22122 (Expand_N_Subprogram_Declaration): Change last actual parameter for
22123 compatibility with Build_Protected_Sub_Specification.
22124 (Check_Overriding_Inherited_Interfaces): Add suport to handle
22125 overloaded primitives.
22126 (Register_Interface_DT_Entry): Use the new name of the formal
22127 the the calls to Expand_Interface_Thunk
22128
22129 * exp_dbug.ads: Augment comments on encoding of protected types to
22130 include the generation of dispatching subprograms when the type
22131 implements at least one interface.
22132
22133 * lib.ads: Extend information in Load_Stack to include whether a given
22134 load comes from a Limited_With_Clause.
22135
22136 * lib-load.adb (From_Limited_With_Chain): New predicate to determine
22137 whether a potential circularity is harmless, because it includes units
22138 loaded through a limited_with clause. Extends previous treatment which
22139 did not handle properly arbitrary combinations of limited and
22140 non-limited clauses.
22141
221422005-09-01 Nicolas Setton <setton@adacore.com>
22143
22144 * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
22145 to be encoded as typ___XBLU_lowerbound__upperbound instead of
22146 typ___XB_lowerbound__upperbound.
22147
221482005-09-01 Thomas Quinot <quinot@adacore.com>
22149
22150 * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
22151 dummy access formal for RACW/RAS TypeCode TSS.
22152 (Build_TypeCode_Call): Do not generate dummy null access actual for
22153 calls to the TypeCode TSS.
22154
221552005-09-01 Ed Schonberg <schonberg@adacore.com>
22156
22157 * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
22158 fully qualified name, to distinguish instances with the same local name.
22159
22160 * g-souinf.ads (Enclosing_Entity): Document that entity name is now
22161 fully qualified.
22162
221632005-09-01 Robert Dewar <dewar@adacore.com>
22164
22165 * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
22166 packed arrays.
22167
221682005-09-01 Jerome Lambourg <lambourg@adacore.com>
22169
22170 * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
22171 (Free): New deallocation procedure for filter elements
22172 (Close): Deallocate any existing filter for the concerned connection
22173
221742005-09-01 Laurent Pautet <pautet@adacore.com>
22175
22176 * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
22177 position set is provided, we compute one in order to reduce the maximum
22178 length of the keys. This computation first selects a character
22179 position between 1 and the minimum length of the keys in order to
22180 avoid reducing one of the keys to an empty string.
22181 (Initialize, Compute): When the ratio V to K is too low, the algorithm
22182 does not converge. The initialization procedure now comes with a
22183 maximum number of iterations such that when exceeded, an exception is
22184 raised in Compute. The user can initialize this ratio to another value
22185 and try again
22186 Reformating and updated headers.
22187
221882005-09-01 Javier Miranda <miranda@adacore.com>
22189
22190 * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
22191 that given an entity T creates and returns an Itype that duplicates the
22192 contents of T. The returned Itype has the null-exclusion
22193 attribute set to True, and its Etype attribute references T
22194 to keep the association between the two entities.
22195 Update copyright notice
22196
22197 * sem_aggr.adb (Check_Can_Never_Be_Null,
22198 Aggregate_Constraint_Checks, Resolve_Aggregate,
22199 Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
22200
22201 * sem_ch5.adb (Analyze_Assignment): Code cleanup.
22202
222032005-09-01 Gary Dismukes <dismukes@adacore.com>
22204 Robert Dewar <dewar@adacore.com>
22205 Hristian Kirtchev <kirtchev@adacore.com>
22206
22207 * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
22208 Result_Definition.
22209
22210 * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
22211 function specs.
22212 Call Set_Result_Definition instead of Set_Subtype_Mark.
22213 (P_Subprogram_Specification): Add parsing of anonymous access result
22214 plus null exclusions. Call Set_Result_Definition instead of
22215 Set_Subtype_Mark.
22216
22217 * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
22218 (P_Access_Type_Definition): Add parsing for an anonymous access result
22219 subtype, plus parsing for null exclusions. Call Set_Result_Definition
22220 instead of Set_Subtype_Mark.
22221
22222 * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
22223 (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
22224 (Result_Definition): New function for N_Function_Specifications.
22225 (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
22226 N_Function_Specification.
22227 (Set_Null_Exclusion_Present): Allow this flag for
22228 N_Function_Specification.
22229 (Set_Result_Definition): New procedure for N_Function_Specifications.
22230 (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
22231 and N_Function_Specification.
22232
22233 * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
22234 Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
22235 Add support for LIMITED NEW for Ada 2005 AI-419
22236 Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
22237 syntax for anonymous access results.
22238 Replace Subtype_Mark field by Result_Definition in
22239 N_Function_Specification and N_Access_Definition specs.
22240 Add Null_Exclusion_Present to spec of N_Function_Specification.
22241 (Result_Definition): New function for N_Function_Specification and
22242 N_Access_Function_Definition.
22243 (Set_Result_Definition): New procedure for N_Function_Specification and
22244 N_Access_Function_Definition.
22245
22246 * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
22247 Result_Definition for cases of N_Access_Function_Definition and
22248 N_Function_Specification.
22249 Print "not null" if Null_Exclusion_Present on N_Function_Specification.
22250
222512005-09-01 Vincent Celier <celier@adacore.com>
22252
22253 * lib-writ.adb: Update Copyright notice
22254 (Write_With_Lines): On platforms where file names are case-insensitive,
22255 record the file names in lower case.
22256 (Write_ALI): For D lines, on platforms where file names are
22257 case-insensitive, record the file names in lower case.
22258
222592005-09-01 Ed Schonberg <schonberg@adacore.com>
22260 Emmanuel Briot <briot@adacore.com>
22261
22262 * lib-xref.adb (Output_Overridden_Op): Display information on
22263 overridden operation.
22264
22265 * lib-xref.ads: Add documentation on overridden operations.
22266
22267 * ali.ads (Xref_Entity_Record): Add support for storing the overriding
22268 information.
22269
22270 * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
22271 overriding entity information.
22272
222732005-09-01 Vincent Celier <celier@adacore.com>
22274
22275 * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
22276 including those that are inherited.
22277
222782005-09-01 Robert Dewar <dewar@adacore.com>
22279
22280 * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
22281
22282 * par-prag.adb: Implement new pragma Debug_Policy
22283
22284 * sem_prag.adb Implement new pragma Debug_Policy
22285 (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
22286 Component_Size attribute specification. Give warning for ignored pragma
22287 Pack.
22288
22289 * snames.h, snames.ads, snames.adb: Introduce entries in
22290 Preset_Names for Name_Disp_Asynchronous_Select,
22291 Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
22292 Name_Disp_Timed_Select.
22293 New pragma Debug_Policy
22294
22295 * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
22296 explicitly.
22297 Switch -gnata also sets Debug_Pragmas_Enabled
22298
22299 * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
22300 handle an explicit -gnata when compiling predefined files.
22301
223022005-09-01 Vincent Celier <celier@adacore.com>
22303
22304 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
22305 directories of projects that have no Ada sources.
22306
223072005-09-01 Robert Dewar <dewar@adacore.com>
22308
22309 * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
22310 (makes a difference for wide characters)
22311
da8f5fd9 22312 * widechar.adb, widechar.ads:
98b40956
AC
22313 Add Wide_Char_Byte_Count feature to count chars vs bytes
22314
223152005-09-01 Thomas Quinot <quinot@adacore.com>
22316 Ed Schonberg <schonberg@adacore.com>
22317 Robert Dewar <dewar@adacore.com>
22318
22319 * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
22320 'Address attribute reference with an overloaded prefix, use the
22321 location of the prefix (not the location of the attribute reference) as
22322 the error location.
22323 (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
22324 a function renaming thereof, is a valid prefix for 'Size (where it is
22325 intepreted as a function call).
22326 (Statically_Denotes_Entity): New predicate to determine whether the
22327 prefix of an array attribute can be considered static.
22328
22329 PR ada/9087
22330 (Eval_Attr): Fix failure to evaluate Component_Size for
22331 unconstrained arrays (resulted in wrong value in packed case, since
22332 back end cannot handle this case)
22333
223342005-09-01 Robert Dewar <dewar@adacore.com>
22335
22336 * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
22337 error msgs for most common cases.
22338 Use new errout insertion char < (conditional warning)
22339
223402005-09-01 Javier Miranda <miranda@adacore.com>
22341 Ed Schonberg <schonberg@adacore.com>
22342
22343 * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
22344 become local to the whole package.
22345 (Install_Limited_Withed_Unit): Instead of unchaining real entities if
22346 the package was already analyzed the new algorithm "replaces" the
22347 real entities by the shadow ones. This is required to ensure that
22348 the order of these entities in the homonym chains does not change;
22349 otherwise we can have undefined references at linking time because
22350 in case of conflicts the external name of the entities will have
22351 a suffix that depends on the order of the entities in the chain.
22352 (Remove_Limited_With_Clause): Complementary code that completes the
22353 new algorithm and replaces the shadow entities by the real ones.
22354 (Install_Limited_Withed_Unit): When unchaining entities before the
22355 installation of the shadow entities, only regular entities of the
22356 public part must be taken into account. This is required to
22357 keep this routine in synch with the work done by Remove_Limited_
22358 With_Clause
22359 (Install_Limited_With_Clause): Introduce implicit limited_with_clause
22360 even if unit is analyzed, because the analysis of the unit is
22361 idempotent in any case, and the limited view of the unit may have to
22362 be installed for proper visibility.
22363 (Expand_Limited_With_Clause): Even if the unit in the implicit
22364 with_clause has been analyzed already, a limited view of the package
22365 must be built for the current context, if it does not exist yet.
22366
223672005-09-01 Ed Schonberg <schonberg@adacore.com>
22368 Javier Miranda <miranda@adacore.com>
22369 Gary Dismukes <dismukes@adacore.com>
22370
22371 * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
22372 defining entity for the instance body, make a new defining identifier
22373 rather than copying the entity of the spec, to prevent accidental
22374 sharing of the entity list.
22375 (Check_Private_View): When exchanging views of private types, build the
22376 list of exchanged views as a stack, to ensure that on exit the exchanges
22377 are undone in the proper order.
22378 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
22379 Restore the compilation environment in case of instantiation_error.
22380 (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
22381 for an anonymous access result.
22382 (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
22383 (Formal_Entity): Handle properly the case of a formal package that
22384 denotes a generic package renaming.
22385
223862005-09-01 Thomas Quinot <quinot@adacore.com>
22387
22388 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
22389 clause if the array aggregate is surrounded by parentheses.
22390
223912005-09-01 Cyrille Comar <comar@adacore.com>
22392 Gary Dismukes <dismukes@adacore.com>
22393 Ed Schonberg <schonberg@adacore.com>
22394 Javier Miranda <miranda@adacore.com>
22395
22396 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
22397 underlying type
22398 to check if a type is Constrained in cases related to code generation
22399 (rather than semantic checking) since otherwise we do not generate
22400 similar code for mutable private types depending if their
22401 discriminants are visible or not.
22402 (Check_Abstract_Overriding): Do not complain about failure to override
22403 the primitive operations used in dispatching selects since they will
22404 always be overriden at the freeze point of the type.
22405 (Access_Definition): Separate out handling for resetting the scope
22406 of an anonymous access function result type. Retrieve the scope
22407 of the associated function rather than using Current_Scope, which
22408 does not have a consistent value (depends on whether we're in the
22409 middle of analyzing formal parameters). Add ??? comment about
22410 finding a cleaner way to handle the special cases of scope setting.
22411 (Process_Incomplete_Dependents): A protected operation is never a
22412 dispatching operation (only its wrapper may be).
22413 (Build_Derived_Record_Type): In case of tagged private types that
22414 implement interfaces add derivation of predefined primitive
22415 operations.
22416 (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
22417 by two parameters that are used in case of derivation from abstract
22418 interface types: No_Predefined_Prims is used to avoid the derivation
22419 of predefined primitives from the interface, and Predefined
22420 Prims_Only is used to complete the derivation predefined primitives
22421 in case of private tagged types implementing interfaces.
22422 Fix typo in comments
22423 (Find_Interface_In_Descendant): Protect the frontend against
22424 wrong code with large circularity chains.
22425 (Is_Private_Overriding): Add support for entities overriding interface
22426 subprograms. The test failed because Entities associated with overriden
22427 interface subprograms are always marked as hidden (and used to build
22428 the secondary dispatch table); in this case the overriden entity is
22429 available through the field abstract_interface_alias (cf. override_
22430 dispatching_operation)
22431 (Access_Definition): Set the scope of the type to Current_Scope for the
22432 case of a function with an anonymous access result type.
22433 (Access_Subprogram_Declaration): Handle creation of the type entity for
22434 an access-to-function type with an anonymous access result.
22435 (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
22436 in handling for N_Access_Function_Definition.
22437 (Analyze_Subtype_Declaration): Modify the text of error message.
22438 (Derived_Type_Declaration): Modify the text of error message.
22439 (Process_Subtype): Modify the text of error message plus cleanup
22440 of one redundant error message.
22441 (Analyze_Component_Declaration): Code cleanup.
22442 (Analyze_Object_Declaration): Code cleanup.
22443 (Analyze_Subtype_Declaration): Propagate the null-exclusion
22444 attribute in case of access types. Code cleanup.
22445 (Array_Type_Declaration): Code cleanup.
22446 (Process_Discriminants): Create the new null-excluding itype
22447 if required. Code cleanup.
22448 (Process_Subtype): Create the new null-excluding itype if
22449 required. Code cleanup.
22450 (Build_Derived_Record_Type): Code cleanup to avoid calling
22451 twice the subprogram derive_subprograms in case of private
22452 types that implement interfaces. In this particular case the
22453 subprogram Complete_Subprograms_Derivation already does the
22454 job associated with the second call.
22455
6f7f72f9
EB
22456 * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
22457 conversion to the full view when generating an operation for a
22458 discriminant whose type may currently be private.
98b40956
AC
22459
224602005-09-01 Ed Schonberg <schonberg@adacore.com>
22461 Javier Miranda <miranda@adacore.com>
22462
22463 * sem_ch4.adb (Transform_Object_Operation): In a context off the form
22464 V (Obj.F), the rewriting does not involve the indexed component, but
22465 only the selected component itself.
22466 Do not apply the transformation if the analyzed node is an actual of a
22467 call to another subprogram.
22468 (Complete_Object_Operation): Retain the entity of the
22469 dispatching operation in the selector of the rewritten node. The
22470 entity will be used in the expansion of dispatching selects.
22471 (Analyze_One_Call): Improve location of the error message associated
22472 with interface.
22473 (Analyze_Selected_Component): No need to resolve prefix when it is a
22474 function call, resolution is done when parent node is resolved, as
22475 usual.
22476 (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
22477 when attempting to resolve a call transformed from its object notation.
22478 (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
22479 of the argument list for each interpretation of the operation.
22480 (Try_Object_Operation): The designated type of an access parameter may
22481 be an incomplete type obtained through a limited_with clause, in which
22482 case the primitive operations of the type are retrieved from its full
22483 view.
22484 (Analyze_Call): If this is an indirect call, and the return type of the
22485 access_to_subprogram is incomplete, use its full view if available.
22486
224872005-09-01 Javier Miranda <miranda@adacore.com>
22488 Gary Dismukes <dismukes@adacore.com>
22489
22490 * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
22491 access types the null-exclusion and access-to-constant attributes must
22492 also match.
22493 (Analyze_Return_Statement): When the result type is an anonymous access
22494 type, apply a conversion of the return expression to the access type
22495 to ensure that appropriate accessibility checks are performed.
22496 (Analyze_Return_Type): For the case of an anonymous access result type,
22497 generate the Itype and set Is_Local_Anonymous_Access on the type.
22498 Add ??? placeholder for check to disallow returning a limited object
22499 in Ada 2005 unless it's an aggregate or a result of a function call.
22500 Change calls from Subtype_Mark to Result_Definition.
22501 (Analyze_Subprogram_Body): Change formal Subtype_Mark to
22502 Result_Definition in call to Make_Function_Specification.
22503 (Build_Body_To_Inline): Change Set_Subtype_Mark to
22504 Set_Result_Definition.
22505 (Make_Inequality_Operator): Change formal Subtype_Mark to
22506 Result_Definition in call to Make_Function_Specification.
22507 (Process_Formals): Create the new null-excluding itype if required.
22508 (New_Overloaded_Entity): For an entity overriding an interface primitive
22509 check if the entity also covers other abstract subprograms in the same
22510 scope. This is required to handle the general case, that is, overriding
22511 other interface primitives and overriding abstract subprograms inherited
22512 from some abstract ancestor type.
22513 (New_Overloaded_Entity): For an overriding entity that comes from
22514 source, note the operation that it overrides.
22515 (Check_Conformance, Type_Conformant): Addition of one new formal
22516 to skip controlling formals in the analysis. This is used to
22517 handle overloading of abstract interfaces.
22518 (Base_Types_Match): Add missing case for types imported from
22519 limited-with clauses
22520 (New_Overloaded_Entity): Add barrier to protect the use of
22521 the "alias" attribute.
22522
225232005-09-01 Ed Schonberg <schonberg@adacore.com>
22524
22525 * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
22526 verify that the procedure and the entry are mode conformant.
22527 (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
22528 as a different operator, which is often a cut-and-paste error.
22529
225302005-09-01 Javier Miranda <miranda@adacore.com>
22531 Ed Schonberg <schonberg@adacore.com>
22532
22533 * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
22534 used in controlling parameters exclude null because it is necessary to
22535 read the tag to dispatch, and null has no tag.
22536 (Override_Dispatching_Operation): If the previous operation is inherited
22537 from an interface, it becomes hidden and does not participate in later
22538 name resolution.
22539
225402005-09-01 Javier Miranda <miranda@adacore.com>
22541 Ed Schonberg <schonberg@adacore.com>
22542 Gary Dismukes <dismukes@adacore.com>
22543
22544 * sem_res.adb (Resolve_Membership_Op): In case of the membership test
22545 "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
22546 the expander will generate the corresponding run-time check to evaluate
22547 the expression.
22548 (Resolve_Call): Check for legal type of procedure name or prefix that
22549 appears as a trigger in a triggering alternative.
22550 (Valid_Conversion): If expression is ambiguous and the context involves
22551 an extension of System, remove System.Address interpretations.
22552 (Resolve_Qualified_Expression): Reject the case of a specific-type
22553 qualification applied to a class-wide argument. Enhance comment
22554 to explain checking of Original_Node.
22555 (Resolve_Type_Conversion): The location of the error message was not
22556 general enough to handle the general case and hence it has been removed.
22557 In addition, this patch improves the text of the message.
22558 (Resolve_Type_Conversion): Add missing support for access to interface
22559 types.
22560 (Resolve_Type_Conversion): If the target is a class-wide interface type,
22561 do not expand if the expression is the actual in a call, because proper
22562 expansion will take place when the call itself is expanded.
22563 (Resolve_Allocator): If the context is an unchecked conversion, the
22564 allocator inherits its storage pool, if any, from the target type of
22565 the conversion.
22566
225672005-09-01 Ed Schonberg <schonberg@adacore.com>
22568 Javier Miranda <miranda@adacore.com>
22569
22570 * sem_type.adb (Add_One_Interp): If a candidate operation is an
22571 inherited interface operation that has an implementation, use the
22572 implementation to avoid spurious ambiguities.
22573 (Interface_Present_In_Ancestor): In case of concurrent types we can't
22574 use the Corresponding_Record_Typ attribute to look for the interface
22575 because it is set by the expander (and hence it is not always
22576 available). For this reason we traverse the list of interfaces
22577 (available in the parent of the concurrent type).
22578 (Interface_Present_In_Ancestor): Handle entities from the limited view
22579
225802005-09-01 Ed Schonberg <schonberg@adacore.com>
22581
22582 * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
22583 from the list of required components.
22584 (Is_Controlling_Limited_Procedure): Determine whether an entity is a
22585 primitive procedure of a limited interface with a controlling first
22586 parameter.
22587 (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
22588 of an entry.
22589 (Safe_To_Capture_Value): A value (such as non_null) is not safe to
22590 capture if it is generated in the second operand of a short-circuit
22591 operation.
22592 Do not capture values for variables with address clauses.
22593 (Is_Object_Reference): Treat a function call as an object reference only
22594 if its type is not Standard_Void_Type.
22595
225962005-09-01 Ed Schonberg <schonberg@adacore.com>
22597
22598 * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
22599 to a variable that is statically known to be constant.
22600
226012005-09-01 Geert Bosch <bosch@adacore.com>
22602 Robert Dewar <dewar@adacore.com>
22603
22604 * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
22605 (VAXGF_Safe_First): Idem.
22606
226072005-09-01 Robert Dewar <dewar@adacore.com>
22608 Arnaud Charlet <charlet@adacore.com>
22609
22610 * g-dirope.ads: Minor reformatting
22611 Document that bounds of result of Base_Name match the input index
22612 positions.
22613 Add documentation on environment variable syntax for Expand_Path
22614
22615 * gnat_ugn.texi: Update documentation to include mention of -m switches
22616 Document new treatment of wide characters in max line length
22617 style check.
22618 Remove -gnatL/-gnatZ switches, no longer used.
22619 Add note on pragmas Assertion_Policy and Debug_Policy in discussion
22620 of -gnata switch.
22621
22622 * gnat_rm.texi: Add doc for two argument form of pragma
22623 Float_Representation.
22624 Add documentation for pragma No_Strict_Aliasing
22625 Add note that explicit component clause overrides pragma Pack.
22626 Add documentation of pragma Debug_Policy
22627
226282005-09-01 Matthew Heaney <heaney@adacore.com>
22629
da8f5fd9
AJ
22630 * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
22631 a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
22632 a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
98b40956
AC
22633 a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
22634 draft (Draft 13, August 2005) of Ada Amendment 1.
22635
226362005-09-01 Arnaud Charlet <charlet@adacore.com>
22637
22638 * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
22639 Note that the platform-specific version of g-soccon.ads for VMS is now
22640 named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
22641 really is a package spec).
22642 Replace s-taspri-linux.ads by s-taspri-posix.ads
22643 Remove references to s-mastop-x86.adb
22644
22645 * system-vxworks-xscale.ads: Removed, no longer used.
22646 * s-vxwork-xscale.ads: Removed, no longer used.
22647
226482005-09-01 Robert Dewar <dewar@adacore.com>
22649
22650 * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
22651 g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
22652 g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
22653 exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
22654 g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
22655 g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
22656 g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
22657 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
22658 g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
22659 g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
22660 sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
22661 a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
22662 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
22663 a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
22664 a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
22665 a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
22666 g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
22667 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
22668 g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
22669 i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
22670 a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
22671
332a1c2e
AC
226722005-08-29 Arnaud Charlet <charlet@adacore.com>
22673
22674 PR ada/23187
22675 * adaint.c
da8f5fd9 22676 (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
332a1c2e
AC
22677
226782005-08-29 Arnaud Charlet <charlet@adacore.com>
22679 Doug Rupp <rupp@adacore.com>
22680
22681 * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
22682 when needed.
22683 (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
22684 this code in the GNAT run-time.
22685
22686 * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
22687
22688 PR ada/21053
22689 * init.c (__gnat_error_handler [many]): Mark "msg" as const
22690 (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
22691
22692 (__gnat_inside_elab_final_code): Moved here from
22693 Standard_Library and only defined for the compiler.
22694 __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
22695 (__gnat_inum_to_ivec): Do not define this function on VxWorks when
22696 using RTPs because directly vectored Interrupt routines are not
22697 supported on this configuration.
22698 (getpid): Do not redefine this function on VxWorks when using RTPs
22699 because this primitive is well supported by the RTP libraries.
22700 (copy_msg): Correct the code that checks for buffer overflow.
22701 Discovered during code reading.
22702
227032005-08-29 Olivier Hainque <hainque@adacore.com>
22704
22705 * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
22706 a library level mutable variable with an initializer, tell
22707 build_allocator to ignore the initializer's size. It may not be large
22708 enough for all the values that might be assigned to the variable later
22709 on.
22710
227112005-08-29 Arnaud Charlet <charlet@adacore.com>
22712 Eric Botcazou <ebotcazou@adacore.com>
22713
22714 * trans.c: Protect < in error msg with quote
22715 Replace GCC_ZCX by Back_End_Exceptions.
22716 (addressable_p) <COMPONENT_REF>: Also return 1 if the field
22717 has been sufficiently aligned in the record.
22718
35fd1d77
JW
227192005-08-15 James E. Wilson <wilson@specifix.com>
22720
22721 * system-linux-alpha.ads: Change ia64 to alpha.
22722
b15341b8
KH
227232005-08-01 Kazu Hirata <kazu@codesourcery.com>
22724
22725 * decl.c, utils.c: Fix comment typos.
22726
9e4eb559
KH
227272005-07-29 Kazu Hirata <kazu@codesourcery.com>
22728
22729 * decl.c, init.c, initialize.c: Fix comment typos.
22730
4038c495
GB
227312005-07-20 Giovanni Bajo <giovannibajo@libero.it>
22732
22733 Make CONSTRUCTOR use VEC to store initializers.
22734 * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
22735 CONSTRUCTOR_ELTS.
22736 * trans.c (extract_values): Likewise.
22737 * utils.c (convert, remove_conversions): Likewise.
22738 * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
22739 gnat_build_constructor): Likewise.
22740
f685a2e6
AP
227412005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
22742
22743 * decl.c (components_to_record): Use DECL_FCONTEXT instead of
22744 DECL_SECTION_NAME.
22745 (compare_field_bitpos): Likewise.
22746
7c6ef73e
AP
227472005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
22748
22749 * utils.c (create_var_decl): Only set DECL_COMMON on
22750 VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
22751 VAR_OR_FUNCTION_DECL_P.
22752
820cc88f 227532005-07-08 Daniel Berlin <dberlin@dberlin.org>
da8f5fd9 22754
820cc88f
DB
22755 * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
22756 removed.
22757
1a9cb483
AC
227582005-07-07 Pascal Obry <obry@adacore.com>
22759
22760 * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
22761 returned type on Windows.
22762
22763 * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
22764 routine.
22765
22766 * g-socket.adb (Inet_Addr): Check for empty Image and raises an
22767 exception in this case.
22768 Simplify the code as "Image (Image'Range)" = "Image".
22769
227702005-07-07 Vincent Celier <celier@adacore.com>
22771
22772 * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
22773 the destructor/constructor attributes for <lib>final/<lib>init.
22774
22775 * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
22776
227772005-07-07 Eric Botcazou <ebotcazou@adacore.com>
22778
22779 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
22780 type if the parameter is not passed by copy but reference by default.
22781
227822005-07-07 Javier Miranda <miranda@adacore.com>
22783
22784 * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
22785 Reimplementation of the support for abstract interface types in order
22786 to leave the code more clear and easy to maintain.
22787
22788 * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
22789 abstract interface types in order to leave the code clearer and easier
22790 to maintain.
22791
22792 * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
22793 is now implemented by the new subprogram Fill_Secondary_DT_Entry.
22794 (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
22795 appropriate entry of the secondary dispatch table.
22796 (Make_DT): Add code to inherit the secondary dispatch tables of
22797 the ancestors.
22798
22799 * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
22800 implementing both functionalities by means of a common routine, each
22801 routine has its own code.
22802
228032005-07-07 Javier Miranda <miranda@adacore.com>
22804
22805 * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
22806
22807 * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
22808 types:
22809 --
22810 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
22811 --
22812
22813 * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
22814 use of tag incomplete types.
22815
22816 * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
22817 give support to tagged incomplete types.
22818
22819 * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
22820 expression is a discriminant reference and its type is private, as can
22821 happen within a stream operation for a mutable record, use the full
22822 view of the type to resolve the case alternatives.
22823 (Analyze_Assignment): Check wrong dereference of incomplete types.
22824
22825 * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
22826 types.
22827
22828 * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
22829 incomplete types.
22830
22831 * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
22832 N_Incomplete_Type_Declaration nodes.
22833
22834 * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
22835 Tag_Present to give support to tagged incomplete types:
22836 --
22837 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
22838 --
22839
228402005-07-07 Olivier Hainque <hainque@adacore.com>
22841
22842 PR ada/22301
1a9cb483
AC
22843 * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
22844 definitions for the Unwind wrappers in the compiler case.
22845
228462005-07-07 Ed Schonberg <schonberg@adacore.com>
22847 Javier Miranda <miranda@adacore.com>
22848
22849 * par-load.adb (Load): If a child unit is loaded through a limited_with
22850 clause, each parent must be loaded as a limited unit as well.
22851
22852 * sem_ch10.adb (Previous_Withed_Unit): Better name for
22853 Check_Withed_Unit. Return true if there is a previous with_clause for
22854 this unit, whether limited or not.
22855 (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
22856 the current unit.
22857 (Is_Visible_Through_Renamings): New local subprogram of install_limited
22858 _withed_unit that checks if some package installed through normal with
22859 clauses has a renaming declaration of package whose limited-view is
22860 ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
22861 of the current Draft document for Ada 2005.
22862 (Analyze_Context): Complete the list of compilation units that
22863 are allowed to contain limited-with clauses. It also contains
22864 checks that were previously done by Install_Limited_Context_Clauses.
22865 This makes the code more clear and easy to maintain.
22866 (Expand_Limited_With_Clause) It is now a local subprogram of
22867 Install_Limited_Context_Clauses, and contains the code that adds
22868 the implicit limited-with clauses for parents of child units.
22869 This functionality was prevously done by Analyze_Context.
22870
22871 * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
22872 incomplete type.
22873
22874 * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
22875 been erroneously named in a limited-with clause of its own context.
22876 In this case the error has been previously notified by Analyze_Context.
22877
228782005-07-07 Ed Schonberg <schonberg@adacore.com>
22879
22880 * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
22881 generic package that contains local declarations with the same name.
22882 (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
22883
228842005-07-07 Bernard Banner <banner@adacore.com>
22885
22886 * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
22887 ia64 platform only on platforms that you the GCC unwind library
22888 rather than the system unwind library.
22889
228902005-07-07 Thomas Quinot <quinot@adacore.com>
22891
22892 * expect.c: Minor reformatting
22893
228942005-07-07 Sergey Rybin <rybin@adacore.com>
22895
22896 * vms_data.ads: Add VMS qualifiers for new gnatpp switch
22897 --no-separate-is
22898
22899 * gnat_ugn.texi: Add description for new gnatpp option
22900 (--no-separate-is)
22901
7d300a99
AC
229022005-07-04 Thomas Quinot <quinot@adacore.com>
22903
22904 * g-expect-vms.adb, g-expect.ads, g-expect.adb
22905 (Get_Command_Output): New subprogram to launch a process and get its
22906 standard output as a string.
22907
229082005-07-04 Eric Botcazou <ebotcazou@adacore.com>
9bae2797 22909 Olivier Hainque <hainque@adacore.com>
7d300a99
AC
22910
22911 * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
22912 fetch a code-range descriptor associated with the machine state. On
22913 failure set the machine state's PC to 0; on success, pass the
22914 descriptor to exc_virtual_unwind.
22915
22916 * init.c (Tru64 section): New function __gnat_set_code_loc.
22917
229182005-07-04 Vincent Celier <celier@adacore.com>
22919
da8f5fd9
AJ
22920 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
22921 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
7d300a99
AC
22922 mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
22923 Remove all auto-initialization code, as this is now done through the
22924 constructor mechanism.
22925
22926 * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
22927 __gnat_sals_init_using_constructors): New functions.
22928
22929 * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
22930 Linker_Constructor and Linker_Destructor when switch -a is used.
22931
22932 * bindusg.adb: Add line for new switch -a
22933
22934 * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
22935 (Gnatbind): When switch -a is used, check if it is allowed
22936
22937 * switch-b.adb (Scan_Binder_Switches): Process new switch -a
22938
229392005-07-04 Joel Brobecker <brobecker@adacore.com>
22940
22941 * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
22942 This prevents us from hitting a limitation during the debug info
22943 generation when using stabs.
22944 (Prims_Ptr): Likewise.
22945
229462005-07-04 Gary Dismukes <dismukes@adacore.com>
22947 Ed Schonberg <schonberg@adacore.com>
22948 Javier Miranda <miranda@adacore.com>
22949
22950 * checks.adb (Null_Exclusion_Static_Checks): In the case of
22951 N_Object_Declaration, only perform the checks if the Object_Definition
22952 is not an Access_Definition.
22953
6f7f72f9
EB
22954 * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
22955 where the parent of an the access definition is an N_Object_Declaration
22956 when determining the Associated_Node_For_Itype and scope of an
22957 anonymous access-to-subprogram type.
7d300a99
AC
22958
22959 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
22960 Corresponding_Spec on the body created for a null procedure. Add ???
22961 comment. Remove New_Copy_Tree call on body argument to
22962 Set_Body_To_Inline.
22963
22964 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
22965 discriminants, use the type of the actual as well, because the
22966 discriminants may be read by the called subprogram.
22967
22968 * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
22969 access type we do not need to handle non-limited views.
22970 (Build_Derived_Record_Type): Additional check to check that in case of
22971 private types, interfaces are only allowed in private extensions.
22972
229732005-07-04 Eric Botcazou <ebotcazou@adacore.com>
22974
22975 * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
22976 <Pragma_Linker_Destructor>: Likewise.
22977
22978 * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
22979 Pragma_Linker_Destructor.
22980
22981 * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
22982 ATTR_LINK_DESTRUCTOR.
22983 (static_ctors, static_dtors): New variables.
22984
22985 * misc.c (gnat_expand_body): Output current function as constructor
22986 and destructor if requested.
22987
22988 * par-prag.adb: Add processing for pragma Linker_Constructor and
22989 Linker_Destructor.
22990
22991 * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
22992 extracted from Check_Interrupt_Or_Attach_Handler.
22993 (Check_Interrupt_Or_Attach_Handler): Invoke it.
22994 Implement pragma Linker_Constructor and Linker_Destructor with the
22995 help of Find_Unique_Parameterless_Procedure.
22996 Replace Name_Alias with Name_Target for pragma Linker_Alias.
22997
da8f5fd9 22998 * snames.h, snames.ads, snames.adb:
7d300a99
AC
22999 Add Name_Linker_Constructor and Name_Linker_Destructor.
23000 Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
23001 * snames.adb: Remove Name_Alias.
23002
23003 * trans.c: Include cgraph.h.
23004 (build_global_cdtor): New function.
23005 (Compilation_Unit_to_gnu): Build global constructor and destructor if
23006 needed.
23007 (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
23008 of objects too.
23009 (addressable_p) <COMPONENT_REF>: Unconditionally test
23010 DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
23011
23012 * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
23013 variable if it is external.
23014
23015 (static_ctors, static_dtors): New global variables.
23016 (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
23017 <ATTR_LINK_DESTRUCTOR>: Likewise.
23018 (end_subprog_body): Chain function as constructor and destructor
23019 if requested.
23020
23021 * exp_util.adb (Force_Evaluation): Unconditionally invoke
23022 Remove_Side_Effects with Variable_Ref set to true.
23023 (Remove_Side_Effects): Handle scalar types first. Use a renaming
23024 for non-scalar types even if Variable_Ref is true and for class-wide
23025 expressions.
23026
230272005-07-04 Ed Schonberg <schonberg@adacore.com>
23028
23029 * exp_attr.adb (Mod): Evaluate condition expression with checks off,
23030 to prevent spurious warnings.
23031
230322005-07-04 Thomas Quinot <quinot@adacore.com>
23033
23034 * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
23035 Itypes. Itypes are really unexpected there.
23036 (Build_TypeCode_Function): Generalise special processing for Itypes to
23037 handle the case of numeric implicit base types as well as enumerated
23038 ones.
23039
230402005-07-04 Ed Schonberg <schonberg@adacore.com>
23041
23042 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
23043 controlled, indicate the expected type of the dereference that is
23044 created for the call to Deep_Finalize, to prevent spurious errors when
23045 the designated type is private and completed with a derivation from
23046 another private type.
23047
230482005-07-04 Vincent Celier <celier@adacore.com>
23049
23050 * make.adb (Change_To_Object_Directory): When unable to change the
23051 current dir to the object directory, output the full path of the
23052 directory.
23053
230542005-07-04 Matthew Gingell <gingell@adacore.com>
23055
23056 * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
23057
23058 * indepsw-linux.adb: Replace by...
23059
23060 * indepsw-gnu.adb: ...this new file
23061
230622005-07-04 Vincent Celier <celier@adacore.com>
23063
23064 * mlib-prj.adb (Auto_Initialize): New constant String
23065 (SALs_Use_Constructors): New Boolean function
23066 (Build_Library): Call gnatbind with Auto_Initialize switch when
23067 SALs_Use_Constructors returns True.
23068
23069 * mlib-tgt.ads: Minor reformatting
23070
23071 * mlib-utl.ads: Minor reformatting
23072
23073 * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
23074
230752005-07-04 Ed Schonberg <schonberg@adacore.com>
23076
23077 * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
23078 single protected declarations can have an interface list.
23079 (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
23080 with seriously malformed entry declarations, and lead to compilation
23081 abandoned messages.
23082
230832005-07-04 Javier Miranda <miranda@adacore.com>
23084
23085 * par-load.adb: Load the context items in two rounds.
23086
230872005-07-04 Robert Dewar <dewar@adacore.com>
23088
23089 * scng.adb: Do not consider Mod used as an attribute to be a keyword
23090
230912005-07-04 Ed Schonberg <schonberg@adacore.com>
23092 Javier Miranda <miranda@adacore.com>
23093
23094 * sem_ch10.adb (Build_Limited_Views): A type declared with a private
23095 type extension needs a limited view.
23096 Remove previous restriction on private types available through the
23097 limited-view (only tagged private types were previously allowed).
23098 (Install_Withed_Unit): In the code that implements the
23099 legality rule given in AI-377, exclude a child unit with the name
23100 Standard, because it is a homonym of the Standard environment package.
23101
231022005-07-04 Thomas Quinot <quinot@adacore.com>
23103
23104 * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
23105 overloaded function call, carry interpretations from the original tree
23106 to the copy.
23107
231082005-07-04 Ed Schonberg <schonberg@adacore.com>
23109
23110 * sem_ch6.adb (Conforming_Types): If the types are anonymous access
23111 types check whether some designated type is a limited view, and use
23112 the non-limited view if available.
23113
231142005-07-04 Gary Dismukes <dismukes@adacore.com>
23115
23116 * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
23117 constraint of full view of a private view T1 if present, when T2 is a
23118 discriminated full view.
23119
231202005-07-04 Thomas Quinot <quinot@adacore.com>
23121
23122 * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
23123 actual that is a view conversion of a bit packed array reference.
23124
231252005-07-04 Ed Schonberg <schonberg@adacore.com>
23126
23127 * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
23128 present before checking whether an interface type covers a synchronized
23129 type.
23130
231312005-07-04 Ed Schonberg <schonberg@adacore.com>
23132
23133 * sem_util.adb (Is_Object_Reference): An indexed or selected component
23134 whose prefix is an implicit dereference is an object reference. Removes
23135 spurious errors when compiling with -gnatc.
23136
231372005-07-04 Robert Dewar <dewar@adacore.com>
23138
23139 PR ada/22039
7d300a99
AC
23140 * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
23141
231422005-07-04 Matthew Gingell <gingell@adacore.com>
23143
23144 * tracebak.c: Enable tracebacks on ia64 platforms
23145
231462005-07-04 Vincent Celier <celier@adacore.com>
23147
23148 * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
23149 the GNAT BIND command, as gnatbind accepts multiples ALI files with
23150 the -L or -n switches.
23151
231522005-07-04 Vincent Celier <celier@adacore.com>
23153
23154 * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
23155 correctly computed and the main project data is not modified while
23156 doing so.
23157 (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
23158 (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
23159 c++linker as this does not work on some platforms.
23160
231612005-07-04 Matthew Heaney <heaney@adacore.com>
23162
23163 * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
23164 was changed.
23165 * a-coinve.adb: Perform constraint checks explicitly.
23166
231672005-07-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23168 Thomas Quinot <quinot@adacore.com>
23169
23170 * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
23171 new target gen-soccon.
23172
231732005-07-04 Robert Dewar <dewar@adacore.com>
23174
23175 * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
23176
231772005-07-04 Thomas Quinot <quinot@adacore.com>
23178
23179 * g-socket.ads (Check_Selector): Minor rewording of comment.
23180
231812005-07-04 Vincent Celier <celier@adacore.com>
23182
23183 * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
23184
231852005-07-04 Thomas Quinot <quinot@adacore.com>
23186
23187 * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
23188
231892005-07-04 Sergey Rybin <rybin@adacore.com>
23190
6f7f72f9 23191 * gnat_ugn.texi: Add description of --eol gnatpp option
7d300a99
AC
23192
231932005-07-04 Eric Botcazou <ebotcazou@adacore.com>
23194 Thomas Quinot <quinot@adacore.com>
23195
6f7f72f9 23196 * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
7d300a99
AC
23197 if the user wants all calls of a subprogram to be flagged,
23198 independently of whether they are made from within the same unit or
23199 another unit.
6f7f72f9
EB
23200 Mention restriction for pragma Linker_Alias on some platforms.
23201 Document pragma Linker_Constructor and Linker_Destructor.
23202 Rewrite documentation of Weak_External, Linker_Section and
23203 Linker_Alias pragmas.
7d300a99 23204
fc64d83c
AC
232052005-07-04 Arnaud Charlet <charlet@adacore.com>
23206
23207 * s-stausa.ads, s-stausa.adb: New files.
23208
cb5fee25
KC
232092005-06-30 Kelley Cook
23210
23211 * all files: Update FSF address in copyright headers.
23212 * gen-soccon.co (main): Output new FSF address in generated files.
23213
617a1b71
PB
232142005-06-28 Paul Brook <paul@codesourcery.com>
23215
23216 * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
23217
0adcdb66
AC
232182005-06-14 Olivier Hainque <hainque@adacore.com>
23219 Eric Botcazou <ebotcazou@adacore.com>
23220
23221 * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
23222 exc_unwind, now that we are generating proper .debug_frame output for
23223 that target.
23224
23225 * tracebak.c: Remove the mips-irix section, as we are now using the
23226 s-mastop based unwinder again.
23227 Under SPARC/Solaris, take into account the stack bias to compute the
23228 frame offset. The stack bias is 0 for the V8 ABI and 2047 for the V9
23229 ABI.
23230
232312005-06-14 Doug Rupp <rupp@adacore.com>
23232
23233 * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
23234
23235 * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
23236
232372005-06-14 Pascal Obry <obry@adacore.com>
23238
23239 * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
23240 a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
23241 a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
23242 package name).
23243
da8f5fd9
AJ
23244 * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
23245 a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
23246 a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
23247 a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
0adcdb66 23248 a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
da8f5fd9
AJ
23249 a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
23250 a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
23251 s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
23252 s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
23253 s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
23254 s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
23255 s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
23256 s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
23257 s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
23258 s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
23259 s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
23260 s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
23261 s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
23262 s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
23263 s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
23264 s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
23265 s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
23266 s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
23267 s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
23268 s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
23269 s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
23270 s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
23271 s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
23272 s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
0adcdb66
AC
23273 s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
23274 a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
23275 a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
23276 a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
23277 a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
23278 a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
23279 a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
23280 a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
23281 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
23282 a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
23283 a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
23284 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
23285 a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
23286 a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
23287 a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
23288 a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
23289 a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
23290 a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
23291 a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
23292 a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
23293 a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
23294 a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
23295 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
23296 a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
23297 a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
23298 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
23299 a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
23300 a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
23301 dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
23302 g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
23303 g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
23304 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
23305 g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
23306 g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
23307 gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
23308 g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
23309 i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
da8f5fd9
AJ
23310 s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
23311 s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
0adcdb66 23312 s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
da8f5fd9 23313 s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
0adcdb66
AC
23314 s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
23315 s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
23316 s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
23317 s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
23318 s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
23319 s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
23320 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
23321 s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
23322 s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
23323 s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
23324 s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
23325 s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
23326 s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
23327 s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
23328 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
23329 s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
23330 s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
23331 s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
23332 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
23333 s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
23334 s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
23335 s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
23336 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
23337 s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
23338 s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
23339 s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
23340 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
23341 s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
23342 s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
23343 s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
23344 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
23345 s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
23346 s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
23347 s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
23348 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
23349 s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
23350 s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
da8f5fd9
AJ
23351 s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
23352 s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
23353 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
23354 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
23355 s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
23356 s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
23357 s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
0adcdb66
AC
23358 s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
23359 s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
23360 s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
23361 s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
23362 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
23363 s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
da8f5fd9
AJ
23364 s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
23365 s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
0adcdb66
AC
23366 s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
23367 a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
23368 a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
23369 a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
23370 a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
23371 a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
23372 a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
23373 a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
23374 a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
23375 a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
23376 "GNU Ada" to GNAT, use proper casing for RUN-TIME.
23377
233782005-06-14 Jose Ruiz <ruiz@adacore.com>
23379 Arnaud Charlet <charlet@adacore.com>
23380
23381 * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
23382 longer protected objects. They have been replaced by lower-level
23383 suspension objects made up by a mutex and a condition variable (or
23384 their equivalent given a particular OS) plus some internal data to
23385 reflect the state of the suspension object.
23386 (Initialize, Finalize): Add this initialization procedure for
23387 Suspension_Object, which is a controlled type.
23388 (Finalize): Add the finalization procedure for Suspension_Object,
23389 which is a controlled type.
23390
23391 * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
23392 Ada.Synchronous_Task_Control because there is no longer a need for a
23393 VxWorks specific version of this package. Target dependencies
23394 has been moved to System.Task_Primitives.Operations.
23395
23396 * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
23397 longer needed.
23398 (InitializeCriticalSection, EnterCriticalSection,
23399 LeaveCriticalSection, DeleteCriticalSection): Replace the type
23400 pCriticalSection by an anonymous access type so that we avoid problems
23401 of accessibility to local objects.
23402
23403 * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
23404 s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
23405 s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
23406 s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
23407 s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
23408 set the environment task mask here.
23409 (Current_State): Add this function that returns the state of the
23410 suspension object.
23411 (Set_False): Add this procedure that sets the state of the suspension
23412 object to False.
23413 (Set_True): Add this procedure that sets the state of the suspension
23414 object to True, releasing the task that was suspended, if any.
23415 (Suspend_Until_True): Add this procedure that blocks the calling task
23416 until the state of the object is True. Program_Error is raised if
23417 another task is already waiting on that suspension object.
23418 (Initialize): Add this procedure for initializing the suspension
23419 object. It initializes the mutex and the condition variable which are
23420 used for synchronization and queuing, and it sets the internal state
23421 to False.
23422 (Finalize): Add this procedure for finalizing the suspension object,
23423 destroying the mutex and the condition variable.
23424
23425 * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
23426 s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
23427 s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
23428 s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
23429 which provides a low-level abstraction (using operating system
23430 primitives) for Ada.Synchronous_Task_Control.
23431 This object is made up by a mutex (for ensuring mutual exclusion), a
23432 condition variable (for queuing threads until the condition is
23433 signaled), a Boolean (State) indicating whether the object is open,
23434 and a Boolean (Waiting) reflecting whether there is a task already
23435 suspended on this object.
23436
23437 * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
23438 s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
23439 s-intman-vms.ads, s-intman-mingw.adb,
23440 (Initialize_Interrupts): Removed, no longer used.
23441
23442 * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
23443 (Setup_Interrupt_Mask): New procedure.
23444
23445 * s-intman-vxworks.ads, s-intman-vxworks.adb: Update comments.
23446
23447 * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
23448
23449 * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
23450 this is no longer done in the body of s-taprop
23451 (Server_Task): Explicitely test for Pending_Action in case
23452 System.Parameters.No_Abort is True.
23453
23454 * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
23455 is no longer done in the body of s-taprop
23456
234572005-06-14 Robert Dewar <dewar@adacore.com>
23458
23459 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
23460 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
23461 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
23462 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
23463 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
23464 system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
23465 system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
23466 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
23467 system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
23468 system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
23469 system-linux-hppa.ads, system-vms_64.ads,
23470 system-vxworks-alpha.ads: Minor comment update for
23471 AI-362 (unit is Pure).
23472
23473 * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
23474 Add pragma Pure_05 for AI-362
23475 Make remaining conversion functions obsolescent in Ada 95
23476
23477 * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
23478 Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
23479 Add entries for a-wichun and a-zchuni
23480 Add a-widcha a-zchara for AI-395
23481 Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
23482
23483 * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
23484 Add entries for a-wichun.o and a-zchuni.o
23485 Entries for a-widcha.o and a-zchara.o
23486 Add entry for a-chacon.o
23487
23488 * a-ztenau.adb: Add with of Ada.Characters.Conversions
23489
23490 * a-chacon.ads, a-chacon.adb: New files.
23491
23492 * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
23493 categorization violations.
23494
23495 * a-strmap.ads: Add pragma Pure_05 for AI-362
23496 * a-strmap.ads: Add note on implicit categorization for AI-362
23497
23498 * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
23499
23500 * par-prag.adb: Dummy entry for pragma Persistent_BSS
23501 Set Ada_Version_Explicit, for implementation of AI-362
23502 Add processing for pragma Pure_05 and Preelaborate_05
23503 Add entry for Assertion_Policy pragma
23504
23505 * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
23506 when needed for proper processing of categorization stuff
23507
da8f5fd9 23508 * sem_cat.adb:
0adcdb66
AC
23509 For several cases, make errors in preealborate units warnings,
23510 instead of errors, if GNAT_Mode is set. For AI-362.
23511
23512 * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
23513 preelaborate unit is now warning if in GNAT mode
23514
23515 * s-stoele.ads: Document AI-362 for pragma preelaborate
23516
235172005-06-14 Doug Rupp <rupp@adacore.com>
23518
23519 * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
23520 s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
23521 Default_Exception_Msg_Max_Length: new parameter.
23522
23523 * a-except.ads: (Exception_Msg_Max_Length): Set to
23524 System.Parameters.Default_Exception_Msg_Max_Length
23525 Add pragma Preelaborate_05 for AI-362
23526 Add warnings off to allow categorization violations for AI-362
23527
235282005-06-14 Vincent Celier <celier@adacore.com>
23529
23530 * gnatsym.adb: Adapt to modification of package Symbols: procedure
23531 Process is now in package Processing.
23532
23533 * symbols.ads, symbols.adb:
23534 (Processing): New package, containing procedure Process
23535
da8f5fd9 23536 * symbols-vms-alpha.adb:
0adcdb66
AC
23537 Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
23538
23539 * symbols-vms.adb, symbols-processing-vms-alpha.adb,
23540 symbols-processing-vms-ia64.adb: New files.
23541
235422005-06-14 Pascal Obry <obry@adacore.com>
23543
23544 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
23545 implementation. This new version generates the proper DllMain routine
23546 to initialize the SAL. The DllMain is generated in Ada and compiled
23547 before being added as option to the library build command.
23548
235492005-06-14 Doug Rupp <rupp@adacore.com>
23550 Pascal Obry <obry@adacore.com>
23551
23552 * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
23553 call to decc$translate_vms.
23554 (__gnat_locate_regular_file): Check if the path_val contains quotes. We
23555 need to remove those quotes before catenating the filename.
23556 (__gnat_locate_exec_on_path): improvements to the Win32 section:
23557 * avoid allocating the memory twice for better efficiency;
23558 * allocate 32K buffer for environment expansion as suggested by MSDN;
23559 * prepend ".;" to the path so that current directory is searched too.
23560
235612005-06-14 Robert Dewar <dewar@adacore.com>
23562
23563 * a-except.adb (Exception_Identity): return Null_Id for null occurrence
23564 instead of raising CE (AI-241)
23565 Add warnings off to allow categorization violations for AI-362
23566
235672005-06-14 Robert Dewar <dewar@adacore.com>
23568
23569 * ali-util.adb, gnatbind.adb: Remove references to
23570 Force_RM_Elaboration_Order.
23571
23572 * switch-b.adb: Remove recognition of -f switch
23573
235742005-06-14 Pascal Obry <obry@adacore.com>
23575
23576 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
23577 implementation which is slightly more efficient.
23578
235792005-06-14 Gary Dismukes <dismukes@adacore.com>
23580 Javier Miranda <miranda@adacore.com>
23581 Ed Schonberg <schonberg@adacore.com>
23582 Hristian Kirtchev <kirtchev@adacore.com>
23583
23584 * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
23585 allocator's designated type is a class-wide type, and compiling for
23586 Ada 2005, emit a run-time check that the accessibility level of the
23587 type given in the allocator's expression is not deeper than the level
23588 of the allocator's access type.
23589
23590 (Tagged_Membership): Modified to gives support to abstract interface
23591 types.
23592
23593 * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
23594 Access_Level.
23595 (Descendant_Tag): New predefined function
23596 (Is_Descendant_At_Same_Level): New predefined function
23597 (Get_Access_Level): New private function
23598 (Set_Access_Level): New private procedure
23599 (IW_Membership): New function. Given the tag of an object and the tag
23600 associated with an interface, evaluate if the object implements the
23601 interface.
23602 (Register_Interface_Tag): New procedure used to initialize the table of
23603 interfaces used by the IW_Membership function.
23604 (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
23605 of the dispatch table.
23606 (Inherit_TSD): Modified to copy the table of ancestor tags plus the
23607 table of interfaces of the parent.
23608 (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
23609 (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
23610 (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
23611 and raise Tag_Error if the passed tag equalis No_Tag, to conform with
23612 Ada 2005 semantics for the new predefined function.
23613
23614 * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
23615 call to Descendant_Tag rather than Internal_Tag.
23616 (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
23617 the accessibility level of the attribute's Item parameter is not deeper
23618 than the level of the attribute's prefix type. Tag_Error is raised if
23619 the check fails. The check is only emitted for Ada_05.
23620 (Find_Stream_Subprogram): If a TSS exists on the type itself for the
23621 requested stream attribute, use it.
23622 (Expand_N_Attribute_Reference): If the designated type is an interface
23623 then rewrite the referenced object as a conversion to force the
23624 displacement of the pointer to the secondary dispatch table.
23625 (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
23626 is a dereference of an object with a constrained partial view.
23627
23628 * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
23629 type is a class-wide type, emit a run-time check that the accessibility
23630 level of the returned object is not deeper than the level of the
23631 function's master (only when compiling for Ada 2005).
23632
23633 * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
23634 Action_Nb_Arg): Add entries for new Get_Access_Level and
23635 Set_Access_Level routines in these tables.
23636 (Make_DT): Generate a call to set the accessibility level of the
23637 tagged type in its TSD.
23638 (Make_DT): Code cleanup. The functionality of generating all the
23639 secondary dispatch tables has been moved to freeze_record_type.
23640 (Make_Abstract_Interface_DT): Minor code cleanup.
23641 (Set_All_DT_Position): Code cleanup. As part of the code cleanup
23642 this subprogram implements a new algorithm that provides the
23643 same functionality and it is more clear in case of primitives
23644 associated with abstract interfaces.
23645 (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
23646 clean up, the functionality of this subprogram is now provided
23647 by Set_All_DT_Position.
23648 (Write_DT): New subprogram: a debugging procedure designed to be called
23649 within gdb to display the dispatch tables associated with a tagged
23650 type.
23651 (Collect_All_Interfaces): New subprogram that collects the whole list
23652 of interfaces that are directly or indirectly implemented by a tagged
23653 type.
23654 (Default_Prim_Op_Position): New subprogram that returns the fixed
23655 position in the dispatch table of the default primitive operations.
23656 (Expand_Interface_Actuals): New subprogram to generate code that
23657 displaces all the actuals corresponding to class-wide interfaces to
23658 reference the interface tag of the actual object.
23659 (Expand_Interface_Conversion): New subprogram. Reference the base of
23660 the object to give access to the interface tag associated with the
23661 secondary dispatch table.
23662 (Expand_Interface_Thunk): New subprogram that generates the code of the
23663 thunk. This is required for compatibility with the C+ ABI.
23664 (Make_Abstract_Interface_DT): New subprogram that generate the
23665 declarations for the secondary dispatch tables associated with an
23666 abstract interface.
23667 (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
23668 attribute for each primitive operation covering interface subprograms
23669 (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
23670 These subprograms were upgraded to give support to abstract interfaces
23671
23672 * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
23673 RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
23674 RE_Set_Access_Level.
23675 (RE_Unit_Table): Add entries for new Ada.Tags operations.
23676 Add support to call the followig new run-time subprograms:
23677 IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
23678
23679 * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
23680 match its full declaration when both have an access definition with
23681 statically matching designated subtypes.
23682 (Analyze_Component_Declaration): Delete commented out code that was
23683 incorrectly setting the scope of an anonymous access component's type.
23684 (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
23685 an access discriminant when the containing type is nonlimited.
23686 (Make_Incomplete_Type_Declaration): Create an incomplete type
23687 declaration for a record type that includes self-referential access
23688 components.
23689 (Check_Anonymous_Access_Types): Before full analysis of a record type
23690 declaration, create anonymous access types for each self-referential
23691 access component.
23692 (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
23693 an access component in this context is a Local_Anonymous_Access, for
23694 proper accessibility checks.
23695 (Access_Definition): Set properly the scope of the anonymous access type
23696 created for a stand-alone access object.
23697 (Find_Type_Of_Object): An object declaration may be given with an access
23698 definition.
23699 (Complete_Subprograms_Derivation): New subprogram used to complete
23700 type derivation of private tagged types implementing interfaces.
23701 In this case some interface primitives may have been overriden
23702 with the partial-view and, instead of re-calculating them, they
23703 are included in the list of primitive operations of the full-view.
23704 (Build_Derived_Record_Type): Modified to give support to private
23705 types implemening interfaces.
23706 (Access_Definition): Reject ALL on anonymous access types.
23707 (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
23708 type derivation to occur at a deeper accessibility level than the
23709 parent type.
23710 For the case of derivation within a generic body however, disallow the
23711 derivation if the derived type has an ancestor that is a formal type
23712 declared in the formal part of an enclosing generic.
23713 (Analyze_Object_Declaration): For protected objects, remove the check
23714 that they cannot contain interrupt handlers if not declared at library
23715 level.
23716 (Add_Interface_Tag_Components): New subprogram to add the tag components
23717 corresponding to all the abstract interface types implemented by a
23718 record type or a derived record type.
23719 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
23720 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
23721 Process_Full_View, Record_Type_Declaration): Modified to give
23722 support to abstract interface types
23723 (Collect_Interfaces): New subprogram that collects the list of
23724 interfaces that are not already implemented by the ancestors
23725 (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
23726 when partial view has no discriminants and full view has defaults.
23727 (Constrain_Access): Reject a constraint on a general access type
23728 if the discriminants of the designated type have defaults.
23729 (Access_Subprogram_Declaration): Associate the Itype node with the inner
23730 full-type declaration or subprogram spec. This is required to handle
23731 nested anonymous declarations.
23732 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
23733 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
23734 Process_Full_View, Record_Type_Declaration): Modified to give
23735 support to abstract interface types
23736 (Derive_Subprograms): Addition of a new formal to indicate if
23737 we are in the case of an abstact-interface derivation
23738 (Find_Type_Of_Subtype_Indic): Moved from the body of the package
23739 to the specification because it is requied to analyze all the
23740 identifiers found in a list of interfaces
23741
23742 * debug.adb: Complete documentation of flag "-gnatdZ"
23743
23744 * exp_ch3.adb: Implement config version of persistent_bss pragma
23745 (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
23746 testing for TSS presence to properly enforce visibility rules.
23747 (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
23748 Make_Abstract_Interfaces_DT to generate the secondary tables
23749 associated with abstract interfaces.
23750 (Build_Init_Procedure): Modified to initialize all the tags
23751 corresponding.
23752 (Component_Needs_Simple_Initialization): Similar to other tags,
23753 interface tags do not need initialization.
23754 (Freeze_Record_Type): Modified to give support to abstract interface
23755 types.
23756 (Expand_N_Object_Declaration): Do not generate an initialization for
23757 a scalar temporary marked as internal.
23758
23759 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
23760 in-out parameter that is a component in an initialization procedure,
23761 whose constraint might depend on discriminants, and that may be
23762 misaligned because of packing or representation clauses.
23763 (Is_Legal_Copy): New predicate to determine whether a possibly
23764 misaligned in-out actual can actually be passed by copy/return. This
23765 is an error in case the type is by_reference, and a warning if this is
23766 the consequence of a DEC import pragma on the subprogram.
23767 (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
23768 interface types
23769 (Expand_Inlined_Call): Mark temporary generated for the return value as
23770 internal, so that no useless scalar normalization is generated for it.
23771 (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
23772 null procedure can always be inlined.
23773 (Expand_N_Subprogram_Declaration): If this is the declaration of a null
23774 procedure, generate an explicit empty body for it.
23775
23776 * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
23777 Given a type implementing an interface, returns the corresponding
23778 access_disp_table value.
23779 (Find_Interface_Tag): New subprogram. Given a type implementing an
23780 interface, returns the record component containing the tag of the
23781 interface.
23782 (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
23783 previous ones that return the corresponding tag and access_disp_table
23784 entities.
23785 (Is_Predefined_Dispatching_Operation): Determines if a subprogram
23786 is a predefined primitive operation.
23787 (Expand_Subtype_From_Expr): If the expression is a selected component
23788 within an initialization procedure, compute its actual subtype, because
23789 the component may depend on the discriminants of the enclosing record.
23790
da8f5fd9 23791 * i-cpp.ads, i-cpp.adb:
0adcdb66
AC
23792 This package has been left available for compatibility with previous
23793 versions of the frontend. As part of the new layout this is now a
23794 dummy package that uses declarations available at a-tags.ads
23795
23796 * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
23797 "constant access" and "aliased [constant] access" when not compiling
23798 with -gnat05.
23799 Suppress Ada 2005 keyword warning if -gnatwY used
23800 (P_Identifier_Declarations): Add support for object declarations with
23801 access definitions.
23802 (Private_Extension_Declaration): Complete the documentation
23803 (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
23804 attribute in case of private extension declaration
23805 (P_Type_Declaration): Mark as "abstract" the type declarations
23806 corresponding with protected, synchronized and task interfaces
23807 (P_Declarative_Items): "not" and "overriding" are overriding indicators
23808 for a subprogram or instance declaration.
23809
23810 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
23811 instantiation that is a dispatching operation has controlling access
23812 parameters that are null excluding.
23813 Save and restore Ada_Version_Explicit, for implementation of AI-362
23814 (Validate_Derived_Type_Instance): Add check for abstract interface
23815 types.
23816 (Analyze_Formal_Package): Establish Instantiation source for the copy of
23817 the generic that is created to represent the formal package.
23818 (Analyze_Package_Instantiation): Instantiate body immediately if the
23819 package is a predefined unit that contains inlined subprograms, and
23820 we are compiling for a Configurable_Run_Time.
23821 (Instantiate_Formal_Subprogram): Indicate that null default subprogram
23822 If the program has a null default, generate an empty body for it.
23823
23824 * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
23825 error message condition, null procedures are correctly detected now.
23826 (New_Overloaded_Entity): Bypass trivial overriding indicator check
23827 for subprograms in the context of protected types. Instead, the
23828 indicator is examined in Sem_Ch9 while analysing the subprogram
23829 declaration.
23830 (Check_Overriding_Indicator): Check consistency of overriding indicator
23831 on subprogram stubs as well.
23832 (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
23833 the library level.
23834 (Analize_Subprogram_Specification): When analyzing a subprogram in which
23835 the type of the first formal is a concurrent type, replace this type
23836 by the corresponding record type.
23837 (Analyze_Subprogram_Body): Undo the previous work.
23838 (Analyze_Procedure_Call): If the call has the form Object.Op, the
23839 analysis of the prefix ends up analyzing the call itself, after which
23840 we are done.
23841 (Has_Interface_Formals): New subprogram subsidiary to analyze
23842 subprogram_specification that returns true if some non
23843 class-wide interface subprogram is found
23844 (New_Overloaded_Entity): Modified to give support to abstract
23845 interface types
23846 (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
23847 access to subprograms must be recursive.
23848 (Is_Unchecked_Conversion): Improve the test that recognizes
23849 instantiations of Unchecked_Conversion, and allows them in bodies that
23850 are to be inlined by the front-end. When the body comes from an
23851 instantiation, a reference to Unchecked_Conversion will be an
23852 Expanded_Name, even though the body has not been analyzed yet.
23853 Replace Is_Overriding and Not_Overriding in subprogram_indication with
23854 Must_Override and Must_Not_Override, to better express intent of AI.
23855 (Analyze_Subprogram_Body): If an overriding indicator is given, check
23856 that it is consistent with the overrinding status of the subprogram
23857 at this point.
23858 (Analyze_Subprogram_Declaration): Indicate that a null procedure is
23859 always inlined.
23860 If the subprogram is a null procedure, indicate that it does not need
23861 a completion.
23862
23863 * sem_disp.adb (Check_Controlling_Type): Give support to entities
23864 available through limited-with clauses.
23865 (Check_Dispatching_Operation): A stub acts like a body, and therefore is
23866 allowed as the last primitive of a tagged type if it has no previous
23867 spec.
23868 (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
23869 to give support to abstract interface types
23870
23871 * sem_res.adb (Valid_Conversion): Perform an accessibility level check
23872 in the case where the target type is an anonymous access type of an
23873 object or component (that is, when Is_Local_Anonymous_Access is true).
23874 Prevent the special checks for conversions of access discriminants in
23875 the case where the discriminant belongs to a nonlimited type, since
23876 such discriminants have their accessibility level defined in the same
23877 way as a normal component of an anonymous access type.
23878 (Resolve_Allocator): When an allocator's designated type is a class-wide
23879 type, check that the accessibility level of type given in the
23880 allocator's expression or subtype indication is not statically deeper
23881 than the level of the allocator's access type.
23882 (Check_Discriminant_Use): Diagnose discriminant given by an expanded
23883 name in a discriminant constraint of a record component.
23884 (Resolve_Explicit_Dereference): Do not check whether the type is
23885 incomplete when the dereference is a use of an access discriminant in
23886 an initialization procedure.
23887 (Resolve_Type_Conversion): Handle conversions to abstract interface
23888 types.
23889 (Valid_Tagged_Conversion): The conversion of a tagged type to an
23890 abstract interface type is always valid.
23891 (Valid_Conversion): Modified to give support to abstract interface types
23892 (Resolve_Actuals): Enable full error reporting on view conversions
23893 between unrelated by_reference array types.
23894 The rule for view conversions of arrays with aliased components is
23895 weakened in Ada 2005.
23896 Call to obsolescent subprogram is now considered to be a violation of
23897 pragma Restrictions (No_Obsolescent_Features).
23898 (Check_Direct_Boolean_Operator): If the boolean operation has been
23899 constant-folded, there is nothing to check.
23900 (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
23901 check on possible violation of restriction No_Direct_Boolean_Operators
23902 until after expansion of operands, to prevent spurious errors when
23903 operation is constant-folded.
23904
23905 * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
23906 Has_Compatible_Type): Modified to give support to abstract interface
23907 types.
23908 (Interface_Present_In_Ancestor): New function to theck if some ancestor
23909 of a given type implements a given interface
23910
23911 * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
23912 prefix is a parameterless function that returns an access_to_procedure.
23913 (Transform_Object_Operation): Handle properly function calls of the
23914 form Obj.Op (X), which prior to analysis appear as indexed components.
23915 (Analyze_One_Call): Complete the error notification to help new Ada
23916 2005 users.
23917 (Analyze_Allocator): For an allocator without an initial value, where
23918 the designated type has a constrained partial view, a discriminant
23919 constraint is illegal.
23920
239212005-06-14 Robert Dewar <dewar@adacore.com>
23922
23923 * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
23924 do with treatment of Set_Col when positioned at end of line character.
23925
239262005-06-14 Robert Dewar <dewar@adacore.com>
23927
23928 * atree.adb: (Elist*): Protect against uninitialized field
23929
239302005-06-14 Ed Schonberg <schonberg@adacore.com>
23931
23932 * checks.adb (Install_Null_Excluding_Check): Do not generate checks
23933 for an attribute reference that returns an access type.
23934 (Apply_Discriminant_Check): No need for check if (designated) type has
23935 constrained partial view.
23936
23937 (Apply_Float_Conversion_Check): Generate a short-circuit expression for
23938 both bound checks, rather than a conjunction.
23939 (Insert_Valid_Check): If the expression is an actual that is an indexed
23940 component of a bit-packed array, force expansion of the packed element
23941 reference, because it is specifically inhibited elsewhere.
23942
239432005-06-14 Vincent Celier <celier@adacore.com>
23944
23945 * clean.adb (Clean_Project): Correctly delete executable specified as
23946 absolute path names.
23947
23948 * make.adb (Gnatmake): Allow relative executable path names with
23949 directory information even when project files are used.
23950 (Change_To_Object_Directory): Fail gracefully when unable to change
23951 current working directory to object directory of a project.
23952 (Gnatmake): Remove exception handler that could no longer be exercized
23953 (Compile_Sources.Compile): Use deep copies of arguments, as some of them
23954 may be deallocated by Normalize_Arguments.
23955 (Collect_Arguments): Eliminate empty arguments
23956
23957 * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
23958 and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
23959 (Check_Project): Return False when Project is No_Project. Return True
23960 when All_Projects is True.
23961 (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
23962 All_Projects to True.
23963 Minor reformatting
23964
239652005-06-14 Ed Schonberg <schonberg@adacore.com>
23966 Javier Miranda <miranda@adacore.com>
23967 Thomas Quinot <quinot@adacore.com>
23968 Robert Dewar <dewar@adacore.com>
23969 Hristian Kirtchev <kirtchev@adacore.com>
23970 Gary Dismukes <dismukes@adacore.com>
23971
23972 * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
23973 anonymous access types, to indicate that the accessibility level of
23974 the type is determined by that of the enclosing declaration.
23975 (Has_Persistent_BSS): New flag
23976 (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
23977 of this attribute with functions.
23978 (Is_Primitive_Wrapper): Remove the barrier.
23979 (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
23980 Has_Specified_Stream_Read, Has_Specified_Stream_Write):
23981 New subprograms.
23982 (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
23983 Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
23984 New subprograms.
23985 (Is_Pure_Unit_Access_Type): New flag
23986 (Abstract_Interfaces): Complete the assertion to cover all usages.
23987 (Set_Is_Interface): Complete the assertion to cover all usages.
23988 (Is_Primitive_Wrapper): New attribute.
23989 (Is_Obsolescent): Now applies to all entities (though it is only set
23990 for subprograms currently)
23991 New flag: Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
23992 which solves various problems concerning access subtypes.
23993 (Has_Persistent_BSS): New flag
23994 (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
23995 Remove these subprograms because this attribute is currently
23996 not used.
23997 New entity flags:
23998 Has_Specified_Stream_Input (Flag190)
23999 Has_Specified_Stream_Output (Flag191)
24000 Has_Specified_Stream_Read (Flag192)
24001 Has_Specified_Stream_Write (Flag193)
24002 Present in all type and subtype entities. Set for a given view if the
24003 corresponding stream-oriented attribute has been defined by an
24004 attribute definition clause. When such a clause occurs, a TSS is set
24005 on the underlying full view; the flags are used to track visibility of
24006 the attribute definition clause for partial or incomplete views.
24007 (Is_Pure_Unit_Access_Type): New flag
24008 Clarify use of Is_Internal.
24009 (Is_Primitive_Wrapper): New attribute present in primitive subprograms
24010 internally generated to wrap the invocation of tasks and protected
24011 types that implement interfaces.
24012 (Implementation_Base_Type): Documentation correction
24013 (Is_Obsolescent): Now applies to all entities (though it is only set
24014 for subprograms currently)
24015 New flag: Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
24016 which solves various problems concerning access subtypes.
24017
24018 * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
24019 for examined parameters. Identify unequal parameter list lengths as
24020 non-conformant parameters.
24021 (Overriding_Possible): Do not check for "All" qualifier in declaration
24022 of controlling access parameter, following prescription of AI-404.
24023 (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
24024 that build the procedure body that wraps an entry invocation
24025 (Build_Corresponding_Record, Build_Protected_Sub_Specification,
24026 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
24027 Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
24028 give support to abstract interface types
24029
24030 * freeze.adb (Freeze_Entity): Issue error message if
24031 Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
24032 type has no storage pool (Ada 2005) AI-366.
24033 Also modified to give support to abstract interface types
24034 (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
24035 Inline_Always pragma.
24036
24037 * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
24038 now begin an entry declaration.
24039 (P_Entry_Or_Subprogram_With_Indicator): New procedure in
24040 P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
24041 a subprogram declaration preceded by an overriding indicator.
24042 (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
24043 declarations or subprogram declarations preceded by reserved words
24044 "not" or "overriding".
24045 (P_Entry_Declaration): Update comment. Parse and check overriding
24046 indicator, set semantic flags of entry declarations.
24047 (P_Task): New error message in case of private applied
24048 to a task type declaration.
24049 (P_Protected): New error message in case of private applied
24050 to a task type declaration.
24051
24052 * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
24053 in which the full view of a type implementing an interface is a
24054 concurrent type.
24055 (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
24056 Declare_Inherited_Private_Subprograms): If an explicit operation
24057 overrides an operation that is inherited in the private part, mark the
24058 explicit one as overriding, to enable overriding indicator checks.
24059 (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
24060 full view to partial view, to simplify handling in back-end.
24061
24062 * sprint.adb: Print interface lists where needed: derived types,
24063 protected types, task types.
24064 output "is null" for null procedures. Part of implementation of
24065
24066 * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
24067 relaxation of rules for access types in pure, shared passive partitions.
24068
24069 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
24070 first read discriminants into temporary objects, performing checks on
24071 the read values, then possibly performing discriminant checks on the
24072 actual (if it is constrained), and only finally reading the components
24073 into a constrained temporary object.
24074 (Build_Elementary_Input_Call): Adjust the specific circuitry for the
24075 case of reading discriminants of a mutable record type to recognize
24076 the new form of the code generated by
24077 Build_Mutable_Record_Read_Procedure.
24078
24079 * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
24080 of a simple call to Make_TSS_Name.
24081 (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
24082 buffer, in order for Is_TSS to work correctly on local TSS names.
24083
24084 * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
24085 Is_Local_Anonymous_Access to check legaliy of attributes in the
24086 context of access components and stand-alone access objects.
24087 (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
24088 treated as available for a limited private type if there is an
24089 attribute_definition_clause that applies to its full view, but not in
24090 other cases where the attribute is available for the full view
24091 (specifically, the sole fact that the full view is non-limited does not
24092 make the attribute available for the partial view).
24093 (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
24094 non-overloaded intrinsic subprogram.
24095 (Check_Stream_Attribute): Reject an attribute reference for an
24096 unavailable stream attribute even if the prefix is not a limited type
24097 (case of a 'Input attribute reference for an abstract, non-classwide
24098 type)
24099 (Stream_Attribute_Available): New function to determine whether a stream
24100 attribute is available at a place.
24101 (Check_Attribute): Use Stream_Attribute_Available instead of just
24102 testing for TSS presence on the implementation base type.
24103 (Analyze_Attribute): Modified to give support to task interfaces.
24104 (Analyze_Access_Attribute): Add error check for use of an Access (or
24105 Unrestricted_Access) attribute with a subprogram marked as
24106 Inline_Always.
24107 (Analyze_Attribute, case Attribute_Address): Add error check for use of
24108 an Address attribute with a subprogram marked as Inline_Always.
24109 Update Eval_Attribute to handle new value of Width from AI-395
24110
24111 * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
24112 (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
24113 Factor common code across the stream-oriented attribute circcuits into
24114 a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
24115 processing is functionally identical to the previous duplicated one,
24116 except that an expression that denotes an abstract subprogram will now
24117 be rejected, as mandated by AI-195 item 5.
24118
24119 * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
24120 Is_Local_Anonymous_Access to apply accessibility checks to access
24121 components and stand-alone access objects.
24122 (Has_Discriminant_Dependent_Constraint): Moved to spec for use
24123 elsewhere.
24124 (Is_Potentially_Persistent_Type): New function
24125 (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
24126 a heap-object whose type has a constrained partial view, the object is
24127 unconstrained and the component may depend on a discriminant, making its
24128 renaming illegal.
24129
24130 * sinfo.ads, sinfo.adb
24131 (Must_Not_Override): Flag applicable to N_Entry_Declaration.
24132 (Must_Override): Flag applicable to N_Entry_Declaration.
24133 Indicate that interface_list can appear in single task and single
24134 protected declarations.
24135 Replace Is_Overriding and Not_Overriding with Must_Override and
24136 Must_Not_Override, to better express intent of AI.
24137 Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
24138 of an overriding indicator in a subprogram or instance.
24139 Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
24140 Add the overriding indicator [[not] overriding] construct to the
24141 following grammar productions:
24142 ENTRY_DECLARATION
24143 GENERIC_INSTANTIATION
24144 SUBPROGRAM_SPECIFICATION
24145
24146 * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
24147 can start with an overriding indicator.
24148
24149 * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
24150 flags accordingly on subrogram specifications or instances.
24151
da8f5fd9 24152 * sem_ch8.adb:
0adcdb66
AC
24153 (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
24154 overriding_indicator, if present, is consistent with status of spec.
24155 Improve error message for null-excluding checks on controlling access
24156 parameters.
24157 (Check_In_Previous_With_Clause): Protect the frontend against
24158 previously reported critical errors in the context clauses.
24159 Save and restore Ada_Version_Explicit, for implementation of AI-362
24160 (Analyze_Subprogram_Renaming): If the new entity is a dispatching
24161 operation verify that controlling formals of the renamed entity that
24162 are access parameters are explicitly non-null.
24163 (Find_Expanded_Name): Improve error message when prefix is an illegal
24164 reference to a private child unit.
24165
24166 * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
da8f5fd9 24167 s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
0adcdb66
AC
24168 Rewrite to correspond to new wide character names in AI-395
24169
6f7f72f9
EB
24170 * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
24171 default procedures.
0adcdb66
AC
24172
241732005-06-14 Ed Schonberg <schonberg@adacore.com>
24174 Robert Dewar <dewar@adacore.com>
24175
24176 * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
24177 code, not on the bodies of predefined operations, to cut down on
24178 spurious noise.
24179
241802005-06-14 Ed Schonberg <schonberg@adacore.com>
24181
24182 * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
24183 be expanded in place. The size computation does not require a
24184 subtraction, which would raise an exception on a compiler built with
24185 assertions when the upper bound is Integer'first.
24186 (Flatten): For an array of composite components, take into account the
24187 size of the components to determine whether it is safe to expand the
24188 array into a purely positional representation.
24189
241902005-06-14 Thomas Quinot <quinot@adacore.com>
24191
24192 * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
24193 denoting a formal parameter into account.
24194
241952005-06-14 Ed Schonberg <schonberg@adacore.com>
24196
24197 * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
24198 the entry_call alternative of a conditional entry call, wrap the
24199 conditional entry call itself.
24200
242012005-06-14 Nicolas Setton <setton@adacore.com>
24202 Ed Schonberg <schonberg@adacore.com>
24203
24204 * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
24205 the "simple_choice" member in a variant record, in accordance with the
24206 description in the package spec: the information output for a constant
24207 should be "S number", not "SS number".
24208 (Get_Encoded_Name): Return at once if not generating code. Avoids name
24209 overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
24210
242112005-06-14 Thomas Quinot <quinot@adacore.com>
24212
24213 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
24214 RACW without any primitives, do not generate the if statement for
24215 dispatching by name in the PolyORB/DSA case, as it would be malformed
24216 (it would have an Elsif_Parts list that is not No_List, but with a
24217 length of 0).
24218
242192005-06-14 Robert Dewar <dewar@adacore.com>
24220
24221 * exp_intr.adb, par-ch5.adb: Minor fix to error message text
24222
242232005-06-14 Jose Ruiz <ruiz@adacore.com>
24224
24225 * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
24226 can determine whether pragma Suppress_Exception_Locations is in effect.
24227
24228 * utils2.c (build_call_raise): Do not pass the file name to the
24229 exception handler if pragma Suppress_Exception_Locations is in effect.
24230 (build_allocator): Add and process arg IGNORE_INIT_TYPE.
24231
242322005-06-14 Emmanuel Briot <briot@adacore.com>
24233
24234 * g-debpoo.adb (Deallocate, Dereference): Improve output.
24235
242362005-06-14 Nicolas Roche <roche@adacore.com>
24237
24238 * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
24239 to ""
24240 (Next_Level): Fix minor bug in handling of ../dir case
24241 (Read): Add dir separator to Directory name so that "" is understood as
24242 "/"
24243
242442005-06-14 Pascal Obry <obry@adacore.com>
24245
24246 * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
24247 releasing the items.
24248
242492005-06-14 Vincent Celier <celier@adacore.com>
24250 Cyrille Comar <comar@adacore.com>
24251
24252 * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
24253 with output file descriptor and with output file name.
24254 (Dup, Dup2): Now global procedures as they are used by two subprograms
24255 (Copy): Allocate the 200K buffer on the heap rather than on the stack.
24256
242572005-06-14 Thomas Quinot <quinot@adacore.com>
24258
24259 PR ada/6717
0adcdb66
AC
24260 * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
24261 broadcast address.
24262 (Create_Selector): Bind listening socket used to create the signalling
24263 socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
24264 Set listen backlog to 1 to ensure that we detect socket theft by a
24265 failure of our own connect(2) call.
24266 (Check_Selector): Improve documentation of the selector mechanism.
24267 (Broadcast_Inet_Addr): New constant.
24268
242692005-06-14 Gary Dismukes <dismukes@adacore.com>
24270
24271 * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
24272 type which turns out to be an incomplete and incorrect fix.
24273 (Layout_Array_Type): Use Underlying_Type when checking whether the scope
24274 of the type is declared in a record (for determination of insertion
24275 type).
24276 (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
24277 a private type and ensure that the primary entity is used for the type
24278 of the newly created function's V formal by taking the Etype of the
24279 view.
24280
242812005-06-14 Javier Miranda <miranda@adacore.com>
24282 Jose Ruiz <ruiz@adacore.com>
24283 Robert Dewar <dewar@adacore.com>
24284 Ed Schonberg <schonberg@adacore.com>
24285
24286 * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
24287 that indicates if we are parsing a compilation unit found in a
24288 limited-with clause.
24289 It is use to avoid the circularity check.
24290
24291 * par.ads, par.adb (Par): Addition of a new parameter to indicate if
24292 we are parsing a compilation unit found in a limited-with clause. This
24293 is use to avoid the circularity check.
24294
24295 * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
24296 unit as a consequence of parsing a limited-with clause. This is used
24297 to avoid the circularity check.
24298
24299 * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
24300 (Analyze_Context): Limited-with clauses are now allowed
24301 in more compilation units.
24302 (Analyze_Subunit_Context, Check_Parent): Protect the frontend
24303 againts previously reported critical errors in context clauses
24304 (Install_Limited_Withed_Unit): Code cleanup plus static detection
24305 of two further errors: renamed subprograms and renamed packages
24306 are not allowed in limited with clauses.
24307 (Install_Siblings): Do not install private_with_clauses on the package
24308 declaration for a non-private child unit.
24309 (Re_Install_Parents): When a parent of the subunit is reinstalled,
24310 reset visibility of child units properly.
24311 (Install_Withed_Unit): When a child unit appears in a with_clause of its
24312 parent, it is immediately visible.
24313
243142005-06-14 Ed Schonberg <schonberg@adacore.com>
24315 Emmanuel Briot <briot@adacore.com>
24316
24317 * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
24318 declared within an inlined body as referenced, to prevent spurious
24319 warnings.
24320 (Output_One_Ref): If an entity renames an array component, indicate in
24321 the ALI file that this aliases (renames) the array. Capture as well
24322 function renamings that rename predefined operations.
24323 Add information about generic parent for package and subprogram
24324 instances.
24325 (Get_Type_Reference): For a subtype that is the renaming of an actual in
24326 an instantiation, use the first_subtype to ensure that we don't generate
24327 cross-reference information for internal types.
24328 For objects and parameters of a generic private type, retain the '*'
24329 indicator to distinguish such an entity from its type.
24330
6f7f72f9
EB
24331 * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
24332 to store information about instantiated entities.
0adcdb66 24333
6f7f72f9
EB
24334 * ali.adb (Scan_ALI): Add support for parsing the reference to the
24335 generic parent
0adcdb66 24336
6f7f72f9
EB
24337 * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
24338 (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
24339 information.
0adcdb66
AC
24340
243412005-06-10 Doug Rupp <rupp@adacore.com>
24342 Arnaud Charlet <charlet@adacore.com>
24343 Olivier Hainque <hainque@adacore.com>
24344 Jose Ruiz <ruiz@adacore.com>
24345
24346 * Make-lang.in: Add initialize.o when needed.
24347 Remove obsolete references to RT_FLAGS.
24348 Add missing dependencies for sdefault.o
24349
24350 * initialize.c: New file.
24351
24352 * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
24353 [VMS] cond_signal_table: Fix problem in declaration.
24354 [VMS] __gnat_error_handler: rewrite.
24355 Move all __gnat_initialize() routines to initialize.c
24356 Specialize the former "hpux" section to "hppa hpux", as this is what the
24357 section really is here for and we now have other hpux ports that need
24358 different contents.
24359 (__gnat_adjust_context_for_raise) i386-linux: First version of this
24360 function for this target. Adjust PC by one in the machine context. This
24361 adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
24362 it is more reliable to do that in the signal handler itself.
24363 (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
24364 flags, so that the handler is passed the context structure to adjust
24365 prior to the raise.
24366 (__gnat_error_handler) i386-linux: Adjust the signature to match what a
24367 SA_SIGINFO sigaction should look like. Call
24368 __gnat_adjust_context_for_raise before actually raising. Cleanup unused
24369 Machine_State_Operations stuff.
24370 Add conditional code so that the x86_64 is also supported.
24371
243722005-06-14 Pascal Obry <obry@adacore.com>
24373
24374 * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
24375 the library name.
24376
243772005-06-14 Robert Dewar <dewar@adacore.com>
24378
24379 * opt.ads, opt.adb: New flags for persistent_bss mode
24380 Add Ada_Version_Explicit, for implementation of AI-362
24381 Add Assertions_Enabled_Config and associated handling
24382 Needed since setting can be changed with Assertion_Policy pragma
24383 Add new flag Warn_On_Ada_2005_Compatibility
24384
24385 * switch-c.adb: Recognize -gnatwy/Y
24386 Set Ada_Version_Explicit, for implementation of AI-362
24387 The -gnatg switch now includes -gnatyu
24388
24389 * usage.adb: Add -gnatwy/Y
24390 Remove wrong asterisk on -gnatwX line
24391 Add line for -gnatyu switch
24392
243932005-06-14 Vincent Celier <celier@adacore.com>
24394
24395 * osint.adb (Add_Default_Search_Dirs): Put source and object
24396 directories of project files before directories coming from
24397 ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
24398
243992005-06-14 Robert Dewar <dewar@adacore.com>
24400
24401 PR ada/15613
0adcdb66
AC
24402 * par-ch2.adb (Scan_Pragma_Argument): New procedure
24403 (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
24404
244052005-06-14 Vincent Celier <celier@adacore.com>
24406
24407 * prep.adb (Preprocess): Ignore error when scanning the first token of
24408 a line.
24409
244102005-06-14 Vincent Celier <celier@adacore.com>
24411
24412 * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
24413 (Check_Stand_Alone_Library): If the specified reference symbol file does
24414 not exist, only issue a warning when the symbol policy is not
24415 Controlled. And, when symbol policy is Compliant, set the symbol
24416 policy to Autonomous.
24417
244182005-06-14 Vincent Celier <celier@adacore.com>
24419
24420 * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
24421 when the project file in a with clause is not the last one, that is the
24422 project file name is followed by a comma.
24423 * prj-pp.adb: (First_With_In_List): New Boolean global variable
24424 (Print): Issue list of project files separated by commas in with clauses
24425 according to the values returned by Is_Not_Last_In_List.
24426 * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
24427 (Set_Is_Not_Last_In_List): New procedure
24428
244292005-06-14 Eric Botcazou <ebotcazou@adacore.com>
24430
24431 * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
24432
244332005-06-14 Robert Dewar <dewar@adacore.com>
24434
24435 * scng.adb: Add call to new Check_EOF routine
24436 (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
24437 Add some comments regarding wide character handling
24438
24439 * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
24440
24441 * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
24442
24443 * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
24444 characters are now considered graphic characters and hence yield false
24445 in this call.
24446
6f7f72f9
EB
24447 * nmake.adt: Modify header so that xnmake does not generate output
24448 files with multiple blank lines.
0adcdb66 24449
6f7f72f9
EB
24450 * treeprs.adt: Remove a blank line so that output from xtreeprs does
24451 not have an extra blank line
0adcdb66
AC
24452
244532005-06-14 Gary Dismukes <dismukes@adacore.com>
24454
24455 * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
24456 expression when the component type is an anonymous access type to
24457 ensure that appropriate accessibility checks are done.
24458
24459 * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
24460 expression of an assignment when the target object is of an anonymous
24461 access type. This ensures that required accessibility checks are done.
24462 (One_Bound): Move the check for type Universal_Integer to
24463 Process_Bounds.
24464 (Process_Bounds): Check whether the type of the preanalyzed range is
24465 Universal_Integer, and in that case set Typ to Integer_Type prior
24466 to setting the type of the original range and the calls to One_Bound.
24467
244682005-06-14 Ed Schonberg <schonberg@adacore.com>
24469
24470 * sem_case.adb (Expand_Others_Choice): Improve warning.
24471
244722005-06-14 Ed Schonberg <schonberg@adacore.com>
24473
24474 * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
24475 constraint of full view if present, when other type is discriminated.
24476 (Eval_Relational_Op): Recognize tests of pointer values against Null,
24477 when the pointer is known to be non-null, and emit appropriate warning.
24478
244792005-06-14 Robert Dewar <dewar@adacore.com>
24480 Ed Schonberg <schonberg@adacore.com>
24481
24482 PR ada/10671
0adcdb66
AC
24483 * sem_prag.adb: Implement pragma Persistent_BSS
24484 Remove obsolete pragma Persistent_Data, Persistent_Object
24485 Set Ada_Version_Explicit, for implementation of AI-362
24486 Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
24487 Add processing for pragma Pure_05 and Preelaborate_05
24488 Add processing for Assertion_Policy pragma
24489 Add pragma identifiers for Assert
24490 (Analyze_Pragma, case Assert): Check number of arguments
24491 (Process_Inline): Additional guard against an illegal program, where the
24492 argument of the pragma is undefined, and warnings on redundant
24493 constructs are enabled.
24494 (Analyze_Pragma, case Obsolescent): Allow an optional second argument
24495 Ada_05 to this pragma, specifying that the pragma is only active in
24496 Ada_05 mode.
24497 (Check_Arg_Order): New procedure
24498 Add appropriate calls to this procedure throughout
24499 Also throughout, check entity name before doing any other checks
24500
24501 * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
24502 Remove obsolete pragma Persistent_Data, Persistent_Object
24503 Add entries for pragma Pure_05 and Preelaborate_05
24504 Add entries for Assertion_Policy pragma and associated names
24505 Add some names for pragma argument processing
24506
24507 * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
24508
245092005-06-14 Ed Schonberg <schonberg@adacore.com>
24510
24511 * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
24512 appears within a negation (either from source or as a rewriting of
24513 inequality) adjust text of warning accordingly.
24514
245152005-06-14 Thomas Quinot <quinot@adacore.com>
24516
24517 * s-strxdr.adb: Follow AI95-00132
24518
245192005-06-14 Arnaud Charlet <charlet@adacore.com>
24520
24521 * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
24522
245232005-06-14 Arnaud Charlet <charlet@adacore.com>
24524 Jose Ruiz <ruiz@adacore.com>
24525
24526 * s-tposen.adb, s-tpobop.adb
24527 (Exceptional_Complete_Rendezvous): Save the occurrence and not only
24528 the exception id.
24529 (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
24530 there is no violation of the Max_Entry_Queue_Length restriction (if it
24531 has been set); Program_Error is raised otherwise.
24532 (Requeue_Call): Before requeuing the task on the target entry queue we
24533 check that there is no violation of the Max_Entry_Queue_Length
24534 restriction (if it has been set); Program_Error is raised otherwise.
24535
245362005-06-14 Robert Dewar <dewar@adacore.com>
24537
24538 * styleg.adb: Fix several remaining problems in -gnatyu switch
24539 Blank line count not reset at start
24540 Scanning outside source buffer in some cases
24541 Confusing message for blanks at end of file
24542 Non-empty blank lines not recognized
24543
24544 * nmake.adt: Modify header so that xnmake does not generate output
24545 files with multiple blank lines.
24546
6f7f72f9
EB
24547 * treeprs.adt: Remove a blank line so that output from xtreeprs does
24548 not have an extra blank line
0adcdb66
AC
24549
245502005-06-14 Sergey Rybin <rybin@adacore.com>
24551
24552 * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
24553
245542005-06-14 Doug Rupp <rupp@adacore.com>
24555 Vincent Celier <celier@adacore.com>
24556
24557 * vms_conv.ads, vms_conv.adb: Remove "Library" command.
24558 Update copyright.
24559
24560 * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
24561 Remove "Library" command.
24562 Change keyword for style check -gnatyd from NOCRLF to
24563 DOS_LINE_ENDINGS.
24564 Remove useless second style check keyword NONE
24565 Remove help documentation for inexistent style check keyword
24566 RM_COLUMN_LAYOUT.
24567 Add help documentation for style check keywords DOS_LINE_ENDINGS,
24568 UNNECESSARY_BLANK_LINES and XTRA_PARENS
24569 Add UNNECESSARY_BLANK_LINES for -gnatyu
24570 Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
24571
6f7f72f9 24572 * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
0adcdb66
AC
24573
245742005-06-14 Vincent Celier <celier@adacore.com>
24575
24576 * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
24577 gprmake was invoked with -d.
24578 (Compile_Sources): If -d was used, output the "completed ..." message
24579 for each compilation.
24580 (Scan_Arg): Recognize new switch -d
24581 When -c and at least one main is specified, set
24582 Unique_Compile to True to guarantee that no other sources will be
24583 compiled.
24584
245852005-06-14 Matthew Heaney <heaney@adacore.com>
24586
24587 * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
24588 * a-swuwha.ads, a-swuwha.adb: New files
24589
24590 * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
24591 * a-szuzha.ads, a-szuzha.adb: New files.
24592
24593 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
da8f5fd9
AJ
24594 a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
24595 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
24596 a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
24597 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
0adcdb66 24598 a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
da8f5fd9 24599 a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
0adcdb66
AC
24600 a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
24601 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
24602 a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
24603 Ada 2005 RM.
24604
246052005-06-10 Eric Botcazou <ebotcazou@adacore.com>
24606 Olivier Hainque <hainque@adacore.com>
24607 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24608 Pascal Obry <obry@adacore.com>
24609
24610 * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
24611
24612 * trans.c (call_to_gnu): Issue a warning for users of Starlet when
24613 making a temporary around a procedure call because of non-addressable
24614 actual parameter.
24615 (process_freeze_entity): If entity is a private type, capture size
24616 information that may have been computed for the full view.
24617 (tree_transform, case N_Allocator): If have initializing expression,
24618 check type for Has_Constrained_Partial_View and pass that to
24619 build_allocator.
24620 (tree_transform, case N_Return_Statement): Pass extra arg to
24621 build_allocator.
24622
24623 * decl.c (annotate_value): Remove early return if -gnatR is not
24624 specified.
24625 (gnat_to_gnu_field): Don't make a packable type for a component clause
24626 if the position is byte aligned, the field is aliased, and the clause
24627 size isn't a multiple of the packable alignment. It serves no useful
24628 purpose packing-wise and would be rejected later on.
24629 (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
24630
24631 PR ada/20515
24632 (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
24633 context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
24634 instead.
24635 (create_concat_name): Idem.
24636
246372005-06-10 Robert Dewar <dewar@adacore.com>
24638 Eric Botcazou <ebotcazou@adacore.com>
24639 Ben Brosgol <brosgol@adacore.com>
24640 Cyrille Comar <comar@adacore.com>
24641 Sergey Rybin <rybin@adacore.com>
24642 Pascal Obry <obry@adacore.com>
24643
24644 * gnat_rm.texi: Add documentation for pragma Persistent_BSS
24645 Document second argument (Ada_05) of pragma Obsolescent
24646 Add note that call to subprogram marked with pragma Obsolescent
24647 is now considered to be a violation of program Restrictions
24648 (No_Obsolescent_Features).
24649 (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
24650 that only machine-dependent attributes are supported.
24651
da8f5fd9 24652 * gnat_ugn.texi:
0adcdb66
AC
24653 Commented out menu lines and empty section for gnatclean examples
24654 Document -gnatwy/Y
24655 Fix some over long lines
24656 Clarify and enhance documentation of ADA_PROJECT_PATH.
24657 Rework section 2.11.2(3) about linking with a non-GNU compiler.
24658 Mention new switch -fcallgraph-info.
24659 Mention new switch -fstack-usage.
24660 For gnatpp, replace '-notab' with '-N' and add this option to Index
24661 Corrected VMS example.
24662 VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
24663 Minor reformatting
24664 Add documentation for -gnatyu switch (unnecessary blank lines)
24665 Document new switch -U for GNAT PRETTY and GNAT METRIC
24666 Add note about Stdcall being handled as C convention on non Windows OS.
24667 Remove some junk typo in description of gnatbind -S switch
24668 Remove reference to Extensions_Allowed pragma
24669 Document the new order of the directories to be searched (source and
24670 object directories of project files before directories in ADA_*_PATH
24671 environment variables.
24672
6f7f72f9 24673 * g-trasym.ads: Document that IRIX is supported
0adcdb66
AC
24674
246752005-06-10 Arnaud Charlet <charlet@adacore.com>
24676
24677 * Makefile.in: Add initialize.o when needed.
24678 Adapt to new VMS package body Symbols and subunits
24679 No specialized version of a-sytaco is needed for VxWorks.
24680
24681 * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
24682 * a-zchara.ads, a-widcha.ads: New files.
24683
24684 * system-hpux-ia64.ads: New file.
24685
24686 * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
24687 is imported from the VxWorks kernel.
24688
246892005-06-14 Robert Dewar <dewar@adacore.com>
24690
24691 * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
24692 fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
24693 a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
24694 s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
24695 a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
24696 g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
24697 i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
24698 namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
24699 sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
24700 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
24701 s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
24702 xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
24703
247042005-06-14 Thomas Quinot <quinot@adacore.com>
24705
24706 * xeinfo.adb: Fix typo in comment
24707
247082005-06-14 Javier Miranda <miranda@adacore.com>
24709
24710 * repinfo.ads: Fix typo in comment
24711
247122005-06-14 Gary Dismukes <dismukes@adacore.com>
24713
24714 * s-finimp.adb (Parent_Tag): Delete this imported function (function
24715 Parent_Tag is now in the visible part of Ada.Tags).
24716 (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
24717 using imported function.
24718
247192005-06-14 Bernard Banner <banner@adacore.com>
24720
24721 * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
24722 also apply for handling support for VxSim 653.
24723
247242005-06-14 Eric Botcazou <ebotcazou@adacore.com>
24725
24726 * xsnames.adb: Add automatic generation of snames.h.
24727
247282005-06-14 Thomas Quinot <quinot@adacore.com>
24729
24730 * gen-soccon.c: Add IP_MULTICAST_IF constant
24731 Minor reformatting and adjustments to prevent warnings.
24732
247332005-06-14 Pascal Obry <obry@adacore.com>
24734
24735 * seh_init.c: Do not include <sys/stat.h>. This is not needed.
24736
e0d161cf
AP
247372005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
24738
24739 * trans.c (gnat_gimplify_expr): Call
24740 recompute_tree_invarant_for_addr_expr when we change
24741 the operand of the ADDR_EXPR.
24742
4c714dd4
KG
247432005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24744
24745 * misc.c: Don't include errors.h.
24746
7b9997f3
KG
247472005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24748
24749 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
24750
5ff62c2e
KH
247512005-05-29 Kazu Hirata <kazu@cs.umass.edu>
24752
24753 * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
24754 comment typos.
24755 * gnat_rm.texi, gnat_ugn.texi: Fix typos.
24756
9e94c78f 247572005-05-16 Nathanael Nerode <neroden@gcc.gnu.org>
8b37cc64
NN
24758
24759 PR ada/20270
24760 * Makefile.in: Make TGT_LIB behave correctly.
24761
d4ee4d25
DD
247622005-04-23 DJ Delorie <dj@redhat.com>
24763
24764 * misc.c: Adjust warning() callers.
24765
9e94c78f 247662005-04-16 Laurent Guerby <laurent@guerby.net>
159921c0 24767
6f7f72f9
EB
24768 PR ada/18847
24769 * a-nudira.adb (Value): Check for valid string.
24770 * a-nuflra.adb (Value): Likewise.
159921c0 24771
0b026622
RS
247722005-04-11 Richard Sandiford <rsandifo@redhat.com>
24773
24774 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
24775
bde83138
KH
247762005-04-10 Kazu Hirata <kazu@cs.umass.edu>
24777
24778 * adaint.c, init.c, tracebak.c: Fix comment typos.
24779 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
24780
9e94c78f 247812005-04-07 Laurent Guerby <laurent@guerby.net>
ad9945b5
LG
24782 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24783
24784 * Makefile.in: Add make ifeq define for hppa linux tasking support.
24785 * system-hpux.ads: Define Signed_Zeros to be True.
24786 * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
24787
45f7cb60
KH
247882005-04-01 Kazu Hirata <kazu@cs.umass.edu>
24789
24790 * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
24791 raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
24792 typos.
24793
5662a50d
TT
247942005-03-30 Tom Tromey <tromey@redhat.com>
24795
24796 * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
24797
e6e375cc
AL
247982005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
24799
24800 * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
24801
5db8bc34
AC
248022005-03-29 Robert Dewar <dewar@adacore.com>
24803
24804 * sem_res.adb (Resolve_Real_Literal): Generate warning if static
24805 fixed-point expression has value that is not a multiple of the Small
24806 value.
24807
24808 * opt.ads (Warn_On_Bad_Fixed_Value): New flag
24809
24810 * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
24811 nanoseconds.
24812
24813 * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
24814
248152005-03-29 Vincent Celier <celier@adacore.com>
24816
24817 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
24818 (Build_Dynamic_Library.Version_String): Return the empty string when
24819 Lib_Version is empty or when the symbol policy is not Autonomous.
24820
24821 * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
24822 a symbol is not in the reference symbol file, increase the Major ID
24823 and set the Minor ID to 0.
24824 Use gsmatch=lequal instead of gsmatch=equal
24825
248262005-03-29 Doug Rupp <rupp@adacore.com>
24827
24828 * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
24829 name and translate.
24830
248312005-03-29 Javier Miranda <miranda@adacore.com>
24832
24833 * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
24834 (Inherit_DT): The first formal has been redefined as a Tag.
24835 This allows us the removal of the subprogram Get_TSD.
24836 (TSD): Replace the call to Get_TSD by the actual code.
24837
24838 * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
24839 (Make_DT): Upgrade the call to Inherit_TSD according to the
24840 new interface: the first formal is now a Tag.
24841
24842 * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
24843 redefined as a Tag.
24844 This change allows us to remove the subprogram Get_TSD.
24845 (CPP_Get_TSD): Subprogram removed.
24846 (TSD): Replace the call to CPP_Get_TSD by the actual code.
24847
24848 * rtsfind.ads: Remove support to call the run-time
24849 subprogram Get_TSD
24850
248512005-03-29 Robert Dewar <dewar@adacore.com>
24852
da8f5fd9 24853 * errutil.adb, errout.adb:
5db8bc34
AC
24854 Minor comment updates on Line_Terminator references
24855
24856 * par-ch10.adb: Add ??? comment about line terminator
24857
24858 * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
24859 (check dos line terminator).
24860 (Check_Line_Max_Length): New procedure, split off from the existing
24861 Check_Line_Terminator routine. Separating this out allows -gnatyf to
24862 be properly recognized.
24863
24864 * styleg.adb: Add ??? comment for line terminator reference
24865
24866 * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
24867 (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
24868
24869 * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
24870 (check dos line terminator).
24871 (Check_Line_Max_Length): New procedure, split off from the existing
24872 Check_Line_Terminator routine. Separating this out allows -gnatyf to
24873 be properly recognized.
24874
da8f5fd9 24875 * stylesw.ads, stylesw.adb:
5db8bc34
AC
24876 Add handling for new -gnatyd switch (check dos line terminator)
24877
24878 * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
24879 Recognize -gnatwb/-gnatwB switches
24880 Include Warn_On_Bad_Fixed_Value for -gnatg
24881
da8f5fd9 24882 * usage.adb:
5db8bc34
AC
24883 Add line for new -gnatyd switch (check dos line terminator)
24884
24885 * usage.adb: Add lines for -gnatwb/-gnatwB
24886
24887 * vms_data.ads: Add entry for NOCRLF (-gnatyd)
24888
24889 * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
24890
24891 * gnat_ugn.texi: Fix overlong lines
24892 Document new -gnatyd switch
24893 Document new -gnatwb/-gnatwB switches
24894
248952005-03-29 Ed Schonberg <schonberg@adacore.com>
24896
24897 * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
24898 order to retrieve the component list of the type, before examining
24899 individual components.
24900
24901 * sem_type.adb (Covers): Types are compatible if one is the base type
24902 of the other, even though their base types might differ when private
24903 views are involved.
24904
249052005-03-29 Thomas Quinot <quinot@adacore.com>
24906
24907 * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
24908 To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
24909 of using Set_Renaming_TSS. This ensures that the TSS bodies are not
24910 analyzed if expansion is disabled (which could otherwise cause spurious
24911 error messages if expansion has been disabled due to previous
24912 (unrelated) errors).
24913
24914 * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
24915 is disabled, the entity denoted by the argument is the access type
24916 itself, not an underlying record type, so there is no need to go back
24917 to the Corresponding_Remote_Type.
24918
249192005-03-29 Gary Dismukes <dismukes@adacore.com>
24920 Robert Dewar <dewar@adacore.com>
24921
24922 * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
24923 expand a call to an instance of
24924 Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
24925 Constructor actual of the instance. A class-wide membership
24926 check is also generated, to ensure that the tag passed to the instance
24927 denotes a type in the class.
24928 (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
24929 of Name_Generic_Dispatching_Constructor.
24930
24931 * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
24932 05 unit for AI-260-02).
24933
24934 * a-tgdico.ads: New file.
24935
24936 * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
24937 predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
24938
24939 * snames.ads, snames.adb (Preset_Names): Add entry for
24940 Generic_Dispatching_Constructor.
24941
24942 PR ada/20300
5db8bc34
AC
24943 * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
24944 character type cases.
24945 (Analyze_Subprogram_Renaming): Add special handling for
24946 the case of renaming of stream attributes when the renaming denotes a
24947 generic formal subprogram association for an abstract formal subprogram.
24948 Check that the attribute is a primitive stream attribute (and not
24949 a class-wide stream attribute) and then rewrite the attribute name
24950 as the name of the appropriate compiler-generated stream primitive.
24951
249522005-03-29 Robert Dewar <dewar@adacore.com>
24953
24954 * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
24955 recursive calls.
24956 (Is_Possibly_Unaligned_Object): Correct typo that
24957 resulted in inaccurate result for unaligned scalars within records.
24958
249592005-03-29 Ed Schonberg <schonberg@adacore.com>
24960
24961 * freeze.adb (Freeze_Record_Type): If the type of the component is an
24962 itype whose parent is controlled and not yet frozen, do not create a
24963 freeze node for the itype if expansion is disabled.
24964
249652005-03-29 Vincent Celier <celier@adacore.com>
24966
24967 * make.adb (Gnatmake): Don't fail if the main project file is declared
24968 as having no Ada sources. Do not display message "no sources to
24969 compile" in quiet output.
24970
249712005-03-29 Doug Rupp <rupp@adacore.com>
24972
24973 * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
24974 extra tools.
24975
249762005-03-29 Robert Dewar <dewar@adacore.com>
24977
24978 * par-ch12.adb (P_Generic): Give better msg for illegal private generic
24979 child.
24980
249812005-03-29 Robert Dewar <dewar@adacore.com>
24982
24983 * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
24984 missing TYPE Improve the error message generated when compiling a
24985 limited interface in Ada83 or Ada95 mode.
24986
249872005-03-29 Robert Dewar <dewar@adacore.com>
24988
24989 * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
24990 rather than proceed ahead using a junk attribute name.
24991
249922005-03-29 Vincent Celier <celier@adacore.com>
24993
24994 * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
24995
24996 * prj-part.adb (Parse_Single_Project): Set the location of a project
24997 on its defining identifier, rather than on the reserved word "project".
24998
24999 * prj-proc.adb (Expression): Adapt to the fact that default of external
25000 references may be string expressions, not always literal strings.
25001 (Recursive_Process): Set Display_Name equal to Name
25002 when Location is No_Location, that is when there is no actual file.
25003 Get the Display_Name of the project from the source, when it is not a
25004 virtual project.
25005 (Process): Use the Display_Name in error messages
25006
25007 * prj-strt.adb (External_Reference): Allow default to be string
25008 expressions, not only literal strings.
25009
250102005-03-29 Vincent Celier <celier@adacore.com>
25011
25012 * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
25013 file and the reference symbol file to be the same file.
25014
250152005-03-29 Thomas Quinot <quinot@adacore.com>
25016
25017 * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
25018 forbid conversion of a local access-to-subprogram type to a remote one.
25019
25020 * sem_util.adb (Wrong_Type): For a record type that is the expanded
25021 equivalent type for a remote access-to-subprogram type, go back to the
25022 original RAS entity when displaying an error message, so the casing is
25023 the original source casing.
25024
250252005-03-29 Robert Dewar <dewar@adacore.com>
25026
25027 * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
25028 on param update.
25029
250302005-03-29 Ed Schonberg <schonberg@adacore.com>
25031
25032 * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
25033 subtype if code is being pre-analyzed, to prevent un-expanded
25034 references to protected formals, among others.
25035 (Analyze_Explicit_Dereference): If the overloaded prefix includes some
25036 interpretation that can be a call, include the result of the call as a
25037 possible interpretation of the dereference.
25038
25039 * sem_ch5.adb (Process_Bounds): Determine type of range by
25040 pre-analyzing a copy of the original range, and then analyze the range
25041 with the expected type.
25042
25043 * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
25044 with an overloaded prefix where not all interpretations yield an
25045 access to subprogram, do not rewrite node as a call.
25046 (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
25047 the node as a call once the context identifies the interpretation of
25048 the prefix whose call yields the context type.
25049 (Valid_Conversion): For the case of a conversion between
25050 local access-to-subprogram types, check subtype conformance using
25051 Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
25052 detailed error message.
25053
250542005-03-29 Ed Schonberg <schonberg@adacore.com>
25055
25056 * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
25057 indicator, indicate that the formal can never be null.
25058 (Process_Formals): If a formal has a non_null indicator, insert the
25059 resulting subtype immediately before the enclosing subprogram decl,
25060 and not at the beginning of the corresponding declarative part, to
25061 prevent access before elaboration (Ada2005).
25062
250632005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25064
25065 PR ada/19956
25066 * utils.c (finish_record_type): Use variable_size when setting sizes.
25067
250682005-03-29 Robert Dewar <dewar@adacore.com>
25069
25070 * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
25071 guarantee Unix style line terminators for the output files, even when
25072 running on windows.
25073
250742005-03-29 Robert Dewar <dewar@adacore.com>
25075
25076 * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
25077 buffer if an exception is raised.
25078
250792005-03-29 Ed Falis <falis@adacore.com>
25080
25081 * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
25082 VxWorks 653 1.4
25083
250842005-03-29 Robert Dewar <dewar@adacore.com>
25085
25086 * sem_util.ads: Minor reformatting
25087 * gnat_rm.texi: Minor editing.
25088
250892005-03-29 Eric Botcazou <ebotcazou@adacore.com>
25090
25091 * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
25092 * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
25093
aad9ff31
AL
250942005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
25095
25096 * adaint.c (__gnat_portable_spawn): Adjust cast.
25097
d101034c
JM
250982005-03-23 Joseph S. Myers <joseph@codesourcery.com>
25099
25100 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
25101
3a0c4f5a
AC
251022005-03-17 Pascal Obry <obry@adacore.com>
25103
25104 * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
25105 used.
25106
25107 * expect.c (__gnat_waitpid): Moved here from adaint.c.
25108 Reimplement under Win32 using Win32 API.
25109
25110 (__gnat_kill) [Win32]: Properly close the process handle before leaving
25111 this routine.
25112
251132005-03-17 Eric Botcazou <ebotcazou@adacore.com>
25114
25115 * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
25116 (DECL_RENAMED_OBJECT): New accessor macro.
25117 (SET_DECL_RENAMED_OBJECT): New setter macro.
25118
25119 * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
25120 object in all cases. Attach the renamed object to the VAR_DECL.
25121 (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
25122 field is not prescribed.
25123
25124 * misc.c (gnat_handle_option): Handle -gnatO separately.
25125 (gnat_print_decl) <VAR_DECL>: New case.
25126 Print the DECL_RENAMED_OBJECT node.
25127
25128 * lang.opt: Declare separate -gnatO option.
25129
25130 * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
25131 pointer, replace it with the renamed object.
25132 <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
25133 pointer type if the source is not a fat pointer type whose underlying
25134 array has the same non-zero alias set as that of the destination array.
25135
251362005-03-17 Javier Miranda <miranda@adacore.com>
25137
25138 * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
25139 (Get_Inheritance_Depth): Removed.
25140 (Set_Inheritance_Depth): Removed.
25141
25142 * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
25143 subprogram Get_Expanded_Name because it is not referenced by the
25144 frontend.
25145
25146 * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
25147 (CPP_Get_Inheritance_Depth): Removed.
25148 (CPP_Set_Inheritance_Depth): Removed.
25149
25150 * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
25151
251522005-03-17 Robert Dewar <dewar@adacore.com>
25153
25154 * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
25155 3, since we now expect GCC 3 to do all the work.
25156
251572005-03-17 Javier Miranda <miranda@adacore.com>
25158
25159 * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
25160 of one barrier to avoid wrong usage of this attribute.
25161
25162 * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
25163 First_Private_Entity.
25164
25165 * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
25166 the subprogram against wrong usage.
25167 Adapt the code to traverse the entities in the
25168 scope of a record_type because in addition to its usage regarding
25169 packages, this subprogram is also called by Expand_N_Freeze_Entity
25170 to install the visible declarations of the enclosing scope of a
25171 record_type_with_private to establish the proper visibility before
25172 freezing the entity and related subprograms.
25173
251742005-03-17 Ed Schonberg <schonberg@adacore.com>
25175
25176 * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
25177 entry formals.
25178
251792005-03-17 Thomas Quinot <quinot@adacore.com>
25180
25181 * exp_ch3.adb (Check_Attr): New subprogram.
25182 (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
25183 into a new Check_Attr subprogram, in order to provide a more
25184 explanatory error message (including the name of the missing attribute).
25185 (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
25186 subprogram determines whether a default implementation exists for a
25187 given stream attribute.
25188 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
25189 Determine whether to generate a default implementation for each stream
25190 attribute separately, as this depends on the specific attribute.
25191
25192 * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
25193 limited extension where a stream attribute is missing for a limited
25194 component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
25195 generate a bogus reference to the missing attribute to prevent
25196 cascaded errors. Instead, generate a null statement.
25197
25198 * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
25199 available for a limited type if it has been specified for an ancestor
25200 of the type.
25201
252022005-03-17 Ed Schonberg <schonberg@adacore.com>
25203
25204 * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
25205 entity is an operator.
25206
252072005-03-17 Thomas Quinot <quinot@adacore.com>
25208
25209 * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
25210 spec, to make this predicate available to other units.
25211
25212 * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
25213 reimplementing it.
25214
25215 * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
25216 when no distribution runtime library is available.
25217
25218 * sem_res.adb, sem_dist.adb: Disable expansion of remote
25219 access-to-subprogram types when no distribution runtime library is
25220 available.
25221 (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
25222 predicate available to other units.
25223
25224 * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
25225 spec, to make this predicate available to other units.
25226
252272005-03-17 Vincent Celier <celier@adacore.com>
25228
25229 * make.adb (Insert_Project_Sources): Make sure the Q is always
25230 initialized.
25231
25232 * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
25233 the default for the tree, not the global default naming.
25234
25235 * prj-proc.adb (Recursive_Process): No need to put the default naming
25236 in the project data, it's already there.
25237
252382005-03-17 Doug Rupp <rupp@adacore.com>
25239
25240 * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
25241
6f7f72f9
EB
25242 * 5xcrtl.ads: Renamed to...
25243 * s-crtl-vms64.ads: ...this new file
3a0c4f5a
AC
25244
252452005-03-17 Robert Dewar <dewar@adacore.com>
25246
25247 PR ada/19519
3a0c4f5a
AC
25248 * namet.adb (Copy_One_Character): Set proper wide character encoding
25249 for upper half character if we have upper half encoding.
25250
252512005-03-17 Robert Dewar <dewar@adacore.com>
25252
25253 * par.adb (Par): Improved msg for attempt to recompile predefined unit
25254
252552005-03-17 Thomas Quinot <quinot@adacore.com>
25256
25257 * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
25258 tagged limited type, the TSS is a newly built renaming declaration:
25259 insert it using Set_TSS, not Copy_TSS.
25260
252612005-03-17 Javier Miranda <miranda@adacore.com>
25262
25263 * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
25264 Try_Object_Operation): Analyze the object that is accessible
25265 through the prefix of the subprogram call before we apply
25266 the transformation of the object-operation notation.
25267
252682005-03-17 Jose Ruiz <ruiz@adacore.com>
25269
25270 * s-taprob.adb (Initialize_Protection): Initialize the protected
25271 object's owner to Null_Task.
25272 (Lock): If pragma Detect_Blocking is in effect and the caller of this
25273 procedure is already the protected object's owner then Program_Error
25274 is raised. In addition the protected object's owner is updated.
25275 (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
25276 of this procedure is already the protected object's owner then
25277 Program_Error is raised.
25278 In addition the protected object's owner is updated.
25279 (Unlock): Remove the ownership of the protected object.
25280
25281 * s-taprob.ads (Protection): Add the field Owner, used to store the
25282 protected object's owner.
25283 This component is needed for detecting one type of potentially blocking
25284 operations (external calls on a protected subprogram with the same
25285 target object as that of the protected action). Document the rest of
25286 the components.
25287
25288 * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
25289 Initialize the protected object's owner to Null_Task.
25290 (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
25291 caller of this procedure is already the protected object's owner then
25292 Program_Error is raised.
25293 Do not raise Program_Error when this procedure is called from a
25294 protected action.
25295 (Unlock_Entries): Remove the ownership of the protected object.
25296 (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
25297 of this procedure is already the protected object's owner then
25298 Program_Error is raised.
25299 Do not raise Program_Error when this procedure is called from
25300 a protected action.
25301
25302 * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
25303 used to store the protected object's owner.
25304
25305 * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
25306 effect and this procedure (a potentially blocking operation) is called
25307 from whithin a protected action, Program_Error is raised.
25308 (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
25309 and this procedure (a potentially blocking operation) is called from
25310 whithin a protected action, Program_Error is raised.
25311
253122005-03-17 Vincent Celier <celier@adacore.com>
25313 Nicolas Setton <setton@adacore.com>
25314
25315 * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
25316 switch, not supported by the linker on Darwin. Add '_' before
25317 <library>init, as this character is added unconditionally by the
25318 compiler.
25319 (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
25320 correct one ".dylib". This fixes detection of the archive files when
25321 building library projects.
25322
253232005-03-17 Vincent Celier <celier@adacore.com>
25324
25325 * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
25326 -gnat83, -gnat95 and -gnat05.
25327
253282005-03-17 Vasiliy Fofanov <fofanov@adacore.com>
25329
25330 * gnat_ugn.texi: Document gnatmem restriction
25331
253322005-03-17 Thomas Quinot <quinot@adacore.com>
25333
25334 * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
25335 cleanup
25336
253372005-03-17 Robert Dewar <dewar@adacore.com>
25338
25339 * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
25340 a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
25341 s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
25342
25343 * casing.adb: Comment improvements
25344
253452005-03-17 Pascal Obry <obry@adacore.com>
25346
25347 * g-expect.adb: Minor reformatting.
25348
a1286ef5
ZW
253492005-03-15 Zack Weinberg <zack@codesourcery.com>
25350
25351 * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
25352 (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
25353 to dependencies.
25354
2532808d
VC
253552005-03-15 Vincent Celier <celier@adacore.com>
25356
a1286ef5
ZW
25357 * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
25358 Add new parameter In_Tree to specify the project tree: needed
25359 by the project manager. Adapt to changes in project manager
25360 using new parameter In_Tree.
2532808d 25361
e2d6b9b9
JJ
253622005-03-15 Jakub Jelinek <jakub@redhat.com>
25363
25364 * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
25365 ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
25366 ada/bldtools to avoid make -jN failures.
25367
813edff1
EB
253682005-03-15 Eric Botcazou <ebotcazou@adacore.com>
25369
25370 * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
25371 to NULL_TREE on entry.
25372
4f51c6e7
AC
253732005-03-15 Robert Dewar <dewar@adacore.com>
25374
25375 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
25376 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
25377 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
25378 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
25379 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
25380 system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
25381 system-interix.ads, system-solaris-sparc.ads,
25382 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
25383 system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
25384 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
25385 system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
25386 system-linux-s390.ads, system-linux-s390x.ads: Add line defining
25387 Compiler_System_Version to be False.
25388
25389 * opt.ads: Add new flag Opt.Address_Is_Private
25390
25391 * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
25392 Add new parameter Compiler_System_Version to avoid checking for
25393 completeness of parameters when compiler is compiling itself.
25394 Allows old versions of GNAT to be compiled with new compiler.
25395
253962005-03-15 Eric Botcazou <ebotcazou@adacore.com>
25397
25398 * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
25399 (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
25400 calling thread.
25401 (Stack_Base_Available): New flag.
25402 (Get_Page_Size): New overloaded functions imported from C.
25403 (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
25404 PROT_ON, PROT_OFF): New constants.
25405 (mprotect): New function imported from C.
25406 (pthread_teb_t): New record type.
25407
25408 * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
25409 (Create_Task): Account for the Yellow Zone and the guard page.
25410
254112005-03-15 Vincent Celier <celier@adacore.com>
25412
25413 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
25414 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
25415 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
25416 mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
25417 Library_File_Name_For): Add new parameter In_Tree
25418 to specify the project tree: needed by the project manager.
25419 Adapt to changes in project manager using new parameter In_Tree.
25420 Remove local imports, use functions in System.CRTL.
25421
25422 * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
25423 to use the project manager.
25424
25425 * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
25426 In_Tree to designate the project tree. Adapt to changes in the project
25427 manager, using In_Tree.
25428
25429 * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
25430 Copy_Interface_Sources): Add new parameter In_Tree to specify the
25431 project tree: needed by the project manager.
25432 (Build_Library): Check that Arg'Length >= 6 before checking if it
25433 contains "--RTS=...".
25434
25435 * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
25436 Library_File_Name_For): Add new parameter In_Tree to specify the
25437 project tree: needed by the project manager.
25438
25439 * prj.ads, prj.adb: Major modifications to allow several project trees
25440 in memory at the same time.
25441 Change tables to dynamic tables and hash tables to dynamic hash
25442 tables. Move tables and hash tables from Prj.Com (in the visible part)
25443 and Prj.Env (in the private part). Move some constants from the visible
25444 part to the private part. Make other constants deferred.
25445 (Project_Empty): Make it a variable, not a function
25446 (Empty_Project): Add parameter Tree. Returns the data with the default
25447 naming data of the project tree Tree.
25448 (Initialize): After updating Std_Naming_Data, copy its value to the
25449 component Naming of Project Empty.
25450 (Register_Default_Naming_Scheme): Use and update the default naming
25451 component of the project tree, instead of the global variable
25452 Std_Naming_Data.
25453 (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
25454 Tree is not defaulted, return the default naming data of the Tree.
25455 (Initial_Buffer_Size): Constant moved from private part
25456 (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
25457 variables initialized in procedure Initialize.
25458 (Add_To_Buffer): Add two in out parameters to replace global variables
25459 Buffer and Buffer_Last.
25460 (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
25461 functions.
25462 Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
25463 hash tables.
25464 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
25465 for the project tree.
25466 (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
25467 constant at the beginning of the package spec, so that they cane be used
25468 in subprograms before their full declarations.
25469 (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
25470 (Empty_Project): Add parameter of type Project_Node_Ref
25471 (Private_Project_Tree_Data): Add component Default_Naming of type
25472 Naming_Data.
25473 (Buffer, Buffer_Last): remove global variables
25474 (Add_To_Buffer): Add two in out parameters to replace global variables
25475 Buffer and Buffer_Last.
25476 (Current_Packages_To_Check): Remove global variable
25477 (Empty_Name): Move to private part
25478 (No-Symbols): Make it a constant
25479 (Private_Project_Tree_Data): New type for the private part of the
25480 project tree data.
25481 (Project_Tree_Data): New type for the data of a project tree
25482 (Project_Tree_Ref): New type to designate a project tree
25483 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
25484 for the project tree.
25485
25486 * prj-attr.ads: Add with Table; needed, as package Prj no longer
25487 imports package Table.
25488
25489 * prj-com.adb: Remove empty, no longer needed body
25490
25491 * prj-com.ads: Move most of the content of this package to package Prj.
25492
25493 * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
25494 designate the project node tree and Packages_To_Check to replace
25495 global variable Current_Packages_To_Check.
25496 Add new parameters In_Tree and Packages_To_Check to local subprograms,
25497 when needed. Adapt to changes in project manager with project node tree
25498 In_Tree.
25499
25500 * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
25501 project tree to most subprograms. Move tables and hash tables to
25502 private part of package Prj.
25503 Adapt to changes in project manager using project tree In_Tree.
25504
25505 * prj-makr.adb (Tree): New constant to designate the project node tree
25506 Adapt to change in project manager using project node tree Tree
25507
25508 * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
25509 display the Library_Src_Dir and the Library_Dir.
25510 Add new parameter In_Tree to designate the project node tree to most
25511 subprograms. Adapt to changes in the project manager, using project tree
25512 In_Tree.
25513 (Check_Naming_Scheme): Do not alter the casing on platforms where
25514 the casing of file names is not significant.
25515 (Check): Add new parameter In_Tree to designate the
25516
25517 * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
25518 designate the project tree.
25519 Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
25520
25521 * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
25522 to replace those that were in the private part of package Prj.
25523 Add new parameter In__Tree to designate the project node tree to most
25524 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
25525 (Post_Parse_Context_Clause): When specifying the project node of a with
25526 clause, indicate that it is a limited with only if there is "limited"
25527 in the with clause, not necessarily when In_Limited is True.
25528 (Parse): Add new parameter In_Tree to designate the project node tree
25529
25530 * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
25531 designate the project node tree. Adapt to change in Prj.Tree with
25532 project node tree In_Tree.
25533
25534 * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
25535 tree In_Tree in the call to function Empty_Process to give its initial
25536 value to the project data Processed_Data.
25537 Add new parameters In_Tree to designate the project tree and
25538 From_Project_Node_Tree to designate the project node tree to several
25539 subprograms. Adapt to change in project manager with project tree
25540 In_Tree and project node tree From_Project_Node_Tree.
25541
25542 * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
25543 to replace those that were in the private part of package Prj.
25544 Add new parameter In_Tree to designate the project node tree to most
25545 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
25546
25547 * prj-tree.ads, prj-tree.adb: Add new parameter of type
25548 Project_Node_Tree_Ref to most subprograms.
25549 Use this new parameter to store project nodes in the designated project
25550 node tree.
25551 (Project_Node_Tree_Ref): New type to designate a project node tree
25552 (Tree_Private_Part): Change table to dynamic table and hash tables to
25553 dynamic hash tables.
25554
25555 * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
25556 the project tree to most subprograms. Adapt to changes in project
25557 manager using project tree In_Tree.
25558
25559 * makegpr.adb (Project_Tree): New constant needed to use project
25560 manager.
25561
255622005-03-15 Olivier Hainque <hainque@adacore.com>
25563
25564 * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
25565 for sigactions with SA_SIGINFO set. Call
25566 __gnat_adjust_context_for_raise before raising, to perform the
25567 potentially required adjustments to the machine context for the GCC
25568 unwinder.
25569
25570 * raise.h (__gnat_adjust_context_for_raise): New prototype.
25571
25572 * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
25573 Adjust PC by one in the provided machine context.
25574 (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
25575 so that the handler is passed the context structure to adjust prior to
25576 the raise.
25577 (__gnat_error_handler) HPUX: Adjust the signature to match what an
25578 SA_SIGINFO sigaction should look like. Call
25579 __gnat_adjust_context_for_raise before actually raising.
25580 (__gnat_adjust_context_for_raise): Default noop to help PC
25581 adjustments before raise from signal handlers.
25582 (__gnat_error_handler): Indirectly call a predicate function to
25583 determine if a condition should be resignaled or not.
25584 (__gnat_set_resignal_predicate): User interface to modify the predicate.
25585 (__gnat_default_resignal_p): Default GNAT predicate.
25586
255872005-03-15 Doug Rupp <rupp@adacore.com>
25588
25589 * adaint.c: Prefix #include of VMS system header files with vms/
25590 [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
25591 Do not define a dummy function "convert_addresses" under Darwin,
25592 not needed.
25593
25594 * tb-alvms.c, expect.c: Prefix #include of VMS system header files
25595 with vms/
25596
255972005-03-15 Nicolas Setton <setton@adacore.com>
25598
25599 * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
25600 PPC/AIX.
25601
256022005-03-15 Robert Dewar <dewar@adacore.com>
25603
25604 * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
25605 AI-386.
25606
25607 * a-retide.ads: Minor comment changes
25608
256092005-03-15 Robert Dewar <dewar@adacore.com>
25610
25611 * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
25612 a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
25613 Realloc_For_Chunk to private part of package.
25614 New subprograms for AI-301
25615
25616 * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
25617 Get_Line procedure.
25618 Avoid unnecessary use of Get/Set_Wide_String
25619
256202005-03-15 Robert Dewar <dewar@adacore.com>
25621
25622 PR ada/13470
a1286ef5 25623 * a-stunau.ads, a-stunau.adb:
4f51c6e7
AC
25624 Change interface to allow efficient (and correct) implementation
25625 The previous changes to allow extra space in unbounded strings had
25626 left this interface a bit broken.
25627
25628 * a-suteio.adb: Avoid unnecessary use of Get/Set_String
25629
25630 * g-spipat.ads, g-spipat.adb: New interface for Get_String
25631 Minor reformatting (function specs)
25632
25633 * g-spitbo.adb: New interface for Get_String
25634
25635 * g-spitbo.ads: Minor reformatting
25636
25637 * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
25638
25639 * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
25640
256412005-03-15 Javier Miranda <miranda@adacore.com>
25642 Robert Dewar <dewar@adacore.com>
25643 Thomas Quinot <quinot@adacore.com>
25644 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25645
25646 * atree.ads, atree.adb: Add support for Elist24 field
25647
25648 * atree.h: Fix wrong definition of Field27
25649 Add support for Elist16 field
25650 Add support for Elist24 field
25651
25652 * einfo.ads, einfo.adb (Abstract_Interfaces,
25653 Set_Abstract_Interfaces): New subprograms.
25654 (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
25655 subprograms.
25656 (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
25657 entities rather than a single node.
25658 (Is_Interface, Set_Is_Interface): New subprogram
25659 (First_Tag_Component): New syntesized attribute
25660 (Next_Tag_Component): New synthesized attribute
25661 (Write_Entity_Flags): Upgraded to write Is_Interface
25662 (Write_Field24_Name): Upgraded to write Abstract_Interfaces
25663 (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
25664 (Task_Body_Procedure): New subprogram to read this attribute.
25665 (Set_Task_Body_Procedure): New subprogram to set this attribute.
25666 (Has_Controlled_Component): Now applies to all entities.
25667 This is only a documentation change, since it always worked to apply
25668 this to other than composite types (yielding false), but now this is
25669 official.
25670 Update documentation on Must_Be_Byte_Aligned for new spec
25671
25672 * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
25673 exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
25674 uses of the Access_Disp_Table attribute to reference the first dispatch
25675 table associated with a tagged type. As
25676 part of the implementation of abstract interface types,
25677 Access_Disp_Table has been redefined to contain a list of dispatch
25678 tables (rather than a single dispatch table).
25679 Similarly, upgrade all the references to Tag_Component by the
25680 new attribute First_Tag_Component.
25681 (Find_Inherited_TSS): Moved to exp_tss.
25682 Clean up test in Expand_N_Object_Declaration for cases
25683 where we need to do a separate assignment of the initial value.
25684 (Expand_N_Object_Declaration): If the expression in the
25685 declaration of a tagged type is an aggregate, no need to generate an
25686 additional tag assignment.
25687 (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
25688 is to be deleted.
25689 Bit packed array ops are only called if operands are known to be
25690 aligned.
25691 (Component_Equality): When returning an N_Raise_Program_Error statement,
25692 ensure that its Etype is set to Empty to avoid confusing GIGI (which
25693 expects that only expressions have a bona fide type).
25694 (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
25695 determine the amount of data to be copied.
25696
25697 * par.adb (P_Interface_Type_Definition): New subprogram that parses the
25698 new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
25699 INTERFACE_TYPE_DEFINITION ::=
25700 [limited | task | protected | synchronized] interface
a1286ef5 25701 [AND interface_list]
4f51c6e7
AC
25702
25703 * par-ch3.adb (P_Type_Declaration): Modified to give support to
25704 interfaces.
25705 (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
25706 interfaces.
25707 (P_Interface_Type_Definition): New subprogram that parses the new
25708 syntax rule of Ada 2005 interfaces
25709 (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
25710 messages by the correct RENAMES (quotes removed).
25711
25712 * sem_prag.adb: Upgrade all the references to Tag_Component by the new
25713 attribute First_Tag_Component.
25714
25715 * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
25716 (Interface_List, Set_Interface_List): New subprograms.
25717 (Interface_Present, Set_Interface_Present): New subprograms.
25718 (Limited_Present, Set_Limited_Present): Available also in derived
25719 type definition nodes.
25720 (Protected_Present, Set_Protected_Present): Available also in
25721 record type definition and
25722 derived type definition nodes.
25723 (Synchronized_Present, Set_Synchronized_Present): New subprograms.
25724 (Task_Present, Set_Task_Present): New subprogram.
25725 (Task_Body_Procedure): Removed.
25726 (Set_Task_Body_Procedure): Removed.
25727 These subprogram have been removed because the attribute
25728 Task_Body_Procedure has been moved to the corresponding task type
25729 or task subtype entity to leave a field free to store the list
25730 of interfaces implemented by a task (for AI-345)
25731 Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
25732 (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
25733 expression flag Do_Range_Check
25734 (Exception_Junk): Change to Flag7 to accomodate above change
25735 (Box_Present, Default_Name, Specification, Set_Box_Present,
25736 Set_Default_Name, Set_Specification): Expand the expression
25737 "X in N_Formal_Subprogram_Declaration" into the corresponding
25738 two comparisons. Required to use the csinfo tool.
25739
25740 * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
25741 "with string" given.
25742
a1286ef5
ZW
25743 * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
25744 expression given.
4f51c6e7
AC
25745
25746 * par-ch11.adb (P_Raise_Statement): Recognize with string expression
25747 in 2005 mode
25748
25749 * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
25750 attribute Task_Body_Procedure rather than the old semantic field that
25751 was available in the task_type_declaration node.
25752
25753 * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
25754 interface type definitions.
25755 (P_Formal_Derived_Type_Definition): Modified to handle the list of
25756 interfaces.
25757
25758 * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
25759 task type declaration.
25760 (P_Protected): Modified to handle the list of interfaces in a
25761 protected type declaration.
25762
257632005-03-15 Doug Rupp <rupp@adacore.com>
25764 Vincent Celier <celier@adacore.com>
25765
25766 * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
25767 (Gen_Output_File_C): Likewise.
25768 (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
25769
257702005-03-15 Thomas Quinot <quinot@adacore.com>
25771
25772 * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
25773 is an N_Raise_Constraint_Error node, create a new copy of it without
25774 going through a call to Duplicate_Subexpr.
25775
257762005-03-15 Eric Botcazou <ebotcazou@adacore.com>
25777 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25778 Nicolas Setton <setton@adacore.com>
25779 Ed Schonberg <schonberg@adacore.com>
25780
25781 PR ada/19900
25782 PR ada/19408
25783 PR ada/19140
25784 PR ada/20255
4f51c6e7
AC
25785 * decl.c (gnat_to_gnu_field): Reject aliased components with a
25786 representation clause that prescribes a size not equal to the rounded
25787 size of their types.
25788 (gnat_to_gnu_entity, case E_Component): Always look at
25789 Original_Record_Component if Present and not the entity.
25790 (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
25791 of tagged extension types by not making field for components that are
25792 inside the parent.
25793 (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
25794 (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
25795 expression to the type of the object when the object is constant.
25796 Reverse defer_debug_incomplete_list before traversing it, so that trees
25797 are processed in the order at which they were added to the list. This
25798 order is important when using the stabs debug format.
25799 If we are deferring the output of debug information, also defer this
25800 output for a function return type.
25801 When adding fields to a record, prevent emitting debug information
25802 for incomplete records, emit the information only when the record is
25803 complete.
25804 (components_to_record): New parameter defer_debug.
25805 (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
25806 (gnat_to_gnu_field_decl): New function.
25807 (substitution_list, annotate_rep): Call it.
25808 (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
25809 (gnat_to_gnu_entity, case E_Record_Type): Likewise.
25810 No longer update discriminants to not be a COMPONENT_REF.
25811 (copy_alias_set): Strip padding from input type; also handle
25812 unconstrained arrays properly.
25813
25814 * gigi.h (write_record_type_debug_info): New function.
25815 Convert to use ANSI-style prototypes. Remove unused
25816 declarations for emit_stack_check, elab_all_gnat and
25817 set_second_error_entity.
25818 (gnat_to_gnu_field_decl): New decl.
25819
25820 * utils.c (write_record_type_debug_info): New function.
25821 (finish_record_type): Delegate generation of debug information to
25822 write_record_type_debug_info.
25823 (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
25824 (update_pointer_to): Fix pasto.
25825 (convert) <UNION_TYPE>: Accept slight type variations when
25826 converting to an unchecked union type.
25827
25828 * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
25829 replace the N_Freeze_Entity with a null statement.
25830
25831 * freeze.adb (Freeze_Expression): If the freeze nodes are generated
25832 within a constrained subcomponent of an enclosing record, place the
25833 freeze nodes in the scope stack entry for the enclosing record.
25834 (Undelay_Type): New Subprogram.
25835 (Set_Small_Size): Pass T, the type to modify; all callers changed.
25836 (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
25837 within records; allow them to have freeze nodes if their base types
25838 aren't frozen yet.
25839
017205f5
EB
25840 * exp_util.adb (Remove_Side_Effects): Properly test for
25841 Expansion_Delayed and handle case when it's inside an
25842 N_Qualified_Expression.
25843
4f51c6e7
AC
25844 * sem_ch3.adb (Derived_Type_Declaration): New predicate
25845 Comes_From_Generic, to recognize accurately that the parent type in a
25846 derived type declaration can be traced back to a formal type, because
25847 it is one or is derived from one, or because its completion is derived
25848 from one.
25849 (Constrain_Component_Type): If component comes from source and has no
25850 explicit constraint, no need to constrain in in a subtype of the
25851 enclosing record.
25852 (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
25853 Minor change to propagate Is_Ada_2005 flag
25854
25855 * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
25856 Expansion_Delayed is False.
25857 (assoc_to_constructor): Ignore fields that have a
25858 Corresponding_Discriminant.
25859 (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
25860 function returns "by target", dereference the target pointer using the
25861 type of the actual return value.
25862 <all>: Be prepared for a null gnu_result.
25863 (processed_inline_subprograms): Check flag_really_no_inline
25864 instead of flag_no_inline.
25865 (set_second_error_entity): Remove unused function.
25866 (gnat_to_gnu, case N_Selected_Component): Call
25867 gnat_to_gnu_field_decl.
25868 (assoc_to_constructor): Likewise.
25869
258702005-03-15 Robert Dewar <dewar@adacore.com>
25871 Ed Schonberg <schonberg@adacore.com>
25872 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25873
4f51c6e7
AC
25874 * exp_pakd.adb (Create_Packed_Array_Type): Do not set
25875 Must_Be_Byte_Aligned for cases where we do not need to use a
25876 System.Pack_nn unit.
25877
25878 * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
25879 as procedures.
25880 Needed now that we do some processing for IN parameters as well. This
25881 may well fix some unrelated errors.
25882 (Expand_Call): Handle case of unaligned objects (in particular those
25883 that come from packed arrays).
25884 (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
25885 renamed entity is an inherited operation, re-expand the call using the
25886 original operation, which is the one to call.
25887 Detect attempt to inline parameterless recursive subprogram.
25888 (Represented_As_Scalar): Fix to work properly with private types
25889 (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
25890 accurate estimate. Yields True in far fewer cases than before,
25891 improving the quality of code that depends on this test.
4f51c6e7
AC
25892
25893 * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
25894 over both visible and private declarations to remove them from tree,
25895 and mark subprograms declared in package as eliminated, to prevent
25896 spurious use in subsequent compilation of generic units in the context.
25897
25898 * exp_util.ads: Minor cleanup in variable names
25899
25900 * sem_eval.ads, sem_eval.adb: Minor reformatting
25901 (Compile_Time_Known_Bounds): New function
25902
259032005-03-15 Ed Schonberg <schonberg@adacore.com>
25904
25905 * exp_ch7.adb (Convert_View): Use base types of underlying types when
25906 determining whether an unchecked conversion is needed for the argument
25907 of an initialization call.
25908
259092005-03-15 Ed Schonberg <schonberg@adacore.com>
25910
25911 * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
25912 that appears in the instantiation rather than the internal subtype
25913 generated in the wrapper package, to avoid anomalies in gigi when the
25914 target is derived from a private type whose full view is an access type.
25915
259162005-03-15 Robert Dewar <dewar@adacore.com>
25917
25918 * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
25919 not needed.
25920 Add documentation to replace the use of this flag
25921 Fix kludge for Maximum_Alignment on x86 so that it does not apply to
25922 the x86_64.
25923
259242005-03-15 Thomas Quinot <quinot@adacore.com>
25925
25926 * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
25927 here from exp_attr so it can be shared between exp_attr and exp_dist.
25928 (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
25929 all TSS names, not a subset thereof, and the previous name introduced
25930 an unnecessarily confusion that a distinction might exist between
25931 "OK" TSS names and some "not OK" TSS names.
25932
259332005-03-15 Doug Rupp <rupp@adacore.com>
25934
25935 * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
25936 Command_Name.
25937
259382005-03-15 Pascal Obry <obry@adacore.com>
25939 Eric Botcazou <ebotcazou@adacore.com>
25940
25941 PR ada/20226
25942 PR ada/20344
4f51c6e7
AC
25943 * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
25944 when IN_RTS. This is to work around a bootstrap path problem.
25945
25946 * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
25947 table and pass it to __gnat_install_SEH_handler().
25948 (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
25949
25950 * lang.opt: Fix specification of -fRTS=.
25951
259522005-03-15 Doug Rupp <rupp@adacore.com>
25953 Bernard Banner <banner@adacore.com>
25954 Vincent Celier <celier@adacore.com>
25955 Arnaud Charlet <charlet@adacore.com>
25956
25957 PR ada/6852
25958 This change works fine when gnatlib is built from the gcc directory,
25959 but does not work when using the libada Makefile, since GCC_FOR_TARGET
25960 is not passed to ada/Makefile.in, so more work is needed by a
25961 Makefile/configure expert.
25962
25963 * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
25964 set GMEM_LIB on ia64 linux to add optional support for gnatmem.
25965 Setup gnatlink switch -M for x86_64 linux, as it is already setup
25966 for Linux x86.
25967 (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
25968 Run ranlib on libgccprefix.a
25969 Define PREFIX_OBJS for Darwin, to build libgccprefix.
25970 (ADA_INCLUDE_SRCS): Split Ada packages.
25971
259722005-03-15 Robert Dewar <dewar@adacore.com>
25973
25974 * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
25975
25976 * impunit.adb: Add GNAT.UTF_32
25977
25978 * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
25979
25980 * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
25981 now uses GNAT.UTF_32).
25982
25983 * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
25984 capabilities for categorizing characters using Unicode categories
25985
259862005-03-15 Ed Schonberg <schonberg@adacore.com>
25987
25988 * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
25989 instantiation that has been rewritten as a package body, retrieve spec
25990 to generate proper name for implicit_with_clause.
25991 (Install_Parents): Recognize a parent that is an instantiation but has
25992 been rewritten as a package declaration during analysis.
25993
259942005-03-15 Javier Miranda <miranda@adacore.com>
25995 Ed Schonberg <schonberg@adacore.com>
25996
25997 * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
25998 parameter reported some error we immediately return. This improves the
25999 behaviour of the frontend in case of errors.
26000 (Install_Parent, Remove_Parent): Introduce new flag
26001 Parent_Unit_Visible, to preserve the proper visibility of the ultimate
26002 ancestor of a generic child unit, when the child is being instantiated.
26003 (Inline_Instance_Body): If we are compiling the private
26004 part or the body of a child unit, restore the proper visibility of the
26005 parents after compiling the instance body.
26006
260072005-03-15 Ed Schonberg <schonberg@adacore.com>
26008 Javier Miranda <miranda@adacore.com>
26009
26010 PR ada/15608
26011 * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
26012 of a private type, in which case it is underlying_type that denotes
26013 the proper task. Also modified to use the new entity attribute
26014 that is directly available in the task type and task subtype entities
26015 (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
26016 arrays when other dimensions than the first are constrained by
26017 discriminants of an enclosing record.
26018 (Insert_Explicit_Dereference): If the prefix is an indexed component or
26019 a combination of indexed and selected components, find ultimate entity
26020 and generate the appropriate reference for it, to suppress spurious
26021 warnings.
26022 (Note_Possible_Modification): If an entity name has no entity, return.
26023 (Is_Variable): A function call never denotes a variable.
26024 (Requires_Transient_Scope): For record types, recurse only on
26025 components, not on internal subtypes that may have been generated for
26026 constrained components.
26027
260282005-03-15 Ed Schonberg <schonberg@adacore.com>
26029
26030 * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
26031 Eliminated as candidates for resolution. Both efficient, and avoids
26032 anomalies with operators declared in deleted code.
26033 (Process_Implicit_Dereference_Prefix): Use this procedure whenever
26034 expansion is disabled (as when compiling a generic) to prevent spurious
26035 warnings on prefixes of selected components.
26036
260372005-03-15 Ed Schonberg <schonberg@adacore.com>
26038
26039 * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
26040 attached to a list before checking whether it appears in the private
26041 declarations of the current package.
26042 (Make_Inequality_Operator): Insert declaration in proper declarative
26043 list rather than just setting the Parent field, so that
26044 Is_Private_Declaration can handle it properly.
26045
260462005-03-15 Ed Schonberg <schonberg@adacore.com>
26047
26048 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
26049 a renaming a body, check that the renamed subprogram in not intrinsic.
26050 (Find_Direct_Name): If several use_visible entities hide
26051 each other, and the context is a predefined file compiled through
26052 rtsfind, keep only the entity that comes from a predefined file.
26053
260542005-03-15 Geert Bosch <bosch@adacore.com>
26055
26056 * s-fatgen.adb (Valid): Extend special exceptions to account for long
26057 long float padding to also cover AMD64 and IA64.
26058
260592005-03-15 Gary Dismukes <dismukes@adacore.com>
26060
26061 * s-imgwch.adb: Add with and use of Interfaces.
26062 (Img_Wide_Character): Change type of Val to Unsigned_16.
26063 (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
26064
260652005-03-15 Matthew Gingell <gingell@adacore.com>
26066
26067 * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
26068
260692005-03-15 Robert Dewar <dewar@adacore.com>
26070
26071 * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
26072
26073 * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
26074
26075 * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
26076
260772005-03-15 Robert Dewar <dewar@adacore.com>
26078
26079 * s-bitops.adb, s-bitops.ads,
26080 s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
26081 s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
26082 tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
26083 s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
26084 s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
26085 s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
26086 s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
26087 s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
26088 reformatting.
26089
260902005-03-15 Eric Botcazou <ebotcazou@adacore.com>
26091
26092 * utils2.c (build_binary_op): Fix typo.
26093
260942005-03-15 Doug Rupp <rupp@adacore.com>
26095
26096 * s-crtl.ads (popen,pclose): New imports.
26097
260982005-03-15 Cyrille Comar <comar@adacore.com>
26099
26100 * comperr.adb (Compiler_Abort): remove references to obsolete
26101 procedures in the bug boxes for various GNAT builds.
26102
261032005-03-15 Vincent Celier <celier@adacore.com>
26104
26105 * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
26106
261072005-03-15 Geert Bosch <bosch@adacore.com>
26108 Arnaud Charlet <charlet@adacore.com>
26109 Robert Dewar <dewar@adacore.com>
26110 Cyrille Comar <comar@adacore.com>
26111 Sergey Rybin <rybin@adacore.com>
26112
26113 * gnat_ugn.texi: Remove extended inline assembly example, as it was far
26114 too specific and long-winded to be appropriate for the GNAT User's
26115 Guide.
26116 Warn about use of GCC switches not documented in the GNAT User's Guide,
26117 as these may cause generated code to not conform to Ada semantics.
26118 Remove mention of -gdwarf-2 for sparc64, since this is now the default.
26119 Add documentation for -gnat95 and -gnat05 switches
26120 Remove paragraph documenting obsolete way to refer to third party
26121 libraries.
26122 Add a few references to Ada_05 that were missing.
26123 Update documentation on -gnatZ/-gnatL.
26124 Document limitation when using -m64 under Solaris.
26125 Change the "Name Casing" subsection of the pretty-printer section
26126 according to the changes in the dictionary processing.
26127
26128 * gnat_rm.texi: Document the Ada_05 pragma.
26129 Section on record representation clauses describes the new more
26130 relaxed rules about placement of large packed bit array components.
26131 Add documentation of GNAT.UTF_32
26132
9e94c78f 261332005-03-12 Daniel Berlin <dberlin@dberlin.org>
c75ab022
DB
26134
26135 * misc.c (gnat_post_options): Turn off structural
26136 aliasing for now.
4f51c6e7 26137
9e94c78f 261382005-03-08 Laurent Guerby <laurent@guerby.net>
391bdf45
LG
26139
26140 * system-linux-sparc.ads: Fix typo in previous commit.
26141
9e94c78f
EB
261422005-03-07 James A. Morrison <phython@gcc.gnu.org>
26143 Laurent Guerby <laurent@guerby.net>
fe8a06f2 26144
a1286ef5
ZW
26145 PR ada/20035
26146 * system-linux-sparc.ads: New.
26147 * Makefile.in: Add sparc linux entry.
fe8a06f2 26148
a1286ef5 261492005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
9811fd17 26150
a1286ef5 26151 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
9811fd17
DS
26152 parameters as unused.
26153
5395b47b
NN
261542005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
26155 Partial merge from libada-gnattools-branch:
26156
26157 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
a1286ef5
ZW
26158 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
26159 into code in gnattools/Makefile.in. Remove direct dependencies on
26160 stamp-tools by tools clauses.
5395b47b 26161 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
a1286ef5 26162 * config-lang.in: Add gnattools to $lang_dirs.
5395b47b 26163
4fa0972f
AP
261642005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
26165
26166 PR ada/19942
2532808d 26167 * utils.c (gnat_type_for_mode): Return null instead of ICE because
a1286ef5 26168 we asked for an unknown mode.
4fa0972f 26169
bd0b34a8
RH
261702005-02-12 Richard Henderson <rth@redhat.com>
26171
26172 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
26173 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
26174
0ebbef54
AJ
261752005-02-10 Andreas Jaeger <aj@suse.de>
26176
26177 * init.c (__gnat_initialize): Mark parameter as unused.
26178
fc5a191d
AC
261792005-02-09 Doug Rupp <rupp@adacore.com>
26180
26181 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
26182 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
26183
261842005-02-09 Doug Rupp <rupp@adacore.com>
26185
26186 * gnatchop.adb (dup, dup2),
26187 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
26188
26189 * gnatlbr.adb (mkdir),
26190 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
26191
26192 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
26193
261942005-02-09 Doug Rupp <rupp@adacore.com>
26195
26196 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
26197
261982005-02-09 Robert Dewar <dewar@adacore.com>
26199 Thomas Quinot <quinot@adacore.com>
26200 Javier Miranda <miranda@adacore.com>
26201 Pascal Obry <obry@adacore.com>
26202 Ed Schonberg <schonberg@adacore.com>
26203 Doug Rupp <rupp@adacore.com>
26204 Gary Dismukes <dismukes@adacore.com>
26205 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26206
26207 * g-zstspl.ads: New file.
26208
26209 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
26210
26211 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
26212 Ada 95 mode
26213 Add definition of Wide_Wide_Space for AI-285
26214
26215 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
26216 interface (to support Ada 95 and Ada 2005 units).
26217 Add Unbounded_IO files
26218 Add entries for Wide_Wide packages for AI-285
26219 Add list of containers packages to Ada 2005 unit list
26220
26221 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
26222 support new Unbounded_IO package cleanly.
26223
26224 * g-utf_32.ads, g-utf_32.adb: New files.
26225
26226 * Makefile.rtl: Add entry for g-utf_32
26227 Add new files for Unbounded_IO
26228 Adjust make file for new AI-285 wide wide packages
26229 Add AI-302 containers to the run time.
26230
26231 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
26232 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
26233 subprograms for AI-301.
26234
26235 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
26236
26237 * a-stunau.ads: Minor comment correction
26238
26239 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
26240 etc.
26241 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
26242 (Check_RPC): Update to match changes in expanded code.
26243 Clean up unused entity.
26244
26245 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
26246 was not taken into account.
26247 This includes proper initialization with Normalize_Scalars.
26248 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
26249 normalize scalars cases (particularly the latter) to do a better job
26250 of finding invalid representations.
26251
26252 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
26253
26254 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
26255 used
26256
26257 * exp_dist.adb: Add support for wide wide character type
26258 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
26259 private part, generate stub bodies at the end of the private part,
26260 not the visible part.
26261 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
26262 PolyORB support.
26263 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
26264 generic wrapper to execute final processing after completing the
26265 expansion of the RPC receiver for an RACW.
26266
26267 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
26268 packages and attributes.
26269 (Preset_Names): Addition of the new reserved words of Ada 2005,
26270 that is interface, overriding and synchronized.
26271 (Get_Pragma_Id): Give support to the use of the new reserved word
26272 "interface" as a pragma name.
26273 (Is_Pragma_Name): Give support to the use of the new reserved word
26274 "interface" as a pragma name.
26275 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
26276 attribute implementation.
26277
26278 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
26279 checks to entities that are output parameters of Asm operations.
26280 Handle the Stream_Size attribute.
26281 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
26282
26283 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
26284
26285 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
26286 for second parameter being 0.0.
26287 Add support for wide wide character type.
26288 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
26289
26290 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
26291 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
26292 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
26293 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
26294 for wide wide character cases.
26295
26296 * cstand.adb: Create entities for Wide_Wide_Character and
26297 Wide_Wide_String.
26298
26299 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
26300 accordance with AI-258.
26301 Add new declarations for 16/32 bit C character types (Part of AI285)
26302
26303 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
26304 (Obsolescent_Warning): New field
26305 (Rep_Clause): New local subprogram used to share code. Returns the rep
26306 clause for which the name is given in parameter.
26307 (Has_Stream_Size_Clause): New routine.
26308 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
26309 (Address_Clause): Implementation is now using Rep_Clause.
26310 (Alignment_Clause): Idem.
26311 (Size_Clause): Idem.
26312
26313 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
26314 entity in non-Ada 2005 mode and generate warning.
26315
26316 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
26317 (Prag): Code cleanup. Remove old gnat pragma "overriding"
26318
26319 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
26320 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
26321 on the named unit if the pragma is not in the current compilation unit,
26322 so that elaboration calls in the current unit can set up an elaboration
26323 dependency on the named unit, as needed.
26324 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
26325 subprogram as well as for subprograms declared within a package.
26326 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
26327 pragma overriding.
26328
26329 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
26330 to z) to avoid some instances of duplication for Wide_Wide packages.
26331
26332 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
26333 characters.
26334
26335 * scn.adb: Char_Literal_Value field is now a Uint
26336
26337 * scng.adb: Significant rewrite to handle new Ada 2005 features
26338 allowing wide and wide wide characters in program text, e.g. for
26339 identifiers, as described in AI-285.
26340 (Set_Reserved): New procedure, makes setting up keywords cleaner.
26341 (Initialize_Scanner): Register the new reserved words of Ada 2005.
26342 (Scan): Give support to the new reserved words.
26343
26344 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
26345 warning notifying that interface, overriding, and synchronized are
26346 new reserved words.
26347 (P_Pragma): Allow the use of the new reserved word "interface" as
26348 a pragma name.
26349
26350 * gnatls.adb, gnatbind.adb,
26351 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
26352 identifiers named "interface" to "SAL_Interface".
26353
26354 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
26355 (Structured Exception handling).
26356 (Gen_Main_C): Idem.
26357
a1286ef5 26358 * bindgen.adb:
fc5a191d
AC
26359 (Gen_Main_Ada): Set the default exit code if specified.
26360 (Gen_Main_C): Likewise.
26361 Part of *DC20-006.
26362 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
26363 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
26364
26365 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
26366 new -Xnnn switch.
26367
26368 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
26369 has a collision with the new Ada 2005 "interface" reserved word.
26370
26371 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
26372 generate a warning notifying that interface, overriding, and
26373 synchronized are new reserved words.
26374
26375 * scans.ads (Token_Type): Addition of the tokens corresponding to the
26376 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
26377 and Tok_Synchronized.
26378
26379 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
26380 "dispatching" rather than "primitive" operations, since dispatching
26381 calls are now allowed to abstract formal subprograms (which are not
26382 primitive).
26383 Char_Literal_Value field is now a Uint
26384 (Resolve_Slice): If the prefix is an access to an unconstrained array,
26385 compute the actual subtype of the designated object to impose the proper
26386 index constraints.
26387 (Resolve_Selected_Component): Do not insert an access check if the
26388 prefix is an access type: such a node is expanded into an explicit
26389 dereference, on which the access check is performed anyway. Removes
26390 expensive duplicate checks.
26391 (Resolve_Call): Use new flag Is_Obsolescent and field
26392 Obsolescent_Warning so that pragma Obsolescent works on library
26393 subprograms.
26394 Add support for wide wide character type
26395 (Resolve_Allocator): Replace the error message on wrong null-exclusion
26396 value by a warning message.
26397 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
26398 as fixed-point, and one of the operands is non-static and universal, it
26399 can only be an illegal exponentiation operation, in which case there is
26400 no real value to retrieve.
26401
26402 * exp_strm.adb: Add support for wide wide character type
26403 (Build_Elementary_Input_Call): Compute the size of the stream element by
26404 querying the rep chain to find the Stream_Attribute attribute value.
26405 (Build_Elementary_Write_Call): Ditto.
26406
26407 * sem_aggr.adb: Char_Literal_Value field is now a Uint
26408 Add support for wide wide character type
26409 Replace the error messages on wrong null-exclusion value by warnings
26410 as described in Ada 2005.
26411 (Resolve_Extension_Aggregate): Document the fact that the error
26412 message on class-wide expressions in extensions aggregates.
26413
26414 * sem_case.adb: Add support for wide wide character type
26415
26416 * sem_ch13.adb: Add support for wide wide character type
26417 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
26418
26419 * sem_ch3.adb: Add support for wide wide character type
26420 (Process_Subtype): If constraint is illegal for the type, set Ekind of
26421 now-useless Itype, to prevent cascaded errors on a compiler built
26422 without -gnatp.
26423
26424 * sem_ch8.adb: Add with and use of Sem_Disp.
26425 (Analyze_Subprogram_Renaming): Replace unclean uses of
26426 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
26427 of Corresponding_Spec to Empty).
26428 (Attribute_Renaming): Replace use of Corresponding_Spec with
26429 Corresponding_ Formal_Spec and simplify condition.
26430 (Use_One_Package): Check that scope of homonym of identifier is defined,
26431 before checking whether it is a wrapper package.
26432 Add support for wide wide character type
26433
26434 * sem_eval.adb: Add support for wide wide character type.
26435 (Eval_Arithmetic_Op): Check for compile time known signed integer
26436 overflow in the non-static case.
26437 (Subtypes_Statically_Match): A formal scalar type and its base type do
26438 not statically match.
26439
26440 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
26441 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
26442 subtype).
26443 (Unit_Declaration_Node): Ditto.
26444 (Is_Variable_Prefix): For the case of an indexed component whose prefix
26445 has a packed array type, the prefix has been rewritten into a type
26446 conversion. Determine variable-ness from the converted expression.
26447 Handle wide wide character cases.
26448
26449 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
26450
26451 * stringt.ads, stringt.adb: Handle full UTF-32 range.
26452 Remove ["0A"] from comment, since it can look like a line terminator.
26453 Currently we don't permit this, but this is under discussion by the
26454 ARG, and it is easy enough to use a different example.
26455
26456 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
26457 handling UTF-32 encoding for wide wide character.
26458 Implement new brackets coding ["hhhhhhhh"]
26459 Add UTF-8 encodings for full UTF-32 range
26460
26461 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
26462
26463 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
26464 bit range Add full UTF-32 support.
26465 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
26466 notify that constraint error will be raised at run-time
26467 because a null value is assigned to a null-excluding object.
26468 Remove some obsolete declarations and make Char_Code
26469 unsigned.
26470
26471 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
26472 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
26473 Rcheck subprograms.
26474
26475 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
26476 wrong null-exclusion value by a warning message.
26477 (Enable_Range_Check): Do range check if the prefix is an
26478 explicit dereference whose designated object is an unconstrained array.
26479 Current algorithm for removing duplicate checks is over-eager in this
26480 case.
26481
26482 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
26483 null-exclusion value by a warning message
26484
26485 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
26486 completely. Add support for Uint2 field
26487
26488 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
26489 exp_prag.adb: Char_Literal_Value field is now a Uint.
26490
26491 * exp_util.adb (Insert_Actions): Replace
26492 N_Formal_Subprogram_Declaration by
26493 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
26494 Char_Literal_Value field is now a Uint.
26495
26496 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
26497 defined for subprogram renaming declarations. When set, the field
26498 indicates the defining entity of a corresponding formal subprogram
26499 when the renaming corresponds to a formal subprogram association in an
26500 instantiation.
26501 (Set_Corresponding_Formal_Spec): New procedure to return
26502 Corresponding_Formal_Spec field.
26503 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
26504 (which is now a subtype).
26505 Char_Literal_Value field is now a Uint
26506
26507 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
26508 pointer to the base of the dispatch table.
26509 Minor changes to comments.
26510 (Controlling_Type): New function for determining the tagged type
26511 associated with a tagged primitive subprogram.
26512 (Expand_Dispatching_Call): Add support for a controlling actual that is
26513 directly a value of type Ada.Tag rather than a tagged object.
26514
26515 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
26516 describing the new layout.
26517 (Dispatch_Table): The expander computes the actual array size, allocates
26518 the Dispatch_Table record accordingly, and generates code that displaces
26519 the base of the record after the Typeinfo_Ptr component. The access to
26520 these components is done by means of local functions.
26521 (Offset_To_Top): New function.
26522 (Typeinfo_Ptr): New function.
26523 (Get_TSD): Modified to access the new position of the TSD.
26524 (Set_TSD): Modified to save the TSD in its new position.
26525
26526 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
26527 case of formal abstract subprograms. Add check and message for -gnat05.
26528 Update comments.
26529
26530 * sem_ch12.adb: Add with and use for Sem_Disp.
26531 (Analyze_Associations): Minor change from "=" to "in" for use of
26532 N_Formal_Subtype_Declaration (which is now a subtype).
26533 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
26534 N_Formal_Subtype_Declaration (which is now a subtype).
26535 (Analyze_Formal_Subprogram): Add handling for
26536 N_Formal_Abstract_Subprogram, marking the formal as abstract and
26537 dispatching, setting the controlling status of the formal parameters
26538 and result, and issuing an error if there is no controlling type for
26539 the formal subprogram.
26540 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
26541 which is an unclean use of that field, we set the new field
26542 Corresponding_Formal_Spec to make the formal subprogram available to
26543 processing in Analyze_Subprogram_Declaration.
26544 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
26545 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
26546 Constrained, so that it is is does not statically match its anonymous
26547 base type.
26548
26549 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
26550 abstract formal subprograms in error check for functions returning
26551 abstract types. Set scope of new designator for
26552 a parameterless subprogram, so that it is available when checking the
26553 body for nested subprograms, before full analysis of said body.
26554 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
26555 subprogram only if inner one comes from source.
26556 (Analyze_Function_Call): If the call is given in object notation, the
26557 analysis of the name rewrites the node and analyzes it with the proper
26558 argument list. After analyzing the name, if the call has been rewritten
26559 and the result type is set, no further analysis is needed.
26560 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
26561 mark in function specification, in a context where the formals are
26562 visible and hide outer homographs.
26563
26564 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
26565 as the tagged type for the cases of abstract formal subprograms and
26566 renamings of those. Clean up spec comments.
26567 (Check_Dispatching_Context): Add error message to indicate "abstract
26568 procedure", covering the case of a call to a formal abstract procedure
26569 that has statically tagged operands.
26570 (Check_Dispatching_Call): Check for the case of an actual given by
26571 a tag-indeterminate function call whose type is an ancestor of the
26572 containing call's associated tagged type. This situation can occur
26573 for inherited primitives with function defaults. In this case we
26574 use the tagged type's tag directly as the controlling argument for
26575 the calls.
26576 (Expand_Call): Name change on call to Expand_Dispatch_Call.
26577
26578 * sprint.adb (Sprint_Node_Actual): Split
26579 N_Formal_Subprogram_Declaration into two alternatives for the new
26580 cases N_Formal_Abstract_Subprogram_Declaration and
26581 N_Formal_Concrete_Subprogram_Declaration.
26582 Char_Literal_Value field is now a Uint.
26583
26584 * trans.c: Get rid of junk Uint2 reference.
26585 Char_Literal_Value field is now a Uint.
26586 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
26587 (gigi): Correct third arg to gimplify_body.
26588
26589 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
26590 (TYPE_LANG_FLAG_0): Check for record or union.
26591
26592 * treepr.adb: Char_Literal_Value field is now a Uint
26593
26594 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
26595 UI_From_CC.
26596
26597 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
26598 Add full UTF-32 support
26599 Char_Code is now 32 bits
26600
26601 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
26602 wide character UTF_32 line terminators.
26603 Initialize Main_Source_File to avoid error when no main
26604 source is loaded.
26605
26606 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
26607 (Main_Source_File) when no main source has been loaded, to avoid
26608 potential crash.
26609
266102005-02-09 Robert Dewar <dewar@adacore.com>
26611
a1286ef5
ZW
26612 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
26613 Fix name of Set routine
fc5a191d
AC
26614
26615 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
26616 fixed packages.
26617
26618 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
26619 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
26620 fixed packages
26621
26622 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
26623 forms of Get_Line subprograms for AI-301.
26624
26625 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
26626 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
26627 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
26628 a-stwima.ads: Minor reformatting.
26629
266302005-02-09 Doug Rupp <rupp@adacore.com>
26631 Thomas Quinot <quinot@adacore.com>
26632
26633 * adaint.c, adaint.h
26634 [VMS] (to_ptr32): New function.
26635 (MAYBE_TO_PTR32): New macro.
26636 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
26637 for pointer size.
26638 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
26639 [VMS] (#define fork()): Remove since unneccessary.
26640 (__gnat_set_close_on_exec): New routine to support
26641 GNAT.OS_Lib.Set_Close_On_Exec.
26642
26643 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
26644 the parent side as close-on-exec so that they are not inherited by the
26645 child.
26646
26647 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
26648 set or clear the FD_CLOEXEC flag on a file descriptor.
26649
266502005-02-09 Eric Botcazou <ebotcazou@adacore.com>
26651 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26652
6f7f72f9 26653 PR ada/19386
a1286ef5 26654 * decl.c:
fc5a191d
AC
26655 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
26656 on the field if Pragma Component_Alignment (Storage_Unit).
26657 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
26658 side-effects as if it were a constant; also make SAVE_EXPR to protect
26659 side-effects.
26660 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
26661 UNION_TYPE.
26662 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
26663 (components_to_record): Test it.
26664 Fix improper usage of REFERENCE_CLASS_P.
26665
26666 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
26667 RECORD_TYPE.
26668
26669 * utils2.c: Minor reformatting.
26670
26671 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
26672 handle other cases like RECORD_TYPE.
26673
26674 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
26675
266762005-02-09 Ed Schonberg <schonberg@adacore.com>
26677
26678 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
26679 component of an array of arrays in an assignment context, and the
26680 aggregate has component associations that require sliding on
26681 assignment, force reanalysis of the aggregate to generate a temporary
26682 before the assignment.
26683 (Must_Slide): Make global to the package, for use in Gen_Assign.
26684
266852005-02-09 Ed Schonberg <schonberg@adacore.com>
26686
26687 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
26688 unchecked union with no inferable discriminants, return a
26689 Raise_Program_Error node, rather than inserting it at the point the
26690 type is frozen.
26691 (Expand_Record_Equality, Component_Equality): Handle properly the case
26692 where some subcomponent is an unchecked union whose generated equality
26693 code raises program error.
26694
266952005-02-09 Doug Rupp <rupp@adacore.com>
26696
26697 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
26698 [VMS] (#define exit hack): Remove.
26699
267002005-02-09 Pascal Obry <obry@adacore.com>
9e94c78f 26701 Arnaud Charlet <charlet@adacore.com>
fc5a191d
AC
26702
26703 * init.c (__gnat_initialize): Add a new parameter eh which contains the
26704 address of the exception registration. The Win32 version of this
26705 routine calls __gnat_install_SEH_handler() to initialize the SEH
26706 (Structured Exception Handling) handler.
26707 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
26708 SEH (Structured Exception Handling) now.
26709 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
26710 (__gnat_initialize for ppc-vxworks): Adjust comments and the
26711 preprocessor condition protecting the call to the extra eh setup
26712 subprogram, which is only available for the ppc target.
26713 (__gnat_clear_exception_count): replaced reference to
26714 variable taskIdCurrent by call to taskIdSelf(), cleaner.
26715
26716 * seh_init.c: New file.
26717
26718 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
26719 (GNATBIND_OBJS): Idem.
26720
26721 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
26722 routine takes a new parameter (a pointer to the exception registration
26723 for the SEH (Structured Exception Handling) support.
26724
26725 * raise.h: (__gnat_install_SEH_handler): New prototype.
26726 Update copyright notice.
26727
26728 * s-tassta.adb (Task_Wrapper): Declare the exception registration
26729 record and initialize it by calling __gnat_install_SEH_handler.
26730
267312005-02-09 Vincent Celier <celier@adacore.com>
26732
26733 * make.adb (Gnatmake): Do not fail when the main project has no object
26734 directory.
26735
267362005-02-09 Doug Rupp <rupp@adacore.com>
26737
26738 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
26739 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
26740 [VMS]: Add translations for g-enblsp.adb.
26741
26742 * s-asthan-vms.adb: Removed.
26743 * s-asthan-vms-alpha.adb: Added.
26744
267452005-02-09 Pascal Obry <obry@adacore.com>
26746
26747 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
26748 (LIBGNAT_OBJS): Add seh_init.o.
26749
267502005-02-09 Arnaud Charlet <charlet@adacore.com>
26751
26752 PR ada/16592
fc5a191d
AC
26753 * Makefile.in: Link all gnat tools with -static-libgcc, since
26754 -shared-libgcc is now used by default on some systems (e.g. linux with
26755 recent binutils).
26756 Remove references to Makefile.prolog/generic, no longer used.
26757
267582005-02-09 Vincent Celier <celier@adacore.com>
26759
26760 * prj-makr.adb (Process_Directory): Put file name in canonical case
26761 before matching against the patterns.
26762 If gnatname has been invoked as <prefix>-gnatname
26763 then invoke the compiler as <prefix>-gcc, not just "gcc".
26764
267652005-02-09 Ed Schonberg <schonberg@adacore.com>
26766
26767 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
26768 with expansion disabled. The actual subtype is needed among other
26769 places when the selected component appears in the context of a loop
26770 bound, and denotes a packed array.
26771 (Operator_Check): Always use the first subtype in the
26772 error message, to avoid the appearance of internal base types.
26773 (Transform_Object_Operation): Copy each actual in full
26774 to the parameter associations of the constructed call, rather than
26775 using the shallow copy mechanism of New_Copy_List. This ensures that
26776 the chaining of named associations is done properly.
26777 (Complete_Object_Operation): Rewrite node, rather than
26778 replacing it, so that we can trace back to the original selected
26779 component.
26780
26781 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
26782 and calls that use object notation, if the called function is not
26783 declared in a withed unit, place the elaboration constraint on the
26784 unit in the context that makes the function accessible.
26785 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
26786 imposes an elaboration constraint between two packages.
26787
267882005-02-09 Ed Schonberg <schonberg@adacore.com>
26789
26790 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
26791 views of a private type after handling its private dependents, to
26792 maintain proper stack discipline between entry and exit from the
26793 package.
26794
267952005-02-09 Cyrille Comar <comar@adacore.com>
26796
26797 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
26798 Minor reformatting.
26799
268002005-02-09 Arnaud Charlet <charlet@adacore.com>
26801
26802 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
26803 fields for foreign threads.
26804
268052005-02-09 Doug Rupp <rupp@adacore.com>
26806
26807 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
26808 recursion warnings when compiled with -gnatdm.
26809
268102005-02-09 Robert Dewar <dewar@adacore.com>
26811
26812 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
26813 Slight fix to documentation of -gnaty with no parameters
26814
26815 * xr_tabls.ads: Add ??? comment for missing overall comment
26816
26817 * xsinfo.adb: Make default file name be sinfo.h, since this is what
26818 we now use by default.
26819
26820 * xsnames.adb: Adjust end of file test to look for five space followed
26821 by '#' instead of six spaces. The format of xsnames.adb was modified
26822 in the last update.
26823
26824 * a-numeri.ads: Add reference to AI-388 for greek letter pi
26825 identifier.
26826
26827 * clean.adb: Minor reformatting.
26828
26829 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
26830 gnatname.adb: Minor reformatting
26831 Add 2005 to copyright output when utility is run
26832
26833 * csets.adb: Eliminate obsolete comment
26834
26835 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
26836 Update comments.
26837
26838 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
26839
268402005-02-09 Sergey Rybin <rybin@adacore.com>
26841
26842 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
26843 the difference between compact and incompact layout and add the record
26844 representation clause to the example illustrating different layouts.
26845 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
26846 component clauses").
26847
268482005-02-09 Florian Villoing <villoing@adacore.com>
26849
26850 * gnat_ugn.texi: Fix typos.
26851 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
26852 @file.
26853 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
26854 in the generated documentation.
26855
268562005-02-09 Arnaud Charlet <charlet@adacore.com>
26857
26858 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
26859 longer supported.
26860 Update linker wrapper when linking with non GNU C++.
26861
268622005-02-09 Pascal Obry <obry@adacore.com>
26863
a1286ef5 26864 * gnat_ugn.texi:
fc5a191d
AC
26865 Document the procedure to debug the DllMain routine on Windows.
26866 Add note about -funwind-tables and mixed Ada and C/C++ programming in
26867 ZCX mode.
26868 Document new BIND qualifer /RETURN_CODES=VMS.
26869
268702005-02-09 Ben Brosgol <brosgol@adacore.com>
26871
26872 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
26873 Edited gnatmetric chapter
26874
268752005-02-09 Robert Dewar <dewar@adacore.com>
26876
a1286ef5 26877 * gnat_rm.texi:
fc5a191d
AC
26878 Changes to document new wide wide character support
26879 For AI-285
26880 Update documentation on Normalize_Scalars and Initialize_Scalars
26881
268822005-02-09 Pascal Obry <obry@adacore.com>
26883
26884 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
26885
268862005-02-09 Jose Ruiz <ruiz@adacore.com>
26887
26888 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
26889 from the VxWorks kernel) that is needed for getting the active
26890 priority of the different tasks.
26891
26892 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
26893 Use a pragma Elaborate_Body in the spec file instead.
26894 Noticed by code reading.
26895
268962005-02-09 Thomas Quinot <quinot@adacore.com>
26897
26898 * exp_util.ads: Minor correction in comment.
26899
269002005-02-09 Arnaud Charlet <charlet@adacore.com>
26901
26902 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
26903 since this procedure is now too complex to be worth inlining.
26904
c6a912da
RH
269052005-02-09 Richard Henderson <rth@redhat.com>
26906
26907 * utils.c (gnat_define_builtin): Remove.
26908 (gnat_install_builtins): Use build_common_builtin_nodes.
26909
4c2d6a70
AC
269102005-02-09 Arnaud Charlet <charlet@adacore.com>
26911
26912 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
26913 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
26914 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
26915 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
26916 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
26917 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
26918 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
26919 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
26920 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
26921 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
26922 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
26923 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
26924 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
26925 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
26926 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
26927 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
26928 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
26929 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
26930 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
26931 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
26932 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
26933 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
26934 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
26935 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
26936 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
26937 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
26938 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
26939 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
26940 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
26941 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
26942 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
26943 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
26944 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
26945 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
26946 library.
26947
9e94c78f 269482005-01-27 Laurent Guerby <laurent@guerby.net>
74a22497
LG
26949
26950 * Makefile.in: Fix a-intnam.ads from previous commit,
26951 add 2005 to copyright.
26952 * a-intman-rtems.ads: Renamed to...
26953 * a-intnam-rtems.ads:
26954
9e94c78f 269552005-01-27 Laurent Guerby <laurent@guerby.net>
7d921ba4
LG
26956
26957 * Makefile.in: Rename GNAT RTEMS specific files.
a1286ef5 26958 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
da8f5fd9 26959 5rosinte.ads, 5rparame.adb: Replaced by files below.
7d921ba4
LG
26960 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
26961 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
26962
9e94c78f
EB
269632005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
26964 Laurent Guerby <laurent@guerby.net>
9011d4bb
JS
26965
26966 PR ada/19488
26967 * 5rosinte.ads: Add No_Key constant.
a1286ef5
ZW
26968 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
26969 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
9011d4bb 26970
9e94c78f 269712005-01-26 Laurent Guerby <laurent@guerby.net>
d487e3c1
LG
26972
26973 PR ada/19414
26974 * i-cobol.adb (Valid_Numeric): Handle zero length case.
a1286ef5 26975
3f38e738
RH
269762005-01-20 Richard Henderson <rth@redhat.com>
26977
26978 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
26979 a-intnam-linux.ads and system-linux-alpha.ads.
26980 * a-intnam-linux-alpha.ads: Remove file.
26981 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
26982 * system-linux-alpha.ads: New file.
26983
4d960a7e
JJ
269842005-01-18 Jakub Jelinek <jakub@redhat.com>
26985
26986 PR ada/13470
26987 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
26988 set to the new string.
26989
b4c6a3a2
TM
269902005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
26991
26992 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
26993 to True.
26994
8d5e1df2
RH
269952005-01-18 Richard Henderson <rth@redhat.com>
26996
26997 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
26998 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
26999 for alpha-linux.
27000 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
27001
03eef11c
AP
270022005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
27003
27004 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
27005 (GCC_ZCX_Support): Likewise.
27006
bc7566ca
BB
270072005-01-11 Bastian Blank <waldi@debian.org>
27008
27009 * system-linux-s390.ads: Define Preallocated_Stacks.
27010 * system-linux-s390x.ads: Likewise.
27011
e550819c
AC
270122005-01-04 Arnaud Charlet <charlet@adacore.com>
27013
27014 * gnat_ugn.texi: Fix texi errors with null variables.
27015
376a74d4
AC
270162005-01-03 Thomas Quinot <quinot@adacore.com>
27017
27018 * gen-soccon.c: New utility program to generate g-soccon.ads
27019 automatically.
27020
27021 * socket.c, gsocket.h: Split inclusion of system header files into a
27022 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
27023
27024 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
27025 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
27026 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
27027 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
27028 should not be edited by hand anymore, but should be regenerated using
27029 gen-soccon.
27030
270312005-01-03 Robert Dewar <dewar@adacore.com>
27032 Ed Schonberg <schonberg@adacore.com>
27033 Vincent Celier <celier@adacore.com>
27034
27035 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
27036 on/off, since this is an obsolescent feature, for which we now generate
27037 a warning.
27038
27039 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
27040 warning mode is set and obsolescent usage of this attribute occurs.
27041 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
27042 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
27043 predates, and partly motivates, the adoption of the AI.
27044 Implement new Ada 2005 attribute Mod
27045
27046 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
27047 attribute Mod.
27048
27049 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
27050
27051 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
27052 pragma restrictions.
27053 New entry for Ada 2005 attribute Mod.
27054
a1286ef5 27055 * par-prag.adb:
376a74d4
AC
27056 Add recognition of new pragma Restrictions No_Dependence
27057 Recognize restriction No_Obsolescent_Features at parse time
27058
27059 * bcheck.adb: Add circuitry for checking for consistency of
27060 No_Dependence restrictions.
27061
27062 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
27063 restrictions.
27064
27065 * restrict.ads, restrict.adb: Add subprograms to deal with
27066 No_Dependence restrictions.
27067
27068 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
27069 restrictions.
27070
27071 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
27072 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
27073
27074 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
27075 dummy parameter to scng instantiation.
27076 Needed for new restriction No_Obsolescent_Features
27077
27078 * scn.adb: (Obsolescent_Check): New procedure
27079 Needed for new restriction No_Obsolescent_Features
27080
27081 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
27082 specified by AI-285, needed for implementation of AI-388 (adding greek
27083 pi to Ada.Numerics).
27084 Add new generic formal to scng, needed for new restriction
27085 No_Obsolescent_Features.
27086
27087 * s-rident.ads: Add new restriction No_Obsolescent_Features.
27088
27089 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
27090 restrictions lines.
27091 (Scan_ALI): When finding an unexpected character on an R line, raise
27092 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
27093 Ignore_Errors is True, default restrictions are set and scanning of the
27094 ALI file continues with the next line. Also, when Bad_R_Line is raised
27095 and Ignore_Errors is True, skip to the end of le line.
27096
27097 * sem_ch10.adb: Check that explicit with's do not violate
27098 No_Dependence restrictions.
27099 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
27100 illegal context clauses containing child units of instance.
27101
27102 * sem_prag.adb: Processing and checking for new No_Dependence
27103 restrictions.
27104 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
27105 analyze and check the External argument.
27106
27107 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
27108
271092005-01-03 Robert Dewar <dewar@adacore.com>
27110
27111 * atree.adb: Add a fifth component to entities
27112 This allows us to add 32 flags and four new fields
27113
27114 * atree.ads: Add a fifth component to entities
27115 This allows us to add 32 flags and four new fields
27116
27117 * einfo.ads, einfo.adb: Document new fields and new flags now available
27118 Add routines for printing new fields
27119
27120 * treepr.adb: Call routines to print out additional fields if present
27121
271222005-01-03 Arnaud Charlet <charlet@adacore.com>
27123
27124 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
27125 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
27126
27127 * Makefile.in: Add support to build shared Ada libraries on solaris x86
27128 Remove gpr2make, replaced by gprmake.
27129 Remove references to gnatmem and libaddr2line.
27130 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
27131 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
27132 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
27133 a-numaux-darwin.ads and a-numaux-darwin.adb
27134 Enable mlib-tgt-lynxos.adb on lynxos.
27135
27136 * Make-lang.in: Remove rules for gpr2make.
27137 When generating sdefault.adb, do not call Relocate_Path
27138 on S3 for function Target_Name, as it is not a path.
27139 Remove references to gnatmem and libaddr2line.
27140
27141 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
27142 files.
27143
271442005-01-03 Samuel Tardieu <tardieu@adacore.com>
27145
27146 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
27147 address is incompatible with its base type alignment constraints when
27148 this can be decided statically.
27149
271502005-01-03 Olivier Hainque <hainque@adacore.com>
27151
27152 * decl.c (compatible_signatures_p): New function. The intended purpose
27153 is to check if two function signatures for a call-site and a callee are
27154 compatible enough for the call to be valid. The underlying purpose is
27155 to check if a call to a mapped builtin is using the right interface.
27156 The current code actually does not check antyhing - this a placeholder
27157 for future refinements.
27158 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
27159 builtin calls for convention Intrinsic.
27160
27161 * gigi.h (builtin_decl_for): Declare (new function).
27162
27163 * utils.c (gnat_install_builtins): Install the target specific builtins.
27164 (builtin_decl_for): New function, provide a dummy body for now.
27165
271662005-01-03 Geert Bosch <bosch@adacore.com>
27167
27168 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
27169 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
27170 (Pred): Implement in terms of Succ.
a1286ef5 27171
376a74d4
AC
27172 * trans.c (convert_with_check): Reimplement conversion of float to
27173 integer.
27174
271752005-01-03 Ed Schonberg <schonberg@adacore.com>
27176 Vincent Celier <celier@adacore.com>
27177
27178 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
27179 bounds can be negative, and must be declared Int, not Nat.
27180
27181 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
27182 array is checked after using the index in the array.
27183
27184 * makegpr.adb (Add_Switches): Check if there is a package for the
27185 processor. If there is no package, do not look for switches.
27186
271872005-01-03 Ed Schonberg <schonberg@adacore.com>
27188
27189 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
27190 generation of predefined stream operations (specs and bodies) should
27191 proceed. Under various restrictions these subprograms must not be
27192 generated.
27193
271942005-01-03 Thomas Quinot <quinot@adacore.com>
27195
a1286ef5 27196 * exp_dist.adb:
376a74d4
AC
27197 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
27198 amount of PCS-specific code in RACW stubs generation.
27199 (Copy_Specification): Set Etype on copied formal parameter entities, as
27200 this information is needed for PolyORB stubs generation.
27201 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
27202 variable Dynamic_Async.
27203 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
27204 (Build_RPC_Receiver_Specification): Make generic again, as recent
27205 changes have allowed RPC receivers to have the same profile for both
27206 variants of the PCS.
27207 Reorganise RPC receiver generation to reduce differences between the
27208 structure of GARLIC and PolyORB RPC receivers.
27209 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
27210 PCS-specific.
27211 Simplify elaboration code for RCI packages.
27212
27213 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
27214 generation to reduce differences between the structure of GARLIC and
27215 PolyORB RPC receivers.
27216
27217 * s-stratt.adb: Fix typo in comment.
27218
272192005-01-03 Thomas Quinot <quinot@adacore.com>
27220
27221 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
27222 copied from Make_Init_Call).
27223
27224 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
27225 reads and assignments on a temporary variable declared with appropriate
27226 discriminants.
27227
272282005-01-03 Robert Dewar <dewar@adacore.com>
27229
27230 * i-c.adb (To_C): Raise CE if string is null and Append_Null
27231
272322005-01-03 Robert Dewar <dewar@adacore.com>
27233
27234 * i-cstrin.adb (Update): Do not append a null in form called with a
27235 String. This avoids unintended behavior.
27236
272372005-01-03 Arnaud Charlet <charlet@adacore.com>
27238
27239 PR ada/17527
27240 * init.c: Fix warnings on Free BSD section.
27241
272422005-01-03 Arnaud Charlet <charlet@adacore.com>
27243
27244 PR ada/16949
27245 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
27246 xsinfo.adb).
27247
272482005-01-03 Vincent Celier <celier@adacore.com>
27249
27250 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
27251 libraries when Unique_Compile is True (-u switch).
27252 (Gnatmake): ditto.
27253
272542005-01-03 Robert Dewar <dewar@adacore.com>
27255
27256 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
27257 upper case letter or underscore after W, as allowed by spec.
27258
272592005-01-03 Arnaud Charlet <charlet@adacore.com>
27260
27261 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
27262 darwin port by using proper type definitions from header files.
27263 Use SIGTERM instead of SIGABRT for SIGADAABORT.
27264
272652005-01-03 Robert Dewar <dewar@adacore.com>
27266
27267 * par.adb: Enhance error message handling for configuration file
27268 pragmas.
27269
272702005-01-03 Robert Dewar <dewar@adacore.com>
27271
27272 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
27273 removed during the previous update (test properly for case of dividing
27274 largest negative number by -1, which generates overflow).
27275
272762005-01-03 Ed Schonberg <schonberg@adacore.com>
27277 Sergey Rybin <rybin@adacore.com>
27278
27279 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
27280 to use as the defining identifier for a formal package.
27281 (Remove_Parent): If the instance takes place within (an instance of)
27282 a sibling, preserve private declarations of common parent.
27283
272842005-01-03 Ed Schonberg <schonberg@adacore.com>
27285
27286 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
27287 to determine whether one of the operands is a fixed-point type for
27288 which a user-defined multiplication or division operation might be
27289 defined.
27290
27291 * sem_res.adb (Valid_Conversion): The legality rules for conversions
27292 of access types are symmetric in Ada 2005: either designated type can
27293 be unconstrained.
27294
272952005-01-03 Vincent Celier <celier@adacore.com>
27296
27297 * s-fileio.adb (Temp_File_Record): Change length of string component
27298 Name from L_tmpnam + 1 to max_path_len + 1.
27299
273002005-01-03 Arnaud Charlet <charlet@adacore.com>
27301
27302 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
27303 Self_Id.Deferral_Level = 0.
27304 (Do_Pending_Action): Move this function to the spec.
27305
27306 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
27307 Do_Pending_Action explicitely when needed, in case we're using
27308 No_Abort restrictions.
27309
27310 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
27311 deferral level since it will not get changed by the generated code.
27312 Keeping a default value of 1 would prevent some operations (e.g.
27313 select or delay) to proceed successfully.
27314
273152005-01-03 Ben Brosgol <brosgol@adacore.com>
27316 Robert Dewar <dewar@adacore.com>
27317 Cyrille Comar <comar@adacore.com>
27318
27319 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
27320 porting guide chapter (vms version).
27321 Revised doc title (removed "for native platforms") and subtitle.
27322 Add discussion on warning flag for obsolescent features. First we
27323 note that it applies to obsolete GNAT features, which was previously
27324 omitted. Second we contrast the behavior with that of the new
27325 Ada 2005 AI-368 restriction No_Obsolescent_Features.
27326 Preliminary rewriting of GNAT & libraries chapter in order to take
27327 into account default project locations & new project manager
27328 capabilities.
27329
273302005-01-03 Robert Dewar <dewar@adacore.com>
27331
27332 * cstand.adb (Create_Operators): Clean up format and documentation of
27333 unary and binary operator result tables. No change in code, just
27334 reformatting and addition of comments.
27335
27336 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
27337 sem_ch2.adb: Minor reformatting
27338
27339 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
27340 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
27341 comments for Tree_Read and Tree_Write.
27342
273432005-01-03 Pascal Obry <obry@adacore.com>
27344
27345 * exp_attr.ads: Minor reformatting.
27346
273472005-01-03 Romain Berrendonner <berrendo@adacore.com>
27348
27349 * comperr.adb (Compiler_Abort): Add specialized message for GAP
27350 versions.
27351
273522005-01-03 Ed Schonberg <schonberg@adacore.com>
27353
27354 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
27355 whether the ancestor type is private, as may be the case with nested
27356 instantiations.
27357
9e94c78f 273582004-12-30 Sohail Somani <sohail@sohailsomani.com>
15cd18b9
SS
27359
27360 PR ada/19128
27361 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
27362
2614034e 273632004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
15cd18b9 27364
2614034e
EB
27365 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
27366 * utils2.c (build_unary_op): Likewise.
27367
ad50bc8d
RH
273682004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27369
27370 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
27371
ed9c846c
RH
273722004-12-19 Richard Henderson <rth@redhat.com>
27373
27374 * trans.c (gigi): Update gimplify_body call.
27375
08f2586c
NS
273762004-12-09 Nathan Sidwell <nathan@codesourcery.com>
27377
27378 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
27379
180684eb
AC
273802004-12-07 Ed Falis <falis@adacore.com>
27381
27382 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
27383 current task being suspended.
27384
27385 * init.c (__gnat_clear_exception): added to reset VxWorks exception
27386 count.
27387 (__gnat_map_signal): removed test for current task being suspended.
27388
273892004-12-07 Gary Dismukes <dismukes@adacore.com>
27390
27391 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
27392 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
27393 targets (such as AAMP).
27394
273952004-12-07 Ed Schonberg <schonberg@adacore.com>
27396
27397 * atree.adb (Visit_Itype): Create a new name for the generated itype,
27398 because the back-end may otherwise treat it as a redefinition of the
27399 old symbol.
27400
274012004-12-07 Eric Botcazou <ebotcazou@adacore.com>
27402
27403 * back_end.adb (Scan_Back_End_Switches): Accept --param.
27404
27405 * lang-specs.h: Accept --param.
27406
274072004-12-07 Vincent Celier <celier@adacore.com>
27408
27409 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
27410 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
27411 Current_Body_Suffix => Ada_Body_Suffix).
27412 Take into account Externally_Built attribute.
27413
27414 * clean.adb (In_Extension_Chain): Always return False when one of the
27415 parameter is No_Project.
27416 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
27417 Ada_Language_Index).
27418 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
27419 Process_Languages for procedure Parse).
27420
27421 * gnatcmd.adb (Carg_Switches): New table.
27422 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
27423 Adapt to name changes in package Prj (Current_Spec_Suffix =>
27424 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
27425
27426 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
27427 Header_Num and function Hash are now declared in package Prj,
27428 not Prj.Com.
27429
27430 * prj.adb (Suffix_Of): New function.
27431 (Set (Suffix)): New procedure.
27432 (Hash): One function moved from Prj.Com
27433 (Is_Present, Language_Processing_Data_Of): New functions
27434 (Set): Two new procedures
27435 (Add_Language_Name, Display_Language_Name): New procedures
27436
27437 * prj.ads: (Suffix_Of): New function
27438 (Set (Suffix)): New procedure
27439 Add several types and tables for multi-language support.
27440 (Header_Num): Type moved from Prj.Com
27441 (Hash): Two functions moved from Prj.Com
27442 (Is_Present, Language_Processing_Data_Of): New functions
27443 (Set): Two new procedures
27444 (Add_Language_Name, Display_Language_Name): New procedures
27445 (Naming): Component name changes:
27446 Current_Spec_Suffix => Ada_Spec_Suffix,
27447 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
27448 Impl_Suffixes, Supp_Suffixes.
27449 (Project_Data): New components: Externally_Built, Supp_Languages,
27450 First_Language_Processing, Supp_Language_Processing, Default_Linker,
27451 Default_Linker_Path.
27452
27453 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
27454 new package Language_Processing with its attributes (Compiler_Driver,
27455 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
27456 Binder_Driver, Default_Linker).
27457
27458 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
27459 (Header_Num): Type moved to package Prj
27460
27461 * prj-env.adb: Adapt to name changes in package Prj
27462 (Current_Spec_Suffix => Ada_Spec_Suffix,
27463 Current_Body_Suffix => Ada_Body_Suffix).
27464
27465 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
27466 default to the project path, except the "-" is one of the directories
27467 in env var ADA_PROJECT_PATH.
27468 (Current_Project_Path): Global variable, replacing Project_Path
27469 that was in the body of Prj.Part.
27470 (Project_Path): New function
27471 (Set_Project_Path): New procedure
27472 Initialize Current_Project_Path during elaboration of the package
27473 Remove dependency on Prj.Com, no longer needed
27474
27475 * prj-ext.ads (Project_Path): New function
27476 (Set_Project_Path): New procedure
27477
27478 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
27479 suffix is defined for language <lang>.
27480 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
27481 accessing directly the components of Naming.
27482 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
27483 Reorganise of this package.
27484 Break procedure Check in several procedures.
27485
27486 * prj-nmsc.ads: Replace all procedures (Ada_Check,
27487 Other_Languages_Check and Language_Independent_Check) with a single
27488 procedure Check.
27489
27490 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
27491 Process_Languages, no longer needed.
27492
27493 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
27494 Current_Project_Path.
27495 Remove elaboration code, moved to the body of Prj.Ext
27496 Use new function Prj.Ext.Project_Path instead of old variable
27497 Project_Path.
27498 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
27499 When comparing with project paths on the stack, first put the resolved
27500 path in canonical case.
27501 (Parse_Single_Project): Set the path name of the project file in the
27502 tree to the normalized path.
27503
27504 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
27505 parameter Process_Languages, no longer needed.
27506 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
27507 Other_Languages_Check.
27508
27509 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
27510 to store the resolved canonical path of the project file.
27511 Remove dependency to Prj.Com, no longer needed
27512
27513 * prj-util.adb: Adapt to name changes in package Prj
27514 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
27515 Ada_Body_Suffix).
27516
27517 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
27518 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
27519 Externally_Built, Include_Option, Language_Processing.
27520
27521 * makegpr.adb: Numerous changes due to changes in packages
27522 Prj and Prj.Nmsc.
27523
27524 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
27525 default to the project path, except whe "-" is one of the directories
27526 in env var ADA_PROJECT_PATH.
27527 (Gnatls): In verbose mode, add the new section "Project Search Path:"
27528
275292004-12-07 Robert Dewar <dewar@adacore.com>
27530
27531 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
27532
27533 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
27534 set -gnatR3m mode.
27535
27536 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
27537 flag. No longer needed now that we handle this in gnat1drv.adb.
27538
27539 * repinfo.ads: Minor reformatting
27540
275412004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27542 Olivier Hainque <hainque@adacore.com>
27543 Eric Botcazou <ebotcazou@adacore.com>
27544
27545 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
27546 TYPE_SIZE_UNIT of result type if SIZE is not specified.
27547 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
27548 of a bitfield, which we know is useless and causes trouble because of
27549 alignment implications.
27550
27551 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
27552 BSS sections.
27553 (process_attributes): Clear DECL_COMMON again when a section attribute
27554 is present.
27555 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
27556 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
27557 (create_field_decl): Special case ADDRESSABLE negative to mean
27558 "no bitfield creation", to be used by make_aligning_type. Don't
27559 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
27560 fields claimed addressable still have to be bitfields. Use
27561 value_factor_p instead of a raw binop construction to check for the
27562 position's alignment.
27563
275642004-12-07 Geert Bosch <bosch@adacore.com>
27565
27566 * eval_fat.adb: Revert previous change.
27567
275682004-12-07 Thomas Quinot <quinot@adacore.com>
27569 Ed Schonberg <schonberg@adacore.com>
27570
27571 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
27572 with an implicit dereference as its prefix, use
27573 Insert_Explicit_Dereference instead of merely rewriting the prefix into
27574 an explicit dereference. This ensures that a reference to the original
27575 prefix is generated, if appropriate.
27576
27577 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
27578 dereference is rewritten to an explicit one, generate a reference to
27579 the entity denoted by its prefix using the original prefix node, so
27580 the dereference can be properly recorded as a read of the denoted
27581 access value, if appropriate.
27582
27583 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
27584 emitting 'assigned but never read' warning on a variable on the basis
27585 that it has an access type.
27586 (Check_References): Emit unreferenced warning when the scope is a
27587 subprogram body.
27588
275892004-12-07 Robert Dewar <dewar@adacore.com>
27590 Ed Schonberg <schonberg@adacore.com>
27591
27592 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
27593 intrinsic
27594
27595 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
27596 leaving call unchanged.
27597 This deals with the case where the pragma Import specified
27598 an external name, to be handled by the back end.
27599
27600 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
27601 subprogram which is Imported with convention Intrinsic if an
27602 External_Name argument is specified.
27603 (Process_Import_Or_Interface): Properly diagnose link name argument.
27604 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
27605 with Sem_Ch6.Cannot_Inline.
27606 (Process_Inline): Provide separate warning for inapplicable inline
27607 pragma.
27608 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
27609 treatment is uniform on different targets.
27610
276112004-12-07 Ed Schonberg <schonberg@adacore.com>
27612
27613 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
27614 construct is rewritten, preserve end label to permit source navigation.
27615
276162004-12-07 Thomas Quinot <quinot@adacore.com>
27617
27618 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
27619 Specific_Build_Stub_Target): New subprograms.
27620 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
27621 the PCS implementation used, using the above PCS-customized subprograms.
27622 Minor reformatting.
27623 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
27624 for generation of DSA code targeted to the PolyORB PCS.
27625 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
27626 implementation of the partition communication subsystem in ancillary
27627 subprograms.
27628 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
27629 PolyORB_Support.Build_Stub_Type): New subrograms containing the
27630 PCS-specific part of Add_Stub_Type.
27631 (Insert_Partition_Check): Use runtime library function to perform
27632 E.4(19) check.
27633
a1286ef5
ZW
27634 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
27635 (RE_Same_Partition): New entity, from s-parint.
180684eb 27636
a1286ef5 27637 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
180684eb
AC
27638
276392004-12-07 Gary Dismukes <dismukes@adacore.com>
27640
27641 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
27642 Output the copyright message on a separate line from the version
27643 message.
27644
276452004-12-07 Joel Brobecker <brobecker@adacore.com>
27646
27647 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
27648 compile-time warning.
27649
276502004-12-07 Robert Dewar <dewar@adacore.com>
27651
27652 * g-regpat.adb: (Match): Change a misuse of or to or else
27653
276542004-12-07 Ed Schonberg <schonberg@adacore.com>
27655
15cd18b9 27656 * lib-xref.adb:
180684eb
AC
27657 (Generate_Reference): Handle properly a reference to an entry formal,
27658 when an accept statement has a pragma Unreferenced for it.
27659
27660 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
27661 and the Has_Pragma_Unreferenced flag for each formal before analyzing
27662 the body, to ensure that warnings are properly emitted for each accept
27663 statement of a given task entry.
27664
276652004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
27666
27667 * Makefile.in: Add support for foreign threads on VMS.
27668
276692004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27670
27671 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
27672 Remove.
27673 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
27674
27675 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
27676
27677 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
27678 exception.
27679 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
27680
276812004-12-07 Robert Dewar <dewar@adacore.com>
27682
27683 * nlists.adb (Prepend_Debug): Remove parameters and nest within
27684 Prepend.
27685 (Remove_Next_Debug): Same fix
27686
27687 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
27688 maintain back pointers now, though we did not used to, and comments
27689 were out of date).
27690 (Prepend): Remove pragma Inline.
27691 (Remove_Next): Same cleanup
27692
276932004-12-07 Thomas Quinot <quinot@adacore.com>
27694
27695 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
27696 used to record an implicit dereference as a read operation on its
27697 prefix when operating under -gnatc. Necessary to avoid spurious
27698 'variable assigned but never read' warnings in that mode.
27699 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
27700 is a non-overloaded implicit dereference, call the above subprogram to
27701 ensure proper recording of references.
27702
277032004-12-07 Gary Dismukes <dismukes@adacore.com>
27704
27705 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
27706 to be resolved later as part of Analyze_Iteration_Scheme's call to
27707 Make_Index.
27708
277092004-12-07 Ed Schonberg <schonberg@adacore.com>
27710
27711 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
27712 prefix is not a scalar type, place error message on prefix, not on
27713 type entity.
27714
277152004-12-07 Bernard Banner <banner@adacore.com>
27716
27717 * vxaddr2line.adb: Add support for x86 vxworks
27718
277192004-12-07 Thomas Quinot <quinot@adacore.com>
27720
27721 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
27722 documentation of the behaviour of these functions when passed an IP
27723 address that has no record in the system hosts database and no reverse
27724 record in the DNS.
27725
27726 * cstand.adb, a-tags.ads: Fix typos in comment.
27727
277282004-12-07 Robert Dewar <dewar@adacore.com>
27729
27730 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
27731 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
27732 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
27733 s-poosiz.ads: Minor reformatting
27734
27735 * make.adb: Minor reformatting
27736 Add some ??? comments asking for more comments
27737
27738 * s-poosiz.adb: Minor reformatting
27739 Add comments on alignment requirement
27740
27741 * sinfo.ads: Remove obsolete comment and fix typo.
27742
277432004-12-07 Vincent Celier <celier@adacore.com>
27744 Sergey Rybin <rybin@adacore.com>
27745
27746 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
27747 Files" with the new tool and package names.
27748 Reformatting to suppress most of the warnings for line too long
27749 Document the new section "Project Search Path:" in the output of
27750 gnatls -v.
27751 Add gnatmetric section
27752
277532004-12-07 Vincent Celier <celier@adacore.com>
27754
27755 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
27756 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
27757 and -eit to -ept. Added qualifier
27758 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
27759
ed986c8e
AS
277602004-11-27 Andreas Schwab <schwab@suse.de>
27761
27762 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
27763
3c13948a
AC
277642004-11-25 Arnaud Charlet <charlet@adacore.com>
27765
27766 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
27767 internal implementation unit GNAT.Sockets.Thin,
27768 as their usage for sockets is non-portable (using the read and write
27769 functions from the system runtime library is fine on UNIX but won't
27770 work under Windows).
27771
27772 * mingw32.h: Update copyright notice.
27773
061fd2bf
AC
277742004-11-25 Arnaud Charlet <charlet@adacore.com>
27775
27776 * ada-tree.h: Minor reformatting of previous change to avoid lines
27777 longer than 79 characters.
27778
e850e1f4
OH
277792004-11-25 Olivier Hainque <hainque@adacore.com>
27780
27781 * tb-gcc.c: GCC infrastructure based implementation of
27782 __gnat_backtrace.
27783
39afeb1a
SB
277842004-11-24 Steven Bosscher <stevenb@suse.de>
27785
27786 * misc.c (gnat_post_options): Don't clear
27787 flag_inline_functions.
27788
9633a6ac
AP
277892004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
27790
27791 PR ada/17986
27792 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
27793 tree.
27794
7fe16580
AJ
277952004-11-21 Andreas Jaeger <aj@suse.de>
27796
27797 * stylesw.adb: Change Style_Check_Subprogram_Order to
27798 Style_Check_Order_Subprograms.
27799
9716416b
AC
278002004-11-18 Arnaud Charlet <charlet@adacore.com>
27801
27802 * adaint.h, adaint.c
27803 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
27804 to avoid warnings.
27805 Add also a cast to kill another warning.
27806 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
27807 parameter with the priority class of the parent process instead of
27808 always using the NORMAL_PRIORITY_CLASS.
27809 (__gnat_dup): New function.
27810 (__gnat_dup2): New function.
27811 (__gnat_is_symbolic_link): Enable the effective body of this
27812 function when __APPLE__ is defined.
27813
27814 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
27815 Update comments.
27816
278172004-11-18 Olivier Hainque <hainque@adacore.com>
27818
27819 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
27820 address of which may be used to represent "others" and "all others"
27821 choices in exception tables, instead of the current harcoded
27822 (void *)0 and (void *)1.
27823 (Setup_Exception): Do nothing in the GNAT SJLJ case.
27824
27825 * gigi.h (others_decl, all_others_decl): New decls representing the
27826 new Others_Value and All_Others_Value objects.
27827 (struct attrib): Rename "arg" component as "args", since GCC expects a
27828 list of arguments in there.
27829
27830 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
27831 corresponding objects exported by a-exexpr, instead of hardcoded dummy
27832 addresses.
27833
27834 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
27835 others_decl and all_others_decl instead of hardcoded dummy addresses
27836 to represent "others" and "all others" choices, which is cleaner and
27837 more flexible with respect to the possible eh pointer encoding policies.
27838
27839 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
27840 (process_attributes): Account for the naming change of the "args"
27841 attribute list entry component.
27842
27843 * decl.c (build_attr_list): Rename into prepend_attributes to allow
27844 cumulating attributes for different entities into a single list.
27845 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
27846 attributes for the current entity and propagate first subtype
27847 attributes to other subtypes.
27848 <E_Procedure>: Attribute arguments are attr->args and not
27849 attr->arg any more.
27850 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
27851 argument provided, as this is what GCC expects. Use NULL_TREE instead
27852 of 0 for trees.
27853
278542004-11-18 Robert Dewar <dewar@adacore.com>
27855
15cd18b9 27856 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
9716416b
AC
27857 Minor reformatting througout (including new function specs)
27858 Add ??? comments asking for clarification.
27859
278602004-11-18 Thomas Quinot <quinot@adacore.com>
27861
27862 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
27863 incomplete duplicate implementation of this subprogram from butil.
27864
278652004-11-18 Thomas Quinot <quinot@adacore.com>
27866
27867 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
27868 procedures factors the common processing for building an RPC receiver
27869 for an RCI package or an RACW type.
27870 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
27871 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
27872 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
27873 in use.
27874 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
27875 Add_RACW_Features.
27876 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
27877 Add_RAST_Features.
27878 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
27879 distribution subprogram identifiers that are either subprogram numbers
27880 or strings.
27881 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
27882 string distribution identifiers assigned to a given subprogram.
27883 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
27884 (Add_RAS_Dereference_TSS): Add comments.
27885 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
27886 is not referenced yet because it will be used by the PolyORB DSA
27887 implementation.
27888 (Insert_Partition_Check): Remove fossile code.
27889 (First_RCI_Subprogram_Id): Document this constant.
27890 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
27891 RAS_Access TSS.
27892 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
27893 replaced with calls to Get_Library_Unit_Name_String. Previously there
27894 were several instances of the same code in different locations in the
27895 compiler; this checkin completes the replacement of all of these
27896 instances with calls to a common subprogram.
27897 Minor reformatting.
27898
27899 * sem_dist.adb: Remove comment noting that RPC receiver generation
27900 should be disabled for RACWs that implement RASs.
27901 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
27902
27903 * sem_util.ads, sem_util.adb (Has_Stream): New function
27904 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
27905 qualified name of a library unit into the name buffer.
27906 (Note_Possible_Modification): Generate a reference only
27907 if the context comes from source.
27908
27909 * snames.ads (PCS_Names): New subtype corresponding to names of
27910 supported implementations of the Partition Communication Subsystem
27911 (PCS) (i.e. the runtime library support modules for the distributed
27912 systems annex).
27913
279142004-11-18 Robert Dewar <dewar@adacore.com>
27915 Ed Schonberg <schonberg@adacore.com>
27916
27917 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
27918 (Has_Rep_Pragma): New function
27919 (Has_Attribute_Definition_Clause): New function
27920 (Record_Rep_Pragma): Moved here from sem_ch13.adb
27921 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
27922
27923 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
27924
27925 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
27926 (Expand_Pragma_Psect_Object): New procedure
27927 These procedures contain the revised and cleaned up processing for
27928 these two pragmas. This processing was formerly in Sem_Prag, but
27929 is more appropriately moved here. The cleanup involves making sure
27930 that the pragmas are properly attached to the tree, and that no
27931 nodes are improperly shared.
27932
27933 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
27934 pragmas to Exp_Prag, which is more appropriate.
27935 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
27936 check for duplicates Remove use of Is_Psected flag, no longer needed.
27937 Use new Make_String_Literal function with string.
27938
27939 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
27940 that are functions return universal values, that have to be converted
27941 to the context type.
27942 Use new Make_String_Literal function with string.
27943 (Get_Stream_Convert_Pragma): New function, replaces the use of
27944 Get_Rep_Pragma, which had to be kludged to work in this case.
27945
27946 * freeze.adb: Use new Has_Rep_Pragma function
27947
27948 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
27949 function with string.
27950 Use new Has_Rep_Pragma function.
27951
27952 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
27953 string argument.
27954
279552004-11-18 Robert Dewar <dewar@adacore.com>
27956
27957 * errout.ads, errout.adb: (First_Sloc): New function
27958
27959 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
27960 check (-gnatyx) instead of being included as a redundant construct
27961 warning.
27962
27963 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
27964 Style_Check_Order_Subprograms.
27965
27966 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
27967 stylesw.adb: Add Style_Check_Xtra_Parens
27968
27969 * usage.adb: Add line for -gnatyx (check extra parens)
27970
27971 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
27972
279732004-11-18 Ed Schonberg <schonberg@adacore.com>
27974 Robert Dewar <dewar@adacore.com>
27975
27976 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
27977 discriminant of a constrained subtype, analyze the copy of the
27978 corresponding constraint, because in some cases it may be only
27979 partially analyzed.
27980 Removes long-lived ??? comments.
27981
27982 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
27983 handled controlled or secondary-stack expressions within the
27984 iteration_scheme of a loop.
27985
27986 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
27987 bounds that may contain functions calls, to prevent memory leaks when
27988 the bound contains a call to a function that uses the secondary stack.
27989 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
27990 generate temporaries for loop bounds that might contain function calls
27991 that require secondary stack and/or finalization actions.
27992
27993 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
27994 selected component and the selector is overloadable (not just a
27995 function) treat as function call, Analyze_Call will disambiguate if
27996 necessary.
27997 (Analyze_Selected_Component): Do not generate an actual subtype for the
27998 selected component if expansion is disabled. The actual subtype is only
27999 needed for constraint checks.
28000 (Analyze_Allocator): If restriction No_Streams is set, then do
28001 not permit objects to be declared of a stream type, or of a
28002 composite type containing a stream.
28003
28004 * restrict.ads: Remove the a-stream entry from Unit_Array, since
28005 No_Streams no longer prohibits with'ing this package.
28006
28007 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
28008 discriminants, but the parent base has unknown discriminants, there is
28009 no discriminant constraint to inherit. Such a discrepancy can arise
28010 when the actual for a formal type with unknown discriminants is a
28011 similar private type whose full view has discriminants.
28012 (Analyze_Object_Declaration): If restriction No_Streams is set, then
28013 do not permit objects to be declared of a stream type, or of a
28014 composite type containing a stream.
28015
280162004-11-18 Ed Schonberg <schonberg@adacore.com>
28017
28018 * exp_dbug.ads: Update documentation to reflect simpler encoding for
28019 protected operations.
28020
28021 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
28022 generated name, it complicates decoding in gdb and hinders debugging
28023 of protected operations.
28024 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
28025 flag for the protected entry barrier function.
28026 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
28027 flag for the protected entry function.
28028
280292004-11-18 Nicolas Setton <setton@adacore.com>
28030
28031 * expect.c: Define __unix__ when __APPLE__ is defined.
28032
28033 * Makefile.in: Inform the value of the variable GMEM_LIB in the
28034 Darwin-specific section.
28035
28036 * lang-specs.h: Change the placement of the %1 marker.
28037 Works around the fact that gcc adds -fPIC by default under Darwin.
28038
280392004-11-18 Ed Schonberg <schonberg@adacore.com>
28040
28041 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
28042 type of the object with the packed array type, set the Analyzed flag
28043 on the object if it is an entity or simple indexed component, to avoid
28044 spurious type errors.
28045
280462004-11-18 Gary Dismukes <dismukes@adacore.com>
28047
28048 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
28049 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
28050 separate line from the version message.
28051
280522004-11-18 Ed Falis <falis@adacore.com>
28053
28054 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
28055 vthreads.
28056 (init_float): Eliminate initialization of floating point status for
28057 AE653. The instructions have no effect for vThreads.
28058
280592004-11-18 Vincent Celier <celier@adacore.com>
28060
28061 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
28062 gnatbind is invoked with -shared.
28063
280642004-11-18 Jose Ruiz <ruiz@adacore.com>
28065
28066 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
28067 for Detect_Blocking which is redundant with the check done within the
28068 procedure Protected_Single_Entry_Call.
28069 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
28070 Detect_Blocking which is redundant with the check done within the
28071 procedure Protected_Single_Entry_Call.
28072
280732004-11-18 Vincent Celier <celier@adacore.com>
28074
28075 * makegpr.adb (Compile): Put the compiling switches (in package
28076 Compiler and on the command line) immediately after "-c", instead of
28077 at the end of the command line invocation of the compiler, when
28078 compiling a non-Ada file.
28079 (Build_Global_Archive): When there is no need to rebuild the archive,
28080 set Global_Archive_Exists, so that the archive is passed to the linker
28081 if one is needed.
28082
280832004-11-18 Robert Dewar <dewar@adacore.com>
28084 Sergey Rybin <rybin@adacore.com>
28085
15cd18b9 28086 * gnat_ugn.texi:
9716416b
AC
28087 Remove extra paren check from list of checks for redundant constructs
28088 Add documentation of new -gnatyx style check (check extra parens)
28089 Remove paragraph about gnatelim debug options.
28090
28091 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
28092 objects rather than forbidding dependencies on the package Ada.Streams.
28093
28094 * sinfo.ads: Add ??? note that we should document pragmas passed to
28095 back end.
28096
28097 * g-expect.ads: Fix a few typos in the comments.
28098
9e637a26
JM
280992004-11-09 Joseph S. Myers <joseph@codesourcery.com>
28100
28101 * misc.c (gnat_handle_option): Use %< and %> for quoting in
28102 warning message.
28103
0506cb1c
RO
281042004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
28105
28106 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
28107
426e7d28
AS
281082004-11-07 Andreas Schwab <schwab@suse.de>
28109
28110 * Makefile.in (install-gnatlib): Remove spurious hyphen.
28111
8785609e 281122004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
bb342a77
AP
28113
28114 PR ada/18228
28115 * Makefile.in (darwin): Set soext to .dylib.
28116
0ca5fab2
AC
281172004-10-26 Vincent Celier <celier@gnat.com>
28118 Thomas Quinot <quinot@act-europe.fr>
28119
28120 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
28121 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
28122 there is no use of GNAT.Sockets.Constants.
28123 Remove remaining pragma Import for C_Write
28124 Remove C_Read and C_Write from internal implementation unit
28125 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
28126 the read and write functions from the system runtime library is fine
28127 on UNIX but won't work under Windows).
28128
28129 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
28130 (Check_Selector): Use C_Recv instead of C_Read.
28131 Selectors are the GNAT.Sockets abstraction to perform a select()
28132 call on a set of descriptors. To allow abortion of an ongoing
28133 select operation, some data is written to a dedicated socket that
28134 is always monitored.
28135 Under Windows, the write and read library functions cannot operate
28136 on sockets, so we need to use send and recv instead, which is portable
28137 across all supported platforms.
28138
28139 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
28140 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
28141 (using the read and write functions from the system runtime library is
28142 fine on UNIX but won't work under Windows).
28143
281442004-10-26 Nicolas Setton <setton@act-europe.fr>
28145
28146 * mlib-tgt-darwin.adb: New file.
28147
28148 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
28149 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
28150 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
28151 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
28152 subprogram body.
28153
28154 * Makefile.in: Add support for building shared libraries under Darwin.
28155 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
28156 the low level EH init subprogram to be called from __gnat_initialize.
28157
28158 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
28159 indicates which options to pass to the archive indexer.
28160
28161 * mlib-utl.adb: Add support for calling ranlib with additional
28162 options. This is needed for instance under Mac OS X.
28163 (Ranlib_Options): New global variable, used to store the potential
28164 options to pass to ranlib.
28165 (Ar): Use Ranlib_Options when spawning ranlib.
28166 (Initialize): Set the value of ranlib option.
28167
281682004-10-26 Olivier Hainque <hainque@act-europe.fr>
28169
28170 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
28171 instead of 8K, to reflect the real potential needs for stack-checking
28172 in the ZCX case.
28173
281742004-10-26 Pascal Obry <obry@gnat.com>
28175
28176 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
28177
28178 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
28179 Windows only the initial thread stack size can be set so it is good to
28180 start we a low stack size.
28181 The OS will adjust the size as needed.
28182
281832004-10-26 Olivier Hainque <hainque@act-europe.fr>
28184 Nicolas Setton <setton@act-europe.fr>
28185
28186 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
28187 "__unix__" instead of "unix".
28188 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
28189 sections were just mistakenly ignored. The former is
28190 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
28191 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
28192 of hpux. This prevents an unwanted definition of the symbol
28193 convert_addresses in adaint.o.
28194
281952004-10-26 Gary Dismukes <dismukes@gnat.com>
28196
28197 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
28198 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
28199
282002004-10-26 Cyrille Comar <comar@act-europe.fr>
28201
28202 * a-filico.ads, a-filico.adb: fix incorrect header.
28203
282042004-10-26 Javier Miranda <miranda@gnat.com>
28205
28206 * a-ststio.ads: Fix typo in identifier
28207
282082004-10-26 Thomas Quinot <quinot@act-europe.fr>
28209
28210 * sem_ch4.adb: Minor reformatting.
28211
282122004-10-26 Ed Schonberg <schonberg@gnat.com>
28213
28214 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
28215 enabled, check the result of unary and binary operations when the
28216 expression is the right-hand side of an assignment.
28217
282182004-10-26 Vincent Celier <celier@gnat.com>
28219
28220 * clean.adb (Delete): Do not output warnings when in quiet output and
28221 not in verbose mode.
28222 (Force_Deletions): New Boolean flag, defaulted to False
28223 (Delete): Only delete a file if it is writable, and when
28224 Force_Deletions is True.
28225 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
28226 (Usage): Line for new switch -f
28227 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
28228 own.
28229
282302004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
28231
28232 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
28233 JM type only if its size matches that of the wrapper. When a size is
28234 prescribed and the field is not aliased, remove the wrapper of a JM
28235 type only if the size is not greater than that of the packed array.
28236 (gnat_to_gnu_entity): Change the extension of packed array wrappers
28237 from LJM to JM.
28238
282392004-10-26 Geert Bosch <bosch@gnat.com>
28240
28241 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
28242 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
28243 (Pred): Implement in terms of Succ.
28244
282452004-10-26 Ed Schonberg <schonberg@gnat.com>
28246
28247 * exp_aggr.adb (Safe_Component): An aggregate component that is an
28248 unchecked conversion is safe for in-place use if the expression of the
28249 conversion is safe.
28250 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
28251 be expandable in place even if the aggregate does not come from source.
28252 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
28253 designated object of an allocator in place, rather than building it
28254 first on the stack. The previous scheme forces a full copy of the array,
28255 and may be altogether unsusable if the size of the array is too large
28256 for stack allocation.
28257
282582004-10-26 Robert Dewar <dewar@gnat.com>
28259
28260 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
28261 compares if the component is atomic.
28262
28263 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
28264 array assignment if the component type is atomic.
28265
282662004-10-26 Ed Schonberg <schonberg@gnat.com>
28267 Eric Botcazou <ebotcazou@act-europe.fr>
28268
28269 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
28270 is aliased and is a by_reference type, do not pass by copy.
28271 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
28272 detect whether the call is in the right side of an assignment or
28273 the expression of an object declaration. Recurse on component
28274 association within aggregates.
28275 Call it in the condition that determines whether the temporary is
28276 necessary for correct stack-checking.
28277
282782004-10-26 Thomas Quinot <quinot@act-europe.fr>
28279
28280 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
28281 RACW_Type, used in the PolyORB version.
28282 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
28283 version and the GARLIC version.
28284
15cd18b9 28285 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
0ca5fab2
AC
28286 Rename RCI_Info to RCI_Locator for better consistency between the
28287 GARLIC and PolyORB versions of the distributed systems annex.
28288 (DSA_Implementation_Name): This enumeration lists the possible
28289 implementations of the Partition Communication Subsystem for the
28290 Distributed Systems Annex (DSA). The three available implementations
28291 are the dummy stub implementation (No_DSA), and two versions based on
28292 two different distribution runtime libraries: GARLIC and PolyORB. Both
28293 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
28294 technology.
28295 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
28296 that organization.
28297
28298 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
28299 between the GARLIC and PolyORB versions of the distributed systems
28300 annex.
28301 Remove RE_Unbounded_Reclaim_Pool since it is unused.
28302
283032004-10-26 Gary Dismukes <dismukes@gnat.com>
28304
28305 * gnat1drv.adb: Suppress calling the back end when
28306 Frontend_Layout_On_Target is true.
28307
283082004-10-26 Thomas Quinot <quinot@act-europe.fr>
28309
28310 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
28311 Set_Read_Only): New subprograms.
28312 These new routines allow the user to set or unset the Owner execute
28313 and Owner write permission flags on a file.
28314
28315 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
28316 GNAT.OS_Lib.Set_Executable instead of rolling our own.
28317
283182004-10-26 Matthew Gingell <gingell@gnat.com>
28319
28320 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
28321
283222004-10-26 Pascal Obry <obry@gnat.com>
28323
28324 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
28325 memory before the faulting page we properly test the process read
28326 access for this address using appropriate Win32 routine.
28327 (HPUX sections): guard with "__hpux__" instead of "hpux".
28328
283292004-10-26 Robert Dewar <dewar@gnat.com>
28330
28331 * lib-xref.adb (Generate_Reference): Don't complain about reference to
28332 entry parameter if pragma Unreferenced set, since we do not properly
28333 handle the case of multiple parameters.
28334
283352004-10-26 Vincent Celier <celier@gnat.com>
28336
28337 * prj-env.adb: (Contains_ALI_Files): New Boolean function
28338 (Ada_Objects_Path.Add): For a library project, add to the object path
28339 the library directory only if there is no object directory or if the
28340 library directory contains ALI files.
28341 (Set_Ada_Paths.Add.Recursive_Add): Ditto
28342
283432004-10-26 Vincent Celier <celier@gnat.com>
28344
28345 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
28346 extension of library projects.
28347
28348 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
28349 path defaults to ".:<prefix>/lib/gnat".
28350 (Parse): For an extending all project, allow direct import of a project
28351 that is virtually extended.
28352
28353 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
28354 the specified name is directly imported, return its ID. Otherwise, if
28355 an extension of this project is imported, return the ID of the
28356 extension.
28357
283582004-10-26 Robert Dewar <dewar@gnat.com>
28359
28360 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
28361 (Sub3): New procedure, used by Scaled_Divide
28362 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
28363 correct more than one instance of failure to propagate carries
28364 correctly.
28365 (Double_Divide): Handle overflow case of largest negative number
28366 divided by minus one.
28367
28368 * s-arit64.ads (Double_Divide): Document that overflow can occur in
28369 the case of a quotient value out of range.
28370 Fix comments.
28371
283722004-10-26 Robert Dewar <dewar@gnat.com>
28373
28374 * s-bitops.adb (Bit_Eq): Remove redundant check.
28375
28376 * s-bitops.ads: Minor comment updates
28377 Change some occurrences of Address to System.Address
28378
28379 * s-carsi8.ads: Fix minor cut-and-paste error in comments
28380
283812004-10-26 Ed Schonberg <schonberg@gnat.com>
28382
28383 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
28384 accessibility check to prefix that is a protected operation.
28385
283862004-10-26 Ed Schonberg <schonberg@gnat.com>
28387
28388 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
28389 empty, post message on stub.
28390
283912004-10-26 Ed Schonberg <schonberg@gnat.com>
28392 Javier Miranda <miranda@gnat.com>
28393
28394 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
28395 current instance appears within a unit that is directly in the context
28396 of the main unit.
28397 Used to determine whether the body of the instance should be analyzed
28398 immediately after its spec, to make its subprogram bodies available
28399 for front-end inlining.
28400 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
28401 constraint is not allowed on the component type (AARM 12.5.3(3))
28402
284032004-10-26 Cyrille Comar <comar@act-europe.fr>
28404
28405 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
28406 'Storage_Pool): enhance, document & limit detection of non-sharable
28407 internal pools.
28408
28409 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
28410
28411 * s-pooglo.ads: Add more documentation now that this pool is properly
28412 documented.
28413
284142004-10-26 Ed Schonberg <schonberg@gnat.com>
28415
28416 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
28417 or protected type with discriminants, do not constrain the
28418 corresponding record type if the subtype declaration has no
28419 discriminant constraints. This can be the case in source code, or in
28420 the subtype declaration created to rename an actual type within an
28421 instantiation.
28422
284232004-10-26 Ed Schonberg <schonberg@gnat.com>
28424
28425 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
28426 different kind of stub (possibly wrong name for file), do not check
28427 for conformance.
28428 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
28429 includes call to some function that returns an unconstrained type, do
28430 not inline.
28431
284322004-10-26 Ed Schonberg <schonberg@gnat.com>
28433
28434 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
28435 appear in the code for the main unit. Dependencies among units in the
28436 context of the main unit are established when those other units are
28437 compiled. Otherwise spurious elaboration constraints can generate
28438 incorrect elaboration circularities.
28439
284402004-10-26 Thomas Quinot <quinot@act-europe.fr>
28441 Ed Schonberg <schonberg@gnat.com>
28442
28443 * sem_util.adb (Is_Aliased_View): Defend against the case where this
28444 subprogram is called with a parameter that is not an object name. This
28445 situation arises for some cases of illegal code, which is diagnosed
28446 later, and in this case it is wrong to call Is_Aliased, as that might
28447 cause a compiler crash.
28448 (Explain_Limited_Type): Refine previous fix to include
28449 inherited components of derived types, to provide complete information.
28450
28451 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
28452 is the prival for a protected object.
28453 It is necessary to mark this entity as a variable, in addition to
28454 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
28455 modified to avoid checking the Aliased flag on entities that are not
28456 objects. (Checking that flag for non-objects is erroneous and could
28457 lead to a compiler crash).
28458
284592004-10-26 Robert Dewar <dewar@gnat.com>
28460
28461 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
28462 X_Frac = 0.5, then we know that the number X must be positive.
28463 (Succ): Remove the same redundant test, and also fix the primary test
28464 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
28465 Minor reformatting
28466 (Decompose): Add fuller comments to spec
28467
284682004-10-26 Pascal Obry <obry@gnat.com>
28469
28470 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
28471 validity (process must have read access). Set to 0 in all other cases.
28472 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
28473 violation on Win32.
28474 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
28475 segmentation violation.
28476
284772004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
28478
28479 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
28480 whose type is a constructed subtype of an aliased object with an
28481 unconstrained nominal subtype, convert the actual to the constructed
28482 subtype before taking its address.
28483
284842004-10-26 Vincent Celier <celier@gnat.com>
28485
28486 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
28487 (Is_Path_Name_Case_Sensitive): New function
28488
28489 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
28490 (Base_Name, Simple_Name, Current_Directory, Compose,
28491 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
28492 the result.
28493
284942004-10-26 Cyrille Comar <comar@act-europe.fr>
28495 Vasiliy Fofanov <fofanov@act-europe.fr>
28496 Vincent Celier <celier@gnat.com>
28497
28498 * gnat_ugn.texi: Generalize "finding memory problems" section into a
28499 "memory management issues" section and document some of the useful
28500 memory pools provided as part of the GNAT library.
28501 Remove "virtual" from declaration of A::method2 in
28502 the simple example of Ada/C++ mixed system.
28503 Library Projects may be virtually extended: their virtual extensions
28504 are not Library Projects.
28505 Added section on extending project hierarchies.
28506
d65c6710 285072004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
aa75e737
AL
28508
28509 * adaint.c (__gnat_get_libraries_from_registry): Cast value
28510 to LPBYTE.
28511 (__gnat_portable_spawn): Remove const.
28512
28513 * mingw32.h (MAXPATHLEN): Check for previous definition.
28514
95e19580
MK
285152004-10-17 Matthias Klose <doko@debian.org>
28516
28517 * gnatvsn.ads: Set gnat library version to 4.0.
28518
88a6ecb6
VC
285192004-10-05 Vincent Celier <celier@gnat.com>
28520
a1286ef5 28521 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
88a6ecb6 28522
9e94c78f 285232004-10-04 Laurent Guerby <laurent@guerby.net>
110aba14
LG
28524
28525 PR ada/15156
28526 * Makefile.in: Define and use RANLIB_FLAGS.
88a6ecb6 28527
09552763
PO
285282004-10-04 Pascal Obry <obry@gnat.com>
28529
28530 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
28531 other x86 platforms).
28532
a8e490b7
OH
285332004-10-04 Olivier Hainque <hainque@act-europe.fr>
28534
28535 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
28536 in general and triggers stack alignment adjustment for thread entry
28537 points on targets where this is necessary.
28538
71c10a83
BB
285392004-10-04 Bernard Banner <banner@gnat.com>
28540
28541 PR ada/13897
71c10a83
BB
28542 * Makefile.in: Add section for powerpc linux
28543 Add variant i-vxwork-x86.ads
28544
28545 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
28546
9a03df55
OH
285472004-10-04 Olivier Hainque <hainque@act-europe.fr>
28548
28549 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
28550 table registration calls when need be. Ensures no reference to the crt
28551 ctors symbol are issued in the SJLJ case, which avoids possible
28552 undefined symbol errors in the case of modules to be statically linked
28553 with the kernel.
28554
28d6470f
JM
285552004-10-04 Javier Miranda <miranda@gnat.com>
28556
28557 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
28558 in-line the code corresponding to subprogram Analyze_Actuals. In
28559 addition, analyze the actuals only in case of subprogram call.
28560
06237875
EF
285612004-10-04 Ed Falis <falis@gnat.com>
28562
28563 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
28564
259d6c3a
SR
285652004-10-04 Sergey Rybin <rybin@act-europe.fr>
28566
28567 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
28568 in the documentation.
28569
6f21ed26
RD
285702004-10-04 Robert Dewar <dewar@gnat.com>
28571
28572 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
28573 IF and CASE.
28574 (Analyze_Block_Statement): Add circuitry to detect following dead code
28575 (Check_Unreachable_Code): Handle case of block exit
28576
4cded177
RD
285772004-10-04 Robert Dewar <dewar@gnat.com>
28578
28579 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
28580 (XMatchD): Avoid warning for Logic_Error call
28581
c6a60aa1
RD
285822004-10-04 Robert Dewar <dewar@gnat.com>
28583
28584 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
28585 consider expressions buried within a procedure actual to be an actual.
28586 This caused some blowups with uses of packed slices within a procedure
28587 actual.
28588
1fdebfe5
RD
285892004-10-04 Robert Dewar <dewar@gnat.com>
28590
28591 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
28592 longer need to be initialized to zero.
28593 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
28594 initialized to zero.
28595
28596 * checks.adb (Expr_Known_Valid): Packed arrays are now always
28597 considered valid, even if the representation is modular. That's correct
28598 now that we no longer initialize packed modular arrays to zero.
28599
28600 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
28601 suffixes. These are now documented as the only cases in which the
28602 debugger ignores outer records.
28603 Previously, the spec allowed arbitrary suffixes for this purpose.
28604 Change name of LJM to JM for packed array pad records
28605 Create separate section on packed array handling, and add a whole new
28606 set of comments to this section describing the situation with packed
28607 modular types and justification requirements depending on endianness.
28608
cd91501c
RD
286092004-10-04 Robert Dewar <dewar@gnat.com>
28610
28611 * a-except.adb: Add a comment for last change
28612
28613 * einfo.ads: Minor spelling correction in comment
28614
28615 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
28616
28617 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
28618 messages.
28619
28620 * sem_util.ads: Minor comment update
28621
c71c53a8
ES
286222004-10-04 Ed Schonberg <schonberg@gnat.com>
28623
28624 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
28625 Inline_Always when in Configurable_Run_Time mode.
28626
28627 * sem_prag.adb (Process_Convention): If entity is an inherited
28628 subprogram, apply convention to parent subprogram if in same scope.
28629 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
28630 when in Configurable_Run_Time mode.
28631
71d9e9f2
ES
286322004-10-04 Ed Schonberg <schonberg@gnat.com>
28633
28634 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
28635 class_wide type after component list has been inherited.
28636
0b525bee
ES
286372004-10-04 Ed Schonberg <schonberg@gnat.com>
28638
28639 * sem_ch12.adb (Check_Generic_Actuals): New predicate
28640 Denotes_Previous_Actual, to handle properly the case of a private
28641 actual that is also the component type of a subsequent array actual.
28642 The visibility status of the first actual is not affected when the
28643 second is installed.
28644 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
28645 make fully recursive the treatment of formals of packages declared
28646 with a box.
28647 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
28648 the above on exit from an instantiation.
28649 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
28650 current instantiation which is now complete.
28651 (Analyze_Package_Instantiation): No instantiated body is needed if the
28652 main unit is generic. Efficient, and avoid anomalies when a instance
28653 appears in a package accessed through rtsfind.
28654
27ad9660
ES
286552004-10-04 Ed Schonberg <schonberg@gnat.com>
28656
28657 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
28658 do not generate a declaration for a temporary if the call is part of a
28659 library-level instantiation.
28660
1c6c6771
ES
286612004-10-04 Ed Schonberg <schonberg@gnat.com>
28662
28663 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
28664 searching for a limited component to flag.
28665
28666 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
28667 expansion of Input, to account for the fact that the implicit call
28668 generated by the attribute reference must freeze the user-defined
28669 stream subprogram. This is only relevant to 'Input, because it can
28670 appear in an object declaration, prior to the body of the subprogram.
28671
28672 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
28673 expansion can proceed and further errors uncovered.
28674 (Minor clean up): Fix cases of using | instead of \ for continuation
28675 messages.
28676
8005f3e5
RK
286772004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28678
28679 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
28680
28681 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
28682 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
28683 Use gcc_assert and gcc_unreachable.
28684
28685 * decl.c (gnat_to_gnu_entity, case object): Check and process a
28686 specified alignment before validating size.
28687 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
28688 stripped-down declaration for the type of the inner field when making
28689 a JM type.
28690
28691 * utils.c (finish_record_type): Do not compute the size in units
28692 incrementally. Instead compute it once for the rep clause case.
28693 Use gcc_assert and gcc_unreachable.
28694
6a294a29
VC
286952004-10-04 Vincent Celier <celier@gnat.com>
28696
28697 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
28698 in file name.
28699 (Is_Valid_Path_Name): Take '/' as a directory separator.
28700
9a080ea3
VC
287012004-10-04 Vincent Celier <celier@gnat.com>
28702
28703 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
28704 (Extended_Project) only if Extended_Project is defined, to avoid
28705 assertion error.
28706 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
28707 resolved path.
28708 (Parse_Single_Project): Ditto.
28709
28710 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
28711 Add_To_Project_Path for virtual projects.
28712
51004cb5
VC
287132004-10-04 Vincent Celier <celier@gnat.com>
28714
15cd18b9
SS
28715 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
28716 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
28717 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
51004cb5
VC
28718 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
28719 parameter Options_2.
28720
28721 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
28722 Build_Dynamic_Library with an empty Options_2.
28723
28724 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
28725 default anymore.
28726
28727 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
28728 directory separator, if any.
28729 (Gprmake): Do not allow mains on the command line for library projects.
28730 Do not attempt to link when the project is a library project.
28731 (Library_Opts): New table to store Library_Options.
28732 (Build_Library): If Library_Options is specified, pass these options
28733 when building a shared library.
28734
3b37ffbf
JR
287352004-10-04 Jose Ruiz <ruiz@act-europe.fr>
28736
28737 * s-tposen.adb (Service_Entry): The object must be always unlocked at
28738 the end of this procedure now that the unlock operation was inserted
28739 by the expander.
28740
b23e28d5
JR
287412004-10-04 Jose Ruiz <ruiz@act-europe.fr>
28742
28743 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
28744 corresponding to the Preallocated_Stacks flags in System.
28745 (Get_Target_Parameters): Including the processing for
28746 Preallocated_Stacks.
28747
15cd18b9
SS
28748 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
28749 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
28750 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
28751 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
28752 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
28753 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
28754 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
28755 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
28756 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
28757 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
b23e28d5
JR
28758 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
28759 used to signal whether the compiler creates the required stacks and
28760 descriptors for the different tasks (when True) or it is done by the
28761 underlying operating system at run time (when False).
28762 It is initially set to False in all targets.
28763
28764 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
28765 if it is supported by the target.
28766 (Make_Task_Create_Call): Pass the stack address if it has been
28767 previously created. Otherwise pass a Null_Address.
28768
28769 * snames.adb: Add _stack.
28770
28771 * snames.ads: Add Name_uStack. Required to allow the expander to
28772 statically allocated task stacks.
28773
28774 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
28775 Stack_Address argument.
28776 Check that its value is equal to Null_Address because this target does
28777 not support the static stack allocation.
28778
6fd459bb
TQ
287792004-10-04 Thomas Quinot <quinot@act-europe.fr>
28780
28781 * usage.adb: Change "pragma inline" to "pragma Inline" in information
28782 and error messages
28783
5885facb
TQ
287842004-10-04 Thomas Quinot <quinot@act-europe.fr>
28785
28786 * exp_dist.adb: Split declaration of asynchronous flag out of
28787 Add_RACW_Read_Attribute.
28788 Minor reformatting for better alignment with PolyORB version.
28789 Store the entity for the asynchronous flag of an RACW, rather than the
28790 expression, in the asynchronous flags table. This will allow this flag
28791 to be used in other subprograms beside Add_RACW_Read_Attribute.
28792
d6c7ed50
TQ
287932004-10-04 Thomas Quinot <quinot@act-europe.fr>
28794
28795 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
15cd18b9
SS
28796 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
28797 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
28798 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
d6c7ed50
TQ
28799 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
28800 sockets constant MSG_NOSIGNAL (Linux-specific).
28801 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
28802 all Send operations.
28803 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
28804 from trigerring SIGPIPE.
28805 Rename components to avoid clash with Ada 2005 possible reserved
28806 word 'interface'.
28807 (Check_Selector): When the select system call returns with an error
28808 condition, propagate Socket_Error to the caller.
28809
0f0377f6
JH
288102004-10-01 Jan Hubicka <jh@suse.cz>
28811
28812 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
28813
2c9beb8a
RD
288142004-09-23 Robert Dewar <dewar@gnat.com>
28815
28816 PR ada/17540
2c9beb8a
RD
28817 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
28818 instead do this at freeze time (we won't do it if there is an address
28819 clause).
28820 Change "pragma inline" to "pragma Inline" in information and error
28821 messages.
28822 Minor reformatting.
28823
28824 * freeze.adb (Check_Address_Clause): Remove previous change, not the
28825 right way of doing things after all.
28826 (Freeze_Entity): For object, set Is_Public for imported entities
28827 unless there is an address clause present.
28828
2494e673
OH
288292004-09-21 Olivier Hainque <hainque@act-europe.fr>
28830
28831 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
28832 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
28833 ensures proper handling of types with rep clauses, which might have
28834 their TYPE_SIZE set already.
28835
910d20fc
RD
288362004-09-21 Robert Dewar <dewar@gnat.com>
28837
28838 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
28839 packed array types in both little- and big-endian cases. This change
28840 ensures that we no longer count on the unused bits being initialized
28841 for such types (and in particular ensures that equality testing will
28842 only read the relevant bits).
28843 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
28844 These changes mean that we no longer need to initialize small packed
28845 arrays.
28846 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
28847 optimization to an LJM field as to its parent field.
28848
28849 * ada-tree.h, trans.c, utils.c, utils2.c:
28850 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
28851
8f235343
JH
288522004-09-20 Jan Hubicka <jh@suse.cz>
28853
28854 * utils.c (gnat_finalize): Remove.
28855 (end_subprog_body): Directly call cgraph_finalize_function;
28856 do not lower the nested functions.
28857
bb9be5eb
RD
288582004-09-20 Robert Dewar <dewar@gnat.com>
28859
28860 PR ada/17540
bb9be5eb
RD
28861 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
28862 if an address clause is present, since that means that the Import
28863 should be ignored.
28864
796ef2e2
AC
288652004-09-20 Arnaud Charlet <charlet@act-europe.fr>
28866
28867 * 5tsystem.ads: Removed, no longer used.
28868
6615c446
JO
288692004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
28870 Zack Weinberg <zack@codesourcery.com>
28871
28872 * ada-tree.def: Use tree_code_class enumeration constants
28873 instead of code letters.
28874 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
28875 Update for new tree-class enumeration constants.
28876
93ed8a01
VC
288772004-09-17 Vincent Celier <celier@gnat.com>
28878
28879 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
28880 capabilities of the general project manager.
28881
c885d7a1
AC
288822004-09-09 Vincent Celier <celier@gnat.com>
28883
28884 * a-direct.ads: Add pragma Ada_05
28885 (Directory_Entry_Type): Give default value to component Kind to avoid
28886 not initialized warnings.
28887
28888 * a-direct.adb (Current_Directory): Remove directory separator at the
28889 end.
28890 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
28891 an existing directory.
28892 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
28893 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
28894 Convert the result to File_Size.
28895
28896 * prj.ads: (Project_Error): New exception
28897
28898 * prj-attr.adb: Except in procedure Initialize, Fail comes from
28899 Prj.Com, not from Osint.
28900 (Attrs, Package_Attributes): Tables moved to private part of spec
28901 (Add_Attribute, Add_Unknown_Package): Moved to new child package
28902 Prj.Attr.PM.
28903 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
28904 Prj.Project_Error after call to Fail.
28905 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
28906 Fail. Check that package name is not already in use.
28907
28908 * prj-attr.ads: Comment updates to indicate that all subprograms may be
28909 used by tools, not only by the project manager, and to indicate that
28910 exception Prj.Prj_Error may be raised in case of problem.
28911 (Add_Unknown_Package, Add_Attribute): Moved to new child package
28912 Prj.Attr.PM.
28913 (Attrs, Package_Attributes): Table instantiations moved from the body to
28914 the private part to be accessible from Prj.Attr.PM body.
28915
28916 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
28917 from new package Prj.Attr.PM.
28918 (Parse_Attribute_Declaration): Call Add_Attribute from new package
28919 Prj.Attr.PM.
28920
28921 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
28922
28923 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
28924 instead of Elaboration_Checks).
28925
28926 * a-calend.adb: Minor reformatting
28927
289282004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28929
28930 * gigi.h (maybe_pad_type): New declaration.
28931 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
28932
28933 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
28934
28935 * cuintp.c: Convert to use buildN.
28936
28937 * decl.c (maybe_pad_type): No longer static.
28938 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
28939 target pointer.
28940 Convert to use buildN.
28941
28942 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
28943 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
28944 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
28945 RHS.
28946 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
28947 (gnat_gimplify_expr, case ADDR_EXPR): New case.
28948 Convert to use buildN.
28949
28950 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
28951 TREE_READONLY for const.
28952 Convert to use buildN.
28953
28954 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
28955 (create_var_decl): Refine when TREE_STATIC is set.
28956 Convert to use buildN.
28957
289582004-09-09 Gary Dismukes <dismukes@gnat.com>
28959
28960 * gnat_ugn.texi: Delete text relating to checking of ali and object
28961 consistency.
28962
28963 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
28964 routines.
28965
289662004-09-09 Jose Ruiz <ruiz@act-europe.fr>
28967
28968 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
28969 pragmas recognized by GNAT.
28970
28971 * gnat_rm.texi: Document pragma Detect_Blocking.
28972
28973 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
28974 raise Program_Error if called from a protected operation.
28975
28976 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
28977 the protected action nesting level.
28978 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
28979 protected action nesting level.
28980 (Unlock): When pragma Detect_Blocking is active decrease the protected
28981 action nesting level.
28982
28983 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
28984 Protected_Action_Nesting.
28985
28986 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
28987 Common_ATCB record. It contains the dynamic level of protected action
28988 nesting for each task. It is needed for checking whether potentially
28989 blocking operations are called from protected operations.
28990 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
28991 Detect_Blocking is active or not in the partition.
28992
28993 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
28994 raise Program_Error if called from a protected operation.
28995 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
28996 Program_Error if called from a protected operation.
28997 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
28998 Program_Error if called from a protected operation.
28999
29000 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
29001 raise Program_Error if called from a protected operation.
29002
29003 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
29004 raise Program_Error if called from a protected operation, and increase
29005 the protected action nesting level.
29006 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
29007 Program_Error if called from a protected operation, and increase the
29008 protected action nesting level.
29009 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
29010 protected action nesting level.
29011
29012 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
29013 raise Program_Error if called from a protected operation, and increase
29014 the protected action nesting level.
29015 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
29016 Program_Error if called from a protected operation, and increase the
29017 protected action nesting level.
29018 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
29019 raise Program_Error if called from a protected operation.
29020 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
29021 active, raise Program_Error if called from a protected operation.
29022 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
29023 protected action nesting level.
29024
29025 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
29026 insertion of the statement raising Program_Error. The run time
29027 contains the required machinery for handling that.
29028
29029 * sem_util.ads: Change comment associated to procedure
29030 Check_Potentially_Blocking_Operation.
29031 This procedure does not insert a call for raising the exception because
29032 that is currently done by the run time.
29033
29034 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
29035
29036 * init.c: Add the global variable __gl_detect_blocking that indicates
29037 whether pragma Detect_Blocking is active (1) or not (0). Needed for
29038 making the pragma available at run time.
29039 (__gnat_set_globals): Pass and update the detect_blocking parameter.
29040
29041 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
29042 pragma Detect_Blocking is active.
29043
29044 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
29045
29046 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
29047 DB is found in the ali file. Any unit compiled with pragma
29048 Detect_Blocking active forces its effect in the whole partition.
29049
29050 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
29051 Detect_Blocking is active and delay is called from a protected
29052 operation.
29053
29054 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
29055 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
29056 Detect_Blocking is active (0 otherwise).
29057 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
29058 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
29059 otherwise).
29060
290612004-09-09 Thomas Quinot <quinot@act-europe.fr>
29062
29063 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
29064 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
29065 package.
29066
29067 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
29068 (Register_Receiving_Stub): Add Subp_Info formal parameter.
29069 Update API in placeholder implemetation of s-parint to reflect changes
29070 in distribution runtime library.
29071
29072 * sem_ch3.adb (Expand_Derived_Record): Rename to
29073 Expand_Record_Extension.
29074
29075 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
29076 primitive operations of potentially distributed object types that have
29077 non-controlling anonymous access formals.
29078
29079 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
29080 subprogram.
29081 New implementation of expansion for remote access-to-subprogram types,
29082 based on the RACW infrastructure.
29083 This version of sem_dist is compatible with PolyORB/DSA as well as
29084 GLADE.
29085
29086 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
29087 Asynchrronous that applies to a remote access-to-subprogram type, mark
29088 the underlying RACW type as asynchronous.
29089
29090 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
29091 __gnat_using_gnu_linker to 1.
29092
29093 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
29094 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
29095 GNAT.Perfect_Hash_Generators, and remove the empty
29096 GNAT.Perfect_Hash package.
29097
29098 * atree.adb: Minor reformatting
29099
29100 * exp_ch3.adb (Expand_Derived_Record): Rename to
29101 Expand_Record_Extension.
29102 (Build_Record_Init_Proc.Build_Assignment): The default expression in
29103 a component declaration must remain attached at that point in the
29104 tree so New_Copy_Tree copies it if the enclosing record type is derived.
29105 It is therefore necessary to take a copy of the expression when building
29106 the corresponding assignment statement in the init proc.
29107 As a side effect, in the case of a derived record type, we now see the
29108 original expression, without any rewriting that could have occurred
29109 during expansion of the ancestor type's init proc, and we do not need
29110 to go back to Original_Node.
29111
29112 * exp_ch3.ads (Expand_Derived_Record): Rename to
29113 Expand_Record_Extension.
29114
29115 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
29116 Returns the RACW type used to implement a remote access-to-subprogram
29117 type.
29118 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
29119 New subprograms. Used to create a proxy tagged object for a remote
29120 subprogram. The proxy object is used as the designated object
29121 for RAS values on the same partition (unless All_Calls_Remote applies).
29122 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
29123 System.Partition_Interface.Get_Unique_Remote_Pointer.
29124 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
29125 Renamed from Add_RAS_*_Attribute.
29126 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
29127 subprograms.
29128 New implementation of expansion for remote access-to-subprogram types,
29129 based on the RACW infrastructure.
29130
29131 * exp_dist.ads (Copy_Specification): Update comment to note that this
29132 function can copy the specification from either a subprogram
29133 specification or an access-to-subprogram type definition.
29134
291352004-09-09 Ed Schonberg <schonberg@gnat.com>
29136
29137 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
29138 in an instance, between an explicit subprogram an one inherited from a
29139 type derived from an actual.
29140
29141 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
29142 add a polling call if the subprogram is to be inlined by the back-end,
29143 to avoid repeated calls with multiple inlinings.
29144
29145 * checks.adb (Apply_Alignment_Check): If the expression in the address
29146 clause is a call whose name is not a static entity (e.g. a dispatching
29147 call), treat as dynamic.
29148
291492004-09-09 Robert Dewar <dewar@gnat.com>
29150
29151 * g-trasym.ads: Minor reformatting
29152
29153 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
29154 packed arrays, since unused bits are expected to be zero for a
29155 comparison.
29156
291572004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
29158
29159 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
29160 comment.
29161
291622004-09-09 Pascal Obry <obry@gnat.com>
29163
29164 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
29165 enable map file generation. Add the right option to generate the map
29166 file if Map_File is set to True.
29167
29168 * gnatdll.adb (Gen_Map_File): New variable.
29169 (Syntax): Add info about new -m (Map_File) option.
29170 (Parse_Command_Line): Add support for -m option.
29171 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
29172 Minor reformatting.
29173
291742004-09-09 Laurent Pautet <pautet@act-europe.fr>
29175
29176 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
29177 new gnatdist implementation.
29178 Define a subpackage isolating the output routines specific to this
29179 verbose mode.
29180
291812004-09-09 Joel Brobecker <brobecker@gnat.com>
29182
29183 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
29184
29185 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
29186
291872004-09-09 Cyrille Comar <comar@act-europe.fr>
29188
29189 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
29190 internal unit.
29191
29192 * opt.ads: Add Ada_Version_Runtime constant used to decide which
29193 version of the language is used to compile the run time.
29194
291952004-09-09 Arnaud Charlet <charlet@act-europe.fr>
29196
29197 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
29198 of variable length temporaries for function return now that the
29199 back-end and gigi support it.
29200
23c7b149 292012004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6cdb2c6e
AC
29202
29203 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
29204
29205 * trans.c (struct stmt_group): Delete field GLOBAL.
29206 (gnat_init_stmt_group): Do not initialize it.
29207 (call_to_gnu): Use save_expr, not protect_multiple_eval.
29208 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
29209 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
29210 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
29211 (start_stmt_group): Likewise.
29212 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
29213
29214 * utils2.c (ggc.h): Include.
29215 (build_call_raise): Call build_int_cst, not build_int_2.
29216
29217 * utils.c (gnat_init_decl_processing): Fix arg to
29218 build_common_tree_nodes.
29219 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
29220 (gnat_define_builtin): Set built_in_decls.
29221 (init_gigi_decls): Call build_int_cst, not build_int_2.
29222
29223 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
29224 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
29225 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
29226 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
29227 SET_TYPE_MODULE): Use them.
29228 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
29229 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
29230 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
29231 SET_TYPE_ADA_SIZE): Likewise.
29232 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
29233 (DECL_CONST_CORRESPONDING_VAR,
29234 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
29235 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
29236 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
29237 (TYPE_RM_SIZE_NUM): New macro.
29238 (TYPE_RM_SIZE): Modified to use above.
29239
29240 * cuintp.c: (build_cst_from_int): New function.
29241 (UI_To_gnu): Use it.
29242
29243 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
29244 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
29245 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
29246 MIN_EXPR for the size, copy it into new.
29247
23c7b149 292482004-09-01 Robert Dewar <dewar@gnat.com>
6cdb2c6e
AC
29249
29250 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
29251 packed indexed component where array is an IN OUT formal. This
29252 generated garbage code previously.
29253
29254 * gnat_ugn.texi: Document -fverbose-asm
29255
29256 * gnat-style.texi: Minor updates (note that boolean constants and
29257 variables are joined with AND/OR rather than short circuit forms).
29258
23c7b149 292592004-09-01 Ed Schonberg <schonberg@gnat.com>
6cdb2c6e
AC
29260
29261 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
29262 it is an upward conversion of an untagged type with no representation
29263 change.
29264
23c7b149 292652004-09-01 Thomas Quinot <quinot@act-europe.fr>
6cdb2c6e
AC
29266
29267 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
29268 System.Partition_Interface.
29269
29270 * checks.adb (Apply_Access_Checks): Do not generate checks when
29271 expander is not active (but check for unset reference to prefix of
29272 dereference).
29273
29274 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
29275 pragma Debug as an if statement with a constant condition, for
29276 consistent treatment of entity references contained within the
29277 enclosed procedure call.
29278
23c7b149 292792004-09-01 Vincent Celier <celier@gnat.com>
6cdb2c6e
AC
29280
29281 * bindgen.adb: (Set_EA_Last): New procedure
29282 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
29283 Set_EA_Last.
29284 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
29285 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
29286 linked without errors.
29287 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
29288 ST and EA.
29289 (Gen_Exception_Table_C): Correct same bugs
29290
29291 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
29292
29293 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
29294 on Windows, make sure that the drive letter is in upper case.
29295
29296 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
29297 Windows, when the drive letter is added and Case_Sensitive is True, the
29298 drive letter is forced to upper case.
29299
29300 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
29301 to Options_2 for the call to MLib.Utl.Gcc.
29302
29303 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
29304 directory separator when defining BASE_DIR.
29305
23c7b149 293062004-09-01 Pascal Obry <obry@gnat.com>
6cdb2c6e
AC
29307
29308 * gprcmd.adb (Extend): Do not output trailing directory separator. This
29309 is not needed and it confuses Windows GNU/make which does not report
29310 directory terminated by a slash as a directory.
29311 (gprcmd): Idem for "pwd" internal command.
29312
29313 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
29314 target names rewrite to fix regressions with recent version of
29315 GNU/make. Starting with GNU/make 3.80 the pipe character was not
29316 handled properly anymore.
29317
4eb104c1
AS
293182004-09-01 Andreas Schwab <schwab@suse.de>
29319
29320 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
29321 * raise.c [!IN_RTS]: Undef abort.
29322
6a6bfc8e
NS
293232004-08-27 Nathan Sidwell <nathan@codesourcery.com>
29324
ce552f75
NS
29325 * utils2.c (build_allocator): Use ssize_int.
29326
6a6bfc8e
NS
29327 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
29328
f8b7bf58
AS
293292004-08-27 Andreas Schwab <schwab@suse.de>
29330
29331 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
29332
15793d0c
NS
293332004-08-25 Nathan Sidwell <nathan@codesourcery.com>
29334 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6615c446 29335
15793d0c
NS
29336 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
29337
7d60be94
NS
293382004-08-25 Nathan Sidwell <nathan@codesourcery.com>
29339
29340 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
29341 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
29342 * utils.c (init_gigi_decls): Likewise.
29343 * utils2.c (build_call_raise, build_allocator): Likewise.
6615c446 29344
8c1d6d62
NS
293452004-08-24 Nathan Sidwell <nathan@codesourcery.com>
29346
7d60be94 29347 * utils.c (gnat_init_decl_processing): Adjust
8c1d6d62
NS
29348 build_common_tree_nodes call.
29349
3224bead
NS
293502004-08-20 Nathan Sidwell <nathan@codesourcery.com>
29351
29352 * utils2.c (build_allocator): Use build_int_cst for negative
29353 size types.
29354
4766261d
RH
293552004-08-18 Richard Henderson <rth@redhat.com>
29356
29357 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
29358
1f6c00df
NS
293592004-08-16 Nathan Sidwell <nathan@codesourcery.com>
29360
29361 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
29362 call.s
29363 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
29364 (gnat_to_gnu): Likewise.
29365
4c46b835
AC
293662004-08-16 Pascal Obry <obry@gnat.com>
29367
29368 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
29369 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
29370 option and not mdll anymore. Update comment.
29371
293722004-08-16 Pascal Obry <obry@gnat.com>
29373
29374 * bld.adb (Put_Include_Project): Properly handle directory separators
29375 on Windows.
29376
293772004-08-16 Ed Schonberg <schonberg@gnat.com>
29378
29379 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
29380 decreasing the number of allocated junk nodes while searching for the
29381 appropriate subprogram.
29382
4a90aeeb
NS
293832004-08-15 Nathan Sidwell <nathan@codesourcery.com>
29384
29385 * cuintp.c (UI_To_gnu): Use build_int_cst..
29386 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
29387 * utils.c (init_gigi_decls): Likewise.
29388 * utils2.c (build_call_raise): Likewise.
29389
244e5a2c
AC
293902004-08-13 Olivier Hainque <hainque@act-europe.fr>
29391
29392 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
29393 for a global aliased object with a variable size and an unconstrained
29394 nominal subtype, pretend there is no initializer if the one we have is
29395 incomplete, and avoid referencing an inexistant component in there. The
29396 part we have will be rebuilt anyway and the reference may confuse
29397 further operations.
29398
293992004-08-13 Thomas Quinot <quinot@act-europe.fr>
29400
29401 * einfo.ads: Minor reformatting
29402
29403 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
29404 restrictions in the ALI if we only want to warn about violations.
29405
294062004-08-13 Vincent Celier <celier@gnat.com>
29407
29408 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
29409 when creating a new Unit_Record in table Units.
29410
29411 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
29412 that are violated, if any.
29413
29414 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
29415 add directory separator if path already ends with a directory separator.
29416
294172004-08-13 Ed Schonberg <schonberg@gnat.com>
29418
29419 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
29420 unit, this is an attempt to inline a construct that is not available in
29421 the current restricted mode, so abort rather than trying to continue.
29422
29423 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
29424 discriminants that rename those of the parent, recover names of
29425 original discriminants for the constraint on the full view of the
29426 parent.
29427 (Complete_Private_Subtype): Do not create a subtype declaration if the
29428 subtype is an itype.
29429
29430 * gnat_rm.texi: Added section on implementation of discriminated
29431 records with default values for discriminants.
29432
294332004-08-13 Ed Schonberg <schonberg@gnat.com>
29434
29435 PR ada/15601
29436 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
29437 the second operand is overloaded.
29438
1a186ec5
RH
294392004-08-10 Richard Henderson <rth@redhat.com>
29440
29441 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
29442 add __builtin_alloca.
29443
89f1a702
RH
294442004-08-10 Richard Henderson <rth@redhat.com>
29445
29446 * config-lang.in (boot_language): Yes.
29447
5d09245e
AC
294482004-08-09 Thomas Quinot <quinot@act-europe.fr>
29449
29450 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
29451 from complaining on potential uninitialized reference.
29452 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
29453 new specification and test explicitly for non-zero return value.
29454
29455 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
29456 returning C.int, to avoid using a derived boolean type.
29457
29458 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
29459 Duplicate_Subexpr_No_Checks in preference to direct use of
29460 Remove_Side_Effects and New_Copy_Tree.
29461 Clear Comes_From_Source on prefix of 'Size attribute reference.
29462
29463 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
29464 g-socthi-vxworks.adb: Change calls to
29465 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
29466 and test explicitly for non-zero return value.
29467
6615c446 29468 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
5d09245e
AC
29469 (Is_Socket_In_Set): Declare imported function as returning C.int, to
29470 avoid using a derived boolean type.
29471
294722004-08-09 Albert Lee <lee@gnat.com>
29473
29474 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
29475
294762004-08-09 Pascal Obry <obry@gnat.com>
29477
29478 * gnat_ugn.texi: Document new way to build DLLs on Windows using
29479 GCC's -shared option.
29480
29481 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
29482 Options_2 parameter (options put after object files).
29483
294842004-08-09 Olivier Hainque <hainque@act-europe.fr>
29485
29486 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
29487 ignore overflows on low and high bounds of an index to also account for
29488 differences in signedness between sizetype and gnu_index_subtype.
29489 These are as legitimate as the ones caused by a lower TYPE_PRECISION
29490 on sizetype.
29491
294922004-08-09 Robert Dewar <dewar@gnat.com>
29493
29494 * s-solita.ads, s-solita.adb: Minor reformatting
29495
29496 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
29497 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
29498 obsolescent section
29499 Add note that No_Implicit_Conditionals does not suppress
29500 run time constraint checks.
29501
29502 * vms_conv.ads: Minor reformatting
29503
29504 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
29505 and necessary for following change).
29506 (Mark): Return new format Mark_Id containing sec stack address
29507 (Release): Use sec stack address from Mark_Id avoiding Self call
29508
29509 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
29510 pointer (cleanup and necessary for following change).
29511 Define Mark_Id as record containing address of secondary stack, that way
29512 Release does not need to find the stack again, decreasing the number of
29513 calls to Self and improving efficiency.
29514
29515 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
29516
29517 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
29518 case variable into the individual case branches when possible.
29519
29520 * sem_ch11.adb: Minor reformatting
29521
29522 * prj.ads: Correct spelling of suffixs
29523
29524 * prj-nmsc.adb: Minor reformatting
29525 Correct spelling suffixs throughout (also in identifiers)
29526
29527 * freeze.adb: Minor spelling correction
29528
29529 * exp_ch2.adb: Cleanups to handling of Current_Value
29530 (no functional effect).
29531
29532 * bld.adb: Correct spelling of suffixs
29533
29534 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
29535
295362004-08-09 Ed Schonberg <schonberg@gnat.com>
29537
29538 PR ada/15408
5d09245e
AC
29539 * sem_ch7.adb (Install_Private_Declarations): In the body of the
29540 package or of a child, private entities are both immediately_visible
29541 and not hidden.
29542
295432004-08-09 Ed Schonberg <schonberg@gnat.com>
29544
29545 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
29546 there are no range checks on the value of the literal.
29547
29548 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
29549 wrapped is the triggering alternative of an asynchronous select, action
29550 statements mustbe inserted before the select itself.
29551
29552 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
29553 case where the prefix is a protected function call.
29554 (Resolve_Attribute, case 'Access): The attribute reference on a
29555 subprogram is legal in a generic body if the subprogram is declared
29556 elsewhere.
29557
295582004-08-09 Vincent Celier <celier@gnat.com>
29559
29560 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
29561 languages, otherwise building the library may fail with unresolved
29562 symbols.
29563 (Compile_Sources): Do not build libraries if -c switch is used
29564
29565 * gnatlink.adb (Process_Args): New switches -M and -Mmap
29566 (Write_Usage): If map file creation is supported, output new switches
29567 -M and -Mmap.
29568 (Gnatlink): When -M is specified, add the necessary switch(es) to the
29569 gcc call, when supported.
29570
29571 * Makefile.in: Added indepsw.o to the object list for gnatlink
29572 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
29573
29574 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
29575 indepsw.adb, indepsw.ads: New files.
29576
295772004-08-09 Bernard Banner <banner@gnat.com>
29578
29579 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
29580
29581 * Makefile.in: add section for vxworks x86
29582
295832004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
29584
29585 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
29586 per-object constrained components where the discriminant is of an
29587 Access type.
29588 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
29589 the parent initialization procedure for derived Unchecked_Unions.
29590 Instead, derived Unchecked_Unions build their own initialization
29591 procedure.
29592 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
29593 Check the body of the subprogram for details.
29594 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
29595 functions for derived Unchecked_Union types by introducing a condition.
29596 Allow the creation of TSS equality functions for Unchecked_Unions.
29597 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
29598 Add formal parameter Discr to function signature. Discr is used to
29599 control the generated case statement for Unchecked_Union types.
29600 (Make_Eq_If): Rename formal parameter Node to E in function signature.
29601
29602 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
29603 Unchecked_Unions.
29604 Check the body of the subprogram for details.
29605 (Expand_Composite_Equality): Augment composite type equality to include
29606 correct handling of Unchecked_Union components.
29607 (Expand_N_In): Add condition to detect illegal membership tests when the
29608 subtype mark is a constrained Unchecked_Union and the expression lacks
29609 inferable discriminants, and build a Raise_Program_Error node.
29610 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
29611 to detect types that contain components of unconstrained Unchecked_Union
29612 subtype. Add condition to detect equality between types that have an
29613 unconstrained Unchecked_Union component, and build a Raise_Program_Error
29614 node. Add condition to detect equality between Unchecked_Union types
29615 that lack inferable discriminants, and build a Raise_Program_Error node.
29616 Otherwise build a TSS equality function call.
29617 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
29618 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
29619 with the operand lacking inferable discriminants, and build a Raise_
29620 Program_Error node.
29621 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
29622 composite equality.
29623 (Has_Inferable_Discriminants): Implement new predicate for objects and
29624 expressions of Unchecked_Union type. Check the body of subprogram for
29625 details.
29626 (Has_Unconstrained_UU_Components): Add function
29627 Component_Is_Unconstrained_UU. It is used to detect whether a single
29628 component is of an unconstrained Unchecked_Union subtype. Add function
29629 Variant_Is_Unconstrained_UU. It is used to detect whether a single
29630 component inside a variant is of an unconstrained Unchecked_Union type.
29631
29632 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
29633 inferred discriminant values. Add condition to generate a case
29634 statement with an inferred discriminant as the switch.
29635 (Make_Component_List_Assign): Introduce a Boolean flag that determines
29636 the behaviour of the subprogram in the presence of an Unchecked_Union.
29637 Add condition to trigger the usage of the inferred discriminant value
29638 as the generated case statement switch.
29639 (Make_Field_Assign): Introduce a Boolean flag that determines the
29640 behaviour of the subprogram in the presence of an Unchecked_Union. Add
29641 condition to trigger the usage of the inferred discriminant value as
29642 the right-hand side of the generated assignment.
29643
29644 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
29645 parameter generation when dealing with Unchecked_Unions.
29646
29647 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
29648 checks for Unchecked_Unions.
29649
29650 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
29651
29652 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
29653 Raise_Program_Error nodes for the execution of Read and Write
29654 attributes of Unchecked_Union types and the execution of Input and
29655 Output attributes of Unchecked_Union types that lack default
29656 discriminant values.
29657
29658 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
29659 Unchecked_Union. Add procedure Check_Component. It is used to inspect
29660 per-object constrained components of Unchecked_Unions for being
29661 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
29662 check individual components withing a variant.
29663
29664 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
29665 comparison of Unchecked_Unions.
29666 (Resolve_Equality_OP): Remove guard that prevents equality between
29667 Unchecked_Unions.
29668
29669 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
29670 of component subtypes for Unchecked_Union components.
29671 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
29672 since it is the actual subtype.
29673
29674 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
29675 pass of Unchecked_Union subtypes as generic actuals to formal types
29676 that lack known_discriminant_parts or that are derived Unchecked_Union
29677 types, and do nothing. In any other case, produce an error message.
29678
29679 * sem_ch3.adb (Analyze_Component_Declaration): Add function
29680 Contains_POC. It determines whether a constraint uses the discriminant
29681 of an enclosing record type.
29682 Add condition to detect per-object constrained component and set the
29683 appropriate flag.
29684 (Derived_Type_Declaration): Remove guard that prevents derivation from
29685 Unchecked_Union types.
29686 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
29687 Union subtypes.
29688
29689 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
29690 references to Unchecked_Union discriminants.
29691
29692 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
29693 formal generation when dealing with Unchecked_Unions.
29694 (Set_Actual_Subtypes): Add condition to prevent generation of actual
29695 subtypes for Unchecked_Unions.
29696
29697 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
29698 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
29699 completions of discriminated partial views by Unchecked_Unions and
29700 produce an error message.
29701
297022004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29703
29704 * trans.c (struct stmt_group): New field, GLOBAL.
29705 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
29706 (struct elab_info): New struct.
29707 (elab_info_list, gnu_elab_proc_stack): New variables.
29708 (Compilation_Unit_to_gnu): New procedure.
29709 (gigi): Call it and also handle elaboration procs we've saved.
29710 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
29711 global field from parent.
29712 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
29713 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
29714 (start_stmt_group): Initialize global field from parent.
29715 (add_decl_expr): Set to global for current statement group.
29716 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
29717 post.
29718
29719 * utils.c (global_bindings_p): True when no current_function_decl; no
29720 longer check current_binding_level.
29721
297222004-08-09 Ben Brosgol <brosgol@gnat.com>
29723
29724 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
29725 choice.
29726
29727 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
29728
160ff372
AS
297292004-08-06 Andreas Schwab <schwab@suse.de>
29730
29731 * utils.c (gnat_define_builtin): Remove second parameter of
29732 make_decl_rtl.
29733 (begin_subprog_body): Likewise.
29734
615cbd95
AC
297352004-07-26 Arnaud Charlet <charlet@act-europe.fr>
29736
29737 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
29738 optimization, not supported by the tree-ssa back-end.
29739
297402004-07-26 Olivier Hainque <hainque@act-europe.fr>
29741
29742 * s-mastop-irix.adb: Update comments.
29743
29744 * a-except.adb (Exception_Information): Raise Constraint_Error if
29745 exception Id is Null_Id.
29746 This is required behavior, which is more reliably and clearly checked
29747 at the top level interface level.
29748
297492004-07-26 Javier Miranda <miranda@gnat.com>
29750
29751 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
29752 call if a component has no default_expression and the box is used.
29753
29754 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
29755 default_expression and you use box, it behaves as if you had declared a
29756 stand-alone object.
29757 (Resolve_Record_Aggregate): If a component has no default_expression and
29758 you use box, it behaves as if you had declared a stand-alone object.
29759
29760 * sem_ch10.adb (Install_Siblings): Do not make visible the private
29761 entities of private-with siblings.
29762
297632004-07-26 Ed Schonberg <schonberg@gnat.com>
29764
29765 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
29766 for a component of an itype, set the parent pointer for analysis,
29767 there is no list in which to insert it.
29768
29769 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
29770 bona-fide renamings, not for inherited operations.
29771
29772 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
29773 actual for a formal that is an access parameter, create local
29774 finalization list even if the expression is not an aggregate.
29775
297762004-07-26 Ed Schonberg <schonberg@gnat.com>
29777
29778 PR ada/16213
29779 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
29780 Diagnose properly illegal subprogram renamings that are library units.
29781
297822004-07-26 Ed Schonberg <schonberg@gnat.com>
29783
29784 PR ada/15588
29785 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
29786 conversion rewritten as an unchecked conversion, check that original
29787 expression is a variable.
29788
29789 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
29790 unchecked_conversion, create new node rather than rewriting in place,
29791 to preserve original construct.
29792
297932004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29794
29795 * gigi.h (gnat_expand_body): Deleted.
29796
29797 * Make-lang.in: (trans.o): Depends on function.h.
29798
29799 * misc.c: (gnat_expand_body): Moved to here.
29800
29801 * trans.c (gnat_expand_body_1): Deleted.
29802 (gnat_expand_body): Moved from here.
29803 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
29804 (add_stmt): Check for marked visited with global_bindings_p.
29805 (gnat_gimplify_expr, case COMPONENT_REF): New case.
29806 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
29807
29808 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
29809 VIEW_CONVERT_EXPR if not operation type.
29810
29811 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
29812 fat pointer.
29813
29814 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
29815 changes: reformatting of negation operators, removing unneeded
29816 inequality comparison with zero, converting equality comparisons with
29817 zero to negations, changing int/0/1 to bool/false/true, replace calls
29818 to gigi_abort with abort, and various other similar changes.
29819
298202004-07-26 Vincent Celier <celier@gnat.com>
29821
29822 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
29823 "setup".
29824
29825 * make.adb (Gnatmake): Fail when a library is not present and there is
29826 no object directory.
29827
29828 * mlib-prj.adb (Check_Library): No need to check if the library needs
29829 to be rebuilt if there is no object directory, hence no object files
29830 to build the library.
29831
29832 * opt.ads (Setup_Projects): New Boolean flag.
29833
29834 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
29835 Location.
29836 Create directory when Kind /= "" and in "gnat setup". Report error if
29837 directory cannot be created.
29838 (Ada_Check): Create library interface copy dir if it does not exist
29839 and we are in "gnat setup".
29840 (Find_Sources): No error if in "gnat setup" and no Ada sources were
29841 found.
29842 (Language_Independent_Check): Create object directory, exec directory
29843 and/or library directory if they do not exist and we are in
29844 "gnat setup".
29845
29846 * vms_conv.ads: (Command_Type): New command Setup.
29847
29848 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
29849
29850 * vms_data.ads: Add qualifiers/switches for new built-in command
29851 "setup".
29852
b785f485
RH
298532004-07-25 Richard Henderson <rth@redhat.com>
29854
29855 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
29856 DECL_IGNORED_P on RESULT_DECL.
29857
35ae2ed8
AC
298582004-07-20 Olivier Hainque <hainque@act-europe.fr>
29859
29860 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
29861 allocation and potentially overflowing update with
29862 Tailored_Exception_Information. Use the sec-stack free procedural
29863 interface to output Exception_Information instead.
29864
29865 * a-except.adb (To_Stderr): New subprogram for character, and string
29866 version moved from a-exextr to be visible from other separate units.
29867 (Tailored_Exception_Information): Remove the procedural version,
29868 previously used by the default Last_Chance_Handler and not any more.
29869 Adjust various comments.
29870
29871 * a-exexda.adb: Generalize the exception information procedural
29872 interface, to minimize the use of secondary stack and the need for
29873 local buffers when the info is to be output to stderr:
29874 (Address_Image): Removed.
29875 (Append_Info_Character): New subprogram, checking for overflows and
29876 outputing to stderr if buffer to fill is of length 0.
29877 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
29878 (Append_Info_Address, Append_Info_Exception_Name,
29879 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
29880 Append_Info_Basic_Exception_Traceback,
29881 Append_Info_Exception_Information): New subprograms.
29882 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
29883 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
29884 Exception_Info_Maxlength, Exception_Name_Length,
29885 Exception_Message_Length): New subprograms.
29886 (Exception_Information): Use Append_Info_Exception_Information.
29887 (Tailored_Exception_Information): Use
29888 Append_Info_Basic_Exception_Information.
29889 Export services for the default Last_Chance_Handler.
29890
29891 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
29892 other separate units.
29893
298942004-07-20 Vincent Celier <celier@gnat.com>
29895
29896 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
29897
298982004-07-20 Ed Schonberg <schonberg@gnat.com>
29899
29900 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
29901 emit itype references for the designated types of component types that
29902 are declared outside of the full record declaration, and that may
29903 denote a partial view of that record type.
29904
299052004-07-20 Ed Schonberg <schonberg@gnat.com>
29906
29907 PR ada/15607
29908 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
29909 which is the designated type in an access component declaration, to the
29910 list of incomplete dependents of the parent type, to avoid elaboration
29911 issues with out-of-scope subtypes.
29912 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
29913 full view of the parent.
29914
299152004-07-20 Ed Schonberg <schonberg@gnat.com>
29916
29917 PR ada/15610
29918 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
29919 entities that are hidden, such as references to generic actuals
29920 outside an instance.
29921
299222004-07-20 Javier Miranda <miranda@gnat.com>
29923
29924 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
29925 support to the new notation.
29926 (Analyze_Selected_Component): Add call to Try_Object_Operation.
29927
299282004-07-20 Jose Ruiz <ruiz@act-europe.fr>
29929
29930 * s-taprob.adb: Adding the elaboration code required for initializing
29931 the tasking soft links that are common to the full and the restricted
29932 run times.
29933
29934 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
29935 restricted run time has been moved to the package
29936 System.Soft_Links.Tasking.
29937
29938 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
29939 restricted run time has been moved to the package
29940 System.Soft_Links.Tasking.
29941
29942 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
29943
29944 * s-solita.ads, s-solita.adb: New files.
29945
299462004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29947
29948 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
29949 Case_Statement_to_gnu): Split off from gnat_to_gnu.
29950 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
29951 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
29952 Exception_Handler_to_gnu_zcx): Likewise.
29953
6e34d3a3
JM
299542004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
29955
29956 * gigi.h (builtin_function): Declare.
29957
523456db
AC
299582004-07-15 Robert Dewar <dewar@gnat.com>
29959
29960 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
29961 reformatting
29962
29963 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
29964 access values as an example of a warning.
29965
29966 * gnat_rm.texi: Document new attribute Has_Access_Values
29967
29968 * gnat-style.texi: Document that box comments belong on nested
29969 subprograms
29970
29971 * sem_util.ads (Has_Access_Values): Improved documentation
29972
29973 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
29974
29975 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
29976 (Process_Interface_Name): Call to this new procedure
29977 (Set_Extended_Import_Export_External_Name): Call to this new procedure
29978
29979 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
29980
29981 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
29982
29983 * einfo.ads: Minor comment typo fixed
29984
299852004-07-15 Jose Ruiz <ruiz@act-europe.fr>
29986
29987 * snames.adb: Add _atcb.
29988
29989 * snames.ads: Add Name_uATCB.
29990
29991 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
29992 (in the expanded code) when using the restricted run time.
29993
29994 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
29995 a in parameter in order to allow ATCBs to be preallocated (in the
29996 expanded code).
29997
29998 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
29999 order to allow ATCBs to be preallocated. In case of error, the ATCB is
30000 deallocated in System.Tasking.Stages.
30001
30002 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
30003 order to allow ATCBs to be preallocated.
30004
30005 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
30006 here. It was previously done in Initialize_ATCB.
30007
30008 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
30009
30010 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
30011 Restricted run time.
30012
30013 * exp_ch3.adb: When using the Restricted run time, pass the
30014 preallocated Ada_Task_Control_Block when creating a task.
30015
300162004-07-15 Ed Schonberg <schonberg@gnat.com>
30017
30018 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
30019 function call that is itself an actual in an enclosing call, diagnose
30020 problem here rather than assuming that resolution will catch it.
30021
30022 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
30023 the local copy of a generic unit for a formal package, and the generic
30024 is a child unit, install private part of ancestors before compiling
30025 private part of spec.
30026
30027 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
30028 use scope entities rather than tree structures, to handle properly
30029 parent units that are instances rewritten as bodies for inlining
30030 purposes.
30031
30032 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
30033 Remove_Parents): Handle properly a parent unit that is an
30034 instantiation, when the unit has been rewritten as a body for inlining
30035 purposes.
30036
30037 * par.adb (Goto_List): Global variable to collect goto statements in a
30038 given unit, for use in detecting natural loops.
30039
30040 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
30041 use in detecting natural loops.
30042
30043 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
30044 backwards goto's, and rewrite as a infinite loop, to improve locality
30045 of temporaries.
30046
30047 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
30048 subcomponent that includes an indexed reference, to prevent the
30049 generation of copies that would miscompile the desired assignment
30050 statement.
30051 (Build_Task_Image_Decls): Add a numeric suffix to
30052 generated name for string variable, to avoid spurious conflicts with
30053 the name of the type of a single protected object.
30054
30055 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
30056 loop with an explicit exit statement, to avoid generating an
30057 out-of-range value with 'Succ leading to spurious constraint_errors
30058 when compiling with -gnatVo.
30059
300602004-07-15 Thomas Quinot <quinot@act-europe.fr>
30061
30062 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
30063 might not be analyzed yet, even if its Etype is already set (case of an
30064 unchecked conversion built using Unchecked_Convert_To, for example).
30065 If the prefix has already been analyzed, this will be a nop anyway.
30066
30067 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
30068 controller type, or an assignment of a record type with controlled
30069 components, copy only user data, and leave the finalization chain
30070 pointers untouched.
30071
300722004-07-15 Vincent Celier <celier@gnat.com>
30073
30074 * make.adb (Collect_Arguments): Improve error message when attempting
30075 to compile a source not part of any project, when -x is not used.
30076
30077 * prj.ads: (Defined_Variable_Kind): New subtype
30078
30079 * prj-attr.adb (Register_New_Package): Two new procedures to register
30080 a package with or without its attributes.
30081 (Register_New_Attribute): Mew procedure to register a new attribute in a
30082 package.
30083 New attribute oriented subprograms: Attribute_Node_Id_Of,
30084 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
30085 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
30086 Next_Attribute.
30087 New package oriented subprograms: Package_Node_Id_Of,
30088 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
30089
30090 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
30091 type.
30092 (Package_Node_Id): Now a private, self initialized type
30093 (Register_New_Package): New procedure to register a package with its
30094 attributes.
30095 New attribute oriented subprograms: Attribute_Node_Id_Of,
30096 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
30097 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
30098 Next_Attribute.
30099 New package oriented subprograms: Package_Node_Id_Of,
30100 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
30101
30102 * prj-dect.adb (Parse_Attribute_Declaration,
30103 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
30104
30105 * prj-makr.adb (Make): Parse existing project file before creating
30106 other files. Fail if there was an error during parsing.
30107
30108 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
30109 new spec of Prj.Attr.
30110
30111 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
30112 to new spec of Prj.Attr.
30113
301142004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30115
30116 * utils2.c: Fix typo in comment.
30117
301182004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
54805e13
RK
30119
30120 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
30121 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
30122
a1c7af89
AS
301232004-07-14 Andreas Schwab <schwab@suse.de>
30124
30125 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
30126
a5cb3b30
AC
301272004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30128
30129 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
30130 object type.
30131 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
30132 TYPE_STUB_DECL.
30133
30134 * misc.c (gnat_types_compatible_p): New function.
30135 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
30136 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
30137
30138 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
30139 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
30140 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
30141 (mark_visited): Don't mark dummy type.
6615c446 30142 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
a5cb3b30
AC
30143 parameter, we must remove any LJM building from GNU_NAME.
30144 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
30145 (pos_to_constructor): Use int_const_binop.
30146 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
30147 PARM_DECL.
30148
30149 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
30150 (gnat_pushlevel): Set TREE_USE on BLOCK node.
30151 (gnat_install_builtins): Add __builtin_memset.
30152
301532004-07-13 Olivier Hainque <hainque@act-europe.fr>
30154
30155 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
30156 for a renaming, stabilize the initialization expression if we are at a
30157 local level. At the local level, uses of the renaming may be performed
30158 by a direct dereference of the initializing expression, and we don't
30159 want possible variables there to be evaluated for every use.
30160
30161 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
30162 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
30163 them on the way. Account for the fact that we may introduce side
30164 effects in the process.
30165
0976078c
RH
301662004-07-13 Richard Henderson <rth@redhat.com>
30167
30168 * misc.c (default_pass_by_ref): Use pass_by_reference.
30169
9dcf6e73
JM
301702004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
30171
30172 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
30173 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
30174
ac45df5d
RH
301752004-07-08 Richard Henderson <rth@redhat.com>
30176
30177 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
30178 commentary.
30179
15ce9ca2
AC
301802004-07-06 Vincent Celier <celier@gnat.com>
30181
30182 * vms_conv.ads: Minor reformatting.
30183 Alphabetical order for enumerated values of type Command_Type, to have
30184 the command in alphabetical order for the usage.
30185
30186 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
30187 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
30188
30189 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
30190
30191 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
30192 (Add_Archive_Path): Only add the global archive if there is one.
30193 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
30194 or not any object file to put in the global archive, and don't build
30195 a global archive if there is none.
30196 (X_Switches): New table
30197 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
30198 in the X_Switches table, if any.
30199 (Initialize): Make sure the X_Switches table is empty
30200 (Scan_Arg): Record -X switches in table X_Switches
30201
30202 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
30203
30204 * make.adb: Minor comment fix
30205
30206 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
30207 invoked with directory information, add the directory in front of the
30208 path.
30209
30210 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
30211 invoked with directory information, add the directory in front of the
30212 path.
30213
30214 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
30215 when Keep_Temporary_Files is False.
30216 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
30217 directory information, add the directory in front of the path.
30218 When not on VMS, handle new switch -dn before the command to set
30219 Keep_Temporary_Files to True.
30220 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
30221 everywhere.
30222
30223 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
30224 invoked with directory information, add the directory in front of the
30225 path.
30226
302272004-07-06 Thomas Quinot <quinot@act-europe.fr>
30228
30229 * snames.ads, snames.adb (Name_Stub): New name for the distributed
30230 systems annex.
30231
30232 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
30233 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
30234
30235 * g-socket.adb (To_Timeval): Fix incorrect conversion of
30236 Selector_Duration to Timeval for the case of 0.0.
30237
30238 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
30239 documentation from Evolve_And_Then.
30240
302412004-07-06 Jose Ruiz <ruiz@act-europe.fr>
30242
30243 * s-taprop-tru64.adb, s-taprop-os2.adb,
30244 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
30245
302462004-07-06 Robert Dewar <dewar@gnat.com>
30247
30248 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
30249 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
30250 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
30251 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
30252 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
30253 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
30254 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
30255 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
30256 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
30257 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
30258 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
30259 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
30260 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
30261 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
30262 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
30263 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
30264 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
30265 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
30266 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
30267 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
30268 vms_data.ads: Minor reformatting,
30269 Fix bad box comment format.
30270
30271 * gnat_rm.texi: Fix minor grammatical error
30272
30273 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
30274
30275 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
30276 more cases of discriminated records to be recognized as not needing a
30277 secondary stack.
30278 (Has_Access_Values): New function.
30279
30280 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
30281
30282 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
30283 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
30284 with LRM terminology).
30285 Change terminology in comments primitive type => elementary type.
30286
302872004-07-06 Ed Schonberg <schonberg@gnat.com>
30288
30289 PR ada/15602
30290 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
30291 parameters do not impose any requirements on the presence of a body.
30292
302932004-07-06 Ed Schonberg <schonberg@gnat.com>
30294
30295 PR ada/15593
30296 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
30297 compilation unit and is in an open scope at the point of instantiation,
30298 assume that a body may be present later.
30299
303002004-07-06 Ed Schonberg <schonberg@gnat.com>
30301
30302 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
30303 Improve error message when specified size is not supported.
30304
30305 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
30306 is never a primitive operation.
30307
cb42deba
AS
303082004-07-05 Andreas Schwab <schwab@suse.de>
30309
30310 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
30311 RECORD_OR_UNION_CHECK.
30312 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
30313
98877933
KC
303142004-07-04 Kelley Cook <kcook@gcc.gnu.org>
30315
30316 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
30317 dependency on xgnatugn, instead build it via a submake.
30318 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
30319
8fff4fc1
RH
303202004-07-04 Richard Henderson <rth@redhat.com>
30321
30322 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
30323
4dfa0342
RH
303242004-07-01 Richard Henderson <rth@redhat.com>
30325
30326 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
30327 * utils.c (max_size): Likewise.
30328
909f21b3
RK
303292004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30330
30331 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
30332 and rest_of_type_compilation; add arg to create_*_decl.
15cd18b9 30333 (annotate_decl_with_node): Deleted.
909f21b3
RK
30334 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
30335 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
30336 (get_current_block_context, gnat_pushdecl): New declarations.
30337 (gnat_init_stmt_group): Likewise.
30338 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
30339 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
30340 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
30341 (gnat_init): Call gnat_init_stmt_group.
30342 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
30343 (gnu_pending_elaboration_list): Deleted.
30344 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
30345 (gigi): Rearrange initialization calls and move some to last above.
30346 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
30347 Delete calls to add_decl_expr; add arg to create_*_decl.
30348 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
6615c446 30349 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
909f21b3
RK
30350 begin_subprog_body and call it.
30351 Don't push and pop ggc context.
30352 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
30353 (add_stmt): Remove handling of DECL_EXPR from here.
30354 If not in function, mark visited.
30355 (add_decl_expr): Put global at top level.
30356 Check for cases of DECL_INITIAL we have to handle here.
30357 (process_type): Add extra arg to create_type_decl.
30358 (build_unit_elab): Rework to just gimplify.
30359 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
30360 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
30361 (get_pending_elaborations, pending_elaborations_p): Likewise.
30362 (push_pending_elaborations, pop_pending_elaborations): Likewise.
30363 (get_elaboration_location, insert_elaboration_list): Likewise.
30364 (gnat_binding_level): Renamed from ada_binding_level.
30365 (init_gnat_to_gnu): Don't clear pending_elaborations.
30366 (global_bindings_p): Treat as global if no current_binding_level.
30367 (set_current_block_context): New function.
30368 (gnat_pushdecl): Renamed from pushdecl; major rework.
30369 All callers changed.
30370 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
30371 (finish_record_type): Call call pushdecl for stub decl.
30372 (function_nesting_depth): Deleted.
30373 (begin_subprog_body): Delete obsolete code.
30374 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
6615c446 30375
246d2ceb
AC
303762004-06-28 Robert Dewar <dewar@gnat.com>
30377
30378 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
30379 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
30380 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
30381 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
30382 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
30383
30384 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
30385 deal with problem of inefficient slices on machines with strict
30386 alignment, when the slice is a component of a composite.
30387
30388 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
30389 machines, we need the check there as well.
30390
303912004-06-28 Ed Schonberg <schonberg@gnat.com>
30392
30393 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
30394 determine safe copying direction for overlapping slice assignments
30395 when component is controlled.
30396
30397 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
30398 formal derived type in the actual for a formal package are visible in
30399 the enclosing instance.
30400
304012004-06-28 Ed Schonberg <schonberg@gnat.com>
30402
30403 PR ada/15600
30404 * sem_util.adb (Trace_Components): Diagnose properly an illegal
30405 circularity involving a private type whose completion includes a
30406 self-referential component.
30407 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
30408 renaming or an instantiation from an implicit derived operation.
30409
304102004-06-28 Pascal Obry <obry@gnat.com>
30411
30412 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
30413 DLL.
30414 (Library_File_Name_For): Idem.
30415
304162004-06-28 Matthew Gingell <gingell@gnat.com>
30417
30418 * g-traceb.ads: Add explanatory note on the format of addresses
30419 expected by addr2line.
30420
304212004-06-28 Jerome Guitton <guitton@act-europe.fr>
30422
30423 * Makefile.in: Force debugging information on s-tasdeb.adb,
30424 a-except.adb and s-assert.adb needed by the debugger.
30425
304262004-06-28 Vincent Celier <celier@gnat.com>
30427
30428 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
30429 Need_To_Build_Lib.
30430 (Gnatmake): Ditto.
30431
30432 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
30433
30434 * prj.adb: Minor reformatting
30435 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
30436
30437 * prj.ads: Comment updates
30438 Minor reformatting
30439 (Project_Data): Change Flag1 to Need_To_Build_Lib.
30440 Remove Flag2: not used.
30441
30442 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
30443 declaration.
30444
30445 * gnat_ugn.texi: Put a "null;" declaration in one project file example
30446
30447 * gnat_rm.texi: Document Empty declarations "null;".
30448
30449 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
30450 front of the linker options.
30451 (Link_Foreign): Put the global archives and the libraries in front of
30452 the linker options.
30453
304542004-06-28 Javier Miranda <miranda@gnat.com>
30455
30456 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
30457 (RTU_Loaded): Code cleanup
30458 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
30459 withed predefined units.
30460
30461 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
30462 explicitly withed predefined units.
30463 Fix typo in comment
30464
30465 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
30466 explicitly withed predefined units.
30467
bce3da32
RK
304682004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30469
30470 * ada-tree.def (DECL_STMT): Deleted.
30471 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
30472 (DECL_STMT_VAR): Deleted.
30473 * decl.c: add_decl_stmt now add_decl_expr.
30474 * gigi.h: Likewise.
30475 * trans.c: Likewise.
15cd18b9 30476 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
bce3da32
RK
30477 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
30478 (add_stmt): Only handle padded type here.
30479 (add_stmt_with_node): Allow gnat_node to not be present.
30480 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
30481 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
30482 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
30483 make a SAVE_EXPR for the entire fat pointer.
30484 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
30485 (create_index_type): Make a DECL_EXPR.
30486 (end_subprog_body): Don't call allocate_struct_function here but
30487 do clear cfun.
30488
0da2c8ac
AC
304892004-06-25 Pascal Obry <obry@gnat.com>
30490
30491 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
30492 Relocatable from Build_Dynamic_Library call.
30493
30494 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
30495 Relocatable are now synonym.
30496
30497 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
30498
30499 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
30500 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
30501 call.
30502
30503 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
30504 Lib_Address and Relocatable.
30505 (Default_DLL_Address): Removed.
30506
6615c446
JO
30507 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
30508 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
0da2c8ac
AC
30509 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
30510 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
30511 (Default_DLL_Address): Removed.
30512
30513 * mlib-tgt-mingw.adb: Ditto.
30514 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
30515
30516 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
30517 the initial thread stack size.
30518
30519 * a-strmap.ads: Move package L to private part as it is not used in
30520 the spec. Found while reading code.
30521
305222004-06-25 Olivier Hainque <hainque@act-europe.fr>
30523
30524 * tracebak.c: Introduce support for a GCC infrastructure based
30525 implementation of __gnat_backtrace.
30526
30527 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
30528 any more. Use accessors instead. This eases maintenance and relaxes
30529 some alignment constraints.
30530 (_GNAT_Exception structure): Remove the Ada specific fields
30531 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
30532 a-exexpr.adb.
30533 (is_handled_by, __gnat_eh_personality): Replace component references to
30534 exception structure by use of the new accessors.
30535
30536 * init.c (__gnat_initialize): Adjust comments to match the just
30537 reverted meaning of the -static link-time option.
30538
30539 * adaint.c (convert_addresses): Arrange not to define a stub for
30540 mips-irix any more, as we now want to rely on a real version from a
30541 recent libaddr2line.
30542
30543 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
30544 the personality routine can use them and not have to rely on a C
30545 counterpart of the record anymore. This simplifies maintenance and
30546 relaxes the constraint of having Standard'Maximum_Alignment match
30547 BIGGEST_ALIGNMENT.
30548 Update comments, and add a section on the common header alignment issue.
30549
305502004-06-25 Geert Bosch <bosch@gnat.com>
30551
30552 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
30553 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
30554
305552004-06-25 Robert Dewar <dewar@gnat.com>
30556
30557 * gnat_rm.texi: Fix section on component clauses to indicate that the
30558 restriction on byte boundary placement still applies for bit packed
30559 arrays.
30560 Add comment on stack usage from Initialize_Scalars
30561
30562 * gnat_ugn.texi: Add documentation for -gnatyLnnn
30563
30564 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
30565 limiting nesting level.
30566
30567 * usage.adb: Add line for -gnatyLnnn switch
30568
30569 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
30570 sem_ch13.adb, exp_aggr.adb: Minor reformatting
30571
30572 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
30573 type as well as on the subtype. This corrects a problem in freeze in
30574 setting alignments of atomic types.
30575
30576 * sem_eval.ads: Minor comment typo fixed
30577
30578 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
30579 level. Minor reformatting.
30580
30581 * fname.adb (Is_Predefined_File_Name): Require a letter after the
30582 minus sign. This means that file names like a--b.adb will not be
30583 considered predefined.
30584
30585 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
30586 record Test new flag and give diagnostic for bad component clause.
30587 (Freeze_Entity): Set alignment of array from component alignment in
30588 cases where this is safe to do.
30589
30590 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
30591 arrays.
30592
30593 * cstand.adb: (Create_Standard): Set alignment of String to 1
30594
30595 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
30596
30597 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
30598 code in the common constrained array cases.
30599
30600 * a-storio.adb: Change implementation to avoid possible alignment
30601 problems on machines requiring strict alignment (data should be moved
30602 as type Buffer, not type Elmt).
30603
30604 * checks.adb (Apply_Array_Size_Check): Improve these checks by
30605 killing the overflow checks which we really do not need (64-bits is
30606 enough).
30607
306082004-06-25 Vincent Celier <celier@gnat.com>
30609
30610 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
30611 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
30612 inconditionally for the main project.
30613 (Recursive_Add_Archives.Add_Archive_Path): New procedure
30614 (Link_Executables.Check_Time_Stamps): New procedure
30615 (Link_Executables.Link_Foreign): New procedure
30616 Changes made to reduce nesting level of this package
30617 (Check): New procedure
30618 (Add_Switches): When not in quiet output, check that a switch is not
30619 the concatenation of several valid switches. If it is, issue a warning.
30620 (Build_Global_Archive): If the global archive is rebuilt, linking need
30621 to be done.
30622 (Compile_Sources): Rebuilding a library archive does not imply
30623 rebuilding the global archive.
30624 (Build_Global_Archive): New procedure
30625 (Build_Library): New name for Build_Archive, now only for library
30626 project
30627 (Check_Archive_Builder): New procedure
30628 (Create_Global_Archive_Dependency_File): New procedure
30629 (Gprmake): Call Build_Global_Archive before linking
30630 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
30631 throughout.
30632 (Scan_Arg): Display the Copyright notice when -v is used
30633
30634 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
30635 for gnatls.
30636
30637 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
30638 COMPILE.
30639 Add new GNAT LIST qualifier /FILES=
30640 Added qualifier /DIRECTORY= to GNAT METRIC
30641 Added qualifier /FILES= to GNAT METRIC
30642 Added qualifier /FILES to GNAT PRETTY
30643
30644 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
30645 to take into account both versions of the switch.
30646
30647 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
30648 always be the last switch to the gcc driver. Disable switch storing so
30649 that switches automatically added by the gcc driver are not put in the
30650 ALI file.
30651
30652 * prj.adb (Project_Empty): Take into account changes in components of
30653 Project_Data.
30654
30655 * prj.ads (Languages_Processed): New enumaration value All_Languages.
30656
30657 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
30658 used. Split Boolean component Ada_Sources_Present in two Boolean
30659 components Ada_Sources_Present and Other_Sources_Present.
30660 Minor reformatting
30661
30662 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
30663 instead of Sources_Present.
30664 (Set_Ada_Paths.Add.Recursive_Add): Ditto
30665
30666 * prj-nmsc.adb: Minor reformatting
30667 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
30668 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
30669 Check_Ada_Naming_Scheme.
30670 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
30671 throughout.
30672
30673 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
30674 In_Limited.
30675 Make sure that all cycles where there is at least one "limited with"
30676 are detected.
30677 (Parse_Single_Project): New Boolean parameter In_Limited
30678
30679 * prj-proc.adb (Recursive_Check): When Process_Languages is
30680 All_Languages, call first Prj.Nmsc.Ada_Check, then
30681 Prj.Nmsc.Other_Languages_Check.
30682
30683 * prj-proc.adb (Process): Use Ada_Sources_Present or
30684 Other_Sources_Present (instead of Sources_Present) depending on
30685 Process_Languages.
30686
30687 * lang-specs.h: Keep -g and -m switches in the same order, and as the
30688 last switches.
30689
30690 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
30691 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
30692 False.
30693 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
30694 False.
30695
30696 * lib.ads (Disable_Switch_Storing): New procedure.
30697
30698 * make.adb: Modifications to reduce nesting level of this package.
30699 (Check_Standard_Library): New procedure
30700 (Gnatmake.Check_Mains): New procedure
30701 (Gnatmake.Create_Binder_Mapping_File): New procedure
30702 (Compile_Sources.Compile): Add switch -gnatez as the last option
30703 (Display): Never display -gnatez
30704
6615c446 30705 * Makefile.generic:
0da2c8ac
AC
30706 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
30707
30708 * gnatcmd.adb (Check_Project): New function
30709 (Process_Link): New procedure to reduce nesting depth
30710 (Check_Files): New procedure to reduce the nesting depth.
30711 For GNAT METRIC, include the inherited sources in extending projects.
30712 (GNATCmd): When GNAT LS is invoked with a project file and no files,
30713 add the list of files from the sources of the project file. If this list
30714 is too long, put it in a temp text files and use switch -files=
30715 (Delete_Temp_Config_Files): Delete the temp text file that contains
30716 a list of source for gnatpp or gnatmetric, if one has been created.
30717 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
30718 in the project file is too large, create a temporary text file that
30719 list them and pass it to the tool with "-files=<temp text file>".
30720 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
30721
30722 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
30723 generated file is in not in Ada.
30724
30725 * gnatls.adb: Remove all parameters And_Save that are no longer used.
30726 (Scan_Ls_Arg): Add processing for -files=
30727 (Usage): Add line for -files=
30728
30729 * g-os_lib.adb (On_Windows): New global constant Boolean flag
30730 (Normalize_Pathname): When on Windows and the path starts with a
30731 directory separator, make sure that the resulting path will start with
30732 a drive letter.
30733
30734 * clean.adb (Clean_Archive): New procedure
30735 (Clean_Project): When there is non-Ada code, delete the global archive,
30736 the archive dependency files, the object files and their dependency
30737 files, if they exist.
30738 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
30739
307402004-06-25 Thomas Quinot <quinot@act-europe.fr>
30741
30742 * sinfo.ads: Fix typo in comment.
30743
30744 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
30745 the TSS for remote access-to-subprogram types, since these TSS are
30746 always present once the type has been analyzed.
30747 (RAS_E_Dereference): Same.
30748
30749 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
30750 reference raises Bad_Attribute, mark the reference as analyzed so the
30751 node (and any children resulting from rewrites that could have occurred
30752 during the analysis that ultimately failed) is not analyzed again.
30753
30754 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
30755
30756 * exp_dist.adb: Minor comment fix.
30757
30758 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
30759 type is an anonymous access type, no unchecked deallocation of the
30760 allocated object can occur. If the object is controlled, attach it with
30761 a count of 1. This allows attachment to the Global_Final_List, if
30762 no other relevant list is available.
30763 (Get_Allocator_Final_List): For an anonymous access type that is
30764 the type of a discriminant or record component, the corresponding
30765 finalisation list is the one of the scope of the type.
30766
307672004-06-25 Ed Schonberg <schonberg@gnat.com>
30768
30769 * sem_ch3.adb (Replace_Type): When computing the signature of an
30770 inherited subprogram, use the first subtype if the derived type
30771 declaration has no constraint.
30772
30773 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
30774 before applying previous optimization. Minor code cleanup.
30775
30776 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
30777 placed at the beginning of an unpacked record without explicit
30778 alignment, a slice of it will be aligned and does not need a copy when
30779 used as an actual.
30780
307812004-06-25 Ed Schonberg <schonberg@gnat.com>
30782
30783 PR ada/15591
30784 PR ada/15592
30785 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
30786 reference is written with expressions mimicking parameters.
30787
307882004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
30789
30790 PR ada/15589
30791 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
30792 STEP 2a. The constraints of a full type declaration of a derived record
30793 type are checked for conformance with those declared in the
30794 corresponding private extension declaration. The message
30795 "not conformant with previous declaration" is emitted if an error is
30796 detected.
30797
307982004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
30799
30800 * g-traceb.ads: Document the need for -E binder switch in the spec.
30801
30802 * g-trasym.ads: Document the need for -E binder switch in the spec.
30803
308042004-06-25 Jose Ruiz <ruiz@act-europe.fr>
30805
30806 * sem_prag.adb: Add handling of pragma Detect_Blocking.
30807
30808 * snames.h, snames.ads, snames.adb: Add entry for pragma
30809 Detect_Blocking.
30810
30811 * s-rident.ads: Change reference to pragma Detect_Blocking.
30812
30813 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
30814 system.ads.
30815
30816 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
30817 to indicate whether pragma Detect_Blocking is active.
30818
30819 * par-prag.adb: Add entry for pragma Detect_Blocking.
30820
30821 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
30822 of not handling WITH.
30823 Note that this replaces the previous update which was incorrect.
30824
308252004-06-25 Javier Miranda <miranda@gnat.com>
30826
30827 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
30828 use-clauses to have a clean environment.
30829
30830 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
30831 the installation of the use-clauses to stablish a clean environment in
30832 case of compilation of a separate unit; otherwise the call to
30833 use_one_package is protected by the barrier Applicable_Use.
30834
30835 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
30836 the installation of the use-clauses to stablish a clean environment in
30837 case of compilation of a separate unit.
30838 (End_Use_Clauses): Minor comment cleanup.
30839
308402004-06-25 Sergey Rybin <rybin@act-europe.fr>
30841
30842 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
30843
65355d53
RH
308442004-06-23 Richard Henderson <rth@redhat.com>
30845
30846 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
30847
c0e3aa48
RK
308482004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30849
30850 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
30851 now bool instead of int.
30852 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
30853 * trans.c (gnu_switch_label_stack): New function.
30854 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
30855 elaboration of renamed entity returns.
30856 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
30857 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
30858 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
30859 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
30860 DECL_SIZE_UNIT and simplify variable-sized case.
30861 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
30862 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
30863 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
30864 (build_unit_elab): Disable for now.
30865 * utils.c (mark_visited): New function.
30866 (pushdecl): Walk tree to call it for global decl.
30867 (update_pointer_to): Update all variants of pointer and ref types.
30868 Add arg to COMPONENT_REF.
30869 (convert): Likewise.
30870 Move check for converting between variants lower down.
30871 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
30872 (build_allocator): Don't force type of MODIFY_EXPR.
30873 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
30874 put_var_into_stack.
30875
966389ee
RK
308762004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30877
30878 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
30879 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
30880 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
30881 subprograms.
30882 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
30883 all callers changed.
30884 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
30885 the way that EXIT_STMT finds the loop label.
30886 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
30887 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
30888 (add_stmt): Use annotate_with_locus insted of setting directly.
30889 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
30890 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
30891 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
30892 (build_vms_descriptor): Add extra args to ARRAY_REF.
30893 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
30894 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
30895 New cases.
30896 (build_binary_op): Don't make explicit CONVERT_EXPR.
30897 Add extra rgs to ARRAY_REF.
30898
cc335f43
AC
308992004-06-14 Pascal Obry <obry@gnat.com>
30900
30901 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
30902 Windows. Fix minor typo.
30903
30904 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
30905 which is now supported on Windows. With this implementation using the
30906 Library Project feature is no different on Windows than on UNIX.
30907
309082004-06-14 Vincent Celier <celier@gnat.com>
30909
30910 * makegpr.adb (Compile_Sources): Nothing to do when there are no
30911 non-Ada sources.
30912
30913 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
30914
30915 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
30916 found, show the project name and the path of the previously parsed
30917 project file.
30918
309192004-06-14 Ed Schonberg <schonberg@gnat.com>
30920
30921 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
30922 array, avoid copying the actual before the call.
30923
309242004-06-14 Thomas Quinot <quinot@act-europe.fr>
30925
30926 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
30927 Instead, allocate memory on worst-case alignment assumptions, and then
30928 return an aligned address within the allocated zone.
30929
309302004-06-14 Robert Dewar <dewar@gnat.com>
30931
30932 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
30933 elab entities in predefined units in No_Run_Time_Mode.
30934 (Gen_Adainit_C): Same fix
30935 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
30936 units in No_Run_Time_Mode
30937 (Gen_Elab_Calls_C): Same fix
30938
30939 * symbols-vms-alpha.adb: Minor reformatting
30940
30941 * g-debpoo.ads: Minor reformatting
30942
30943 * lib.adb (In_Same_Extended_Unit): Version working on node id's
30944
30945 * lib.ads (In_Same_Extended_Unit): Version working on node id's
30946
30947 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
30948 working on nodes.
30949
30950 * make.adb: Minor reformatting
30951
30952 * par-ch12.adb: Minor reformatting
30953
30954 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
30955
30956 * prj-strt.adb: Minor reformatting
30957
30958 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
30959 be more general.
30960
30961 * sem_attr.adb: Minor reformatting
30962
30963 * sem_ch7.adb: Minor reformatting
30964
30965 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
30966 for type in the same unit as the object declaration.
30967
30968 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
30969 static string expressions and not just string literals.
30970 Minor reformatting
30971 (Set_Warning): Reset restriction warning flag for restriction pragma
30972 Implement pragma Profile_Warnings
30973 Implement pragma Profile (Restricted)
30974 Give obolescent messages for old restrictions and pragmas
30975
30976 * snames.h, snames.ads, snames.adb: Add new entry for pragma
30977 Profile_Warnings.
30978
30979 * s-rident.ads: Add declarations for restrictions required by profile
30980 Restricted and profile Ravenscar.
30981
30982 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
30983
30984 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
30985 configuration pragmas.
30986
5453d5bd
AC
309872004-06-11 Vincent Celier <celier@gnat.com>
30988
30989 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
30990 gnatsym, when symbol policy is Restricted.
30991
30992 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
30993 gnatsym, when symbol policy is Restricted.
30994
30995 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
30996 read the symbol file.
30997 (Finalize): Fail in symbol policy Restricted if a symbol in the original
30998 symbol file is not in the object files. Do not create a new symbol file
30999 when symbol policy is Restricted.
31000
31001 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
31002 in Scng.
31003
31004 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
31005 Restricted.
31006 (Usage): Line for new switch -R
31007
31008 * make.adb (Initialize): When the platform is not VMS, add the
31009 directory where gnatmake is invoked in the front of the path, if
31010 gnatmake is invoked with directory information. Change the Scan_Args
31011 while loop to a for loop.
31012 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
31013 if Depth is equal or greater than the proposed depth, there is nothing
31014 to do.
31015 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
31016 instead of 0.
31017
31018 * prj.ads: Add new symbol policy Restricted.
31019
31020 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
31021 with the new parameters Check_All_Labels and Case_Location.
31022
31023 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
31024 (Library_Symbol_File needs to be defined).
31025
31026 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
31027 and Case_Location If Check_All_Labels is True, check that all values of
31028 the string type are used, and output warning(s) if they are not.
31029
31030 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
31031 and Case_Location.
31032
31033 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
31034
31035 * gnat_ugn.texi: Update documentation about the library directory in
31036 Library Projects.
31037
31038 * makegpr.adb (Display_Command): In verbose mode, also display the
31039 value of the CPATH env var, when the compiler is gcc.
31040 (Initialize): Change the Scan_Args while loop to a for loop
31041 (Compile_Individual_Sources): Change directory to object directory
31042 before compilations.
31043
31044 * symbols.ads: New symbol policy Restricted.
31045
310462004-06-11 Olivier Hainque <hainque@act-europe.fr>
31047
31048 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
31049 is now taken care of internally in the Exception_Propagation package
31050 and does not require clients assistance any more.
31051
31052 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
31053 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
31054 functions. Helpers to maintain a predicate required in the handling of
31055 occurrence transfer between tasks.
31056 This is now handled internally and does not require clients assistance
31057 for the setup/propagate separation anymore.
31058 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
31059 allocation strategy, handle the Setup_And_Not_Propagated predicate and
31060 document.
31061
31062 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
31063 raise_after_setup, now that everything is handled internally within the
31064 setup/propagation engine.
31065
310662004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
31067
31068 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
31069 Add additional conditions for the case of an actual being a simple
31070 name or literal. Improve inlining by preventing the generation
31071 of temporaries with a short lifetime (one use).
31072
310732004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
31074
31075 PR ada/15587
5453d5bd
AC
31076 * einfo.ads: Minor comment updates for Has_Completion and
31077 E_Constant list of flags.
31078
31079 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
31080 and constant redeclarations now set the Has_Completion flag of their
31081 defining identifiers.
31082
31083 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
31084 Inspect_Deferred_Constant_Completion.
31085 Used to detect private deferred constants that have not been completed
31086 either by a constant redeclaration or pragma Import. Emits error message
31087 "constant declaration requires initialization expression".
31088
31089 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
31090 completes a deferred constant.
31091
310922004-06-11 Geert Bosch <bosch@gnat.com>
31093
31094 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
31095
31096 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
31097 calculating exponent for scaling denormal numbers.
31098 (Leading_Part): Properly raise Constraint_Error for zero or negative
31099 Adjustment.
31100 (Remainder): Properly raise Constraint_Error for zero divisor.
31101
311022004-06-11 Thomas Quinot <quinot@act-europe.fr>
31103
31104 * sem_util.adb: Minor reformatting.
31105
31106 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
31107 dereference when accessing the entry parameter record.
31108 (Check_Array_Type): Always check for possible implicit dereference.
31109 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
31110 Abort if a pointer is still present (denoting that an implicit
31111 dereference was left in the tree by the front-end).
31112
31113 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
31114 dereference when accessing the entry parameter record.
31115 (Check_Array_Type): Always check for possible implicit dereference.
31116 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
31117 Abort if a pointer is still present (denoting that an implicit
31118 dereference was left in the tree by the front-end).
31119
311202004-06-11 Emmanuel Briot <briot@act-europe.fr>
31121
31122 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
31123 message, like the compiler itself does. Easier to parse the output.
31124
31125 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
31126
31127 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
31128 be base names, and not includes directories.
31129
311302004-06-11 Arnaud Charlet <charlet@act-europe.fr>
31131
31132 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
31133 so that dependencies are properly taken into account by make.
31134
311352004-06-11 Arnaud Charlet <charlet@act-europe.fr>
31136
31137 PR ada/15622
31138 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
31139 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
31140
311412004-06-11 Jerome Guitton <guitton@act-europe.fr>
31142
31143 * Makefile.in (install-gnatlib): install target-specific run-time files.
31144
31145 * Make-lang.in: Remove obsolete targets.
31146
311472004-06-11 Ed Schonberg <schonberg@gnat.com>
31148
31149 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
31150 specification, to catch misuses of program unit names.
31151
31152 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
31153 superfluous conversions in an instance.
31154
311552004-06-11 Ed Schonberg <schonberg@gnat.com>
31156
31157 PR ada/15403
5453d5bd
AC
31158 * sem_ch12.adb (Save_References): If operator node has been folded to
31159 enumeration literal, associated_node must be discarded.
31160
311612004-06-11 Jose Ruiz <ruiz@act-europe.fr>
31162
31163 * s-stchop-vxworks.adb: Add required pragma Convention to
31164 Task_Descriptor because it is updated by a C function.
31165
a98f59be
AC
311662004-06-08 Arnaud Charlet <charlet@act-europe.fr>
31167
31168 PR ada/15568
a98f59be
AC
31169 * Makefile.in: Remove target specific SO_OPT on IRIX
31170
821e1ea1
RK
311712004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31172
31173 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
31174 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
31175 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
31176 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
31177 (STMT_STMT, USE_STMT): New statement codes.
31178 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
31179 * ada-tree.h: Reflect above changes.
15cd18b9 31180 (struct tree_loop_id): Deleted.
821e1ea1
RK
31181 (union lang_tree_node, struct lang_decl, struct lang_type):
31182 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
31183 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
31184 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
31185 (IS_ADA_STMT): New macro.
31186 * decl.c (annotate_decl_with_node): New function.
31187 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
31188 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
31189 Call add_stmt_with_node to do needed assignments.
31190 Add call to update setjmp buffer directly, not via EXPR_STMT.
31191 (maybe_variable): Argment GNAT_NODE deleted.
31192 * gigi.h (maybe_variable): Likewise.
31193 (make_transform, add_stmt_with_node, set_block_for_group): New.
31194 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
31195 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
31196 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
31197 (set_lineno, set_lineno_from_sloc): Likewise.
31198 (record_code_position, insert_code_for): Likewise.
31199 (gnat_poplevel): Now returns void.
31200 (end_subprog_body): Now takes argument.
31201 * misc.c (cgraph.h, tree-inline.h): New includes.
31202 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
31203 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
31204 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
31205 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
31206 (gnat_parse_file): Don't set immediate_size_expand.
31207 Call cgraph functions.
31208 (gnat_expand_expr): Remove most cases.
31209 (record_code_position, insert_code_for): Remove from here.
31210 * trans.c (toplev.h, tree-gimple.h): Now included.
31211 (discard_file_names): Deleted.
31212 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
31213 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
31214 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
31215 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
31216 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
31217 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
31218 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
31219 (set_block_for_group, add_stmt_list): Likewise.
31220 (start_stmt_group): Renamed from start_block_stmt.
31221 (end_stmt_group): Likewise, from end_block_stmt.
31222 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
31223 (gigi): Don't set discard_file_names or call set_lineno.
31224 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
31225 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
31226 Numerous changes throughout to reflect new names and complete
31227 function-at-a-time implementation.
31228 (gnat_expand_stmt): Delete or comment out all cases.
31229 (process_inlined_subprograms): Use add_stmt.
31230 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
31231 call set_lineno; also remove unneeded block handling.
31232 (process_type): Remove unneeded block handling.
31233 (build_unit_elab): Remove calls to deleted functions.
31234 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
31235 (tree-dump.h): Likewise.
31236 (struct ada_binding_level): Add field jmpbuf_decl.
31237 (gnat_define_builtin, gnat_install_builtins): New.
31238 (gnat_gimplify_function, gnat_finalize): Likewise.
31239 (gnat_poplevel): No longer return BLOCK, set it instead.
31240 Remove code dealing with nested functions.
31241 (gnat_init_decl_processing): Also set size_type_node.
31242 Call gnat_install_builtins.
31243 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
31244 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
31245 Remove special-case for "main".
31246 (end_subprog_body): Add arg and rework for tree-ssa.
31247 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
31248 Add case for BOOLEAN_TYPE.
31249 * utils2.c (rtl.h): Now include.
31250 (build_call_raise): Test Debug_Flag_NN directly.
31251 (build_call_alloc_dealloc): Don't use local stack allocation for now.
31252 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
31253 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
31254
0ab80019
AC
312552004-06-07 Robert Dewar <dewar@gnat.com>
31256
31257 * a-direct.ads, einfo.ads: Minor comment updates
31258
31259 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
31260 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
31261 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
31262 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
31263 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
31264
31265 * s-interr-sigaction.adb: Remove unreferenced variable
31266 (Attached_Interrupts). Minor reformatting.
31267 Avoid use of variable I (replace by J).
31268
31269 * par-ch10.adb: Fix text of one error message
31270
31271 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
31272 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
31273 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
31274 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
31275 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
31276 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
6615c446 31277 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
0ab80019
AC
31278 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
31279 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
31280 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
31281 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
31282 2005 support.
31283
312842004-06-07 Doug Rupp <rupp@gnat.com>
31285
31286 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
31287
31288 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
31289
31290 * mlib-tgt-vms-ia64.adb: New file.
31291
31292 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
31293 Add mlib-tgt-vms-ia64.adb
31294 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
31295 Move to alpha specific ifeq section.
31296 Add VMS specific versions of symbols.adb
31297 Renaming of 5q vms files.
31298
31299 * 5qsystem.ads renamed to system-vms_64.ads.
31300
313012004-06-07 Vincent Celier <celier@gnat.com>
31302
31303 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
31304 explain that when a time of day corresponding to the non existing hour
31305 on the day switching to DST is specified, Split may return a different
31306 value for Seconds.
31307
31308 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
31309 to GNAT PRETTY.
31310
31311 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
31312 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
31313
31314 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
31315 to False.
31316 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
31317 the linking options.
31318 (Build_Library.Check_Libs): On VMS, if there is a dependency on
31319 g-trasym.ads, set Gtrasymobj_Needed to True.
31320
31321 * prj-attr.adb: Add new package Metrics for gnatmetric
31322
31323 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
31324 canonical case to take into account files with upper case characters on
31325 Windows.
31326 (Ada_Check): Load the reference symbol file name in the name buffer to
31327 check it, not the symbol file name.
31328
31329 * snames.ads, snames.adb: Add standard name Metrics (name of project
31330 file package for gnatmetric).
31331
31332 * vms_conv.ads: Add Metric to Comment_Type
31333
31334 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
31335
31336 * vms_data.ads: Add qualifiers for GNAT METRIC
31337
31338 * makegpr.adb (Link_Executables): Take into account the switches
31339 specified in package Linker of the main project.
31340
313412004-06-07 Thomas Quinot <quinot@act-europe.fr>
31342
31343 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
31344 the index of the last element is Units.Last, not Units.Table'Last
31345 (which is usually not a valid index within the actually allocated
31346 storage for the table).
31347
31348 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
31349 determines whether to generate a call to a checked storage pool
31350 Dereference action.
31351 Generate such a call only for a dereference that either comes from
31352 source, or is the result of rewriting a dereference that comes from
31353 source.
31354
313552004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
31356
31357 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
31358
313592004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
31360
31361 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
31362 file level, elaborate the stride for inner dimensions in alignment
31363 units, not bytes.
31364
31365 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
31366 in a comment.
31367
313682004-06-07 Javier Miranda <miranda@gnat.com>
31369
31370 * exp_ch6.adb: Correct wrong modification in previous patch
31371
313722004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
31373
31374 * g-trasym.ads: Corrected comment to properly reflect level of support
31375 on VMS.
31376
313772004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
31378
31379 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
31380 includes case of a variable referenced on the left hand side of an
31381 assignment, therefore remove redundant code. Variables and prefixes of
31382 indexed or selected components are now marked as referenced on left
31383 hand side. Warnings are now properly emitted when variables or prefixes
31384 are assigned but not read.
31385
31386 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
31387 left hand side referenced variables. Private access types do not
31388 produce the warning "variable ... is assigned but never read".
31389 Add also additional checks to left hand side referenced variables.
31390 Aliased, renamed objects and access types do not produce the warning
31391 "variable ... is assigned but never read" since other entities may read
31392 the memory location.
31393
313942004-06-07 Jerome Guitton <guitton@act-europe.fr>
31395
31396 * Makefile.in: In the powerpc/vxworks-specific section, restore
31397 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
31398 by mistake).
31399
314002004-06-07 Ed Schonberg <schonberg@gnat.com>
31401
31402 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
31403 predefined operators.
31404 Removes spurious type errors from g-trasym-vms.adb.
31405
31406 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
31407 distinct from the operator appearing in the source, call appropriate
31408 routine to insert conversions when needed, and complete resolution of
31409 node.
31410 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
31411 interpretations for rewritten right operand.
31412 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
31413 the other operand is overloaded and the context is a type conversion.
31414
314152004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31416
31417 * ada-tree.def (BLOCK_STMT): Now has two operands.
31418 (BREAK_STMT): New.
31419
31420 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
31421
31422 * gigi.h: (gnat_poplevel): Now returns a tree.
31423
31424 * trans.c (end_block_stmt): Add arg; all callers changed.
31425 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
31426 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
31427 (add_stmt): Set TREE_TYPE.
31428 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
31429 (gnat_expand_stmt, case BREAK_STMT): New case.
31430
31431 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
31432
314332004-06-07 Jose Ruiz <ruiz@act-europe.fr>
31434
31435 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
31436 procedure Set_Stack_Size that is not needed.
31437
314382004-06-07 Sergey Rybin <rybin@act-europe.fr>
31439
31440 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
31441 used for gnatpp input file and for the files upon which it depends
31442
314432004-06-07 Ben Brosgol <brosgol@gnat.com>
31444
31445 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
31446
314472004-06-07 Arnaud Charlet <charlet@act-europe.fr>
31448
31449 * gnatvsn.ads: Bump version numbers appropriately.
31450 Add new build type.
31451
314522004-06-07 Pascal Obry <obry@gnat.com>
31453
31454 * gnat_ugn.texi: Improve comments about imported names and link names
31455 on Windows. Add a note about the requirement to use -k gnatdll's option
31456 when working with a DLL which has stripped stdcall symbols (no @nn
31457 suffix).
31458
8a36a0cc
AC
314592004-05-27 Vincent Celier <celier@gnat.com>
31460
31461 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
31462 COMMENTS_LAYOUT=UNTOUCHED
31463
31464 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
31465 symbols-vms-alpha.adb
31466
314672004-05-27 Thomas Quinot <quinot@act-europe.fr>
31468
31469 * sem.ads: Clarify documentation on checks suppression.
31470
31471 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
31472
314732004-05-27 Ed Schonberg <schonberg@gnat.com>
31474
31475 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
31476 the case of multiple derivations.
31477 (Is_Object_Reference): For a selected component, verify that the prefix
31478 is itself an object and not a value.
31479
31480 * sem_ch12.adb (Same_Instantiated_Constant): New name for
31481 Same_Instantiated_Entity.
31482 (Same_Instantiated_Variable): Subsidiary to
31483 Check_Formal_Package_Instance, to recognize actuals for in-out generic
31484 formals that are obtained from a previous formal package.
31485 (Instantiate_Subprogram_Body): Emit proper error when
31486 generating code and the proper body of a stub is missing.
31487
31488 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
31489 has a universal interpretation, do the disambiguation here.
31490
31491 * exp_ch4.adb (Expand_N_Type_Conversion,
31492 Expand_N_Unchecked_Type_Conversion): Special handling when target type
31493 is Address, to avoid typing anomalies when Address is a visible integer
31494 type.
31495
31496 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
31497 to determine whether a subprogram should not be marked Pure, even when
31498 declared in a pure package.
31499
315002004-05-27 Jose Ruiz <ruiz@act-europe.fr>
31501
31502 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
31503
31504 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
31505 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
31506 Update the documentation about the Ravenscar profile, following the
31507 definition found in AI-249.
31508
31509 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
31510 setting the Profile (Ravenscar). This must be done in addition to
31511 setting the required restrictions.
31512
31513 * rtsfind.ads: Add the set of operations defined in package
31514 Ada.Interrupts.
31515
31516 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
31517 restriction.
31518
315192004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
31520
31521 lang-specs.h: Always require -c or -S and always redirect to /dev/null
31522 if -gnatc or -gnats is passed.
31523
315242004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
31525
31526 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
31527 a significant reference. Warnings are now properly emitted when a
31528 discriminated type is not referenced.
31529
31530 * lib-xref.adb (Generate_Reference): A deferred constant completion,
31531 record representation clause or record type discriminant does not
31532 produce a reference to its corresponding entity. Warnings are now
31533 properly emitted when deferred constants and record types are not
31534 referenced.
31535
315362004-05-27 Geert Bosch <bosch@gnat.com>
31537
31538 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
31539 Fixes ACATS Annex G tests.
31540
315412004-05-27 Robert Dewar <dewar@gnat.com>
31542
31543 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
31544 handling WITH
31545
315462004-05-27 Arnaud Charlet <charlet@act-europe.fr>
31547
31548 * s-interr.adb (Server_Task): Take into account case of early return
31549 from sigwait under e.g. linux.
31550
315512004-05-27 Sergey Rybin <rybin@act-europe.fr>
31552
31553 * gnat_ugn.texi: Add description for the new gnatpp options:
31554 -rnb - replace the original source without creating its backup copy
31555 -c0 - do not format comments
31556
0fb2ea01
AC
315572004-05-24 Geert Bosch <bosch@gnat.com>
31558
31559 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
31560 with 192 bits of precision, sufficient to reduce a double-extended
31561 arguments X with a maximum relative error of T'Machine_Epsilon, for X
31562 in -2.0**32 .. 2.0**32.
31563 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
31564 reduction by the processor, which only uses a 68-bit approximation of
31565 Pi.
31566 (Tan): Always reduce arguments and compute function either using
31567 the processor's fptan instruction, or by dividing sin and cos as needed.
31568
315692004-05-24 Doug Rupp <rupp@gnat.com>
31570
31571 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
31572 gcc error on 32/64 bit VMS.
31573
315742004-05-24 Olivier Hainque <hainque@act-europe.fr>
31575
31576 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
31577 since this is what we get for stack overflows although not documented
31578 as such.
31579 Document the issues which may require adjustments to our signal
31580 handlers.
31581
315822004-05-24 Ed Schonberg <schonberg@gnat.com>
31583
31584 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
31585 enclosing dynamic scope if the instantiation is within a generic unit.
31586
315872004-05-24 Arnaud Charlet <charlet@act-europe.fr>
31588
31589 * exp_dbug.ads: Fix typo.
31590
31591 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
31592 Rename it to its proper name: system-linux-ia64.ads
31593 (stamp-gnatlib1): Remove extra target specific run time files when
31594 setting up the rts directory.
31595
315962004-05-24 Javier Miranda <miranda@gnat.com>
31597
31598 * einfo.ads, einfo.adb (Limited_Views): Removed.
31599 (Limited_View): New attribute that replaces the previous one. It is
31600 now a bona fide package with the limited-view list through the
31601 first_entity and first_private attributes.
31602
31603 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
31604 limited-private-with clause.
31605 (Install_Limited_Withed_Unit): Install the private declarations of a
31606 limited-private-withed package. Update the installation of the shadow
31607 entities according to the new structure (see Build_Limited_Views)
31608 (Build_Limited_Views): Replace the previous implementation of the
31609 limited view by a package entity that references the first shadow
31610 entity plus the first shadow private entity (required for limited-
31611 private-with clause)
31612 (New_Internal_Shadow_Entity): Code cleanup.
31613 (Remove_Limited_With_Clause): Update the implementation to undo the
31614 new work carried out by Build_Limited_Views.
31615 (Build_Chain): Complete documentation.
31616 Replace Ada0Y by Ada 0Y in comments
31617 Minor reformating
31618
31619 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
31620 types the level of accessibility depends on the enclosing type
31621 declaration.
31622
31623 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
31624 entities. Complete documentation of previous change.
31625
316262004-05-24 Robert Dewar <dewar@gnat.com>
31627
31628 * namet.adb: Minor reformatting
31629 Avoid use of name I (replace by J)
31630 Minor code restructuring
31631
31632 * sem_ch6.adb: Minor reformatting
31633
31634 * lib-writ.adb: Do not set restriction as active if this is a
31635 Restriction_Warning case.
31636
31637 * sem_prag.adb: Reset restriction warning flag if real pragma
31638 restriction encountered.
31639
31640 * s-htable.adb: Minor reformatting
31641 Change rotate count to 3 in Hash (improves hash for small strings)
31642
31643 * 5qsystem.ads: Add comments for type Address (no literals allowed).
31644
31645 * gnat_ugn.texi: Add new section of documentation "Code Generation
31646 Control", which describes the use of -m switches.
31647
316482004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
31649
a1db9d9c
AC
31650 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
31651 through the DECL_INITIAL for renamed variables.
0fb2ea01 31652
7599f1b0
AC
316532004-05-24 Arnaud Charlet <charlet@act-europe.fr>
31654
31655 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
31656
c37bb106
AC
316572004-05-19 Joel Brobecker <brobecker@gnat.com>
31658
31659 * exp_dbug.ads: Correct comments concerning handling of overloading,
31660 since we no longer use $ anymore.
31661
316622004-05-19 Sergey Rybin <rybin@act-europe.fr>
31663
31664 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
31665 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
31666 with illegal subunits.
31667
316682004-05-19 Ed Schonberg <schonberg@gnat.com>
31669
31670 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
31671 body with front-end inlining enabled, check whether an inline pragma
31672 appears immediately after the body and applies to it.
31673
31674 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
31675 enabled and the pragma appears after the body of the subprogram.
31676
b5e792e2
AC
316772004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31678
31679 Part of function-at-a-time conversion
31680
31681 * misc.c (adjust_decl_rtl): Deleted.
31682 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
31683 Define.
31684
31685 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
31686 (add_decl_stmt, add_stmt, block_has_vars): New functions.
31687 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
31688
31689 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
31690 when making a decl.
31691 (gnat_to_gnu_entity): Likewise.
31692 Use add_stmt to update setjmp buffer.
31693 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
31694 flush_addressof.
31695 No longer call adjust_decl_rtl.
31696 (DECL_INIT_BY_ASSIGN_P): New macro.
31697 (DECL_STMT_VAR): Likewise.
31698
31699 * trans.c (gigi): Call start_block_stmt to make the outermost
31700 BLOCK_STMT.
31701 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
31702 Call start_block_stmt and end_block_stmt temporarily.
31703 Use gnat_expand_stmt instead of expand_expr_stmt.
31704 (add_decl_stmt): New function.
31705 (tree_transform): Call it.
31706 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
31707 (end_block_stmt): Set type and NULL_STMT.
31708 (gnat_expand_stmt): Make recursize call instead of calling
31709 expand_expr_stmt.
31710 (gnat_expand_stmt, case DECL_STMT): New case.
31711 (set_lineno_from_sloc): Do nothing if global.
31712 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
31713 (start_block_stmt, add_stmt, end_block_stmt): New functions.
31714 (build_block_stmt): Call them.
31715 (gnat_to_code): Don't expand NULL_STMT.
31716 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
31717 args.
31718 (tree_transform): Likewise.
31719 (tree_transform, case N_Null_Statement): Return NULL_STMT.
31720 (gnat_expand_stmt, case NULL_STMT): New case.
31721 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
31722 IF_STMT_TRUE.
31723
31724 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
31725 TREE_ADDRESSABLE.
31726
31727 * utils.c (create_var_decl): Do not call expand_decl or
31728 expand_decl_init.
31729 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
31730 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
31731 here.
31732 (struct e_stack): Add chain_next to GTY.
31733 (struct binding_level): Deleted.
31734 (struct ada_binding_level): New struct.
31735 (free_block_chain): New.
31736 (global_binding_level, clear_binding_level): Deleted.
31737 (global_bindings_p): Rework to see if no chain.
31738 (kept_level_p, set_block): Deleted.
31739 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
31740 new data structure and work directly on BLOCK node.
31741 (gnat_poplevel): Similarly.
31742 (get_decls): Look at BLOCK_VARS.
31743 (insert_block): Work directly on BLOCK node.
31744 (block_has_var): New function.
31745 (pushdecl): Rework for new binding structures.
31746 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
31747 poplevel.
31748 (build_subprog_body): Likewise.
31749 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
31750
31751 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
31752
31753 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
31754 (DECL_STMT_VAR): Likewise.
31755
317562004-05-17 Robert Dewar <dewar@gnat.com>
31757
31758 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
31759 procedure
31760
31761 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
31762 of restriction synonyums by using
31763 Restrict.Process_Restriction_Synonyms.
31764
31765 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
31766
31767 * s-restri.ads (Tasking_Allowed): Correct missing comment
31768
31769 * s-rident.ads: Add entries for restriction synonyms
31770
31771 * ali.adb: Fix some problems with badly formatted ALI files that can
31772 result in infinite loops.
31773
31774 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
31775 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
31776 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
31777 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
31778 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
31779 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
31780 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
31781 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
31782 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
31783 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
31784 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
31785 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
31786 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
31787 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
31788 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
31789 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
31790 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
31791 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
31792 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
31793 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
31794 to Task_Id (minor cleanup).
31795
317962004-05-17 Vincent Celier <celier@gnat.com>
31797
31798 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
31799 directory separator.
31800
31801 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
31802 project being extended, if Languages is not declared in extending
31803 project.
31804
318052004-05-17 Javier Miranda <miranda@gnat.com>
31806
31807 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
31808 limited view of a visible sibling.
31809
9bc856dd
AC
318102004-05-14 Robert Dewar <dewar@gnat.com>
31811
31812 * gnat_ugn.texi: Minor change to -gnatS documentation
31813
31814 * sprint.adb: Remove some instances of Assert (False) and for this
31815 purpose replace them by output of a ??? string.
31816
31817 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
31818 Assert (False).
31819
31820 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
31821 flag processing. This was suppressing required dependencies in
31822 No_Run_Time mode and is not needed since the binder does not generate
31823 references for things in libgnat anyway.
31824
31825 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
31826 warning.
31827
318282004-05-14 Thomas Quinot <quinot@act-europe.fr>
31829
31830 * gnat_ugn.texi: Document AIX-specific issue with initialization of
31831 resolver library.
31832
31833 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
31834 action for the case of an actual parameter in an init proc call.
31835
318362004-05-14 Ed Schonberg <schonberg@gnat.com>
31837
31838 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
31839 subtype, check visible entities in base type.
31840
31841 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
31842 actions if the object is a renaming.
31843
31844 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
31845 Check_Formal_Package_Instance, to determine more precisely when the
31846 formal and the actual denote the same entity.
31847
318482004-05-14 Javier Miranda <miranda@gnat.com>
31849
31850 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
31851
31852 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
31853 corresponding to a private_with must be removed from visibility; it
31854 will be made visible later, just before we analyze the private part of
31855 the package.
31856 (Check_Private_Child_Unit): Allow private_with clauses in public
31857 siblings.
31858 (Install_Siblings): Make visible the private entities of private-withed
31859 siblings.
31860 (Install_Withed_Unit): Do not install the private withed unit if we
31861 are compiling a package declaration and the Private_With_OK flag was
31862 not set by the caller. These declarations will be installed later,
31863 just before we analyze the private part of the package.
31864
31865 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
31866 during the evaluation of the expression that initializes the object,
31867 decorate it with the expected type to avoid cascade errors.
31868 Code cleanup.
31869
31870 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
31871 subprogram we have to install the private_with clauses after its
31872 specification has been analyzed (as documented in AI-262.TXT).
31873
31874 * sem_ch8.adb (Has_Private_With): New function. Determines if the
31875 current compilation unit has a private with on a given entity.
31876 (Find_Direct_Name): Detect the Beaujolais problem described in
31877 AI-262.TXT
31878
31879 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
31880 provides the functionality of the function Is_Ancestor that was
31881 previously available in sem_ch10. It has been renamed to avoid
31882 overloading.
31883
31884 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
31885
318862004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31887
31888 * utils.c (build_vms_descriptor): Use SImode pointers.
31889
318902004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
31891
31892 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
31893
318942004-05-14 GNAT Script <nobody@gnat.com>
31895
31896 * Make-lang.in: Makefile automatically updated
31897
084c663c
AC
318982004-05-14 Arnaud Charlet <charlet@act-europe.fr>
31899
31900 Renaming of target specific files for clarity
31901
6615c446 31902 * Makefile.in: Rename GNAT target specific files.
084c663c
AC
31903
31904 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
31905 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
31906 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
31907 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
31908 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
31909 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
31910 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
31911 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
31912 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
31913 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
31914 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
31915 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
31916 51osinte.adb, 51osinte.ads, 51system.ads,
31917 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
31918 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
31919 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
31920 56tpopsp.adb, 57system.ads, 58system.ads,
31921 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
31922 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
31923 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
31924 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
31925 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
31926 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
31927 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
31928 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
31929 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
31930 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
31931 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
31932 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
31933 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
31934 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
31935 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
31936 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
31937 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
31938 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
31939 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
31940 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
31941 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
31942 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
31943 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
31944 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
31945 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
31946 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
31947 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
31948 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
31949 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
31950 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
31951 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
31952 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
31953 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
31954 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
31955 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
31956 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
31957 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
31958 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
31959 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
31960 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
31961
31962 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
31963 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
31964 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
31965 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
31966 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
31967 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
31968 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
31969 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
31970 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
31971 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
31972 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
31973 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
31974 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
31975 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
31976 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
31977 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
31978 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
31979 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
31980 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
31981 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
31982 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
31983 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
31984 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
31985 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
31986 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
31987 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
31988 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
31989 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
31990 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
31991 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
31992 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
31993 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
31994 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
31995 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
31996 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
31997 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
31998 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
31999 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
32000 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
32001 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
32002 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
32003 s-osinte-vms.ads, s-osinte-vxworks.adb,
32004 s-osinte-vxworks.ads, s-osprim-mingw.adb,
32005 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
32006 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
32007 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
32008 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
32009 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
32010 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
32011 s-stchop-vxworks.adb, s-taprop-dummy.adb,
32012 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
32013 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
32014 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
32015 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
32016 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
32017 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
32018 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
32019 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
32020 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
32021 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
32022 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
32023 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
32024 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
32025 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
32026 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
32027 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
32028 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
32029 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
32030 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
32031 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
32032 system-irix-o32.ads, system-linux-x86_64.ads,
32033 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
32034 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
32035 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
32036 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
32037 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
32038 system-vxworks-mips.ads, system-vxworks-ppc.ads,
32039 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
32040 above.
32041
90afe2c9
ZW
320422004-05-13 Zack Weinberg <zack@codesourcery.com>
32043
32044 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
32045
6de9cd9a
DN
320462004-05-13 Diego Novillo <dnovillo@redhat.com>
32047
32048 Merge from tree-ssa-20020619-branch.
32049
32050 * config-lang.in (boot_language, build_by_default): Set
32051 to no.
32052 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
32053 (max_size): Add static chain op for call_expr.
32054
f5657d67
RS
320552004-05-12 Richard Sandiford <rsandifo@redhat.com>
32056
32057 PR target/15331
32058 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
32059
4413b636
RS
320602004-05-11 Roger Sayle <roger@eyesopen.com>
32061
32062 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
32063 COND_EXPR.
32064
5950a3ac
AC
320652004-05-10 Doug Rupp <rupp@gnat.com>
32066
32067 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
32068 system.aux_dec.
32069
32070 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
32071
32072 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
32073
32074 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
32075 Fixes undefined symbols in IA64 gnatlib.
32076
32077 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
32078
32079 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
32080 Short_Address). This will be moved to system.auxdec.
32081
320822004-05-10 Thomas Quinot <quinot@act-europe.fr>
32083
32084 * sem_util.adb: Replace test for presence of a node that is always
32085 present with a call to Discard_Node.
32086
32087 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
32088 Analyze on the library unit node after generation of distribution stub
32089 constructs. The call was a no-op because Unit_Node has already been
32090 Analyzed, and the tree fragments for the distribution stubs are
32091 analyzed as they are inserted in Exp_Dist.
32092 Update comment regarding to distribution stubs to reflect that we
32093 do not generate stub in separate files anymore.
32094
32095 * einfo.ads: Clarify the fact that a tagged private type has the
32096 E_Record_Type_With_Private Ekind.
32097
32098 * erroutc.adb: Minor reformatting
32099
32100 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
32101 values if line length is increased using -gnatyM (noticed during code
32102 reading).
32103
32104 * eval_fat.adb: Minor reformatting
32105 Put spaces around exponentiation operator
32106
321072004-05-10 Ed Schonberg <schonberg@gnat.com>
32108
32109 PR ada/15005
32110 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
32111 has been rewritten as an explicit dereference, retrieve type of
32112 original node to check for possibly unconstrained record type.
32113
321142004-05-10 Ed Schonberg <schonberg@gnat.com>
32115
32116 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
32117 overriding, use the operation of the parent unconditionally.
32118
32119 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
32120 operation when either operand is a literal, to avoid further
32121 ambiguities.
32122
32123 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
32124 overridden by a previous explicit declaration, mark the previous entity
32125 as overriding.
32126
32127 * sem_disp.adb (Check_Dispatching_Operation): New predicate
32128 Is_Visibly_Controlled, to determine whether a declaration of a
32129 primitive control operation for a derived type overrides an inherited
32130 one. Add warning if the explicit declaration does not override.
32131
321322004-05-10 Vincent Celier <celier@gnat.com>
32133
32134 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
32135 some cases when the sources are no longer present.
32136
32137 * make.adb (Collect_Arguments): Fail if an external source, not part
32138 of any project need to be compiled, when switch -x has not been
32139 specified.
32140
32141 * makeusg.adb: Document new switch -x
32142
32143 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
32144 defaulted to False.
32145
32146 * switch-m.adb (Scan_Make_Switches): New switch -x
32147
32148 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
32149 gnatmake switch -x.
32150
32151 * gnat_ugn.texi: Document new gnatmake switch -x
32152
321532004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
32154
32155 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
32156
32157 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
32158 (process_attributes): Likewise.
32159
321602004-05-10 Joel Brobecker <brobecker@gnat.com>
32161
32162 * s-inmaop.ads: Fix spelling mistake in one of the comments.
32163
321642004-05-10 Robert Dewar <dewar@gnat.com>
32165
32166 * gnat_ugn.texi: Document that for config pragma files, the maximum
32167 line length is always 32767.
32168
32169 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
32170 literals is now allowed.
32171
32172 * gnat-style.texi: Remove statement about splitting long lines before
32173 an operator rather than after, since we do not follow this rule at all.
32174 Clarify rule (really lack of rule) for spaces around exponentiation
32175
32176 * sem_elim.adb: Allow concatenation of string literals as well as a
32177 single string literal for pragma arguments.
32178
32179 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
32180
32181 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
32182 written for append case.
32183
32184 * frontend.adb: Changes to avoid checking max line length in config
32185 pragma files.
32186
32187 * g-os_lib.ads: Minor reformatting
32188
32189 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
32190 wrong in any case. Instead use standard value. Noticed during code
32191 reading.
32192
32193 * opt.ads (Max_Line_Length): New field, used to implement removal of
32194 limitation on length of lines when scanning config pragma files.
32195
32196 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
32197 makeutl.ads, makeutl.adb: Minor reformatting
32198
32199 * scn.adb: Do not check line length while scanning config pragma files
32200 Do not check line length while scanning out license information
32201
32202 * scng.adb: Changes to avoid line length checks while parsing config
32203 pragma files.
32204
322052004-05-10 GNAT Script <nobody@gnat.com>
32206
32207 * Make-lang.in: Makefile automatically updated
32208
48664302
AC
322092004-05-05 Arnaud Charlet <charlet@act-europe.fr>
32210
32211 * osint.adb (Find_Program_Name): Fix handling of VMS version
32212 number.
32213
aa720a54
AC
322142004-05-05 Emmanuel Briot <briot@act-europe.fr>
32215
32216 * g-os_lib.ads (Invalid_Time): New constant
32217
32218 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
32219 return OS_Time instead of time_t to match what is imported by Ada.
32220 Now return -1 if the file doesn't exist, instead of a random value
32221
322222004-05-05 Robert Dewar <dewar@gnat.com>
32223
32224 * usage.adb: Add line for -gnatR?s switch
32225
32226 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
32227
32228 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
32229 and for Match (Data_First, Data_last)
32230
32231 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
32232 written when we are dealing with multi-unit files.
32233
322342004-05-05 Jerome Guitton <guitton@act-europe.fr>
32235
32236 * Makefile.in: Remove unused targets and variables.
32237
322382004-05-05 Vincent Celier <celier@gnat.com>
32239
32240 * switch-m.adb: New gnatmake switch -eI
32241
32242 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
32243 of new gnatmake switch -eInnn.
32244
32245 * makegpr.adb: Take into account new parameters Index and Src_Index in
32246 Prj.Util.
32247
32248 * clean.adb: Implement support for multi-unit sources, including new
32249 switch -i.
32250
32251 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
32252 Src_Index.
32253
32254 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
32255 (Extract_From_Q): New out parameter Index
32256 (Mark, Is_Marked): Subprograms moved to Makeutl
32257 (Switches_Of): New parameter Source_Index
32258 (Add_Switch): New parameter Index
32259 (Check): New parameter Source_Index
32260 (Collect_Arguments): New parameter Source_Index
32261 (Collect_Arguments_And_Compile): New parameter Source_Index
32262 (Compile): New parameter Source_Index
32263 Put subprograms in alphabetical order
32264 Add support for multi-source sources, including in project files.
32265
32266 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
32267 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
32268 Make.
32269
32270 * makeusg.adb: New gnatmake switch -eInnn
32271
32272 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
32273 Prj.Util.Value_Of.
32274
32275 * opt.ads (Main_Index): New variable, defaulted to 0.
32276
32277 * osint.ads, osinte.adb (Add_File): New parameter Index
32278 (Current_Source_Index): New function
32279
32280 * prj.adb: Take into account new components Index and Src_Index
32281
32282 * prj.ads (String_Element): New component Index
32283 (Variable_Value): New component Index
32284 (Array_Element): New component Src_Index
32285
32286 * prj-attr.adb: Indicate that optional index may be specified for
32287 attributes Main, Executable, Spec, Body and some of Switches.
32288
32289 * prj-attr.ads (Attribute_Kind): New values for optional indexes
32290 (Attribute_Record): New component Optional_Index
32291
32292 * prj-com.ads (File_Name_Data): New component Index
32293
32294 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
32295
32296 * prj-env.adb (Put): Output optional index
32297
32298 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
32299 attributes Spec and Body.
32300
32301 * prj-nmsc.adb: Process optional indexes
32302
32303 * prj-pp.adb: Ouput "at" for optional indexes
32304
32305 * prj-proc.adb: Take into account optional indexes
32306
32307 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
32308 Optional_Index. For string literal,
32309 process optional index when Optional_Index is True.
32310 (Parse_Expresion): New Boolean parameter Optional_Index
32311
32312 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
32313 (Set_Source_Index_Of): New procedure
32314
32315 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
32316 index.
32317
32318 * prj-util.ads (Executable_Of): New parameter Index
32319 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
32320 New parameter Src_Index, defaulted to 0.
32321
323222004-05-05 Ed Schonberg <schonberg@gnat.com>
32323
32324 PR ada/15257
32325 * sem_ch3.adb (Access_Definition): If this is an access parameter
32326 whose designated type is imported through a limited_with clause, do
32327 not add the enclosing subprogram to the list of private dependents of
32328 the type.
32329
323302004-05-05 Ed Schonberg <schonberg@gnat.com>
32331
32332 PR ada/15258
32333 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
32334 a limited_with clause, and the other is its non-limited view.
32335
323362004-05-05 Thomas Quinot <quinot@act-europe.fr>
32337
32338 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
32339
90afe2c9 32340 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
aa720a54
AC
32341 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
32342 Stand.Boolean_Literals to produce references to entities
32343 Standard_False and Standard_True from compile-time computed boolean
32344 values.
32345
32346 * stand.ads (Boolean_Literals): New variable, provides the entity
32347 values for False and True, for use by the expander.
32348
323492004-05-05 Doug Rupp <rupp@gnat.com>
32350
32351 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
32352 5vinmaop.adb: Unchecked convert Short_Address vice Address
32353
32354 * adaint.c, raise.c: Caste CRTL function return value
32355 to avoid gcc error on 32/64 bit IVMS.
32356
32357 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
32358 target = IA64/VMS.
32359
32360 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
32361
32362 * 5qsystem.ads (Address): Declare as Long_Integer
32363 (Short_Address): Declare as 32 bit subtype of Address
32364 Declare abstract address operations to avoid gratuitous ambiguities.
32365
323662004-05-05 Jose Ruiz <ruiz@act-europe.fr>
32367
32368 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
32369 instead of the old Boolean_Entry_Barriers.
32370 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
32371
323722004-05-05 GNAT Script <nobody@gnat.com>
32373
32374 * Make-lang.in: Makefile automatically updated
32375
1ab2888d
AC
323762004-05-03 Arnaud Charlet <charlet@act-europe.fr>
32377
32378 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
32379
9f4fd324
AC
323802004-05-03 Olivier Hainque <hainque@act-europe.fr>
32381
32382 PR ada/15152
9f4fd324
AC
32383 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
32384 alone. Replacing object references by literals is inappropriate in a
32385 so low level context.
32386
323872004-05-03 Arnaud Charlet <charlet@act-europe.fr>
32388
32389 * a-exexpr.adb: Add comments
32390
323912004-05-03 Joel Brobecker <brobecker@gnat.com>
32392
32393 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
32394 declare the Ancestor_Tags array in Type_Specific_Data with a small size
32395 without risking a bounds check error when accessing one of its
32396 components.
32397 (Type_Specific_Data): Define Ancestor_Tags as a small array.
32398 This prevents us from hitting a limitation during the debug info
32399 generation when using stabs.
32400
32401 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
32402 small array.
32403 This prevents us from hitting a limitation during the debug info
32404 generation when using stabs.
32405
324062004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
32407
32408 lang-specs.h: Remove -gnatz* from specs.
32409
324102004-05-03 Vincent Celier <celier@gnat.com>
32411
32412 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
32413
32414 * Make-lang.in, Makefile.in: Add gprmake
32415
324162004-05-03 Thomas Quinot <quinot@act-europe.fr>
32417
32418 * sem_aggr.adb: Fix typo in comment.
32419
324202004-05-03 Robert Dewar <dewar@gnat.com>
32421
32422 * make.adb: Minor reformatting
32423
32424 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
32425
32426 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
32427 so that it works when address is not a private type.
32428
32429 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
32430 properly with rewritten unchecked conversions. This prevents
32431 order-of-elaboration issues that can otherwise arise.
32432 (Minimum_Size): Don't check size of access types under VMS
32433
32434 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
32435 interpretations of integer literals as type System.Address.
32436
32437 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
32438 (Is_Descendent_Of): New function
32439
324402004-05-03 Jose Ruiz <ruiz@act-europe.fr>
32441
32442 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
32443 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
32444 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
32445
32446 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
32447 of the old Max_Entry_Queue_Depth.
32448
32449 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
32450 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
32451 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
32452
32453 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
32454 New entry for proper handling of Max_Entry_Queue_Depth.
32455 New entry for proper handling of No_Dynamic_Interrupts.
32456
32457 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
32458 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
32459 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
32460 the GNAT specific restriction Max_Entry_Queue_Depth.
32461 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
32462 the GNAT specific restriction No_Dynamic_Interrupts.
32463
32464 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
32465 instead of the old Boolean_Entry_Barriers.
32466 Use the new restriction No_Dynamic_Attachment instead of the old
32467 No_Dynamic_Interrupts.
32468
32469 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
32470 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
32471
32472 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
32473 of the old Max_Entry_Queue_Depth.
32474
324752004-05-03 GNAT Script <nobody@gnat.com>
32476
32477 * Make-lang.in: Makefile automatically updated
32478
d935a36e
AC
324792004-04-29 Ed Schonberg <schonberg@gnat.com>
32480
32481 * checks.adb (Enable_Range_Check): If the prefix of an index component
32482 is an access to an unconstrained array, perform check unconditionally.
32483
324842004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32485
32486 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
32487 Component_Clause.
32488
324892004-04-29 Olivier Hainque <hainque@act-europe.fr>
32490
32491 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
32492 alternate stack setting. There was no support for the tasking cases
32493 and the changes eventually caused a number of side-effect failures in
32494 the non-tasking case too.
32495
324962004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
32497
32498 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
32499 -gnats is passed.
32500
325012004-04-29 Vincent Celier <celier@gnat.com>
32502
32503 * make.adb (Gnatmake): Increase max size of argument array for
32504 gnatbind for the potential addition of -F.
32505 If there are Stand-Alone Library projects, invoke gnatbind with -F to
32506 be sure that elaboration flags will be checked.
32507
32508 * switch-c.adb: Correct call to Scan_Pos for -gnateI
32509
325102004-04-29 Thomas Quinot <quinot@act-europe.fr>
32511
32512 * sem_warn.adb (Check_References): Move '<access-variable> may be
32513 null' warning out of under Warn_On_No_Value_Assigned.
32514
325152004-04-29 Ed Falis <falis@gnat.com>
32516
32517 * gnat_ugn.texi: Fixed texi error
32518
325192004-04-29 Robert Dewar <dewar@gnat.com>
32520
32521 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
32522 abstract operations if they come from predefined files.
32523
32524 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
32525 Dynamic, not RM).
32526
32527 * s-addope.adb: Correct obvious error in mod function
32528
325292004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
32530
32531 * Makefile.in: Add target pairs for powerpc darwin*
32532 tasking support.
32533
32534 * a-intnam-darwin.ads, s-osinte-darwin.adb,
32535 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
32536
ea16c81b
UW
325372004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
32538
32539 * Makefile.in: Add target macro definitions for s390*-linux*.
32540 * system-linux-s390.ads: New file.
32541 * system-linux-s390x.ads: New file.
32542
f0e6f845
JM
325432004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
32544
32545 * gnat_ugn.texi: Correct argument to @setfilename.
32546
e8c2eedc
UW
325472004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
32548
32549 * a-exexpr.adb (Unwind_Word): New data type.
32550 (Unwind_Exception): Use it as type of Private1 and Private2.
32551
32552 * raise.c (db_action_for): Fix debug printf.
32553
f2c9e65a
AC
325542004-04-27 Ed Schonberg <schonberg@gnat.com>
32555
32556 * a-wtmoio.ads: Formal type must be a modular type, not a signed
32557 integer type.
32558
325592004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32560
32561 * decl.c (gnat_to_gnu_entity, case object): Call
32562 __builtin_update_setjmp_buf.
32563
32564 * gigi.h (update_setjmp_buf): Deleted.
32565 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
32566
32567 * misc.c: (update_setjmp_buf): Deleted.
32568
32569 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
32570 around block of RTL.
32571
32572 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
32573
35b7fa6a
AC
325742004-04-26 Thomas Quinot <quinot@act-europe.fr>
32575
32576 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
32577 subprogram for which no pragma All_Calls_Remote applies, store the
32578 address of the real subprogram in the underlying record type, so local
32579 dereferences do not go through the PCS.
32580
325812004-04-26 Robert Dewar <dewar@gnat.com>
32582
32583 * i-c.ads: Add some type qualifications to avoid ambiguities when
32584 compiling with s-auxdec.ads and a non-private address type.
32585
325862004-04-26 Arnaud Charlet <charlet@act-europe.fr>
32587
32588 * Makefile.rtl: Fix error in previous check-in:
32589 Add s-addope.o to non tasking object list (rather than tasking object
32590 list).
32591
325922004-04-26 Javier Miranda <miranda@gnat.com>
32593
32594 * sem_aggr.adb: Fix typo in comments
32595 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
32596 Required to check the null-exclusion attribute.
32597
32598 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
32599 case of anonymous access types in record and array components. For a
32600 component definition the level is the same of the enclosing composite
32601 type.
32602
32603 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
32604 that are anonymous access types the level of accessibility depends on
32605 the enclosing type declaration. In order to have this information, set
32606 the scope of the anonymous access type to the enclosing record type
32607 declaration.
32608 (Array_Type_Declaration): In case of components that are anonymous
32609 access types the level of accessibility depends on the enclosing type
32610 declaration. In order to have this information, set the scope of the
32611 anonymous access type to the enclosing array type declaration.
32612
32613 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
32614 access type.
32615
32616 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
32617 renaming of anonymous access-to-constant types allowed if and only if
32618 the renamed object is access-to-constant.
32619
32620 * sem_util.adb (Type_Access_Level): In case of anonymous access types
32621 that are component_definition or discriminants of a nonlimited type,
32622 the level is the same as that of the enclosing component type.
32623
326242004-04-26 Sergey Rybin <rybin@act-europe.fr>
32625
32626 * sem_elim.adb: Some minor code reorganization from code reading. Fix
32627 misprint in the function name (File_Name_Match).
32628
9e94c78f 326292004-04-23 Laurent Guerby <laurent@guerby.net>
5a944040 32630
90afe2c9 32631 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
5a944040 32632 install.
90afe2c9 32633
d0fd1344
RO
326342004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
32635
32636 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
32637
cc4f0de1
AC
326382004-04-23 Emmanuel Briot <briot@act-europe.fr>
32639
32640 * adaint.c (__gnat_try_lock): No longer requires that the parent
32641 directory be writable, the directory itself is enough.
32642 (gnat_is_absolute_path): Change profile, so that the call from
32643 GNAT.OS_Lib can be made more efficient.
32644
32645 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
32646 from GNAT.OS_Lib can be made more efficient.
32647
32648 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
32649 one copy of the file name. Found by code reading.
32650
326512004-04-23 Vincent Celier <celier@gnat.com>
32652
32653 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
32654 Correct documentation on gnatmake switches transmitted to the compiler
32655
32656 * ali.ads: Minor comment fix
32657
326582004-04-23 Javier Miranda <miranda@gnat.com>
32659
32660 * sem_ch6.adb: (Confirming Types): Code cleanup
32661
32662 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
32663 subprogram types: E_Anonymous_Access_Subprogram_Type and
32664 E_Anonymous_Access_Protected_Subprogram_Type.
32665
326662004-04-23 Thomas Quinot <quinot@act-europe.fr>
32667
32668 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
32669 whether a pragma All_Calls_Remote applies to the subprogram on which
32670 'Access is taken.
32671 No functional change is introduced by this revision; the new parameter
32672 will be used to allow calls to local RCI subprograms to be optimized
32673 to not use the PCS in the case where no pragma All_Calls_Remote applies,
32674 as is already done in the PolyORB implementation of the DSA.
32675
32676 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
32677 whether a pragma All_Calls_Remote applies to the subprogram on which
32678 'Access is taken.
32679 No functional change is introduced by this revision; the new parameter
32680 will be used to allow calls to local RCI subprograms to be optimized
32681 to not use the PCS in the case where no pragma All_Calls_Remote applies,
32682 as is already done in the PolyORB implementation of the DSA.
32683
326842004-04-23 Robert Dewar <dewar@gnat.com>
32685
32686 * Makefile.rtl: Add entry for s-addope.o in run time library list
32687 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
32688 * s-addope.ads, s-addope.adb: New files.
32689
90afe2c9
ZW
32690 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
32691 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
cc4f0de1
AC
32692 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
32693 System.Address to be non-private and signed.
32694
32695 * sem_elim.adb: Minor reformatting (fairly extensive)
32696 Some minor code reorganization from code reading
32697 Add a couple of ??? comments
32698
326992004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32700
32701 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
90afe2c9 32702 (tree_transform, case N_If_Statement): Remove non-determinism.
cc4f0de1
AC
32703
32704 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
32705
327062004-04-23 Sergey Rybin <rybin@act-europe.fr>
32707
32708 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
32709 Eliminate' section.
32710
32711 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
32712 no longer used as a parameter name for Eliminate pragma).
32713
9e94c78f 327142004-04-22 Laurent Guerby <laurent@guerby.net>
78bad775
LG
32715
32716 PR optimization/14984
32717 PR optimization/14985
32718 * trans.c (gigi): Fix non determinism leading to bootstrap
32719 comparison failures.
32720
af4b9434
AC
327212004-04-21 Pascal Obry <obry@gnat.com>
32722
32723 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
32724 passed to spawnvp() to properly handle program pathname with spaces on
32725 Win32.
32726
327272004-04-21 Emmanuel Briot <briot@act-europe.fr>
32728
32729 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
32730 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
32731 unlocked in case of exceptions.
32732
327332004-04-21 Joel Brobecker <brobecker@gnat.com>
32734
32735 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
32736 This function does not exist anymore.
32737
327382004-04-21 Thomas Quinot <quinot@act-europe.fr>
32739
32740 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
32741
32742 * link.c: Move variables to the __gnat name space.
32743
32744 * Makefile.in: list link.o explicitly when needed.
32745
32746 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
32747
327482004-04-21 Javier Miranda <miranda@gnat.com>
32749
32750 * einfo.adb (Original_Access_Type): New subprogram
32751 (Set_Original_Access_Type): New subprogram
32752 (Write_Field21_Name): Write the name of the new field
32753
32754 * einfo.ads (Original_Access_Type): New field present in access to
32755 subprogram types.
32756 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
32757 E_Anonymous_Access_Protected_Subprogram_Type.
32758
32759 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
32760 subprogram types.
32761
32762 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
32763 to anonymous access to subprogram types.
32764
32765 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
32766 to subprogram types.
32767
32768 * sem_ch3.adb (Access_Definition): Complete decoration of entities
32769 corresponding to anonymous access to subprogram types.
32770 (Analyze_Component_Declaration): Add new actual to the call to
32771 subprogram replace_anonymous_access_to_protected_subprogram.
32772 (Array_Type_Declaration): Add new actual to the call to subprogram
32773 replace_anonymous_access_to_protected_subprogram.
32774 (Process_Discriminants): Add new actual to the call to subprogram
32775 replace_anonymous_access_to_protected_subprogram.
32776 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
32777
32778 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
32779 formal.
32780
32781 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
32782 access to subprogram types.
32783
32784 * sem_util.adb (Has_Declarations): Addition of package_specification
32785 nodes.
32786
327872004-04-21 Ed Schonberg <schonberg@gnat.com>
32788
32789 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
32790 inlined flags to renamed entity only if in current unit.
32791
327922004-04-21 Thomas Quinot <quinot@act-europe.fr>
32793
32794 * s-parint.ads: Add DSA implementation marker.
32795
32796 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
32797 value of System.Partition_Interface.DSA_Implementation to determine
32798 what version of the distributed systems annex is available (no
32799 implementation, GLADE, or PolyORB).
32800
328012004-04-21 Joel Brobecker <brobecker@gnat.com>
32802
32803 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
32804
328052004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32806
32807 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
32808 with new type if alias sets differ.
32809 Fixes ACATS c41103b.
32810
328112004-04-21 Vincent Celier <celier@gnat.com>
32812
32813 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
32814 Add array Lang_Args for the language specific compiling argument
32815 switches.
32816
32817 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
32818
328192004-04-21 Sergey Rybin <rybin@act-europe.fr>
32820
32821 * gnat_rm.texi: Update the descripton of the Eliminate pragma
32822 according to the recent changes in the format of the parameters of the
32823 pragma (replacing Homonym_Number with Source_Location).
32824
7324bf49
AC
328252004-04-19 Arnaud Charlet <charlet@act-europe.fr>
32826
32827 * 5isystem.ads: Removed, unused.
32828
32829 * gnat_rm.texi: Redo 1.13 change.
32830
328312004-04-19 Robert Dewar <dewar@gnat.com>
32832
32833 * s-stoele.ads: Clean up definition of Storage_Offset (the new
32834 definition is cleaner, avoids the kludge of explicit Standard operator
32835 references, and also is consistent with a visible System.Address with
32836 no visible operations.
32837
32838 * s-geveop.adb: Add declarations to avoid assumption of visible
32839 operations on type System.Address (since these might not be available
32840 if Address is a non-private type for which the operations
32841 are made abstract).
32842
32843 * sem_eval.adb: Minor reformatting
32844
32845 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
32846 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
32847 reformatting (new function spec format).
32848
32849 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
32850 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
32851 s-caun64.adb: Add declarations to avoid assumption of visible
32852 operations on type System.Address (since these might not be available
32853 if Address is a non-private type for which the operations are made
32854 abstract).
32855
32856 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
32857
32858 * exp_intr.adb: Minor comment update
32859
32860 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
32861
32862 * 5omastop.adb: Add declarations to avoid assumption of visible
32863 operations on type System.Address (since these might not be available
32864 if Address is a non-private type for which the operations
32865 are made abstract).
32866
328672004-04-19 Vincent Celier <celier@gnat.com>
32868
32869 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
32870
32871 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
32872 defaulted to Ada.
32873
32874 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
32875 defaulted to Ada.
32876 Call Check with Process_Languages.
32877 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
32878 with Process_Languages.
32879 (Recursive_Check): New Boolean parameter Process_Languages. Call
32880 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
32881 Process_Languages.
32882
32883 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
32884
32885 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
32886 parameter Ada_Main, defaulted to True.
32887 Check for Ada specific characteristics only when Ada_Main is True.
32888
32889 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
32890
32891 * prj.adb: (Project_Empty): Add new Project_Data components.
32892
32893 * prj.ads: New types and tables for non Ada languages.
32894 (Project_Data): New components Languages, Impl_Suffixes,
32895 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
32896 Include_Path, Include_Data_Set.
32897
32898 * prj-env.ads, prj-env.adb: Minor reformatting
32899
32900 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
32901 Put subprograms in alphabetical order
32902
32903 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
32904 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
32905 Opt.Follow_Links.
32906
32907 * mlib-prj.adb: Back out modification in last version, as they are
32908 incorrect.
32909 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
32910
32911 * make.adb: (Mains): Moved to package Makeutl
32912 (Linker_Opts): Moved to package Makeutl
32913 (Is_External_Assignment): Moved to package Makeutl
32914 (Test_If_Relative_Path): Moved to package Makeutl
32915 (Gnatmake): Move sorting of linker options to function
32916 Makeutl.Linker_Options_Switches.
32917
8f9df7d8
VC
32918 * makeutl.ads, makeutl.adb: New files.
32919
7324bf49
AC
32920 * Makefile.in: Add makeutl.o to the object files for gnatmake
32921
32922 * makeusg.adb: Add line for new switch -eL.
32923
32924 * gnatls.adb (Image): New function.
32925 (Output_Unit): If in verbose mode, output the list of restrictions
32926 specified by pragmas Restrictions.
32927
32928 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
32929 Text_IO.
32930
32931 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
32932 needed, to put it in the range 1970 (included) - 2026 (excluded).
32933 (Time_Of): Do not shift Unix_Min_Year (1970).
32934 Shift the date by multiple of 56 years, if needed, to put it in the
32935 range 1970 (included) - 2026 (excluded).
32936
32937 * adaint.h, adaint.c (__gnat_set_executable): New function.
32938
329392004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32940
32941 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
32942 and pop GC context.
32943 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
32944 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
32945 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
32946 (tree_transform, case N_Code_Statement): Likewise.
32947 (gnat_expand_stmt, case LABEL_STMT): Don't look at
32948 LABEL_STMT_FIRST_IN_EH.
32949 (gnat_expand_stmt, case ASM_STMT): New case.
32950
32951 * utils2.c (build_unary_op): Properly set TREE_READONLY of
32952 UNCONSTRAINED_ARRAY_REF.
32953
32954 * utils.c (poplevel): Temporarily push/pop GC context around inline
32955 function expansion.
32956
32957 * decl.c (maybe_variable): Properly set TREE_READONLY of
32958 UNCONSTRAINED_ARRAY_REF.
32959 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
32960
32961 * ada-tree.def: (ASM_STMT): New.
32962
32963 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
32964 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
32965 ASM_STMT_INPUT): New.
32966 (ASM_STMT_CLOBBER): Likewise.
32967
329682004-04-19 Thomas Quinot <quinot@act-europe.fr>
32969
32970 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
32971 general rcheck mechanism to raise Program_Error for E.4(18), instead
32972 of a custom raiser in System.Partition_Interface.
32973 Part of general cleanup work before PolyORB integration.
32974
32975 * snames.ads, snames.adb: Add new runtime library entities and names
32976 for PolyORB DSA.
32977
32978 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
32979 exp_dist.
32980 (Build_Subprogram_Id): New subprogram provided by exp_dist
32981 Code reorganisation in preparation for PolyORB integration.
32982
32983 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
32984 exp_dist.
32985 (Build_Subprogram_Id): New subprogram provided by exp_dist
32986
32987 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
32988 actual parameter types for call to dereference of an
32989 access-to-subprogram type.
32990
32991 * rtsfind.ads: Add new runtime library entities and names for PolyORB
32992 DSA.
32993
32994 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
32995 instead, which has the same behaviour here since we never pass it a
32996 NULL pointer.
32997
32998 * link.c (run_path_option, Solaris case): Use -Wl, as for other
32999 platforms.
33000
33001 * Makefile.in: adjust object file lists for gnatlink and gnatmake
33002 to account for new dependency upon Interfaces.C.Strings + link.o
33003 For x86 FreeBSD, use 86numaux.
33004
33005 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
33006 from Mlib.Tgt to Mlib.
33007
33008 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
33009 target-independent.
33010
33011 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
33012 target-specific versions of this subprogram, now implemented as a
33013 target-independent function in Mlib.
33014
33015 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
33016 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
33017 (Linker_Library_Path_Option): Remove target-specific versions of this
33018 subprogram, now implemented as a target-independent function in Mlib.
33019
33020 * atree.adb: (Allocate_Initialize_Node): New subprogram.
33021 Factors out node table slots allocation.
33022 (Fix_Parents): New subprogram.
33023 Encapsulate the pattern of fixing up parent pointers for syntactic
33024 children of a rewritten node.
33025 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
33026 (Rewrite): Use New_Copy when creating saved copy of original node.
33027 (Replace): Use Copy_Node to copy nodes.
33028
330292004-04-19 Javier Miranda <miranda@gnat.com>
33030
33031 * sprint.adb (Sprint_Node_Actual): Give support to the new
33032 Access_To_Subprogram node available in Access_Definition nodes. In
33033 addition, give support to the AI-231 node fields: null-exclusion,
33034 all-present, constant-present.
33035
33036 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
33037
90afe2c9 33038 * sinfo.ads, sinfo.adb:
7324bf49
AC
33039 New field Access_To_Subprogram_Definition in Access_Definition nodes
33040
33041 * sem_ch6.adb (Process_Formals): Move here the code that creates and
33042 decorates internal subtype declaration corresponding to the
33043 null-excluding formal. This code was previously in Set_Actual_Subtypes.
33044 In addition, carry out some code cleanup on this code. In case of
33045 access to protected subprogram call
33046 Replace_Anonymous_Access_To_Protected_Subprogram.
33047 (Set_Actual_Subtypes): Code cleanup.
33048
33049 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
33050 Find_Type in case of anonymous access renamings. Add warning in case of
33051 null-excluding attribute used in anonymous access renaming.
33052
33053 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
33054 subprogram
33055
33056 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
33057 subprogram.
33058 (Access_Definition): In case of anonymous access to subprograms call
33059 the corresponding semantic routine to decorate the node.
33060 (Access_Subprogram_Declaration): Addition of some comments indicating
33061 some code that probably should be added here. Detected by comparison
33062 with the access_definition subprogram.
33063 (Analyze_Component_Declaration): In case of access to protected
33064 subprogram call Replace_Anonymous_Access_To_Protected.
33065 (Array_Type_Declaration): In case of access to protected subprogram call
33066 Replace_Anonymous_Access_To_Protected_Subprogram.
33067 (Process_Discriminants): In case of access to protected subprogram call
33068 Replace_Anonymous_Access_To_Protected_Subprogram.
33069
33070 * par.adb (P_Access_Definition): New formal that indicates if the
33071 null-exclusion part was present.
33072 (P_Access_Type_Definition): New formal that indicates if the caller has
33073 already parsed the null-excluding part.
33074
33075 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
33076 (P_Identifier_Declarations): Code cleanup and give support to renamings
33077 of anonymous access to subprogram types.
33078 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
33079 (P_Array_Type_Definition): Give support to AI-254.
33080 (P_Component_Items): Give support to AI-254.
33081 (P_Access_Definition): New formal that indicates if the header was
33082 already parsed by the caller.
33083 (P_Access_Type_Definition): New formal that indicates if the caller has
33084 already parsed the null-excluding part.
33085
33086 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
33087 call to P_Access_Definition.
33088
330892004-04-19 Geert Bosch <bosch@gnat.com>
33090
33091 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
33092 the delicate semantics of floating-point to integer conversion.
33093 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
33094
33095 * eval_fat.adb (Machine_Mantissa): Moved to spec.
33096 (Machine_Radix): New function.
33097
33098 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
33099 conversion checks.
33100 (Machine_Radix): New function also for use in conversion checks.
33101
331022004-04-19 Ed Schonberg <schonberg@gnat.com>
33103
33104 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
33105
33106 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
33107 to decorate the access-to-protected subprogram and the equivalent type.
33108
33109 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
33110 to anonymous access to subprogram types.
33111
33112 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
33113 constant-folding, for legality checks in contexts that require an RM
33114 static expression.
33115
33116 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
33117 temporary but stack checking is not enabled, increment serial number
33118 to so that symbol generation is consistent with and without stack
33119 checking.
33120
33121 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
33122 independent on whether stack checking is enabled, caller must check
33123 the corresponding flag.
33124
33125 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
33126 range checks.
33127 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
33128 parent if it has discriminants.
33129 (Build_Derived_Private_Type): Constructed full view does
33130 not come from source.
33131 (Process_Discriminants): Default discriminants on a tagged type are
33132 legal if this is the internal completion of a private untagged
33133 derivation.
33134
33135 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
33136 no constraint checks, because it corresponds to an existing object.
33137
33138 * sem_prag.adb (Process_Convention): Pragma applies
33139 only to subprograms in the same declarative part, i.e. the same unit,
33140 not the same scope.
33141
33142 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
33143 ignore type mismatch on a numeric conversion if expression comes from
33144 expansion.
33145
331462004-04-19 Sergey Rybin <rybin@act-europe.fr>
33147
33148 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
33149 Homonym_Number parameter, add processing for Source_Location parameter
33150 corresponding.
33151 (Check_Eliminated): Remove the check for homonym numbers, add the check
33152 for source location traces.
33153
33154 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
33155 with Arg_Source_Location corresponding to the changes in the format of
33156 the pragma.
33157
33158 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
33159 Eliminate pragma corresponding to the changes in the format of the
33160 pragma: Homonym_Number is replaced with Source_Location, two ways of
33161 distinguishing homonyms are mutially-exclusive.
33162
331632004-04-19 Joel Brobecker <brobecker@gnat.com>
33164
33165 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
33166
33167 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
33168 No_Dollar_In_Label, no longer necessary, as it is always True.
33169 (Strip_Suffixes): Likewise.
33170
331712004-04-19 Gary Dismukes <dismukes@gnat.com>
33172
33173 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
33174 modulus for compatibility with size clause on targets with 16-bit
33175 Integer.
33176
33177 * layout.adb (Discrimify): In the case of private types, set Vtyp to
33178 full type to fix type mismatches on calls to size functions for
33179 discriminant-dependent array components.
33180
331812004-04-19 Jerome Guitton <guitton@act-europe.fr>
33182
33183 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
33184 lib.
33185
331862004-04-19 Pascal Obry <obry@gnat.com>
33187
33188 * mdll-utl.adb (Locate): New version is idempotent.
33189
9e94c78f 331902004-04-17 Laurent Guerby <laurent@guerby.net>
fa795c69
LG
33191
33192 PR ada/14988 (partial)
33193 * impunit.adb: Fix typo.
90afe2c9 33194
cce0244b
NN
331952004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
33196
33197 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
33198 and install-rts-cert targets. Remove all gnatlib and gnattools
33199 targets and all other rts-* targets (moved to libada). Remove (now)
33200 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
33201 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
33202
af152989
AC
332032004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33204
33205 * trans.c (tree_transform): Shortcut returning error_mark_node for
33206 statements in annotate_only_mode.
33207 (tree_transform, case N_Label, case N_Return_Statement,
33208 N_Goto_Statement): Make statement tree instead of generating code.
33209 (tree_transform, case N_Assignment_Statement): No longer check
33210 type_annotate_only.
33211 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
33212 RETURN_STMT): New.
33213 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
33214 New fcns.
33215 (gnat_to_gnu): Collect any RTL generated and deal with it.
33216 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
33217 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
33218 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
33219
33220 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
33221
33222 * ada-tree.def (EXPR_STMT): Fix typo in name.
33223 (BLOCK_STMT, IF_STMT): New nodes.
33224
33225 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
33226 LABEL_STMT_FIRST_IN_EH): New macros.
33227 (RETURN_STMT_EXPR): Likewise.
33228
33229 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
33230 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
33231
332322004-04-08 Thomas Quinot <quinot@act-europe.fr>
33233
33234 * atree.ads: Correct documentation on extended nodes.
33235
33236 * link.c: Set run_path_option for FreeBSD.
33237
332382004-04-08 Vincent Celier <celier@gnat.com>
33239
33240 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
33241 one of the ALI file, do not link with DEC lib.
33242
33243 * par.adb Remove the last two characters ("%s" or "%b") when checking
33244 if a language defined unit may be recompiled.
33245
332462004-04-08 Ed Schonberg <schonberg@gnat.com>
33247
33248 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
33249 removal of abstract operation leaves no possible interpretation for
33250 expression.
33251
33252 * sem_eval.adb (Eval_Qualified_Expression): Use
33253 Set_Raises_Constraint_Error on node when needed, so that it does not
33254 get optimized away by subsequent optimizations.
33255
33256 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
33257 operands even when they are not wrapped in a type conversion.
33258
332592004-04-08 Olivier Hainque <hainque@act-europe.fr>
33260
33261 * sem_prag.adb (Set_Exported): Warn about making static as result of
33262 export only when the export is coming from source. This may be not
33263 be true e.g. on VMS where we expand export pragmas for exception codes
33264 together with imported or exported exceptions, and we don't want the
33265 user to be warned about something he didn't write.
33266
332672004-04-08 Thomas Quinot <quinot@act-europe.fr>
33268
33269 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
33270 duplication between normal entities and those declared as renamings.
33271 No functional change.
33272
90afe2c9 33273 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
af152989
AC
33274 inline functions returning an unconstrained result.
33275
332762004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
33277
33278 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
33279 conform to what other front-ends do.
33280
332812004-04-08 Doug Rupp <rupp@gnat.com>
33282
33283 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
33284 libraries.
33285
3984e89a
AC
332862004-04-06 Pascal Obry <obry@gnat.com>
33287
33288 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
33289
33290 * osint.adb (Program_Name): Do not look past a directory separator.
33291
332922004-04-06 Thomas Quinot <quinot@act-europe.fr>
33293
33294 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
33295
33296 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
33297 requirement for preserving a copy of the original assignment node.
33298
33299 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
33300
333012004-04-06 Olivier Hainque <hainque@act-europe.fr>
33302
33303 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
33304 when supported.
33305
333062004-04-06 Ed Schonberg <schonberg@gnat.com>
33307
33308 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
33309 operator calls in functional notation, and apply
33310 Universal_Interpretation to operands, not to their type.
33311
333122004-04-06 Robert Dewar <dewar@gnat.com>
33313
33314 * 5wdirval.adb: Minor reformatting
33315
333162004-04-06 Ed Falis <falis@gnat.com>
33317
33318 * gnat_rm.texi: Improve a reference to the GCC manual
33319
30c20106
AC
333202004-04-05 Vincent Celier <celier@gnat.com>
33321
33322 * adaint.h, adaint.c: Add function __gnat_named_file_length
33323
33324 * impunit.adb: Add Ada.Directories to the list
33325
33326 * Makefile.in: Add VMS and Windows versions of
33327 Ada.Directories.Validity package body.
33328
33329 * Makefile.rtl: Add a-direct and a-dirval
33330
33331 * mlib-tgt.ads: Minor comment update.
33332
33333 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
33334 a-direct.ads, a-direct.adb: New files.
33335
333362004-04-05 Vincent Celier <celier@gnat.com>
33337
33338 PR ada/13620
33339 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
33340 just to the compiler.
33341
333422004-04-05 Robert Dewar <dewar@gnat.com>
33343
33344 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
33345 returned string is 1.
33346
33347 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
33348
33349 * eval_fat.ads: Minor reformatting
33350
33351 * g-curexc.ads: Document that lower bound of returned string values
33352 is always one.
33353
33354 * gnatlink.adb: Add ??? comment for previous change
33355 (need to document why this is VMS specific)
33356
33357 * s-stoele.ads: Minor reformatting
33358
33359 * tbuild.ads: Minor reformatting throughout (new function specs)
33360
33361 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
33362 after WITH.
33363
33364 * scng.adb: Minor reformatting
33365
333662004-04-05 Geert Bosch <bosch@gnat.com>
33367
33368 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
33369 (Leading_Part): Still perform truncation to machine number if the
33370 specified radix_digits is greater or equal to machine_mantissa.
33371
333722004-04-05 Javier Miranda <miranda@gnat.com>
33373
33374 * par-ch3.adb: Complete documentation of previous change
33375 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
33376 (aliased must appear before constant).
33377
33378 * par-ch4.adb: Complete documentation of previous change.
33379
33380 * par-ch6.adb: Complete documentation of previous change.
33381
33382 * sinfo.ads: Fix typo in commment.
33383
333842004-04-05 Ed Schonberg <schonberg@gnat.com>
33385
33386 * sem_ch3.adb (Inherit_Components): If derived type is private and has
33387 stored discriminants, use its discriminants to constrain parent type,
33388 as is done for non-private derived record types.
33389
33390 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
33391 Ada 2005 AI-310: an abstract non-dispatching operation is not a
33392 candidate interpretation in an overloaded call.
33393
33394 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
33395 expression is Null and target type is not an access type (e.g. a
33396 non-private address type).
33397
333982004-04-05 Thomas Quinot <quinot@act-europe.fr>
33399
33400 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
33401 statement whose right-hand side is an inlined call, save a copy of the
33402 original assignment subtree to preserve enough consistency for
33403 Analyze_Assignment to proceed.
33404
33405 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
33406 complete assignment subtree which is now unnecessary, as the expansion
33407 of inlined call has been improved to preserve a consistent assignment
33408 tree. Note_Possible_Modification must be called only
33409 after checks have been applied, or else unnecessary checks will
33410 be generated.
33411
33412 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
33413 of explicit dereferences that do not Come_From_Source:
33414 - be selective on cases where we must go back to the dereferenced
33415 pointer (an assignment to an implicit dereference must not be
33416 recorded as modifying the pointer);
33417 - do not rely on Original_Node being present (Analyze_Assignment
33418 calls Note_Possible_Modification on a copied tree).
33419
33420 * sem_warn.adb (Check_References): When an unset reference to a pointer
33421 that is never assigned is encountered, prefer '<pointer> may be null'
33422 warning over '<pointer> is never assigned a value'.
33423
334242004-04-05 Ramon Fernandez <fernandez@gnat.com>
33425
33426 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
33427 the ABI.
33428
334292004-04-05 Olivier Hainque <hainque@act-europe.fr>
33430
33431 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
33432 libexc. We currently don't reference anything in this library and
33433 linking it in triggers linker warnings we don't want to see.
33434
33435 * init.c: Update comments.
33436
4f976745
RK
334372004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33438
33439 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
33440 * utils.c (create_field_decl): Likewise.
33441 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
33442
6da7d579
AC
334432004-04-02 Arnaud Charlet <charlet@act-europe.fr>
33444
33445 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
33446 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
33447 Add info directory entry and category.
33448
18c6ada9
JH
334492004-04-02 Jan Hubicka <jh@suse.cz>
33450
33451 * utils.c: Include function.h
33452 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
33453
7cd4527e
AC
334542004-04-01 Arnaud Charlet <charlet@act-europe.fr>
33455
33456 PR ada/14150
33457 * Make-lang.in: Clean up generation of documentation
33458
33459 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
33460
33461 * xgnatug.adb: Removed, replaced by xgnatugn.adb
33462
33463 * xgnatugn.adb: Replaces xgnatug.adb
33464
33465 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
33466
33467 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
33468
33469 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
33470 gnat_ug_wnt.texi: Removed.
33471
0c250f07
AC
334722004-04-01 Arnaud Charlet <charlet@act-europe.fr>
33473
33474 * utils2.c: Update copyright notice.
33475
6b6fcd3e
AC
334762004-04-01 Robert Dewar <dewar@gnat.com>
33477
33478 * checks.adb: Minor reformatting throughout
33479 Note that prev checkin added RM reference to alignment warning
33480
334812004-04-01 Ed Schonberg <schonberg@gnat.com>
33482
33483 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
33484 non-static when building aggregate for bit-packed array.
33485
33486 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
33487 function call that is itself the actual in a procedure call, build
33488 temporary for it.
33489
33490 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
33491 a string literal, create a temporary for it, constant folding only
33492 handles scalars here.
33493
334942004-04-01 Vincent Celier <celier@gnat.com>
33495
33496 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
33497 Error_Msg_SP): New empty procedures to instantiate the Scanner.
33498 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
33499 tokens.
33500 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
33501 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
33502 and get the checksum.
33503
33504 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
33505 already in the Q.
33506 Increase the Marking_Label at the end of the Multiple_Main_Loop,
33507 instead of at the beginning.
33508
33509 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
33510 directly.
33511 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
33512 on VMS.
33513
33514 * osint.ads (Multi_Unit_Index_Character): New Character global variable
33515
33516 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
33517 not '~' directly.
33518
33519 * par.adb: Remove test on file name to detect language defined units.
33520 Add test on unit name, after parsing, to detect language defined units
33521 that are not compiled with -gnatg (except System.RPC and its children)
33522
33523 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
33524 following units without style checking.
33525
33526 * switch-c.adb: Change -gnatC to -gnateI
33527
33528 * usage.adb: Document new switch -gnateInnn
33529
33530 * scng.adb (Accumulate_Token_Checksum): New procedure
33531 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
33532 word or literal number.
33533 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
33534 numbers.
33535
335362004-04-01 Thomas Quinot <quinot@act-europe.fr>
33537
33538 * a-tasatt.adb,
33539 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
33540 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
33541 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
33542 5vtpopde.adb: Add missing 'constant' keywords.
33543
335442004-04-01 Javier Miranda <miranda@gnat.com>
33545
33546 * par-ch4.adb: (P_Allocator): Code cleanup
33547
33548 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
33549 attribute.
33550
33551 * sinfo.ads: Complete documentation of previous change
33552
335532004-04-01 Pascal Obry <obry@gnat.com>
33554
33555 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
33556 only on VMS. This special handling was done because an old GNU/ld bug
33557 on Windows which has been fixed.
33558
335592004-04-01 GNAT Script <nobody@gnat.com>
33560
33561 * Make-lang.in: Makefile automatically updated
33562
8df83eae
RK
335632004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33564
33565 * decl.c (gnat_to_gnu_entity, make_type_from_size):
33566 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
33567 * trans.c (tree_transform, convert_with_check): Likewise.
33568 * utils.c (gnat_signed_or_unsigned_type): Likewise.
33569 (build_vms_descriptor, unchecked_convert): Likewise.
33570 * utils2.c (nonbinary_modular_operation): Likewise.
33571
2820d220
AC
335722004-03-29 Javier Miranda <miranda@gnat.com>
33573
33574 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
33575 (Install_Null_Excluding_Check): Local subprogram that determines whether
33576 an access node requires a runtime access check and if so inserts the
33577 appropriate run-time check.
33578 (Apply_Access_Check): Call Install_Null_Excluding check if required
33579 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
33580
33581 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
33582
33583 * einfo.ads: Fix typo in comment
33584
33585 * exp_ch3.adb (Build_Assignment): Generate conversion to the
33586 null-excluding type to force the corresponding run-time check.
33587 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
33588 type to force the corresponding run-time check.
33589
33590 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
33591 the null-excluding type to force the corresponding run-time check.
33592
33593 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
33594 case of access types unless they have the null-excluding attribute.
33595
33596 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
33597 part.
33598
33599 * exp_util.ads: Fix typo in comment
33600
33601 * par.adb (P_Null_Exclusion): New subprogram
33602 (P_Subtype_Indication): New formal that indicates if the null-excluding
33603 part has been scanned-out and it was present
33604
33605 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
33606
33607 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
33608 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
33609 type to force the corresponding run-time check
33610 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
33611 components
33612 (Resolve_Array_Aggregate): Carry out some static checks
33613 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
33614
33615 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
33616 attribute must be set only if specified by means of the null-excluding
33617 part. In addition, we must also propagate the access-constant attribute
33618 if present.
33619 (Access_Subprogram_Declaration, Access_Type_Declaration,
33620 Analyze_Component_Declaration, Analyze_Object_Declaration,
33621 Array_Type_Declaration, Process_Discriminants,
33622 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
33623 and carry out some static checks.
33624 (Build_Derived_Access_Type): Set the null-excluding attribute
33625 (Derived_Type_Declaration, Process_Subtype): Carry out some static
33626 checks.
33627
33628 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
33629
33630 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
33631
33632 * sem_ch6.adb (Process_Formals): Carry out some static checks.
33633 (Set_Actual_Subtypes): Generate null-excluding subtype if the
33634 null-excluding part was present; it is not required to be done here in
33635 case of anonymous access types.
33636 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
33637 value.
33638
33639 * sem_res.adb (Resolve_Actuals): Carry out some static check
33640 (Resolve_Null): Allow null in anonymous access
33641
33642 * sinfo.adb: New subprogram Null_Exclusion_Present
33643 All_Present and Constant_Present available on access_definition nodes
33644
33645 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
33646 object_declaration, derived_type_definition, component_definition,
33647 discriminant_specification, access_to_object_definition,
33648 access_function_definition, allocator, access_procedure_definition,
33649 access_definition, parameter_specification, All_Present and
33650 Constant_Present flags available on access_definition nodes.
33651
336522004-03-29 Robert Dewar <dewar@gnat.com>
33653
33654 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
33655 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
33656 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
33657 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
33658 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
33659 sem_prag.adb: Updates to handle multiple units/file
33660
33661 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
33662
33663 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
33664 sem_util.adb: Minor reformatting
33665
33666 * sem_ch12.adb: Add comment for previous change
33667
336682004-03-29 Laurent Pautet <pautet@act-europe.fr>
33669
33670 * osint.adb (Executable_Prefix): Set Exec_Name to the current
33671 executable name when not initialized. Otherwise, use its current value.
33672
33673 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
33674 initialize it to another executable name than the current one. This
33675 allows to configure paths for an executable name (gnatmake) different
33676 from the current one (gnatdist).
33677
336782004-03-29 Ed Schonberg <schonberg@gnat.com>
33679
33680 * exp_ch6.adb (Expand_Call): A call to a function declared in the
33681 current unit cannot be inlined if it appears in the body of a withed
33682 unit, to avoid order of elaboration problems in gigi.
33683
33684 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
33685 information for protected (wrapper) operation as well, to simplify gdb
33686 use.
33687
33688 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
33689 protected body, indicate that the entity for the generated spec comes
33690 from source, to ensure that references are properly generated for it.
33691 (Build_Body_To_Inline): Do not inline a function that returns a
33692 controlled type.
33693
33694 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
33695 apply convention to homonyms that are declared explicitly.
33696
33697 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
33698 that renames an equality operator and the operands are overloaded,
33699 resolve them with the declared formal types, before rewriting as an
33700 operator.
33701
337022004-03-29 GNAT Script <nobody@gnat.com>
33703
33704 * Make-lang.in: Makefile automatically updated
33705
6d11af89
AC
337062004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
33707
33708 * memtrack.adb: Log realloc calls, which are treated as free followed
33709 by alloc.
33710
337112004-03-25 Vincent Celier <celier@gnat.com>
33712
33713 * prj-makr.adb (Process_Directories): Detect when a file contains
33714 several units. Do not include such files in the config pragmas or
33715 in the naming scheme.
33716
33717 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
33718 Resolve links only when not in Trusted_Mode.
33719 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
33720 Do not resolve links for the display names.
33721
33722 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
33723 resolve links when computing the display names.
33724
337252004-03-25 Thomas Quinot <quinot@act-europe.fr>
33726
33727 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
33728 attribute reference does not denote a subtype, it can be any
33729 expression that has a classwide type, potentially after an implicit
33730 dereference. In particular, the prefix can be a view conversion for
33731 a classwide type (for which Is_Object_Reference holds), but it can
33732 also be a value conversion for an access-to-classwide type. In the
33733 latter case, there is an implicit dereference, and the original node
33734 for the prefix does not verify Is_Object_Reference.
33735
33736 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
33737 conversion of a discriminant-dependent component of a mutable object
33738 is one itself.
33739
337402004-03-25 Ed Schonberg <schonberg@gnat.com>
33741
33742 * freeze.adb (Freeze_Entity): When an inherited subprogram is
33743 inherited, has convention C, and has unconstrained array parameters,
33744 place the corresponding warning on the derived type declaration rather
33745 than the original subprogram.
33746
33747 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
33748 indication on renaming declaration, if formal has a box and actual
33749 is absent.
33750
33751 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
33752 determine whether to generate an implicit or explicit reference to
33753 the renamed entity.
33754
33755 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
33756 subprogram renaming comes from a defaulted formal subprogram in an
33757 instance.
33758
337592004-03-25 Gary Dismukes <dismukes@gnat.com>
33760
33761 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
33762 value expressions to ensure that calls within a component definition
33763 will be checked (since those are evaluated during the record type's
33764 elaboration).
33765
337662004-03-25 Arnaud Charlet <charlet@act-europe.fr>
33767
33768 * s-tpobop.adb: Code clean up:
33769 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
33770 code.
33771 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
33772
337732004-03-25 Jose Ruiz <ruiz@act-europe.fr>
33774
33775 * Makefile.in: Clean up in the ravenscar run time.
33776
22421b79
RK
337772004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33778
33779 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
33780 of No_Strict_Aliasing to build_pointer_type_for_mode.
33781 * utils.c (update_pointer_to): Walk pointer and ref chains.
33782
24105bab
AC
337832004-03-22 Cyrille Comar <comar@act-europe.fr>
33784
33785 * ali.ads: Fix Comment about Dynamic_Elab.
33786
33787 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
33788 Has_RACW, Is_Generic, etc.)
33789 (Output_Object, Gnatls): Take into account ALI files not attached to
33790 an object.
33791
337922004-03-22 Vincent Celier <celier@gnat.com>
33793
33794 * gprep.adb: Change all String_Access to Name_Id
33795 (Is_ASCII_Letter): new function
33796 (Double_File_Name_Buffer): New procedure
33797 (Preprocess_Infile_Name): New procedure
33798 (Process_Files): New procedure
33799 (Gnatprep): Check if output and input are existing directories.
33800 Call Process_Files to do the real job.
33801
338022004-03-22 Robert Dewar <dewar@gnat.com>
33803
33804 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
33805 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
33806
338072004-03-22 Sergey Rybin <rybin@act-europe.fr>
33808
33809 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
33810 case when the source contains only comments.
33811
338122004-03-22 Ed Schonberg <schonberg@gnat.com>
33813
33814 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
33815 declaration for a child subprogram body that acts as a spec, indicate
33816 that the entity in the declaration needs debugging information.
33817
33818 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
33819 full view if the subtype is created for a constrained record component;
33820 gigi has enough information to construct the record, and there is no
33821 place in the tree for the declaration.
33822
33823 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
33824 serial number for the dummy body that is built for analysis, to avoid
33825 inconsistencies in the generation of internal names when compiling
33826 with -gnatN.
33827
338282004-03-22 Thomas Quinot <quinot@act-europe.fr>
33829
33830 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
33831 object.
33832
338332004-03-22 GNAT Script <nobody@gnat.com>
33834
33835 * Make-lang.in: Makefile automatically updated
33836
6fce44af
RK
338372004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33838
33839 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
33840 * trans.c (tree_transform, emit_index_check): Likewise.
33841 * utils.c (build_template): Likewise.
33842 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
33843 (maybe_unconstrained_array, unchecked_convert): Likewise.
33844 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
33845 (build_unary_op): Likewise.
33846 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
33847 (fill_vms_descriptor): Likewise.
33848 (build_call_alloc_dealloc): Likewise.
33849 ALIGN is unsigned.
33850 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
33851
802f6d4b
JM
338522004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
33853
33854 PR other/14630
33855 * gnat_ug.texi: Add info directory category and entry.
33856 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
33857 gnat_ug_wnt.texi: Regenerate.
33858
30f3b32b
AC
338592004-03-19 Arnaud Charlet <charlet@act-europe.fr>
33860
33861 * ada-tree.h: Update copyright notice.
33862 Minor reformatting.
33863
338642004-03-19 Olivier Hainque <hainque@act-europe.fr>
33865
33866 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
33867 as regular exception objects and not as mere integers representing the
33868 condition code. The latter approach required some dynamics to mask off
33869 severity bits, which did not fit well into the GCC table based model.
33870 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
33871 exception data objects. We don't it and it would conflict with the other
33872 external symbol we have to generate for such exceptions.
33873
33874 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
33875 the special code for VMS exceptions, since these are now represented
33876 as regular exceptions objects.
33877
7548281d
RK
338782004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33879
33880 * decl.c (debug_no_type_hash): Remove.
33881 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
33882 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
33883
9e94c78f 338842004-03-19 Laurent Guerby <laurent@guerby.net>
dbee7ab9 33885
90afe2c9 33886 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
dbee7ab9 33887 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
90afe2c9 33888
eb34af89
RK
338892004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33890
33891 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
33892 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
33893 (TYPE_RM_SIZE_INT): Directly use type.values.
33894 (TREE_LOOP_ID): Clean up check.
33895 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
33896 TYPE_VALUES, not TYPE_FIELDS.
33897 * trans.c (convert_with_check): Delay access of bounds of basetype
33898 until sure is numeric.
33899
a336eaca
AC
339002004-03-18 Arnaud Charlet <charlet@act-europe.fr>
33901
33902 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
33903
33904 Code clean up:
33905 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
33906 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
33907 Specific.Set instead of direct call to e.g pthread_setspecific.
33908
339092004-03-18 Thomas Quinot <quinot@act-europe.fr>
33910
33911 * adaint.c: Update comments.
33912
33913 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
33914 GNATLIB_SHARED for FreeBSD.
33915
339162004-03-18 Jose Ruiz <ruiz@act-europe.fr>
33917
33918 * init.c [VxWorks]: Do not fix the stack size for the environment task.
33919 When needed (stack checking) the stack size is retrieved
33920 from the VxWorks kernel.
33921
33922 * Makefile.in: Flag -nostdinc is required when building the run time
33923 for avoiding looking for files in the base compiler.
33924 Add the VxWorks specific version of the package body for
33925 System.Stack_checking.Operations (5zstchop.adb).
33926
33927 * Make-lang.in: Add the object file for
33928 System.Stack_Checking.Operations.
33929
33930 * Makefile.rtl: Add object file for the package
33931 System.Stack_Checking.Operations.
33932
33933 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
33934
33935 * s-stache.ads, s-stache.adb: Move the operations related to stack
33936 checking from this package to package System.Stack_Checking.Operations.
33937 This way, stack checking operations are only linked in the final
33938 executable when using the -fstack-check flag.
33939
339402004-03-18 Doug Rupp <rupp@gnat.com>
33941
33942 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
33943 Reorganize ifeq's.
33944
33945 * 5qsystem.ads, 5xcrtl.ads: New files.
33946
339472004-03-18 Vincent Celier <celier@gnat.com>
33948
33949 * prj.adb (Reset): Reset hash table Files_Htable
33950
33951 * prj-env.adb (Source_Paths, Object_Paths): New tables.
33952 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
33953 the procedures Add_To_Path_File.
33954 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
33955 making sure that each directory is present only once and, for object
33956 dirs, when a directory already present is added, the duplicate is
33957 removed and the directory is always put as the last in the table.
33958 Write the path files at the end of these accumulations.
33959
33960 * prj-nmsc.adb (Record_Source): Add source file name in hash table
33961 Files_Htable for all sources.
33962
33963 * prj-proc.adb (Process): Remove restrictions between not directly
33964 related extending projects.
33965
339662004-03-18 Emmanuel Briot <briot@act-europe.fr>
33967
33968 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
33969 (Find_Sources): Minor speed optimization.
33970
33971 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
33972 parameter Trusted_Mode.
33973
339742004-03-18 Sergey Rybin <rybin@act-europe.fr>
33975
33976 * scn.adb (Determine_License): Take into account a degenerated case
33977 when the source contains only comments.
33978
339792004-03-18 Ed Schonberg <schonberg@gnat.com>
33980
33981 * sem_warn.adb (Check_References): For a warning on a selected
33982 component that does not come from source, locate an uninitialized
33983 component of the record type to produce a more precise error message.
33984
e6f69614
AC
339852004-03-15 Jerome Guitton <guitton@act-europe.fr>
33986
33987 * 3zsoccon.ads: Fix multicast options.
33988
33989 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
33990 in the spec.
33991
339922004-03-15 Robert Dewar <dewar@gnat.com>
33993
33994 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
33995 pragma used for a private type.
33996
33997 * lib-xref.adb (Generate_Reference): Do not generate warning if
33998 reference is in a different unit from the pragma Unreferenced.
33999
34000 * 5vtpopde.adb: Minor reformatting
34001 Fix casing of To_Task_ID
34002
34003 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
34004 flag if we have an unchecked conversion to an access type in the same
34005 unit.
34006
340072004-03-15 Geert Bosch <bosch@gnat.com>
34008
34009 * a-ngcoty.adb (Modulus): In alternate formula for large real or
34010 imaginary parts, use Double precision throughout.
34011
34012 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
34013 we want to be able to compile run-time with -gnata for testing, but
34014 this may also be instantiated in user code that is compiled with -gnata.
34015
340162004-03-15 Olivier Hainque <hainque@act-europe.fr>
34017
34018 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
34019 codes. Having a separate type for this is useful to enforce consistency
34020 throughout the various run-time units.
34021 (Exception_Data): Use Exception_Code for Import_Code.
34022
34023 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
34024 Natural and Integer in various places.
34025 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
34026 with the severity bits masked off.
34027 (Register_VMS_Exception): Handle the additional exception data pointer
34028 argument.
34029
34030 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
34031 component, now reflected by an exported accessor.
34032 (is_handled_by): New routine to compute whether the propagated
34033 occurrence matches some handler choice specification. Extracted out of
34034 get_action_description_for, and expanded to take care of the VMS
34035 specifities.
34036 (get_action_description_for): Use is_handled_by instead of an explicit
34037 complex condition to decide if the current choice at hand catches the
34038 propagated occurrence.
34039
34040 * raise.h (Exception_Code): New type for C.
34041
34042 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
34043 System.Standard_Library.Exception_Code, to allow references from the
34044 pragma import/export expander.
34045
34046 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
34047 New accessors to allow easy access to GNAT exception data
34048 characteristics.
34049 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
34050 redundant Handled_By_Others component, helper for the personality
34051 routine which will now be able to call the appropriate exception data
34052 accessor instead.
34053
34054 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
34055 component of Standard_Exception_Type to be the closest possible to
34056 Exception_Code in System.Standard_Library, that we cannot get at this
34057 point. Expand a ??? comment to notify that this type node should
34058 probably be rewritten later on.
34059
34060 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
34061 registration call to include a pointer to the exception object in the
34062 arguments.
34063
34064 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
34065 instead of int and explicit bitmasks.
34066
340672004-03-15 Vincent Celier <celier@gnat.com>
34068
34069 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
34070 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
34071
34072 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
34073 longer needed now that it is in the spec of
34074 System.Tasking.Task_Attributes.
34075
34076 * adaint.h, adaint.c: (__gnat_create_output_file): New function
34077
34078 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
34079
34080 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
34081
34082 * make.adb (Gnatmake): Do not check the executable suffix; it is being
34083 taken care of in Scan_Make_Arg.
34084 (Scan_Make_Arg): Add the executable suffix only if the argument
34085 following -o, in canonical case, does not end with the executable
34086 suffix. When in verbose mode and executable file name does not end
34087 with executable suffix, output the executable name, in canonical case.
34088
34089 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
34090 to avoid warnings when instantiating Ada.Task_Attributes.
34091 Minor reformating.
34092
34093 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
34094 in the correct order.
34095
34096 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
34097 redirect standard output and error to a file for the invocation of the
34098 compiler, then read the file.
34099
34100 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
34101 directory, instead of the Value.
34102 (Find_Source_Dirs): Remove useless code & comments.
34103
341042004-03-15 Ed Schonberg <schonberg@gnat.com>
34105
34106 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
34107 tagged type is inherited, and the parent operation is not frozen yet,
34108 force generation of a freeze node for the inherited operation, so the
34109 corresponding dispatch entry is properly initialized.
34110 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
34111 when looking for user-defined equality operation.
34112
34113 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
34114 boolean when locating primitive equality of tagged component.
34115
34116 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
34117 bit-aligned field and the right-hand side a string literal, introduce
34118 a temporary before expanding assignment into a loop.
34119
34120 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
34121 priority in full, to ensure that any expanded subepxressions of it are
34122 elaborated in the scope of the init_proc.
34123
34124 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
34125 after object declaration, skipping over code that may have been
34126 generated for validity checks.
34127
34128 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
34129 discriminants, ignore the known discriminants of its full view, if
34130 any, to check legality.
34131
34132 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
34133 component if type has unknown discriminants.
34134 (Analyze_Private_Extension_Declaration): Discriminant constraint is
34135 null if type has unknown discriminants.
34136
34137 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
34138 for end label when present.
34139
34140 * s-fileio.adb (Open): When called with a C_Stream, use given name for
34141 temporary file, rather than an empty string.
34142
341432004-03-15 Ed Falis <falis@gnat.com>
34144
34145 * s-thread.adb: Removed, no longer used.
34146
341472004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34148
34149 * decl.c (target.h): Now include.
34150 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
34151 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
34152 (validate_size): For POINTER_TYPE, get smallest size permitted on
34153 machine.
34154
34155 * fe.h: Sort Einfo decls and add Set_Mechanism.
34156
34157 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
34158 (ada/decl.o): Depends on target.h.
34159
34160 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
34161 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
34162
341632004-03-15 Thomas Quinot <quinot@act-europe.fr>
34164
34165 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
34166
34167 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
34168 Insert_Dereference_Action when rewriting an implicit dereference into
34169 an explicit one, this will be taken care of during expansion of the
34170 explicit dereference.
34171 (Expand_N_Slice): Same. Always do the rewriting, even for the case
34172 of non-packed slices, since the dereference action generated by
34173 expansion of the explicit dereference is needed in any case.
34174 (Expand_N_Selected_Component): When rewriting an implicit dereference,
34175 analyze and resolve the rewritten explicit dereference so it is seen
34176 by the expander.
34177 (Insert_Dereference_Action): This procedure is now called only for the
34178 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
34179 dereferences that do not come from source (including explicit
34180 dereferences resulting from rewriting implicit ones), but do not
34181 recursively insert a check for the dereference nodes contained within
34182 the check.
34183 (Insert_Dereference_Action): Clarify and correct comment.
34184
e4c9c075
PB
341852004-03-08 Paolo Bonzini <bonzini@gnu.org>
34186
34187 PR ada/14131
34188 Move language detection to the top level.
34189 * config-lang.in: Build by default.
34190
8a6a52dc
AC
341912004-03-05 Robert Dewar <dewar@gnat.com>
34192
34193 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
34194
34195 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
34196 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
90afe2c9 34197 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
8a6a52dc
AC
34198 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
34199 unchecked conversion to spec to avoid warnings.
34200
34201 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
34202 to Task_ID
34203
34204 * 7stpopsp.adb: Correct casing in To_Task_ID call
34205
34206 * a-strsea.ads, a-strsea.adb: Minor reformatting
34207
34208 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
34209
34210 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
34211 Adjust Max_Msg_Length to be clearly large enough.
34212
34213 * fe.h: Define In_Same_Source_Unit
34214
34215 * osint.adb: Add pragma Warnings Off to suppress warnings
34216 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
34217 aliasing warnings.
34218
34219 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
34220
34221 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
34222
34223 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
34224
34225 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
34226
34227 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
34228
34229 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
34230 node. We now do generate them for gcc back end.
34231
34232 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
34233 warning.
34234
34235 * sinput-c.adb: Fix bad name in header.
34236 Add pragma Warnings Off to suppress aliasing warning.
34237
34238 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
34239
34240 * snames.h, snames.ads, snames.adb: Add entry for pragma
34241 No_Strict_Aliasing.
34242
342432004-03-05 Vincent Celier <celier@gnat.com>
34244
34245 * prj-com.ads: Add hash table Files_Htable to check when a file name
34246 is already a source of another project.
34247
34248 * prj-nmsc.adb (Record_Source): Before recording a new source, check
34249 if its file name is not already a source of another project. Report an
34250 error if it is.
34251
34252 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
34253 source file name, call gnatpp with all the sources of the main project.
34254
34255 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
34256 of file names.
34257
34258 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
34259 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
34260 /RUNTIME_SYSTEM=, converted to --RTS=
34261 /NOTABS, converted to -notabs
34262
342632004-03-05 Pascal Obry <obry@gnat.com>
34264
34265 * make.adb: Minor reformatting.
34266
342672004-03-05 Ed Schonberg <schonberg@gnat.com>
34268
34269 Part of implemention of AI-262.
34270 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
34271
34272 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
34273 procedure.
34274
34275 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
34276 when component type is a partially constrained class-wide subtype.
34277 (Constrain_Discriminated_Type): If parent type has unknown
34278 discriminants, a constraint is illegal, even if full view has
34279 discriminants.
34280 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
34281 with unknown discriminants whose full view is a discriminated record.
34282
34283 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
34284 flag, to handle properly derivations of tagged types with unknown
34285 discriminants.
34286 (Analyze_Package_Spec, Analyze_Package_Body): Install
34287 Private_With_Clauses before analyzing private part or body.
34288
34289 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
34290 Has_Discriminants can be true for a given type (documentation).
34291
342922004-03-05 Arnaud Charlet <charlet@act-europe.fr>
34293
34294 * s-restri.ads: Fix license (GPL->GMGPL).
34295
34296 * s-tassta.adb: Minor reformatting.
34297
34298 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
34299 by calls to Exit_One_ATC_Level, since additional clean up is performed
34300 by this function.
34301
34302 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
34303 by calls to Exit_One_ATC_Level, since additional clean up is performed
34304 by this function.
34305
343062004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34307
34308 * trans.c: Reflect GCC changes to fix bootstrap problem.
34309 Add warning for suspicious aliasing unchecked conversion.
34310
343112004-03-05 GNAT Script <nobody@gnat.com>
34312
34313 * Make-lang.in: Makefile automatically updated
34314
555360a5
AC
343152004-03-02 Emmanuel Briot <briot@act-europe.fr>
34316
34317 * ali.adb (Read_Instantiation_Instance): Do not modify the
34318 current_file_num when reading information about instantiations, since
34319 this corrupts files in later references.
34320
343212004-03-02 Vincent Celier <celier@gnat.com>
34322
34323 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
34324 before checking if it is read-only.
34325
34326 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
34327 of SRC_DIRS and eliminate duplicates.
34328
34329 * gprcmd.adb: Replace command "path" with command "path_sep" to return
34330 the path separator.
34331 (Usage): Document path_sep
34332
34333 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
34334 C++ compiler. No need for a script.
34335 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
34336 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
34337 subst.
34338
34339 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
34340 where there are Ada sources.
34341 (Set_Ada_Paths): Only add to the include path the source dirs of project
34342 with Ada sources.
34343 (Add_To_Path): Add the Display_Values of the directories, not their
34344 Values.
34345
34346 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
34347 data.
34348
34349 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
34350 is not No_Name.
34351 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
34352 Value is canonicalized.
34353 (Language_Independent_Check): Do not copy Value to Display_Value when
34354 canonicalizing Value.
34355
34356 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
34357 path to find limited with cycles.
34358 (Parse_Single_Project): Use canonical cased path to find the end of a
34359 with cycle.
34360
343612004-03-02 Ed Schonberg <schonberg@gnat.com>
34362
34363 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
34364 and not a child unit.
34365
34366 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
34367 appear in a with_clause.
34368
34369 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
34370 only happen in type_annotate mode, do not try to elaborate it.
34371
34372 * exp_util.adb (Force_Evaluation): If expression is a selected
34373 component on the left of an assignment, use a renaming rather than a
34374 temporary to remove side effects.
34375
34376 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
34377 inlined instance body, which is analyzed before the end of the
34378 enclosing scope.
34379
343802004-03-02 Robert Dewar <dewar@gnat.com>
34381
34382 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
34383 sem_ch4.adb: Use new feature for substitution of keywords in VMS
34384
34385 * errout.ads, errout.adb: Implement new circuit for substitution of
34386 keywords in VMS.
34387
34388 * sem_case.adb (Analyze_Choices): Place message properly when case is
34389 a subtype reference rather than an explicit range.
34390
34391 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
34392
343932004-03-02 Doug Rupp <rupp@gnat.com>
34394
34395 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
34396
343972004-03-02 Thomas Quinot <quinot@act-europe.fr>
34398
34399 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
34400
344012004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34402
34403 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
34404 BLKmode bitfield.
34405
8a7988f5
AC
344062004-02-25 Robert Dewar <dewar@gnat.com>
34407
34408 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
34409 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
34410 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
34411 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
34412 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
34413 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
34414 the defining instance of the type to avoid aliasing problems.
34415 Fix copyright header. Fix bad comments in package header.
34416
34417 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
34418
344192004-02-25 Ed Schonberg <schonberg@gnat.com>
34420
34421 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
34422 rewritten as references when aliased through an address clause.
34423
34424 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
34425 whether call can be interpreted as an indirect call to the result of a
34426 parameterless function call returning an access subprogram.
34427
344282004-02-25 Arnaud Charlet <charlet@act-europe.fr>
34429
34430 Code clean up:
34431 * exp_ch7.adb (Make_Clean): Remove generation of calls to
34432 Unlock[_Entries], since this is now done by Service_Entries directly.
34433
34434 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
34435
34436 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
34437 Requeue_Call for better code readability. Change spec and update calls:
34438 PO_Service_Entries now unlock the PO on exit.
34439 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
34440 PO_Service_Entries.
34441
34442 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
34443
34444 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
34445
344462004-02-25 Sergey Rybin <rybin@act-europe.fr>
34447
34448 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
34449 protected subprogram call and analyzing the result of such expanding
34450 in case when the called protected subprogram is eliminated.
34451
34452 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
34453 names.
34454
344552004-02-25 Jerome Guitton <guitton@act-europe.fr>
34456
34457 * Makefile.in: Clean ups.
34458
6871ba5f
AC
344592004-02-23 Ed Schonberg <schonberg@gnat.com>
34460
34461 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
34462 protected operations if original subprogram is flagged as eliminated.
34463 (Expand_N_Subprogram_Body): For a protected operation, create
34464 discriminals for next operation before checking whether the operation
34465 is eliminated.
34466
34467 * exp_ch9.adb (Expand_N_Protected_Body,
34468 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
34469 for internal protected operations if the original subprogram is
34470 eliminated.
34471
34472 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
34473 declared in a single protected object.
34474
344752004-02-23 Vincent Celier <celier@gnat.com>
34476
34477 * prj-attr.adb: Make attribute Builder'Executable an associative array,
34478 case insensitive if file names are case insensitive, instead of a
34479 standard associative array.
34480
34481 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
34482 them as case insensitive on platforms where the file names are case
34483 sensitive.
34484
34485 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
34486 project file has already been parsed that canonical path are compared.
34487
344882004-02-23 Robert Dewar <dewar@gnat.com>
34489
34490 * sinput-c.ads: Correct bad unit title in header
34491
34492 * freeze.adb: Minor reformatting
34493
344942004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34495
34496 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
34497 nonaddressable COMPONENT_REF that is removing padding that we are
34498 taking the address of, take the address of the padded record instead
34499 if item is variable size.
34500
6e059adb
AC
345012004-02-20 Robert Dewar <dewar@gnat.com>
34502
34503 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
34504
345052004-02-20 Ed Schonberg <schonberg@gnat.com>
34506
34507 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
34508 itype references for the constrained designated type of a component
34509 whose base type is already frozen.
34510
345112004-02-20 Arnaud Charlet <charlet@act-europe.fr>
34512
34513 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
34514 avoid GCC warnings.
34515
345162004-02-20 Sergey Rybin <rybin@act-europe.fr>
34517
34518 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
34519 identifier for a phantom package that rewrites the formal package
34520 declaration with a box. The Add semantic decorations for the defining
34521 identifier from the original node (that represents the formal package).
34522
88e3a2a3
MK
345232004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
34524
34525 * Make-lang.in (ada/stamp-sdefault): Use the top level
34526 move-if-change.
34527
4221057e
RH
345282004-02-19 Richard Henderson <rth@redhat.com>
34529
34530 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
34531
5c1c8a03
AC
345322004-02-18 Emmanuel Briot <briot@act-europe.fr>
34533
34534 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
34535 Scan_ALI can be used for multiple ALI files without reinitializing
34536 between calls.
34537
345382004-02-18 Robert Dewar <dewar@gnat.com>
34539
34540 * debug.adb: Minor reformatting.
34541
345422004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34543
34544 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
34545 to zero if there is an address clause.
34546
345472004-02-18 Thomas Quinot <quinot@act-europe.fr>
34548
34549 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
34550
345512004-02-18 Gary Dismukes <dismukes@gnat.com>
34552
34553 * layout.adb (Layout_Component_List): Revise generation of call to
34554 discriminant-checking function to pass selections of all of the type's
34555 discriminants rather than just the variant-controlling discriminant.
34556
345572004-02-18 Olivier Hainque <hainque@act-europe.fr>
34558
34559 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
34560 fail in the current setup and triggers spurious system error messages.
34561 Pretend it occurred and failed instead.
34562
345632004-02-18 Vincent Celier <celier@gnat.com>
34564
34565 * bld.adb: Mark FLDFLAGS as saved
34566 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
34567 it is not the root project. Put each directory to be
34568 extended between double quotes to prevent it to be expanded on Windows.
34569 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
34570 the project file. Set them back to their initial values if they have not
34571 been set in the project file.
34572
34573 * gprcmd.adb: (Gprdebug, Debug): New global variables
34574 (Display_Command): New procedure
34575 (Usage): Document new command "linkopts"
34576 Call Display_Command when env var GPRDEBUG has the value "TRUE"
34577 Implement new command "linkopts"
34578 Remove quotes that may be around arguments for "extend"
34579 Always call Normalize_Pathname with arguments formatted for the platform
34580
34581 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
34582 Change @echo to @$(display) in target clean to be able to clean silently
34583
34584 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
34585
34586 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
34587 canonical case.
34588
34589 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
34590 = Extending_All when current project is an extending all project.
34591
34592 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
34593 set to True only for LINK command, after Unix switch -o.
34594 (Process_Arguments): Set Output_File_Expected to True for LINK command
34595 after Unix switch -o. When Output_File_Expected is True, never add an
34596 extension to a file name.
34597
34598 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
34599 option file name, only to the --for-linker= switch.
34600 (Option_File_Name): If option file name do not end with ".opt", append
34601 "/OPTIONS".
34602
346032004-02-18 GNAT Script <nobody@gnat.com>
34604
34605 * Make-lang.in: Makefile automatically updated
34606
80bcb4d2
MK
346072004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
34608
34609 * Make-lang.in (stamp-sdefault): Do not depend on
34610 move-if-change.
34611
1daa84b6
ZW
346122004-02-12 Zack Weinberg <zack@codesourcery.com>
34613
34614 * config-lang.in: Disable Ada by default until probe logic for
34615 a bootstrap Ada compiler can be moved to the top level configure
34616 script.
34617
18c0ecbe
AC
346182004-02-12 Olivier Hainque <hainque@act-europe.fr>
34619
34620 * decl.c (components_to_record): Don't claim that the internal fields
34621 we make to hold the variant parts are semantically addressable, because
34622 they are not.
34623
34624 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
34625 adjust the comment describing the modular type form when we can use it.
34626 (Install_PAT): Account for the Esiz renaming.
34627
34628 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
34629 sc_onstack context indication before raising the exception to which
34630 the signal is mapped. Allows better handling of later signals possibly
34631 triggered by the resumed user code if the exception is handled.
34632
346332004-02-12 Arnaud Charlet <charlet@act-europe.fr>
34634
34635 * 5zinit.adb: Removed, no longer used.
34636
346372004-02-12 Robert Dewar <dewar@gnat.com>
34638
34639 * ali.adb: Remove separating space between parameters on R line. Makes
34640 format consistent with format used by the binder for Set_Globals call.
34641
34642 * atree.ads, atree.adb: Minor reformatting (new function header format)
34643
34644 * bindgen.adb: Add Run-Time Globals documentation section containing
34645 detailed documentation of the globals passed from the binder file to
34646 the run time.
34647
34648 * gnatls.adb: Minor reformatting
34649
34650 * init.c (__gnat_set_globals): Add note pointing to documentation in
34651 bindgen.
34652
34653 * lib-writ.ads, lib-writ.adb: Remove separating space between
34654 parameters on R line.
34655 Makes format consistent with format used by the binder for Set_Globals
34656 call.
34657
34658 * osint.ads: Add 2004 to copyright notice
34659 Minor reformatting
34660
34661 * snames.ads: Correct capitalization of FIFO_Within_Priorities
34662 Noticed during code reading, documentation issue only
34663
34664 * usage.adb: Remove junk line for obsolete C switch
34665 Noticed during code reading
34666
346672004-02-12 Vincent Celier <celier@gnat.com>
34668
34669 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
34670 extend for each directory, so that multiple /** directories are
34671 extended individually.
34672 (Recursive_Process): Set the default for LANGUAGES to ada
34673
34674 * gprcmd.adb: Define new command "ignore", to do nothing.
34675 Implement new comment "path".
34676
34677 * Makefile.generic: Suppress output when SILENT is set
34678 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
34679 used, so that the correct compiler is invoked.
34680 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
34681 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
34682
346832004-02-12 Jerome Guitton <guitton@act-europe.fr>
34684
34685 * Makefile.in: Clean ups and remove obsolete targets.
34686
346872004-02-12 Ed Schonberg <schonberg@gnat.com>
34688
34689 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
34690 predicate declared in exp_util.
34691
34692 * exp_util.adb: Add comments.
34693
34694 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
34695 visibility before compiling context of the subunit.
34696
34697 * sem_res.adb (Check_Parameterless_Call): If the context expects a
34698 value but the name is a procedure, do not attempt to analyze as a call,
34699 in order to obtain more telling diagnostics.
34700
34701 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
34702 'Access on parameterless function calls.
34703 (Normalize_Actuals): For a parameterless function call with missing
34704 actuals, defer diagnostic until resolution of enclosing call.
34705
34706 * sem_util.adb (Wrong_Type): If the context type is an access to
34707 subprogram and the expression is a procedure name, suggest a missing
34708 'attribute.
34709
c1dcfa14
AC
347102004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
34711 Nathanael Nerode <neroden@gcc.gnu.org>
34712
6f7f72f9
EB
34713 PR ada/6637
34714 PR ada/5911
c1dcfa14 34715 Merge with libada-branch:
90afe2c9 34716 * config-lang.in: Build libada only when ada is built.
c1dcfa14 34717
2e071734
AC
347182004-02-09 Ed Schonberg <schonberg@gnat.com>
34719
34720 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
34721 for a tagged type, verify that both formals have the same type.
34722
34723 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
34724 temporary when the formal is an in-parameter and the actual a possibly
34725 unaligned slice.
34726
34727 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
34728 when expansion is disabled, to ensure proper name capture with
34729 overloaded literals. Condition can be of any boolean type, resolve
34730 accordingly.
34731
34732 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
34733 renaming is for a formal subprogram with a default operator name, and
34734 there is a usable operator that is visible at the point of
34735 instantiation.
34736
347372004-02-09 Robert Dewar <dewar@gnat.com>
34738
34739 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
34740 rewrite to ignore errors in ali files, intended to allow tools downward
34741 compatibility with new versions of ali files.
34742
34743 * ali.ads: Add new parameter Ignore_Errors
34744
34745 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
34746 duplicating the error message giving the file with restrictions.
34747
34748 * debug.adb: Add debug flag I for gnatbind
34749
34750 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
34751 operators for the case where the operator is a defining operator.
34752
34753 * exp_ch3.adb: Minor reformatting (new function spec format).
34754
34755 * exp_ch4.adb: Add comment for previous change, and make minor
34756 adjustment to loop to always check for improper loop termination.
34757 Minor reformatting throughout (new function spec format).
34758
34759 * gnatbind.adb: Implement -di debug flag for gnatbind
34760
34761 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
34762
34763 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
34764
34765 * lib-load.adb: Fix bad assertion.
34766 Found by testing and code reading.
34767 Minor reformatting.
34768
34769 * lib-load.ads: Minor reformatting.
34770
34771 * lib-writ.adb: There is only one R line now.
34772
34773 * lib-writ.ads: Add documentation on making downward compatible changes
34774 to ali files so old tools work with new ali files.
34775 There is only one R line now.
34776 Add documentation on format incompatibilities (with special GPS note)
34777
34778 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
34779
34780 * par-load.adb: Minor reformatting
34781
34782 * sem_ch8.adb: Fix to error message from last update
34783 Minor reformatting and restructuring of code from last update
34784
34785 * par-prag.adb, snames.adb, snames.ads, snames.h,
34786 sem_prag.adb: Implement pragma Profile.
34787
34788 * stylesw.adb: Implement -gnatyN switch to turn off all style check
34789 options.
34790
34791 * usage.adb: Add line for -gnatyN switch
34792
34793 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
34794
a41ea816
AC
347952004-02-09 Albert Lee <lee@gnat.com>
34796
34797 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
34798
347992004-02-09 Ed Schonberg <schonberg@gnat.com>
34800
34801 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
34802 slices.
34803
34804 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
34805 is nested in an instance that is not frozen yet, to avoid
34806 order-of-elaboration problems in gigi.
34807
34808 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
34809 body the attribute is legal.
34810
348112004-02-09 Robert Dewar <dewar@gnat.com>
34812
34813 * s-rident.ads: Minor comment correction
34814
34815 * targparm.adb: Remove dependence on uintp completely. There was
34816 always a bug in Make in that it called Targparm before initializing
34817 the Uint package. The old code appeared to get away with this, but
34818 the new code did not! This caused an assertion error in gnatmake.
34819
34820 * targparm.ads: Fix bad comment, restriction pragmas with parameters
34821 are indeed fully supported.
34822
725c60f8
AM
348232004-02-06 Alan Modra <amodra@bigpond.net.au>
34824
34825 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
34826
136e64db
KH
348272004-02-05 Kazu Hirata <kazu@cs.umass.edu>
34828
34829 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
34830 with targetm.calls.promote_prototypes.
34831
06effe87
AC
348322004-02-04 Robert Dewar <dewar@gnat.com>
34833
34834 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
34835 ali.ads, gprcmd.adb: Minor reformatting
34836
34837 * bindgen.adb: Output restrictions string for new style restrictions
34838 handling
34839
34840 * impunit.adb: Add s-rident.ads (System.Rident) and
34841 s-restri (System.Restrictions)
34842
34843 * lib-writ.adb: Fix bug in writing restrictions string (last few
34844 entries wrong)
34845
34846 * s-restri.ads, s-restri.adb: Change name Restrictions to
34847 Run_Time_Restrictions to avoid conflict with package name.
34848 Add circuit to read and acquire run time restrictions.
34849
348502004-02-04 Jose Ruiz <ruiz@act-europe.fr>
34851
34852 * restrict.ads, restrict.adb: Use the new restriction
34853 No_Task_Attributes_Package instead of the old No_Task_Attributes.
34854
34855 * sem_prag.adb: No_Task_Attributes is a synonym of
34856 No_Task_Attributes_Package.
34857
34858 * snames.ads, snames.adb: New entry for proper handling of
34859 No_Task_Attributes.
34860
34861 * s-rident.ads: Adding restriction No_Task_Attributes_Package
34862 (AI-00249) that supersedes the GNAT specific restriction
34863 No_Task_Attributes.
34864
348652004-02-04 Ed Schonberg <schonberg@gnat.com>
34866
90afe2c9 34867 * sem_prag.adb:
06effe87
AC
34868 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
34869 body, an identifier may be wrapped in an unchecked conversion.
34870
348712004-02-04 Vincent Celier <celier@gnat.com>
34872
34873 * lib-writ.ads: Comment update for the W lines
34874
34875 * bld.adb: (Expression): An empty string list is static
34876
34877 * fname-uf.adb: Minor comment update
34878
34879 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
34880
34881 * gnatbind.adb: Initialize Cumulative_Restrictions with the
34882 restrictions on the target.
34883
2fb00d7f
KH
348842004-02-03 Kazu Hirata <kazu@cs.umass.edu>
34885
34886 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
34887 gen_rtx.
34888
5ed23e25
AC
348892004-02-02 Arnaud Charlet <charlet@gnat.com>
34890
34891 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
34892
6e937c1c
AC
348932004-02-02 Vincent Celier <celier@gnat.com>
34894
34895 * gprcmd.adb (Check_Args): If condition is false, print the invoked
34896 comment before the usage.
34897 Gprcmd: Fail when command is not recognized.
34898 (Usage): Document command "prefix"
34899
34900 * g-md5.adb (Digest): Process last block.
34901 (Update): Do not process last block. Store remaining characters and
34902 length in Context.
34903
34904 * g-md5.ads (Update): Document that several call to update are
34905 equivalent to one call with the concatenated string.
34906 (Context): Add fields to allow new Update behaviour.
34907
34908 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
34909 defaulted to False.
34910 When May_Fail is True and no existing file can be found, return No_File.
34911
34912 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
34913 functions.
34914
34915 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
34916 spec file name instead on the W line.
34917
349182004-02-02 Robert Dewar <dewar@gnat.com>
34919
34920 * ali.adb: Read and acquire info from new format restrictions lines
34921
34922 * bcheck.adb: Add circuits for checking restrictions with parameters
34923
34924 * bindgen.adb: Output dummy restrictions data
34925 To be changed later
34926
34927 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
34928 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
34929 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
34930 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
34931 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
34932
34933 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
34934 the warning message on access to possibly uninitialized variable S)
34935 Minor changes for new restrictions handling.
34936
34937 * gnatbind.adb: Minor reformatting
34938 Minor changes for new restrictions handling
34939 Move circuit for -r processing here from bcheck (cleaner)
34940
34941 * gnatcmd.adb, gnatlink.adb: Minor reformatting
34942
34943 * lib-writ.adb: Output new format restrictions lines
34944
34945 * lib-writ.ads: Document new R format lines for new restrictions
34946 handling.
34947
34948 * s-restri.ads/adb: New files
34949
34950 * Makefile.rtl: Add entry for s-restri.ads/adb
34951
34952 * par-ch3.adb: Fix bad error messages starting with upper case letter
34953 Minor reformatting
34954
34955 * restrict.adb: Major rewrite throughout for new restrictions handling
34956 Major point is to handle restrictions with parameters
34957
34958 * restrict.ads: Major changes in interface to handle restrictions with
34959 parameters. Also generally simplifies setting of restrictions.
34960
34961 * snames.ads/adb: New entry for proper handling of No_Requeue
34962
34963 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
34964 restriction counting.
34965 Other minor changes for new restrictions handling
34966
34967 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
34968 Restriction_Warnings now allows full parameter notation
34969 Major rewrite of Restrictions for new restrictions handling
34970
349712004-02-02 Javier Miranda <miranda@gnat.com>
34972
34973 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
34974 syntax rule for object renaming declarations.
34975 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
34976 component definitions.
34977
34978 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
34979 components.
34980 (Array_Type_Declaration): Give support to access components. In addition
34981 it was also modified to reflect the name of the object in anonymous
34982 array types. The old code did not take into account that it is possible
34983 to have an unconstrained anonymous array with an initial value.
34984 (Check_Or_Process_Discriminants): Allow access discriminant in
34985 non-limited types.
34986 (Process_Discriminants): Allow access discriminant in non-limited types
34987 Initialize the new Access_Definition field in N_Object_Renaming_Decl
34988 node. Change Ada0Y to Ada 0Y in comments
34989
34990 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
34991 equality operators.
34992 Change Ada0Y to Ada 0Y in comments
34993
34994 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
34995 renamings Change Ada0Y to Ada 0Y in comments
34996
34997 * sem_type.adb (Find_Unique_Type): Give support to the equality
34998 operators for universal access types
34999 Change Ada0Y to Ada 0Y in comments
35000
35001 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
35002
35003 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
35004 field.
35005 (N_Object_Renaming_Declaration): Addition of Access_Definition field
35006 Change Ada0Y to Ada 0Y in comments
35007
35008 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
35009 component definition and object renaming nodes
35010 Change Ada0Y to Ada 0Y in comments
35011
350122004-02-02 Jose Ruiz <ruiz@act-europe.fr>
35013
35014 * restrict.adb: Use the new restriction identifier
35015 No_Requeue_Statements instead of the old No_Requeue for defining the
35016 restricted profile.
35017
35018 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
35019 No_Requeue_Statements.
35020
35021 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
35022 that supersedes the GNAT specific restriction No_Requeue. The later is
35023 kept for backward compatibility.
35024
350252004-02-02 Ed Schonberg <schonberg@gnat.com>
35026
35027 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
35028 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
35029 pragma and fix incorrect ones.
35030
35031 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
35032 warning if the pragma is redundant.
35033
350342004-02-02 Thomas Quinot <quinot@act-europe.fr>
35035
35036 * 5staprop.adb: Add missing 'constant' keywords.
35037
35038 * Makefile.in: use consistent value for SYMLIB on
35039 platforms where libaddr2line is supported.
35040
350412004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35042
35043 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
35044 annotating types.
35045
350462004-02-02 Olivier Hainque <hainque@act-europe.fr>
35047
35048 * init.c (__gnat_install_handler): Setup an alternate stack for signal
35049 handlers in the environment thread. This allows proper propagation of
35050 an exception on stack overflows in this thread even when the builtin
35051 ABI stack-checking scheme is used without support for a stack reserve
35052 region.
35053
35054 * utils.c (create_field_decl): Augment the head comment about bitfield
35055 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
35056 here, because the former is not accurate enough at this point.
35057 Let finish_record_type decide instead.
35058 Don't make a bitfield if the field is to be addressable.
35059 Always set a size for the field if the record is packed, to ensure the
35060 checks for bitfield creation are triggered.
35061 (finish_record_type): During last pass over the fields, clear
35062 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
35063 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
35064 from DECL_BIT_FIELD.
35065
71cbe2c1
KC
350662004-01-30 Kelley Cook <kcook@gcc.gnu.org>
35067
90afe2c9 35068 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
71cbe2c1
KC
35069 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
35070 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
35071
7f996f90
RO
350722004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
35073
35074 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
35075
35076 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
35077 (ZCX_By_Default): Likewise.
35078 (Front_End_ZCX_Support): Likewise.
35079
35080 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
35081 (Initialize_Lock): Mark Level unreferenced.
35082 (Sleep): Mark Reason unreferenced.
35083 (Timed_Sleep): Likewise.
35084 (Wakeup): Likewise.
35085 (Exit_Task): Use Result.
35086 (Check_No_Locks): Mark Self_ID unreferenced.
90afe2c9 35087
7f996f90
RO
35088 * 5gtasinf.adb (New_Sproc): Make Attr constant.
35089 (Bound_Thread_Attributes): Make Sproc constant.
35090 (New_Bound_Thread_Attributes): Likewise.
35091
26fd4eae
AC
350922004-01-26 Ed Schonberg <schonberg@gnat.com>
35093
35094 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
35095 one-dimensional array an slice assignments, when component type is
35096 controlled.
35097
35098 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
35099 component type is controlled, and control_actions are in effect, use
35100 TSS procedure rather than generating inline code.
35101
35102 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
35103 arrays with controlled components.
35104
351052004-01-26 Vincent Celier <celier@gnat.com>
35106
35107 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
35108 command line for the non VMS case.
35109
35110 * gnatlink.adb (Process_Binder_File): When building object file, if
35111 GNU linker is used, put all object paths between quotes, to prevent ld
35112 error when there are unusual characters (such as '!') in the paths.
35113
35114 * Makefile.generic: When there are sources in Ada and the main is in
35115 C/C++, invoke gnatmake with -B, instead of -z.
35116
35117 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
35118 from VMS_Conversion.
35119 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
35120 specification of argument file on the command line.
35121
351222004-01-26 Bernard Banner <banner@gnat.com>
35123
35124 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
35125
351262004-01-26 Ed Schonberg <schonberg@gnat.com>
35127
35128 * snames.adb: Update copyright notice.
35129 Add info on slice assignment for controlled arrays.
35130
b7e429ab
AC
351312004-01-23 Robert Dewar <dewar@gnat.com>
35132
35133 * exp_aggr.adb: Minor reformatting
35134
35135 * exp_ch9.adb: Minor code clean up
35136 Minor reformatting
35137 Fix bad character in comment
35138
35139 PR ada/13471
35140 * targparm.adb (Get_Target_Parameters): Give clean abort error on
35141 unexpected end of file, along with more detailed message.
35142
351432004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35144
35145 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
35146 PAT.
35147
35148 * decl.c (copy_alias_set): New function.
35149 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
35150
351512004-01-23 Doug Rupp <rupp@gnat.com>
35152
35153 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
35154 lib$${file} in case subsequent character is not a separator.
35155
351562004-01-23 Vincent Celier <celier@gnat.com>
35157
35158 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
35159 when the GCC version is at least 3.
35160
35161 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
35162 Remove all "Opt.", to prepare for opt split
35163
35164 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
35165 Extends_All. Set to True when the project parsed is an extending all
35166 project. Fails for importing an extending all project only when the
35167 imported project is an extending all project.
35168 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
35169 depending on the value of Extends_All returned.
35170
35171 * prj-proc.adb (Process): Check that no project shares its object
35172 directory with a project that extends it, directly or indirectly,
35173 including a virtual project.
35174 Check that no project extended by another project shares its object
35175 directory with another also extended project.
35176
35177 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
35178 Kind = N_With_Clause
35179
35180 * prj-tree.ads: Minor reformatting
35181 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
35182
351832004-01-23 Ed Schonberg <schonberg@gnat.com>
35184
35185 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
35186 applies to a type with an incomplete view, use full view in Name of
35187 clause, for consistency with uses of Get_Attribute_Definition_Clause.
35188
351892004-01-23 Arnaud Charlet <charlet@act-europe.fr>
35190
35191 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
35192 SCHED_RR, since other values are not supported by this policy.
35193 (Initialize): Move initialization of mutex attribute to package
35194 elaboration, to prevent early access to this variable.
35195
35196 * Makefile.in: Remove mention of Makefile.adalib, unused.
35197
b291953f
AC
35198 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
35199 1ssecsta.ads: Removed, unused.
b7e429ab 35200
adc04486
AC
352012004-01-21 Javier Miranda <miranda@gnat.com>
35202
35203 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
35204 entity if already built in the current scope.
35205
35206 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
35207 reminder in internal scopes. Required for nested limited aggregates.
35208
352092004-01-21 Doug Rupp <rupp@gnat.com>
35210
35211 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
35212 VMS. Replace all occurences of libgnat- and libgnarl- with
35213 libgnat$(hyphen) and libgnarl$(hyphen).
35214 Fixed shared library build problem on VMS.
35215
352162004-01-21 Robert Dewar <dewar@gnat.com>
35217
35218 * mlib-prj.adb: Minor reformatting
35219
352202004-01-21 Thomas Quinot <quinot@act-europe.fr>
35221
35222 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
35223 'constant' keywords for declaration of pointers that are not modified.
35224
35225 * exp_pakd.adb: Fix English in comment.
35226
352272004-01-21 Ed Schonberg <schonberg@gnat.com>
35228
35229 PR ada/10889
35230 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
35231 copy all attributes of the parent, including the foreign language
35232 convention.
35233
352342004-01-21 Sergey Rybin <rybin@act-europe.fr>
35235
35236 PR ada/10565
35237 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
35238 for 'delay until' statement.
35239
a541f69d
KC
352402004-01-20 Kelley Cook <kcook@gcc.gnu.org>
35241
35242 * Make-lang.in: Replace $(docdir) with doc.
35243 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
35244 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
35245 to use consistent MAKEINFO rule.
35246 (ada.man, ada.srcman): Dummy entry.
35247 (ADA_INFOFILES): Define.
35248 (ada.info, ada.srcinfo): New rules.
35249
c01a9391
AC
352502004-01-19 Arnaud Charlet <charlet@act-europe.fr>
35251
35252 * utils.c: Update copyright notice, missed in previous change.
35253
352542004-01-19 Vincent Celier <celier@gnat.com>
35255
35256 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
35257 args if Bind is True. Set First_ALI, if not already done.
35258 (Build_Library): For Stand Alone Libraries, extract from one ALI file
35259 an eventual --RTS switch, for gnatbind, and all backend switches +
35260 --RTS, for linking.
35261
352622004-01-19 Robert Dewar <dewar@gnat.com>
35263
35264 * sem_attr.adb, memtrack.adb: Minor reformatting
35265
352662004-01-19 Ed Schonberg <schonberg@gnat.com>
35267
35268 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
35269 that rename enumeration literals. This is properly done in sem_eval.
35270
35271 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
35272 to functions that rename enumeration literals.
35273
35274 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
35275 functions that rename enumeration literals.
35276
510d1e80
KH
352772004-01-16 Kazu Hirata <kazu@cs.umass.edu>
35278
35279 * Make-lang.in (utils.o): Depend on target.h.
35280 * utils.c: Include target.h.
35281 (process_attributes): Use targetm.have_named_sections instead
35282 of ASM_OUTPUT_SECTION_NAME.
35283
fbf3e0dd
AJ
352842004-01-16 Andreas Jaeger <aj@suse.de>
35285
35286 * Makefile.in: Add $(DESTDIR).
35287
acd47d2a
AC
352882004-01-15 Olivier Hainque <hainque@act-europe.fr>
35289
35290 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
35291 also when not defining if a Size clause applies. That information is
35292 not to be ignored.
35293
352942004-01-15 Arnaud Charlet <charlet@act-europe.fr>
35295
35296 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
35297 symbolic links for the shared gnat run time when needed.
35298
352992004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
35300
35301 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
35302 for writing, and terminate with an error message if not.
35303
353042004-01-15 Ed Schonberg <schonberg@gnat.com>
35305
35306 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
35307 warning on an access to subprogram in an instance, when the target
35308 type is declared in the same generic unit.
35309 (Eval_Attribute): If 'access is known to fail accessibility check,
35310 rewrite as a raise statement.
35311
353122004-01-15 GNAT Script <nobody@gnat.com>
35313
35314 * Make-lang.in: Makefile automatically updated
35315
03787dfd
KC
353162004-01-15 Kelley Cook <kcook@gcc.gnu.org>
35317
35318 * Make-lang.in (ada.srcextra): Dummy entry.
35319
73e232f0
KC
353202004-01-14 Kelley Cook <kcook@gcc.gnu.org>
35321
35322 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
35323
9bc43c53
AC
353242004-01-13 Ed Schonberg <schonberg@gnat.com>
35325
35326 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
35327 components that are initialized with aggregates.
35328
353292004-01-13 Vincent Celier <celier@gnat.com>
35330
35331 * gnatlink.adb (Process_Binder_File): To find directory of shared
35332 libgcc, if "gcc-lib" is not a subdirectory, look for the last
35333 subdirectory "lib" in the path of the shared libgnat or libgnarl.
35334
35335 * make.adb (Gnatmake): If GCC version is at least 3, link with
35336 -shared-libgcc, when there is at least one shared library project.
35337
35338 * opt.ads (GCC_Version): New integer constant.
35339
35340 * adaint.c (get_gcc_version): New function.
35341
353422004-01-13 Robert Dewar <dewar@gnat.com>
35343
35344 * sem_dist.adb, sem_res.adb, sem_util.adb,
35345 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
35346 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
35347
353482004-01-13 Thomas Quinot <quinot@act-europe.fr>
35349
35350 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
35351 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
35352 declarations.
35353
8b52de7b
AC
353542004-01-12 Arnaud Charlet <charlet@act-europe.fr>
35355
f6ea0188
AC
35356 * misc.c: Remove trailing spaces.
35357 Update copyright notice missed in previous change.
35358
8b52de7b
AC
35359 PR ada/13572
35360 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
35361 prefix/share/make
35362
35363 * Makefile.generic: Update copyright.
35364 Add license notice.
35365
35366 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
35367 of prefix/share/make.
35368
35369 * Makefile.prolog: Update copyright.
35370 Add license notice.
35371
353722004-01-12 Laurent Pautet <pautet@act-europe.fr>
35373
35374 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
35375 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
35376 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
35377 instead of String.
35378
35379 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
35380 signature.
35381
353822004-01-12 Javier Miranda <miranda@gnat.com>
35383
35384 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
35385 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
35386 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
35387 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
35388 Component_Definition node.
35389
353902004-01-12 Ed Falis <falis@gnat.com>
35391
35392 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
35393
353942004-01-12 Thomas Quinot <quinot@act-europe.fr>
35395
35396 * link.c: Change default libgnat kind to STATIC for FreeBSD.
35397
353982004-01-12 Bernard Banner <banner@gnat.com>
35399
35400 * Makefile.in: map 86numaux to a-numaux for x86_64
35401
354022004-01-12 Ed Schonberg <schonberg@gnat.com>
35403
35404 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
35405 generated to rename a generic actual, go to the actual itself, the
35406 subtype is not a user-visible entity.
35407
35408 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
35409 part is a private subtype, reset the visibility of its full view, if
35410 any, to be consistent.
35411
35412 PR ada/13417
35413 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
35414 to use a generic package G as a formal package for another generic
35415 declared within G.
35416
354172004-01-12 Robert Dewar <dewar@gnat.com>
35418
35419 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
35420
35421 * usage.adb: Remove mention of obsolete -gnatwb switch
35422 Noticed during code reading
35423
354242004-01-12 Jerome Guitton <guitton@act-europe.fr>
35425
35426 * 1ssecsta.adb: Minor changes for -gnatwa warnings
35427
354282004-01-12 GNAT Script <nobody@gnat.com>
35429
35430 * Make-lang.in: Makefile automatically updated
35431
0fab64a3
MM
354322004-01-09 Mark Mitchell <mark@codesourcery.com>
35433
35434 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
35435
47527624
RO
354362004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
35437
35438 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
35439
dedebde1
KC
354402004-01-05 Kelley Cook <kcook@gcc.gnu.org>
35441
fbf3e0dd 35442 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
dedebde1
KC
35443 Update comment and copyright date.
35444 * stamp-xgnatug: Delete.
35445
91b1417d
AC
354462004-01-05 Robert Dewar <dewar@gnat.com>
35447
35448 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
35449 be modified by the binder generated main program if the -D switch is
35450 used.
35451
35452 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
35453 imported functions (since now we expect this to be done for imported
35454 functions)
35455
35456 * 5vtaprop.adb: Add several ??? for sections requiring more comments
35457 Minor reformatting throughout
35458
35459 * 5zinit.adb: Minor reformatting
35460 Add 2004 to copyright date
35461 Minor changes to avoid -gnatwa warnings
35462 Correct some instances of using OR instead of OR ELSE (noted while
35463 doing reformatting)
35464
35465 * sprint.adb: Minor updates to avoid -gnatwa warnings
35466
fbf3e0dd 35467 * s-secsta.ads, s-secsta.adb:
91b1417d
AC
35468 (SS_Get_Max): New function to obtain high water mark for ss stack
35469 Default_Secondary_Stack is not a constant since it may be modified by
35470 the binder generated main program if the -D switch is used.
35471
35472 * switch-b.adb: New -Dnnn switch for binder
35473
fbf3e0dd 35474 * switch-c.adb:
91b1417d
AC
35475 Make -gnatg imply all warnings currently in -gnatwa
35476
35477 * vms_conv.adb: Minor reformatting
35478 Add 2004 to copyright notice
35479 Add 2004 to printed copyright notice
35480
35481 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
35482 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
35483 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
35484 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
35485 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
35486 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
35487 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
35488 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
35489 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
35490 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
35491 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
35492 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
35493 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
35494 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
35495 checks.adb, clean.adb, cstand.adb, einfo.ads,
35496 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
35497 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
35498 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
35499 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
35500 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
35501 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
35502 Minor reformatting and code clean ups.
35503 Minor changes to prevent -gnatwa warnings
35504
35505 * ali.adb: Minor reformatting and cleanup of code
35506 Acquire new SS indication of secondary stack use from ali files
35507
35508 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
35509 (since now we expect this to be done for imported functions)
35510
35511 * bindgen.adb: Generate call to modify default secondary stack size if
35512 -Dnnn switch given
35513
35514 * bindusg.adb: Add line for new -D switch
35515
35516 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
35517 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
35518 Add circuitry for both records and arrays to avoid gigi
35519 processing if the type involved has non-bit-aligned components
35520
35521 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
35522 N_String_Literal node always references an E_String_Literal_Subtype
35523 entity. This may not be true in the future.
35524 (Possible_Bit_Aligned_Component): Move processing of
35525 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
35526
35527 * exp_ch6.adb (Expand_Thread_Body): Pick up
35528 Default_Secondary_Stack_Size as variable so that we get value modified
35529 by possible -Dnnn binder parameter.
35530
35531 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
35532 (Type_May_Have_Bit_Aligned_Components): New function.
35533
35534 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
35535 (Type_May_Have_Bit_Aligned_Components): New function.
35536
35537 * fe.h: (Set_Identifier_Casing): Fix prototype.
35538 Add declaration for Sem_Elim.Eliminate_Error_Msg.
35539 Minor reformatting.
35540
35541 * freeze.adb (Freeze_Entity): Add RM reference to error message about
35542 importing constant atomic/volatile objects.
35543 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
35544 unless explicit Pure_Function pragma given, to avoid insidious bug of
35545 call to non-pure imported function getting eliminated.
35546
35547 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
35548 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
35549 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
35550 Add 2004 to printed copyright notice
35551
35552 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
35553 stack used.
35554
35555 * Makefile.rtl: Add entry for g-sestin.o
35556 g-sestin.ads: New file.
35557
35558 * mdll.adb: Minor changes to avoid -gnatwa warnings
35559
35560 * mlib-tgt.adb: Minor reformatting
35561
35562 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
35563 New switch Sec_Stack_Used (GNAT, GNATBIND)
35564 Make Default_Secondary_Stack_Size a variable instead of a constant,
35565 so that it can be modified by the new -Dnnn bind switch.
35566
35567 * rtsfind.adb (Load_Fail): Give full error message in configurable
35568 run-time mode if all_errors mode is set. This was not done in the case
35569 of a file not found, which was an oversight.
35570 Note if secondary stack unit is used by compiler.
35571
35572 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
35573 ineffective elaborate all pragmas on non-visible packages (this
35574 happened when a renamed subprogram was called). Now the elaborate all
35575 always goes on the package containing the renaming rather than the one
35576 containing the renamed subprogram.
35577
35578 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
35579 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
35580
35581 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
35582 has an Etype that references an E_String_Literal.
35583 (Eval_String_Literal): Avoid assumption that N_String_Literal node
35584 always references an E_String_Literal_Subtype entity. This may not
35585 be true in the future.
35586
35587 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
35588 pragma location.
35589
35590 * sem_res.adb (Resolve): Specialize msg for function name used in proc
35591 call.
35592
355932004-01-05 Ed Falis <falis@gnat.com>
35594
35595 * g-debuti.adb: Replaced direct boolean operator with short-circuit
35596 form.
35597
355982004-01-05 Vincent Celier <celier@gnat.com>
35599
35600 * bld.adb: Minor comment updates
35601 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
35602 of Item_Name).
35603
35604 * make.adb (Gnatmake): Special process for files to compile/check when
35605 -B is specified. Fail when there are only foreign mains in attribute
35606 Main of the project file and -B is not specified. Do not skip bind/link
35607 steps when -B is specified.
35608
35609 * makeusg.adb: Document new switch -B
35610
35611 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
35612
35613 * switch-m.adb: (Scan_Make_Switches): Process -B switch
35614
35615 * vms_data.ads: Add new GNAT PRETTY qualifier
35616 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
35617
356182004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35619
35620 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
35621 case.
35622
35623 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
35624 Set_Identifier_Casing.
35625
35626 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
35627 has size that overflows.
35628
356292004-01-05 Gary Dismukes <dismukes@gnat.com>
35630
35631 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
35632 -gnatwa warning on static condition.
35633
356342004-01-05 Doug Rupp <rupp@gnat.com>
35635
35636 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
35637
356382004-01-05 Arnaud Charlet <charlet@act-europe.fr>
35639
35640 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
35641 all attributes, including read-only attribute.
35642
356432004-01-05 Pascal Obry <obry@gnat.com>
35644
35645 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
35646 library naming scheme.
35647
35648 * mlib-prj.adb (Build_Library): Generate different names for the static
35649 or dynamic version of the GNAT runtime. This is needed to support the
35650 new shared library naming scheme.
35651 (Process_Binder_File): Add detection of shared library in binder file
35652 based on the new naming scheme.
35653
35654 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
35655 scheme for the shared runtime libraries.
35656
35657 * Makefile.in:
35658 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
35659 scheme.
35660 (install-gnatlib): Do not create symlinks for shared libraries.
35661 (gnatlib-shared-default): Idem.
35662 (gnatlib-shared-dual-win32): New target. Not used for now as the
35663 auto-import feature does not support arrays/records.
35664 (gnatlib-shared-win32): Do not create copy for the shared libraries.
35665 (gnatlib-shared-vms): Fix shared runtime libraries names.
35666
35667 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
35668 dependent runtime shared library name.
35669
356702004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
35671
35672 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
35673 than the object.
35674
356752004-01-05 Ed Schonberg <schonberg@gnat.com>
35676
35677 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
35678 protected objects when allocator has a subtype indication, not a
35679 qualified expression. Note that qualified expressions may have to be
35680 checked when limited aggregates are implemented.
35681
35682 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
35683 pure, emit warning.
35684 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
35685 subprogram is imported, remove warning.
35686
356872004-01-05 Geert Bosch <bosch@gnat.com>
35688
35689 * s-poosiz.adb: Update copyright notice.
35690 (Allocate): Use Task_Lock to protect against concurrent access.
35691 (Deallocate): Likewise.
35692
356932004-01-05 Joel Brobecker <brobecker@gnat.com>
35694
35695 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
35696 comment.
35697
2ab127f3
KC
356982003-12-23 Kelley Cook <kcook@gcc.gnu.org>
35699
35700 * gnat_ug.texi: Force a CVS commit by updating copyright.
35701 * gnat_ug_vxw.texi: Regenerate.
35702 * gnat_ug_wnt.texi: Regenerate.
35703 * gnat_ug_vms.texi: Regenerate.
35704 * gnat_ug_unx.texi: Regenerate.
35705
aed8bfdc
KH
357062003-12-20 Kazu Hirata <kazu@cs.umass.edu>
35707
35708 * trans.c: Remove uses of "register" specifier in
35709 declarations of local variables.
35710
90c2f1de
KC
357112003-12-18 Kelley Cook <kcook@gcc.gnu.org>
35712
35713 * stamp-xgnatug: New stamp file.
35714 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
35715 (ada/doctools/xgnatug): Add $(build_exeext).
35716 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
35717 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
35718
891a6e79
AC
357192003-12-17 Ed Falis <falis@gnat.com>
35720
35721 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
35722 eliminate warning.
35723
35724 * a-exextr.adb: Add context clause for
35725 Ada.Exceptions.Last_Chance_Handler.
35726
357272003-12-17 Sergey Rybin <rybin@act-europe.fr>
35728
35729 * cstand.adb (Create_Standard): Change the way how the declaration of
35730 the Duration type is created (making it the same way as it is for all
35731 the other standard types).
35732
357332003-12-17 Robert Dewar <dewar@gnat.com>
35734
35735 * s-crtl.ads: Fix header format
35736 Change Pure to Preelaborate
35737
357382003-12-17 Ed Schonberg <schonberg@gnat.com>
35739
35740 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
35741 the expression type only if it is declared in the current unit.
35742
35743 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
35744 are universal and already analyzed, as can occur in constrained
35745 subcomponents that depend on discriminants, when one constraint is a
35746 subtype mark.
35747
35748 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
35749 type Any_Fixed is legal as the argument of a conversion, if only one
35750 fixed-point type is in context.
35751
357522003-12-17 GNAT Script <nobody@gnat.com>
35753
35754 * Make-lang.in: Makefile automatically updated
35755
209db2bf
AC
357562003-12-15 Robert Dewar <dewar@gnat.com>
35757
35758 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
35759 sec stack size.
35760
357612003-12-15 Vincent Celier <celier@gnat.com>
35762
35763 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
35764 (Gnatchop): Do not set failure status when reporting the number of
35765 warnings.
35766
357672003-12-15 Doug Rupp <rupp@gnat.com>
35768
35769 * s-ctrl.ads: New file.
35770
35771 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
35772
35773 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
35774 (GNATBIND_OBJS): Add ada/s-crtl.o.
35775
35776 * Makefile.in [VMS]: Clean up ifeq rules.
35777
35778 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
35779 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
35780 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
35781 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
35782 s-tasdeb.adb: Update copyright.
35783 Import System.CRTL.
35784 Make minor modifications to use System.CRTL declared functions instead
35785 of importing locally.
35786
357872003-12-15 GNAT Script <nobody@gnat.com>
35788
35789 * Make-lang.in: Makefile automatically updated
35790
a9f4e3d2
AC
357912003-12-11 Ed Falis <falis@gnat.com>
35792
35793 * 5zinit.adb: Clean up.
35794
35795 * 5zintman.adb (Notify_Exception): replaced case statement with a call
35796 to __gnat_map_signal, imported from init.c to support
35797 signal -> exception mappings that depend on the vxWorks version.
35798
fbf3e0dd 35799 * init.c:
a9f4e3d2
AC
35800 Created and exported __gnat_map_signal to support signal -> exception
35801 mapping that is dependent on the VxWorks version.
35802 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
35803
358042003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
35805
35806 * 5wosinte.ads: Link with -mthreads switch.
35807
358082003-12-11 Arnaud Charlet <charlet@act-europe.fr>
35809
35810 * init.c (__gnat_install_handler [NetBSD]): Set
35811 __gnat_handler_installed, as done on all other platforms.
35812 Remove duplicated code.
35813
358142003-12-11 Jerome Guitton <guitton@act-europe.fr>
35815
35816 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
35817
358182003-12-11 Thomas Quinot <quinot@act-europe.fr>
35819
35820 * sinfo.ads: Fix inconsistent example code in comment.
35821
358222003-12-11 Robert Dewar <dewar@gnat.com>
35823
35824 * a-tiinau.adb: Add a couple of comments
35825
35826 * sem_ch3.adb: Minor reformatting
35827
fbf3e0dd 35828 * sem_prag.adb:
a9f4e3d2
AC
35829 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
35830 Minor reformatting throughout
35831
358322003-12-11 Ed Schonberg <schonberg@gnat.com>
35833
35834 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
35835 bounds of a loop, create a separate block in order to generate proper
35836 cleanup actions to prevent memory leaks.
35837
35838 * sem_res.adb (Resolve_Call): After a call to
35839 Establish_Transient_Scope, the call may be rewritten and relocated, in
35840 which case no further processing is needed.
35841
35842 * sem_util.adb: (Wrong_Type): Refine previous fix.
35843 Fixes ACATS regressions.
35844
35845 PR ada/13353
a9f4e3d2
AC
35846 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
35847 be inlined.
35848
c45b6ae0
AC
358492003-12-08 Jerome Guitton <guitton@act-europe.fr>
35850
35851 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
35852 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
35853 obsolete files.
35854
35855 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
35856 (rts-zfp): Ditto.
35857
358582003-12-08 Robert Dewar <dewar@gnat.com>
35859
35860 * 7sintman.adb: Minor reformatting
35861
35862 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
35863 standard linker options to get standard libraries linked. We now plan
35864 to provide dummy versions of these libraries to match the appropriate
35865 configurable run-time (e.g. if a library is not needed at all, provide
35866 a dummy empty library).
35867
35868 * targparm.ads: Configurable_Run_Time mode no longer affects linker
35869 options (-L parameters and standard libraries). What we plan to do is
35870 to provide dummy libraries where the libraries are not required.
35871
35872 * gnatbind.adb: Minor comment improvement
35873
358742003-12-08 Javier Miranda <miranda@gnat.com>
35875
35876 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
35877 aggregate in the parent. Otherwise constants with limited aggregates
35878 are not supported. Add new formal to pass the component type (Ctype).
35879 It is required to call the corresponding IP subprogram in case of
35880 default initialized components.
35881 (Gen_Assign): In case of default-initialized component, generate a
35882 call to the IP subprogram associated with the component.
35883 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
35884 of aggregate with default initialized components.
35885 (Has_Default_Init_Comps): Improve implementation to recursively check
35886 all the present expressions.
35887
35888 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
35889 to indicate that the initialization call corresponds to a
35890 default-initialized component of an aggregate.
35891 In case of default initialized aggregate with tasks this parameter is
35892 used to generate a null string (this is just a workaround that must be
35893 improved later). In case of discriminants, this parameter is used to
35894 generate a selected component node that gives access to the discriminant
35895 value.
35896
35897 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
35898 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
35899 allocated aggregates with default-initialized components.
35900
35901 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
35902 the box notation is used in positional aggregates.
35903
359042003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
35905
35906 * lib.ads: Fix typo in comment
35907
359082003-12-08 Vincent Celier <celier@gnat.com>
35909
35910 * prj.adb (Project_Empty): New component Unkept_Comments
35911 (Scan): Remove procedure; moved to Prj.Err.
35912
35913 * prj.ads (Project_Data): New Boolean component Unkept_Comments
35914 (Scan): Remove procedure; moved to Prj.Err.
35915
35916 * prj-dect.adb: Manage comments for the different declarations.
35917
35918 * prj-part.adb (With_Record): New component Node
35919 (Parse): New Boolean parameter Store_Comments, defaulted to False.
35920 Set the scanner to return ends of line and comments as tokens, if
35921 Store_Comments is True.
35922 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
35923 comments are associated with these nodes. Store the node IDs in the
35924 With_Records.
35925 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
35926 With_Records.
35927 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
35928 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
35929 current project. Call Tree.Restore afterwards. Set the various nodes
35930 for comment storage (Next_End, End_Of_Line, Previous_Line,
35931 Previous_End).
35932
35933 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
35934 defaulted to False.
35935
35936 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
35937 to False. When Truncated is True, truncate the string, never go to the
35938 next line.
35939 (Write_End_Of_Line_Comment): New procedure
35940 (Print): Process comments for nodes N_With_Clause,
35941 N_Package_Declaration, N_String_Type_Declaration,
35942 N_Attribute_Declaration, N_Typed_Variable_Declaration,
35943 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
35944 Process nodes N_Comment.
35945
35946 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
35947 without comments and there are some comments, set the flag
35948 Unkept_Comments to True.
35949 (Scan): If there are comments, set the flag Unkept_Comments to True and
35950 clear the comments.
35951 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
35952 (Next_End_Nodes: New table
35953 (Comment_Zones_Of): New function
35954 (Scan): New procedure; moved from Prj. Accumulate comments in the
35955 Comments table and set end of line comments, comments after, after end
35956 and before end.
35957 (Add_Comments): New procedure
35958 (Save, Restore, Seset_State): New procedures
35959 (There_Are_Unkept_Comments): New function
35960 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
35961 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
35962 procedures.
35963 (First_Comment_After, First_Comment_After_End): New functions
35964 (First_Comment_Before, First_Comment_Before_End): New functions
35965 (Next_Comment): New function
35966 (End_Of_Line_Comment, Follows_Empty_Line,
35967 Is_Followed_By_Empty_Line): New functions
35968 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
35969 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
35970 (Set_Next_Comment): New procedure
35971 (Default_Project_Node): Associate comment before if the node can store
35972 comments.
35973
35974 * scans.ads (Token_Type): New enumeration value Tok_Comment
35975 (Comment_Id): New global variable
35976
35977 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
35978 defaulted to False.
35979 (Scan): Store position of start of comment. If comments are tokens, set
35980 Comment_Id and set Token to Tok_Comment when scanning a comment.
35981 (Set_Comment_As_Token): New procedure
35982
35983 * sinput-p.adb: Update Copyright notice
35984 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
35985 that no longer exists.
35986
359872003-12-08 Javier Miranda <miranda@gnat.com>
35988
35989 * sem_aggr.adb: Add dependence on Exp_Tss package
35990 Correct typo in comment
35991 (Resolve_Aggregate): In case of array aggregates set the estimated
35992 type of the aggregate before calling resolve. This is needed to know
35993 the name of the corresponding IP in case of limited array aggregates.
35994 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
35995 in case of default initialized array components.
35996
35997 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
35998 types. Required to give support to limited aggregates in generic
35999 formals.
36000
360012003-12-08 Ed Schonberg <schonberg@gnat.com>
36002
36003 * sem_ch3.adb (Check_Initialization): For legality purposes, an
36004 inlined body functions like an instantiation.
36005 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
36006 until bounds are analyzed, to diagnose premature use of type.
36007
36008 * sem_util.adb (Wrong_Type): Improve error message when the type of
36009 the expression is used prematurely.
36010
360112003-12-08 GNAT Script <nobody@gnat.com>
36012
36013 * Make-lang.in: Makefile automatically updated
36014
0875a894
AC
360152003-12-08 Arnaud Charlet <charlet@act-europe.fr>
36016
7618d510
AC
36017 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
36018 they are automatically generated by Make-lang.in and cause nothing but
0875a894
AC
36019 maintenance troubles.
36020
5b4994bc
AC
360212003-12-05 Thomas Quinot <quinot@act-europe.fr>
36022
36023 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
36024 version of this unit).
36025
360262003-12-05 Olivier Hainque <hainque@act-europe.fr>
36027
36028 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
36029 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
36030 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
36031 the body of System.Interrupt_Management common to several targets.
36032 Update copyright notice when appropriate.
36033
36034 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
36035 constant.
36036
36037 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
36038 to ensure that the kernel fills in the interrupted context structure
36039 before calling a signal handler, which is necessary to be able to
36040 unwind past it. Update the copyright notice.
36041
360422003-12-05 Jerome Guitton <guitton@act-europe.fr>
36043
36044 * a-elchha.ads: New file.
36045
36046 * a-elchha.adb: New default last chance handler. Contents taken from
36047 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
36048
36049 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
36050 is moved to a-elchha.adb to provide a target-independent default last
36051 chance handler.
36052
36053 * Makefile.rtl: Add a-elchha.o
36054
36055 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
36056
360572003-12-05 Ed Schonberg <schonberg@gnat.com>
36058
36059 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
36060 declared in an instance, do not inline the call if the instance is not
36061 frozen yet, to prevent order of elaboration problems.
36062
36063 * sem_prag.adb: Add comments for previous fix.
36064
360652003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
36066
36067 * g-table.adb: Use the right variable in Set_Item.
36068 Update copyright notice.
36069
360702003-12-05 Arnaud Charlet <charlet@act-europe.fr>
36071
36072 * Makefile.in: Remove unused rules.
36073
360742003-12-05 Vincent Celier <celier@gnat.com>
36075
36076 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
36077 -nostdlib. Not needed here after all.
36078
efdfd311
AC
360792003-12-03 Thomas Quinot <quinot@act-europe.fr>
36080
36081 PR ada/11724
fbf3e0dd 36082 * adaint.h, adaint.c, g-os_lib.ads:
efdfd311
AC
36083 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
36084 on some platforms (including FreeBSD), it is a 64 bit value.
36085 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
36086
360872003-12-03 Arnaud Charlet <charlet@act-europe.fr>
36088
36089 * gnatvsn.ads (Library_Version): Now contain only the relevant
36090 version info.
36091 (Verbose_Library_Version): New constant.
36092
36093 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
36094 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
36095 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
36096
36097 * gnatlbr.adb: Clean up: replace Library_Version by
36098 Verbose_Library_Version.
36099
fbf3e0dd 36100 * make.adb, lib-writ.adb, exp_attr.adb:
efdfd311
AC
36101 Clean up: replace Library_Version by Verbose_Library_Version.
36102
36103 * 5lintman.adb: Removed.
36104
fbf3e0dd 36105 * Makefile.in:
efdfd311
AC
36106 Update and simplify computation of LIBRARY_VERSION.
36107 Fix computation of GSMATCH_VERSION.
36108 5lintman.adb is no longer used: replaced by 7sintman.adb.
36109
361102003-12-03 Robert Dewar <dewar@gnat.com>
36111
fbf3e0dd 36112 * exp_ch5.adb:
efdfd311
AC
36113 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
36114 name. Modified to consider small non-bit-packed arrays as troublesome
36115 and in need of component-by-component assigment expansion.
36116
361172003-12-03 Vincent Celier <celier@gnat.com>
36118
36119 * lang-specs.h: Process nostdlib as nostdinc
36120
36121 * back_end.adb: Update Copyright notice
36122 (Scan_Compiler_Arguments): Process -nostdlib directly.
36123
361242003-12-03 Jose Ruiz <ruiz@act-europe.fr>
36125
fbf3e0dd 36126 * Makefile.in:
efdfd311
AC
36127 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
36128 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
36129 included in HIE_NONE_TARGET_PAIRS.
36130
361312003-12-03 Ed Schonberg <schonberg@gnat.com>
36132
fbf3e0dd 36133 * sem_attr.adb:
efdfd311
AC
36134 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
36135 is legal in an instance, because legality is cheched in the template.
36136
fbf3e0dd 36137 * sem_prag.adb:
efdfd311
AC
36138 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
36139 appplied to an unchecked conversion of a formal parameter.
36140
fbf3e0dd 36141 * sem_warn.adb:
efdfd311
AC
36142 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
36143 variables.
36144
361452003-12-03 Olivier Hainque <hainque@act-europe.fr>
36146
36147 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
36148 routines. The second one is new functionality to deal with backtracing
36149 through signal handlers.
36150 (unwind): Split into the two separate subroutines above.
36151 Update the documentation, and deal properly with sizeof (REG) different
36152 from sizeof (void*).
36153
08aa9a4a
AC
361542003-12-01 Nicolas Setton <setton@act-europe.fr>
36155
36156 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
36157 so that the debugger can reliably access the value of the parameter,
36158 and therefore is able to display the exception name when an exception
36159 breakpoint is reached.
36160
361612003-12-01 Thomas Quinot <quinot@act-europe.fr>
36162
36163 * fmap.adb: Fix typo in warning message.
36164
36165 * g-socket.ads, g-socket.adb: Make Free a visible instance of
36166 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
36167
361682003-12-01 Vincent Celier <celier@gnat.com>
36169
36170 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
36171 ther is no Afile.
36172 (Build_Library): Get the switches only if Default_Switches is declared
36173 in package Binder.
36174
361752003-12-01 Ed Schonberg <schonberg@gnat.com>
36176
36177 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
36178 actuals that are indexed components, reanalyze actual to ensure that
36179 packed array references are properly expanded.
36180
36181 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
36182 attempted assignment to a discriminant.
36183
361842003-12-01 Robert Dewar <dewar@gnat.com>
36185
36186 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
36187 reformatting.
36188
36189 * switch-c.adb: Minor reformatting of comments
36190
361912003-12-01 Arnaud Charlet <charlet@act-europe.fr>
36192
36193 * Makefile.in: Clean ups.
36194
361952003-12-01 GNAT Script <nobody@gnat.com>
36196
36197 * Make-lang.in: Makefile automatically updated
36198
c6135994
AC
361992003-12-01 Arnaud Charlet <charlet@act-europe.fr>
36200
36201 * 5wsystem.ads: Disable zero cost exception, not ready yet.
36202
51a30506
UW
362032003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
36204
36205 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
36206 to force serialization.
36207
81a5b587
AC
362082003-11-26 Thomas Quinot <quinot@act-europe.fr>
36209
fbf3e0dd 36210 * g-socket.ads, g-socket.adb:
81a5b587
AC
36211 Clarify documentation of function Stream. Introduce a Free procedure
36212 to release the returned Stream once it becomes unused.
36213
36214 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
36215
362162003-11-26 Arnaud Charlet <charlet@act-europe.fr>
36217
36218 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
36219 since NT 4 cannot handle timeout values that are too large,
36220 e.g. DWORD'Last - 1.
36221
362222003-11-26 Ed Schonberg <schonberg@gnat.com>
36223
fbf3e0dd 36224 * exp_ch4.adb:
81a5b587
AC
36225 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
36226 in procedure calls and whose expansion must be deferred.
36227
36228 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
36229 is in exp_ch4.
36230
fbf3e0dd 36231 * sem_ch3.adb:
81a5b587
AC
36232 (Build_Derived_Array_Type): Create operator for unconstrained type
36233 if ancestor is unconstrained.
36234
362352003-11-26 Vincent Celier <celier@gnat.com>
36236
36237 * make.adb (Project_Object_Directory): New global variable
36238 (Change_To_Object_Directory): New procedure
36239 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
36240 of Change_Dir directly. Do not change working directory to object
36241 directory of main project after each compilation.
36242 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
36243 directly.
36244 Change to object directory of main project before binding step.
36245 (Initialize): Initialize Project_Object_Directory to No_Project
36246
fbf3e0dd 36247 * mlib-prj.adb:
81a5b587
AC
36248 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
36249 binding a Stand-Alone Library.
36250
36251 * output.adb: Update Copyright notice
36252 (Write_Char): Output buffer when full
36253
362542003-11-26 Robert Dewar <dewar@gnat.com>
36255
36256 * sem_ch13.adb: (Check_Size): Reset size if size is too small
36257
fbf3e0dd 36258 * sem_ch13.ads:
81a5b587
AC
36259 (Check_Size): Fix documentation to include bit-packed array case
36260
36261 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
36262
36263 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
36264
36265 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
36266
9e94c78f 362672003-11-24 Arnaud Charlet <charlet@act-europe.fr>
d4c47b51
AC
36268
36269 PR ada/13142
36270 * utils.c (init_gigi_decls): Change name of built-in setjmp to
36271 __builtin_setjmp, since this is apparently needed by recent
36272 non Ada changes.
36273
7677e9e0
RO
362742003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
36275
d4c47b51 36276 * adadecode.c: Only include ctype.h if not IN_GCC.
7677e9e0
RO
36277 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
36278
6c1e24d3
AC
362792003-11-24 Jose Ruiz <ruiz@act-europe.fr>
36280
fbf3e0dd 36281 * Makefile.in:
6c1e24d3
AC
36282 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
36283 signals and interrupts.
36284
36285 * 5zintman.ads: New File.
36286
36287 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
36288 add exception signals to the set of unmasked signals.
36289
fbf3e0dd 36290 * 5ztaprop.adb:
6c1e24d3
AC
36291 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
36292 between signals and interrupts.
36293 Add to Unblocked_Signal_Mask the set of signals that are in
36294 Keep_Unmasked.
36295
fbf3e0dd 36296 * 7sinmaop.adb:
6c1e24d3
AC
36297 Adding a check to see whether the Interrupt_ID we want to unmask is in
36298 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
36299 reason is that the index type of the Keep_Unmasked array is not always
36300 Interrupt_ID; it may be a subtype of Interrupt_ID.
36301
363022003-11-24 Gary Dismukes <dismukes@gnat.com>
36303
fbf3e0dd 36304 * exp_util.adb:
6c1e24d3
AC
36305 (Remove_Side_Effects): Condition constantness of object created for a
36306 an unchecked type conversion on the constantness of the expression
36307 to ensure the correct value for 'Constrained when passing components
36308 of view-converted class-wide objects.
36309
363102003-11-24 Robert Dewar <dewar@gnat.com>
36311
36312 * par-load.adb (Load): Improve handling of misspelled and missing units
36313 Removes several cases of compilation abandoned messages
36314
36315 * lib.adb: (Remove_Unit): New procedure
36316
36317 * lib.ads: (Remove_Unit): New procedure
36318
36319 * lib-load.adb: Minor reformatting
36320
363212003-11-24 Vincent Celier <celier@gnat.com>
36322
fbf3e0dd 36323 * make.adb:
6c1e24d3
AC
36324 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
36325 (Marking_Label): Label to mark processed source files. Incremented for
36326 each executable.
36327 (Gnatmake): Increase Marking_Labet for each executable
36328 (Is_Marked): Compare against marking label
36329 (Mark): Mark with marking label
36330
363312003-11-24 Jerome Guitton <guitton@act-europe.fr>
36332
fbf3e0dd 36333 * s-thread.ads:
6c1e24d3
AC
36334 Move the declaration of the TSD for System.Threads to System.Soft_Links.
36335 Add some comments.
36336
36337 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
36338 (rts-cert): build a single relocatable object for the run-time lib.
36339 Fix perms.
36340
363412003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
36342
fbf3e0dd 36343 * Make-lang.in:
6c1e24d3
AC
36344 Use gnatls rather than gcc to obtain the location of GNAT RTL for
36345 crosstools build.
36346
363472003-11-24 Sergey Rybin <rybin@act-europe.fr>
36348
36349 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
36350 can not use it as before (that is, as a variable) when dumping it into
36351 the tree file. Add a local variable to store the result of this
36352 function and to be used as the string to be written into the tree.
36353
36354 * scn.adb (Initialize_Scanner): Add comments explaining the recent
36355 changes.
36356
36357 * sinput.adb (Source_First, Source_Last): In case of
36358 Internal_Source_File, replace returning attributes of
36359 Internal_Source_Ptr (which is wrong) with returning attributes of
36360 Internal_Source.
36361
363622003-11-24 Ed Schonberg <schonberg@gnat.com>
36363
fbf3e0dd 36364 * sem_ch3.adb:
6c1e24d3
AC
36365 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
36366 used for implicit concatenation operators.
36367 Code cleanup.
36368
fbf3e0dd 36369 * sem_elab.adb:
6c1e24d3
AC
36370 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
36371 task bodies that are in the scope of a Suppress pragma.
36372 (Check_A Call): Use the flag to prevent spurious elaboration checks.
36373
fbf3e0dd 36374 * sinfo.ads, sinfo.adb:
6c1e24d3
AC
36375 New flag No_Elaboration_Check on function/procedure calls, to properly
36376 suppress checks on calls in task bodies that are within a local suppress
36377 pragma.
36378
fbf3e0dd 36379 * exp_ch4.adb:
6c1e24d3
AC
36380 (Expand_Concatenate_Other): Use the proper integer type for the
36381 expression for the upper bound, to avoid universal_integer computations
36382 when possible.
36383
6f2aeb72
KC
363842003-11-21 Kelley Cook <kcook@gcc.gnu.org>
36385
36386 * .cvsignore: Delete.
36387
e9f85cd6
AS
363882003-11-21 Andreas Schwab <schwab@suse.de>
36389
36390 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
36391
4e074baf
VF
363922003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
36393
36394 * 5wsystem.ads: Enable zero cost exception.
36395
f1f9fe30
AC
363962003-11-21 Jerome Guitton <guitton@act-europe.fr>
36397
36398 * 5ztiitho.adb: Remove an unreferenced variable.
36399
364002003-11-21 Thomas Quinot <quinot@act-europe.fr>
36401
36402 * adaint.c: For FreeBSD, use mkstemp.
36403
364042003-11-21 Arnaud Charlet <charlet@act-europe.fr>
36405
36406 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
36407
364082003-11-21 Robert Dewar <dewar@gnat.com>
36409
36410 * bld.adb: Remove useless USE of gnatvsn
36411
36412 * gnatchop.adb: Minor reformatting
36413 Clean up version handling to be more consistent
36414
36415 * gnatxref.adb: Minor reformatting
36416
36417 * gprcmd.adb: Minor reformatting
36418 Fix output of copyright to be more consistent with other tools
36419
364202003-11-21 Vincent Celier <celier@gnat.com>
36421
36422 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
36423
364242003-11-21 Sergey Rybin <rybin@act-europe.fr>
36425
36426 * atree.adb (Initialize): Add initializations for global variables
36427 used in New_Copy_Tree.
36428
36429 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
36430 Internal_Source_File as the actual).
36431 Put the set of statements creating Any_Character before the set of
36432 statements creating Any_Array to have Any_Character fully initialized
36433 when it is used in creating Any_Array.
36434
36435 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
36436 not call Scan in case if the actual is Internal_Source_File
36437 Add 2003 to copyright note.
36438
36439 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
36440 processing Internal_Source_File.
36441
36442 * types.ads: Add the constant Internal_Source_File representing the
36443 source buffer for artificial source-code-like strings created within
36444 the compiler (the definition of Source_File_Index is changed).
36445
c5b2a8ae
AC
364462003-11-20 Arnaud Charlet <charlet@act-europe.fr>
36447
36448 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
36449 56system.ads: New file, FreeBSD version.
36450
a03ad584
JM
364512003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
36452
36453 * Make-lang.in (ada.extraclean): Delete.
36454
19f0526a
AC
364552003-11-19 Arnaud Charlet <charlet@act-europe.fr>
36456
36457 * gnatmem.adb: Clean up verbose output.
36458
36459 * gprcmd.adb: Change copyright to FSF.
36460
364612003-11-19 Vincent Celier <celier@gnat.com>
36462
36463 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
36464 and Version (ignored).
36465
36466 * symbols.ads: (Policy): New type
36467 (Initialize): New parameter Reference, Symbol_Policy and
36468 Library_Version.
36469 Remove parameter Force.
36470 Minor reformatting.
36471
36472 * snames.ads, snames.adbadb: New standard names
36473 Library_Reference_Symbol_File and Library_Symbol_Policy
36474
fbf3e0dd 36475 * mlib-prj.adb:
19f0526a
AC
36476 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
36477 project.
36478
fbf3e0dd 36479 * mlib-tgt.adb:
19f0526a
AC
36480 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
36481
36482 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
36483
36484 * prj.adb: (Project_Empty): New component Symbol_Data
36485
36486 * prj.ads: (Policy, Symbol_Record): New types
36487 (Project_Data): New component Symbol_Data
36488
fbf3e0dd 36489 * prj-attr.adb:
19f0526a
AC
36490 New attributes Library_Symbol_File, Library_Symbol_Policy and
36491 Library_Reference_Symbol_File.
36492
fbf3e0dd 36493 * prj-nmsc.adb:
19f0526a
AC
36494 (Ada_Check): When project is a Stand-Alone library project, process
36495 attribute Library_Symbol_File, Library_Symbol_Policy and
36496 Library_Reference_Symbol_File.
36497
36498 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
36499 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
36500 5sml-tgt.adb (Build_Dynamic_Library): New parameter
36501 Symbol_Data (ignored).
36502
36503 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
36504 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
36505 functions Option_File_Name and Version_String. Set new options of
36506 gnatsym related to symbol file, symbol policy and reference symbol
36507 file.
36508
fbf3e0dd 36509 * 5vsymbol.adb:
19f0526a
AC
36510 Extensive modifications to take into account the reference symbol file,
36511 the symbol policy, the library version and to put in the symbol file the
36512 minor and major IDs.
36513
36514 * bld.adb (Process_Declarative_Items): Put second argument of
36515 gprcmd to_absolute between single quotes, to avoid problems with
36516 Windows.
36517
36518 * bld-io.adb: Update Copyright notice.
36519 (Flush): Remove last character of a line, if it is a back slash, to
36520 avoid make problems.
36521
fbf3e0dd 36522 * gnatsym.adb:
19f0526a
AC
36523 Implement new scheme with reference symbol file and symbol policy.
36524
36525 * g-os_lib.ads: (Is_Directory): Clarify comment
36526
365272003-11-19 Robert Dewar <dewar@gnat.com>
36528
36529 * atree.adb: Move New_Copy_Tree global variables to head of package
36530
36531 * errout.adb: Minor reformatting
36532
365332003-11-19 Javier Miranda <miranda@gnat.com>
36534
36535 * sem_ch4.adb: (Diagnose_Call): Improve error message.
36536 Add reference to Ada0Y (AI-50217)
36537
36538 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
36539 sem_util.adb: Add reference to AI-50217
36540
36541 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
36542
36543 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
36544
36545 * sem_aggr.adb: Complete documentation of AI-287 changes
36546
36547 * par-ch4.adb: Document previous changes.
36548
36549 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
36550 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
36551 Ada0Y (AI-50217)
36552
36553 * exp_aggr.adb: Add references to AI-287 in previous changes
36554
365552003-11-19 Ed Schonberg <schonberg@gnat.com>
36556
fbf3e0dd 36557 * exp_ch6.adb:
19f0526a
AC
36558 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
36559 in the rewriting is the result of an inlined call.
36560
36561 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
36562 parameter is a type conversion, use original node to construct the
36563 post-call assignment, because expression may have been rewritten, e.g.
36564 if it is a packed array.
36565
fbf3e0dd 36566 * sem_attr.adb:
19f0526a
AC
36567 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
36568 body, just as it is in an instance.
36569 Categorization routines
36570
36571 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
36572 Instantiate_Object): Set proper sloc reference for message on missing
36573 actual.
36574
365752003-11-19 Thomas Quinot <quinot@act-europe.fr>
36576
36577 * Makefile.in: Add FreeBSD libgnat pairs.
36578
36579 * usage.adb: Fix typo in usage message.
36580
365812003-11-19 Jerome Guitton <guitton@act-europe.fr>
36582
36583 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
36584 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
36585 pragma Thread_Body.
36586 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
36587
36588 * s-thread.adb: This file is now a dummy implementation of
36589 System.Thread.
36590
365912003-11-19 Sergey Rybin <rybin@act-europe.fr>
36592
36593 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
36594
365952003-11-19 Emmanuel Briot <briot@act-europe.fr>
36596
36597 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
36598 instanciation references in the parent type description.
36599
0d77ab84
AC
366002003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36601
36602 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
36603
36604 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
36605 TYPE_PRECISION directly from esize.
36606
366072003-11-18 Thomas Quinot <quinot@act-europe.fr>
36608
fbf3e0dd 36609 * cstreams.c:
0d77ab84
AC
36610 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
36611
36612 * init.c: Initialization routines for FreeBSD
36613
36614 * link.c: Link info for FreeBSD
36615
36616 * sysdep.c: Add the case of FreeBSD
36617
cb7a5092
AC
366182003-11-17 Jerome Guitton <guitton@act-europe.fr>
36619
36620 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
36621 already called in System.Threads.
36622
36623 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
36624 environment task, as it has been moved to System.Threads.Initialization.
36625
366262003-11-17 Arnaud Charlet <charlet@act-europe.fr>
36627
36628 * adaint.c (__gnatlib_install_locks): Only reference
36629 __gnat_install_locks on VMS, since other platforms can avoid using
36630 --enable-threads=gnat
36631
366322003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36633
36634 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
36635
36636 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
36637 TYPE_PACKED_ARRAY_TYPE_P.
36638 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
36639
36640 Part of PR ada/12806
36641 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
36642 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
36643
366442003-11-17 Vincent Celier <celier@gnat.com>
36645
36646 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
36647 to False.
36648 Do not set exit status to Failure when Warning is True.
36649 (Gnatchop): Make errors "no compilation units found" and
36650 "no source files written" warnings only.
36651
36652 * make.adb (Gnatmake): When using a project file, set
36653 Look_In_Primary_Dir to False.
36654 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
36655 and Local_Configuration_Pragmas in the project where they are declared
36656 not an extending project which might have inherited them.
36657
36658 * osint.adb (Locate_File): If Name is already an absolute path, do not
36659 look for a directory.
36660
36661 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
36662 -gnats (Check_Syntax) is used, issue only a warning, not an error.
36663
36664 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
36665 in objects of type Variable_Value.
36666
36667 * prj.ads: (Variable_Value): New component Project
36668
36669 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
36670 is in a project extended by Project.
36671
36672 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
36673 Project of Variable_Values to this new parameter value.
36674 (Expression): Set component Project of Variable_Values.
36675 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
36676 Set the component Project in array elements.
36677
366782003-11-17 Sergey Rybin <rybin@act-europe.fr>
36679
36680 * errout.adb: (Initialize): Add initialization for error nodes.
36681
36682 * sem_ch12.adb (Initialize): Add missing initializations for
36683 Exchanged_Views and Hidden_Entities.
36684
366852003-11-17 Ed Schonberg <schonberg@gnat.com>
36686
36687 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
36688 already instantiated tree for use in subsequent inlining.
36689 (Analyze_Associations, Instantiate_Formal_Subprogram,
36690 Instantiate_Object): improve error message for mismatch in
36691 instantiations.
36692
36693 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
36694 instantiations of subprograms declared in instances.
36695
366962003-11-17 Javier Miranda <miranda@gnat.com>
36697
36698 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
36699 executed only under the Extensions_Allowed flag.
36700
367012003-11-17 Robert Dewar <dewar@gnat.com>
36702
36703 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
36704 zeroes suppressed.
36705 (Address_Image): Fix bug of returning 0x instead of 0x0
36706 Minor reformatting (function specs).
36707
36708 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
36709 (missed case of 33-63)
36710
36711 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
36712
36713 * s-thread.adb: Add comments for pragma Restriction
36714
36715 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
36716 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
36717
367182003-11-17 Ed Falis <falis@gnat.com>
36719
36720 * s-thread.adb: Added No_Tasking restriction for this implementation.
36721
367222003-11-17 Emmanuel Briot <briot@act-europe.fr>
36723
36724 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
36725 instanciation references in the parent type description.
36726
367272003-11-17 GNAT Script <nobody@gnat.com>
36728
36729 * Make-lang.in: Makefile automatically updated
36730
7d60db05
JM
367312003-11-16 Jason Merrill <jason@redhat.com>
36732
36733 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
36734 and TAGS files that include them for each front end.
36735
c0040397
AJ
367362003-11-14 Andreas Jaeger <aj@suse.de>
36737
a477ab83 36738 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
fbf3e0dd 36739 is the canonical version.
a477ab83
AJ
36740 * misc.c (gnat_handle_option): Likewise.
36741
c0040397
AJ
36742 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
36743
36744 * 5nsystem.ads: New file for x86_64-linux-gnu.
36745
95a6aaf9
AC
367462003-11-14 Arnaud Charlet <charlet@act-europe.fr>
36747
262cc585 36748 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
95a6aaf9 36749
4a4fe537
AC
36750 * comperr.adb: Fix logic in previous change.
36751
65356e64
AC
367522003-11-13 Vincent Celier <celier@gnat.com>
36753
36754 * 5bml-tgt.adb (Build_Dynamic_Library): Use
36755 Osint.Include_Dir_Default_Prefix instead of
36756 Sdefault.Include_Dir_Default_Name.
36757
36758 * gnatlbr.adb: Update Copyright notice
36759 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
36760 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
36761 instead of Sdefault.Object_Dir_Default_Name
36762
c0040397 36763 * gnatlink.adb:
65356e64
AC
36764 (Process_Binder_File): Never suppress the option following -Xlinker
36765
c0040397 36766 * mdll-utl.adb:
65356e64
AC
36767 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
36768 Sdefault.Object_Dir_Default_Name.
36769
c0040397 36770 * osint.ads, osint.adb:
65356e64
AC
36771 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
36772 Minor reformatting.
36773
36774 * vms_conv.ads: Minor reformating
36775 Remove GNAT STANDARD and GNAT PSTA
36776
c0040397 36777 * vms_conv.adb:
65356e64
AC
36778 Allow GNAT MAKE to have several files on the command line.
36779 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
36780 Sdefault.Object_Dir_Default_Name.
36781 Minor Reformating
36782 Remove data for GNAT STANDARD
36783
c0040397 36784 * vms_data.ads:
65356e64
AC
36785 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
36786 Remove data for GNAT STANDARD
36787 Remove options and documentation for -gnatwb/-gnatwB: these warning
36788 options no longer exist.
36789
367902003-11-13 Ed Falis <falis@gnat.com>
36791
36792 * 5zthrini.adb: (Init_RTS): Made visible
36793
c0040397 36794 * 5zthrini.adb:
65356e64
AC
36795 (Register): Removed unnecessary call to taskVarGet that checked whether
36796 an ATSD was already set as a task var for the argument thread.
36797
c0040397 36798 * s-thread.adb:
65356e64
AC
36799 Updated comment to reflect that this is a VxWorks version
36800 Added context clause for System.Threads.Initialization
36801 Added call to System.Threads.Initialization.Init_RTS
36802
368032003-11-13 Jerome Guitton <guitton@act-europe.fr>
36804
c0040397 36805 * 5zthrini.adb:
65356e64
AC
36806 (Init_RTS): New procedure, for the initialization of the run-time lib.
36807
c0040397 36808 * s-thread.adb:
65356e64
AC
36809 Remove dependancy on System.Init, so that this file can be used in the
36810 AE653 sequential run-time lib.
36811
368122003-11-13 Robert Dewar <dewar@gnat.com>
36813
36814 * bindgen.adb: Minor reformatting
36815
368162003-11-13 Ed Schonberg <schonberg@gnat.com>
36817
c0040397 36818 * checks.adb:
65356e64
AC
36819 (Apply_Discriminant_Check): Do no apply check if target type is derived
36820 from source type with no applicable constraint.
36821
c0040397 36822 * lib-writ.adb:
65356e64
AC
36823 (Ensure_System_Dependency): Do not apply the style checks that may have
36824 been specified for the main unit.
36825
c0040397 36826 * sem_ch8.adb:
65356e64
AC
36827 (Find_Selected_Component): Further improvement in error message, with
36828 RM reference.
36829
c0040397 36830 * sem_res.adb:
65356e64
AC
36831 (Resolve): Handle properly the case of an illegal overloaded protected
36832 procedure.
36833
368342003-11-13 Javier Miranda <miranda@gnat.com>
36835
c0040397 36836 * exp_aggr.adb:
65356e64
AC
36837 (Has_Default_Init_Comps): New function to check the presence of
36838 default initialization in an aggregate.
36839 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
36840 extension aggregate of a limited record. In addition, a new formal
36841 was added to do not initialize the record controller (if any) during
36842 this recursive expansion of ancestors.
36843 (Init_Controller): Add support for limited record components.
36844 (Expand_Record_Aggregate): In case of default initialized components
36845 convert the aggregate into a set of assignments.
36846
36847 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
36848 describing the new syntax.
36849 Nothing else needed to be done because this subprogram delegates part of
36850 its work to P_Precord_Or_Array_Component_Association.
36851 (P_Record_Or_Array_Component_Association): Give support to the new
36852 syntax for default initialization of components.
36853
c0040397 36854 * sem_aggr.adb:
65356e64
AC
36855 (Resolve_Aggregate): Relax the strictness of the frontend in case of
36856 limited aggregates.
36857 (Resolve_Record_Aggregate): Give support to default initialized
36858 components.
36859 (Get_Value): In case of default initialized components, duplicate
36860 the corresponding default expression (from the record type
36861 declaration). In case of default initialization in the *others*
36862 choice, do not check that all components have the same type.
36863 (Resolve_Extension_Aggregate): Give support to limited extension
36864 aggregates.
36865
c0040397 36866 * sem_ch3.adb:
65356e64
AC
36867 (Check_Initialization): Relax the strictness of the front-end in case
36868 of aggregate and extension aggregates. This test is now done in
36869 Get_Value in a per-component manner.
36870
36871 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
36872 expression corresponds to a limited aggregate. This test is now done
36873 in Get_Value.
36874
36875 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
36876 Box_Present flag.
36877
36878 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
36879 present in an N_Component_Association node
36880
368812003-11-13 Thomas Quinot <quinot@act-europe.fr>
36882
36883 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
36884 type-conformant entry only if they are homographs.
36885
368862003-11-13 GNAT Script <nobody@gnat.com>
36887
36888 * Make-lang.in: Makefile automatically updated
36889
49add53f
RO
368902003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
36891
36892 * adadecode.c: Use <> form of include for ctype.h.
36893 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
36894
94bae1cc
RO
368952003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
36896
36897 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
36898 Works around PR middle-end/6552.
36899
463f452c
AC
369002003-11-10 Ed Falis <falis@gnat.com>
36901
36902 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
36903
36904 * 5zinit.adb: (Install_Handler): Moved back to spec
36905 (Install_Signal_Handlers): Deleted
36906
36907 * 5zthrini.adb: Added context clause for System.Storage_Elements
36908 (Register): Only handles creation of taskVar; initialization moved to
36909 Thread_Body_Enter.
36910 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
36911 Added declaration of environment task secondary stack and
36912 initialization.
36913
36914 * s-thread.adb: Implement bodies for thread body processing
36915
c0040397 36916 * s-thread.ads:
463f452c
AC
36917 Added comment identifying supported targets for pragma Thread_Body.
36918
369192003-11-10 Pascal Obry <obry@gnat.com>
36920
36921 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
36922 GNAT_MAX_PATH_LEN.
36923
c0040397 36924 * s-fileio.adb:
463f452c
AC
36925 (Open): Properly check for string length before copying into the buffer.
36926 Raises Name_Error if buffer is too small. Note that this was a potential
36927 buffer overflow.
36928
369292003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
36930
36931 * bindgen.adb, comperr.adb: Code clean ups.
36932 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
36933
369342003-11-10 Sergey Rybin <rybin@act-europe.fr>
36935
36936 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
36937
369382003-11-10 Vincent Celier <celier@gnat.com>
36939
c0040397 36940 * gprcmd.adb:
463f452c
AC
36941 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
36942 installation.
36943
36944 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
36945
36946 * prj.adb: (Project_Empty): Add new boolean component Virtual
36947
36948 * prj.ads: (Virtual_Prefix): New constant string
36949 (Project_Data): New boolean component Virtual
36950
36951 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
36952 a library project is extended by a virtual extending project.
36953
c0040397 36954 * prj-part.adb:
463f452c
AC
36955 Modifications throughout to implement extending-all project, including:
36956 (Virtual_Hash, Processed_Hash): New hash tables
36957 (Create_Virtual_Extending_Project): New procedure
36958 (Look_For_Virtual_Projects_For): New procedure
36959
c0040397 36960 * prj-proc.adb:
463f452c
AC
36961 (Process): After checking the projects, if main project is an
36962 extending-all project, set the object directory of all virtual extending
36963 project to the object directory of the main project.
36964 Adjust error message when a virtual extending project has the same
36965 object directory as an project being extended.
36966 (Recursive_Process): If name starts with the virtual prefix, set Virtual
36967 to True in the project data.
36968
c0040397 36969 * prj-tree.adb:
463f452c
AC
36970 (Default_Project_Node): Add new boolean component Extending_All
36971 (Is_Extending_All): New function
36972 (Set_Is_Extending_All): New procedure
36973
36974 * prj-tree.ads: (Is_Extending_All): New function
36975 (Set_Is_Extending_All): New procedure
36976 (Project_Node_Record): New boolean component Extending_All
36977
36978 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
36979
c0040397 36980 * vms_data.ads:
463f452c
AC
36981 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
36982
36983 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
36984 "gprcmd prefix" to define it.
36985
369862003-11-10 Thomas Quinot <quinot@act-europe.fr>
36987
36988 * einfo.ads: Fix a typo and remove an extraneous word in comments.
36989
c0040397 36990 * lib-load.adb:
463f452c
AC
36991 (Create_Dummy_Package_Unit): Set the scope of the entity for the
36992 created dummy package to Standard_Standard, not to itself, to
36993 defend other parts of the front-end against encoutering a cycle in
36994 the scope chain.
36995
c0040397 36996 * sem_ch10.adb:
463f452c
AC
36997 (Analyze_With_Clause): When setting the entities for the successive
36998 N_Expanded_Names that constitute the name of a child unit, do not
36999 attempt to go further than Standard_Standard in the chain of scopes.
37000 This case arises from the placeholder units created by
37001 Create_Dummy_Package_Unit in the case of a with_clause for a
37002 nonexistent child unit.
37003
370042003-11-10 Ed Schonberg <schonberg@gnat.com>
37005
c0040397 37006 * exp_ch6.adb:
463f452c
AC
37007 (Expand_Thread_Body): Place subprogram on scope stack, so that new
37008 declarations are given the proper scope.
37009
c0040397 37010 * sem_ch13.adb:
463f452c
AC
37011 (Check_Expr_Constants): Reject an expression that contains a constant
37012 created during expansion, and that appears after the object to which
37013 the address clause applies.
37014
37015 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
37016 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
37017 that uses 'Range of a function call with controlled components, so
37018 that the function result can be finalized before starting the loop.
37019
c0040397 37020 * sem_ch8.adb:
463f452c
AC
37021 (Find_Selected_Component): Improve error message when prefix is
37022 an implicit dereference of an incomplete type.
37023
370242003-11-10 Robert Dewar <dewar@gnat.com>
37025
37026 * opt.ads: New Print_Standard flag for -gnatS switch
37027
37028 * sem_ch13.adb: Remove some additional checks for unaligned arrays
37029
37030 * cstand.adb (Create_Standard): Print out package standard if -gnatS
37031 switch set
37032
37033 * debug.adb: Update doc for -gnatds to discuss relationship with new
37034 -gnatS flag
37035
37036 * sinfo.adb: Add new field Entity_Or_Associated_Node
37037
37038 * sinfo.ads: Add new field Entity_Or_Associated_Node
37039 Update documentation for Associated_Node and Entity fields to clarify
37040 relationship and usage.
37041
c0040397 37042 * sprint.adb:
463f452c
AC
37043 (Write_Id): Properly process Associated_Node field in generic template
37044
c0040397 37045 * switch-c.adb:
463f452c
AC
37046 Recognize new -gnatS switch for printing package Standard
37047 This replaces gnatpsta
37048
c0040397 37049 * usage.adb:
463f452c
AC
37050 Add line for new -gnatS switch for printing package Standard
37051 This replaces gnatpsta
37052
c77c5f2e
AJ
370532003-11-10 Andreas Jaeger <aj@suse.de>
37054
37055 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
37056 integer.
37057
5c90f17f
AC
370582003-11-10 Arnaud Charlet <charlet@act-europe.fr>
37059
37060 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
37061 by gnat1.
37062
139f0d1e
AC
370632003-11-10 Arnaud Charlet <charlet@act-europe.fr>
37064
37065 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
37066 no longer needed.
37067
37068 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
37069
37070 * sysdep.c: Add handling of cygwin.
37071
f3e4c05c
GS
370722003-11-10 GNAT Script <nobody@gnat.com>
37073
37074 * Make-lang.in: Makefile automatically updated
37075
2cdc8909
AC
370762003-11-10 Arnaud Charlet <charlet@act-europe.fr>
37077
37078 PR 12950
37079 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
37080 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
37081 Replace GNAT_ROOT by GCC_ROOT.
37082
37083 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
37084
37783865
ZW
370852003-11-06 Zack Weinberg <zack@codesourcery.com>
37086
37087 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
37088 and update for changed meaning of GET_MODE_BITSIZE.
37089
6bc1c519
AC
370902003-11-04 Doug Rupp <rupp@gnat.com>
37091
37092 * sysdep.c: Problem discovered during IA64 VMS port.
37093 [VMS] #include <unixio.h> to get proper prototypes.
37094
37783865 37095 * adaint.c:
6bc1c519
AC
37096 Issues discovered/problems fixed during IA64 VMS port.
37097 [VMS] #define _POSIX_EXIT for proper semantics.
37098 [VMS] #include <unixio.h> for proper prototypes.
37099 [VMS] (fork): #define IA64 version.
37100 (__gnat_os_exit): Remove unnecessary VMS specific code.
37101
371022003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37103
37104 Part of PR ada/12806
6bc1c519
AC
37105 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
37106 tree, not integer.
37107
37783865 37108 * decl.c:
6bc1c519
AC
37109 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
37110 not integer.
37111
37112 * targtyps.c, decl.c, misc.c,
37113 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
37114 routines to work around change in FP sizing semantics in GCC.
37115
37783865 37116 * utils.c:
6bc1c519
AC
37117 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
37118
37119 * gigi.h: (enumerate_modes): New function.
37120
37121 * Make-lang.in: (ada/misc.o): Add real.h.
37122
37123 * misc.c: (enumerate_modes): New function.
37124
371252003-11-04 Robert Dewar <dewar@gnat.com>
37126
37127 * 3vtrasym.adb: Minor reformatting
37128 Use terminology encoded/decoded name, rather than C++ specific notion
37129 of mangling (this is the terminology used throughout GNAT).
37130
37131 * einfo.h: Regenerated
37132
37133 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
37134
37783865 37135 * exp_ch6.adb:
6bc1c519
AC
37136 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
37137
37138 * par-prag.adb: Add dummy entry for Thread_Body pragma
37139
37783865 37140 * rtsfind.ads:
6bc1c519
AC
37141 Add entries for System.Threads entities for thread body processing
37142
37783865 37143 * sem_attr.adb:
6bc1c519
AC
37144 (Analyze_Pragma, Access attributes): Check these are not applied to a
37145 thread body, since this is not permitted
37146
37147 * sem_prag.adb: Add processing for Thread_Body pragma.
37148 Minor comment fix.
37149
37783865 37150 * sem_res.adb:
6bc1c519
AC
37151 (Resolve_Call): Check for incorrect attempt to call a thread body
37152 procedure with a direct call.
37153
37154 * snames.ads, snames.adb: Add entry for Thread_Body pragma
37155 Add names associated with thread body expansion
37156
37157 * snames.h: Add entry for Thread_Body pragma
37158
37159 * s-thread.adb: Add entries for thread body processing
37160 These are dummy bodies so far
37161
37162 * s-thread.ads: Add documentation on thread body handling.
37163 Add entries for thread body processing.
37164
371652003-11-04 Javier Miranda <miranda@gnat.com>
37166
37783865 37167 * sem_ch10.adb:
6bc1c519
AC
37168 (Build_Limited_Views): Return after posting an error in case of limited
37169 with_clause on subprograms, generics, instances or generic renamings
37170 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
37171 on subprograms, generics, instances or generic renamings
37172
371732003-11-04 Arnaud Charlet <charlet@act-europe.fr>
37174
37175 * raise.c (setup_to_install): Correct mistake in last revision; two
37176 arguments out of order.
37177
37178 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
37179 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
37180 notice, missed in previous change.
37181 Remove trailing blanks and other style errors introduced in previous
37182 change.
37183
371842003-11-04 Olivier Hainque <hainque@act-europe.fr>
37185
37186 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
37187 rid of the wrapper for a LJM type, ensuring we don't do that if the
37188 field is addressable. This avoids potential low level type view
37189 mismatches later on, for instance in a by-reference argument passing
37190 process.
37191
371922003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37193
37194 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
37195 aligned at byte boundary.
37196
371972003-11-04 Joel Brobecker <brobecker@gnat.com>
37198
37199 * decl.c (components_to_record): Do not delete the empty variants from
37200 the end of the union type.
37201
372022003-11-04 Ed Schonberg <schonberg@gnat.com>
37203
37204 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
37205 operation for a derived type, an explicit declaration may use a local
37206 subtype of Boolean.
37207
372082003-11-04 Vincent Celier <celier@gnat.com>
37209
37210 * make.adb (Gnatmake): Allow main sources on the command line with a
37211 library project when it is only for compilation (no binding or
37212 linking).
37213
487e9fff
RO
372142003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
37215
37216 * Makefile.in: Remove many duplicate variables.
37217
63069342
KC
372182003-11-03 Kelley Cook <kcook@gcc.gnu.org>
37219
37220 * Make-lang.in (dvi): Move targets to $(docobjdir).
37221 (gnat_ug_vms.dvi): Simplify rule and adjust target.
37222 (gnat_ug_wnt.dvi): Likewise.
37223 (gnat_ug_unx.dvi): Likewise.
37224 (gnat_ug_vxw.dvi): Likewise.
37225 (gnat_rm.dvi): Likewise.
37226 (gnat-style.dvi): Likewise.
37227
c2edc52b
KC
372282003-10-31 Kelley Cook <kcook@gcc.gnu.org>
37229
37230 * gigi.h: Missed commit from update for C90.
37231
14df9585
KC
372322003-10-31 Kelley Cook <kcook@gcc.gnu.org>
37233
37234 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
37235
acd8e984
AS
372362003-10-31 Andreas Schwab <schwab@suse.de>
37237
37238 * raise.c (get_action_description_for): Fix typo in last change.
37239
b2c62c45
NN
372402003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
37241
37242 PR ada/12761
37243 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
37244 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
37245
9373164a
KC
372462003-10-30 Kelley Cook <kcook@gcc.gnu.org>
37247
37248 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
37249 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
37250 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
37251 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
37252 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
37253
bde58e32
AC
372542003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
37255
37783865 37256 * 3vtrasym.adb:
bde58e32
AC
37257 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
37258 numbers when symbol name is too long.
37259
372602003-10-30 Ed Falis <falis@gnat.com>
37261
37262 * g-signal.ads, g-signal.adb: New files
37263
37264 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
37265
37266 * Makefile.rtl: Introduce GNAT.Signals
37267
372682003-10-30 Robert Dewar <dewar@gnat.com>
37269
37270 * freeze.adb: Minor reformatting
37271
37272 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
37273
37783865
ZW
37274 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
37275 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
bde58e32
AC
37276 New handling of Id_Check parameter to improve recognition of keywords
37277 used as identifiers.
37278 Update copyright notice to include 2003
37279
657a9dd9
AC
372802003-10-29 Robert Dewar <dewar@gnat.com>
37281
37282 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
37283 sem_ch10.adb: Minor reformatting
37284
37285 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
37286 (Expand_Assign_Record): Test right hand side for bit unaligned as well
37287
372882003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
37289
37783865 37290 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
657a9dd9
AC
37291 Support for TBK$SYMBOLIZE-based symbolic traceback.
37292
372932003-10-29 Jose Ruiz <ruiz@act-europe.fr>
37294
37783865 37295 * exp_disp.adb:
657a9dd9
AC
37296 Revert previous change, that did not work well when pragma No_Run_Time
37297 was used in conjunction with a run-time other than ZFP.
37298
372992003-10-29 Vincent Celier <celier@gnat.com>
37300
37783865 37301 * make.adb:
657a9dd9
AC
37302 (Gnatmake): When there are no Ada mains in attribute Main, disable the
37303 bind and link steps only is switch -z is not used.
37304
373052003-10-29 Arnaud Charlet <charlet@act-europe.fr>
37306
37307 * Makefile.generic: Remove duplicated setting of CC.
37308
37309 * Makefile.prolog: Set CC to gcc by default, to override make's
37310 default (cc).
37311
37312 * einfo.h: Regenerated.
37313
373142003-10-29 Ed Schonberg <schonberg@gnat.com>
37315
37316 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
37317 current body, after compiling subunit.
37318
37319 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
37320 when in deleted code, because gigi needs properly ordered freeze
37321 actions to annotate types.
37322
37323 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
37324 prevent the premature freezing of record type that contains
37325 subcomponents with a private type that does not yet have a completion.
37326
373272003-10-29 Javier Miranda <miranda@gnat.com>
37328
37783865 37329 * sem_ch12.adb:
657a9dd9
AC
37330 (Analyze_Package_Instantiation): Check that instances can not be used in
37331 limited with_clauses.
37332
37783865 37333 * sem_ch8.adb:
657a9dd9
AC
37334 (Analyze_Package_Renaming): Check that limited withed packages cannot
37335 be renamed. Improve text on error messages related to limited
37336 with_clauses.
37337
37338 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
37339
37340 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
37341 Update copyright notice.
37342
37343 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
37344 (Install_Limited_Context_Clauses): New subprogram that isolates all the
37345 checks required for limited context_clauses and installs the limited
37346 view.
37347 (Install_Limited_Withed_Unit): Complete its documentation.
37348 (Analyze_Context): Check that limited with_clauses are only allowed in
37349 package specs.
37350 (Install_Context): Call Install_Limited_Context_Clauses after the
37351 parents have been installed.
37352 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
37353 package as 'From_With_Type'; this mark indicates that the limited view
37354 is installed. Used to check bad usages of limited with_clauses.
37355 (Build_Limited_Views): Do not add shadow entities to the scope's list
37356 of entities. Do not add real entities to the Non_Limited_Views chain.
37357 Improve error notification.
37358 (Remove_Context_Clauses): Remove context clauses in two phases:
37359 limited views first and regular views later (to maintain the
37360 stack model).
37361 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
37362 its visible entities.
37363
373642003-10-29 Thomas Quinot <quinot@act-europe.fr>
37365
37366 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
37367 with any type that Is_Fixed_Point_Type.
37368
37369 * sinfo.ads: Fix documentation for Associated_Node attribute.
37370
373712003-10-29 Sergey Rybin <rybin@act-europe.fr>
37372
37373 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
37374 both '-gnatc' and '-gnatt' are specified.
37375
37376 * atree.adb (Initialize): Add initialization for Node_Count (set to
37377 zero).
37378
373792003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37380
37381 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
37382 do not consider as Pure.
37383
37384 Part of implementation of function-at-a-time:
37385
37386 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
37387 (tree_transform): Add new argument to build_component_ref.
37388 (tree_transform, case N_Assignment_Statement): Make and return an
37389 EXPR_STMT.
37390 (tree_transform): If result IS_STMT, set flags and return it.
37391 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
37392
37393 * utils2.c (build_simple_component_ref, build_component_ref): Add new
37394 arg, NO_FOLD_P.
37395 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
37396 (build_allocator): Likewise.
37397
37398 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
37399 Add new arg to build_component_ref.
37400 (maybe_unconstrained_array, unchecked_convert): Likewise.
37401
37402 * ada-tree.def (EXPR_STMT): New code.
37403
37404 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
37405
37406 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
37407 build_component_ref calls.
37408
37409 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
37410
37411 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
37412 (build_component_ref): Add new argument, NO_FOLD_P.
37413
ecad994d
AC
374142003-10-27 Arnaud Charlet <charlet@act-europe.fr>
37415
37416 * Makefile.generic: Add missing substitution on object_deps handling.
37417
6f7f72f9 37418 PR ada/5909
ecad994d
AC
37419 * Make-lang.in (check-ada): Enable ACATS test suite.
37420
374212003-10-27 Robert Dewar <dewar@gnat.com>
37422
37783865 37423 * exp_ch3.adb:
ecad994d
AC
37424 (Freeze_Array_Type): We do not need an initialization routine for types
37425 derived from String or Wide_String. They should be treated the same
37426 as String and Wide_String themselves. This caused problems with the
37427 use of Initialize_Scalars.
37428
37783865 37429 * exp_ch5.adb:
ecad994d
AC
37430 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
37431 composites. This allows use of component clauses that are not byte
37432 aligned.
37433
37783865 37434 * sem_prag.adb:
ecad994d
AC
37435 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
37436 is an attempt to pack an array of atomic objects.
37437
37438 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
37439
374402003-10-27 Pascal Obry <obry@gnat.com>
37441
37783865 37442 * g-dirope.adb:
ecad994d
AC
37443 (Basename): Check for drive letters in a pathname only on DOS based OS.
37444
374452003-10-27 Vincent Celier <celier@gnat.com>
37446
37783865 37447 * make.adb:
ecad994d
AC
37448 (Gnatmake): When unable to change dir to the object dir, display the
37449 content of the parent dir of the obj dir, to try to understand why this
37450 happens.
37451
374522003-10-27 GNAT Script <nobody@gnat.com>
37453
37454 * Make-lang.in: Makefile automatically updated
37455
374562003-10-27 Ed Schonberg <schonberg@gnat.com>
37457
37783865 37458 * sem_ch12.adb:
ecad994d
AC
37459 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
37460 should not be done in Save/Restore_Scope_Stack, because it is performed
37461 locally.
37462
37783865 37463 * sem_ch8.adb:
ecad994d
AC
37464 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
37465 whether use clauses should be removed/restored.
37466
37783865 37467 * sem_ch8.ads:
ecad994d
AC
37468 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
37469 whether use clauses should be removed/restored.
37470
b6b3c138
AJ
374712003-10-26 Andreas Jaeger <aj@suse.de>
37472
37473 * Makefile.in: Remove duplicated lines.
37474
b6d83931
AC
374752003-10-24 Arnaud Charlet <charlet@act-europe.fr>
37476
37477 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
37478 minimize the differences with ACT tree.
37479
37480 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
37481 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
37482 Gnatvsn.Gnat_Static_Version_String to reduce differences between
37483 ACT and FSF trees.
37484
374852003-10-24 Pascal Obry <obry@gnat.com>
37486
6f7f72f9 37487 PR ada/12014
b6d83931
AC
37488 * adadecode.c (ostrcpy): New function.
37489 (__gnat_decode): Use ostrcpy of strcpy.
37490 (has_prefix): Set first parameter a const.
37491 (has_suffix): Set first parameter a const.
37492 Update copyright notice. Fix source name in header.
37493 Removes a trailing space.
b6d83931
AC
37494
374952003-10-24 Jose Ruiz <ruiz@act-europe.fr>
37496
b6b3c138 37497 * exp_disp.adb:
b6d83931
AC
37498 Remove the test against being in No_Run_Time_Mode before generating a
37499 call to Register_Tag. It is redundant with the test against the
37500 availability of the function Register_Tag.
37501
375022003-10-24 Vincent Celier <celier@gnat.com>
37503
37504 * g-catiio.adb: (Month_Name): Correct spelling of February
37505
37506 * make.adb: (Mains): New package
37507 (Initialize): Call Mains.Delete
37508 (Gnatmake): Check that each main on the command line is a source of a
37509 project file and, if there are several mains, each of them is a source
37510 of the same project file.
37511 (Gnatmake): When a foreign language is specified in attribute Languages,
37512 no main is specified on the command line and attribute Mains is not
37513 empty, only build the Ada main. If there is no Ada main, just compile
37514 the Ada sources and their closure.
37515 (Gnatmake): If a main is specified on the command line with directory
37516 information, check that the source exists and, if it does, that the path
37517 is the actual path of a source of a project.
37518
b6b3c138 37519 * prj-env.adb:
b6d83931
AC
37520 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
37521 Full_Path is True, return the full path instead of the simple file name.
37522 (Project_Of): New function
37523
b6b3c138 37524 * prj-env.ads:
b6d83931
AC
37525 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
37526 defaulted to False.
37527 (Project_Of): New function
37528
375292003-10-24 Arnaud Charlet <charlet@act-europe.fr>
37530
b6b3c138 37531 * Makefile.generic:
b6d83931
AC
37532 Ensure objects of main project are always checked and rebuilt if needed.
37533 Set CC to gcc by default.
37534 Prepare new handling of link by creating a global archive (not activated
37535 yet).
37536
37537 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
37538 stringt.h: Update copyright notice. Remove trailing blanks.
37539 Fix source name in header.
37540
375412003-10-24 Robert Dewar <dewar@gnat.com>
37542
37543 * sem_ch12.adb: Minor reformatting
37544
b6b3c138 37545 * sem_ch3.adb:
b6d83931
AC
37546 Minor reformatting (including new function return style throughout)
37547
b6b3c138 37548 * sem_ch3.ads:
b6d83931
AC
37549 Minor reformatting (including new function return style throughout)
37550
375512003-10-24 Arnaud Charlet <charlet@act-europe.fr>
37552
37553 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
37554 stringt.h: Update copyright notice. Remove trailing blanks.
37555 Fix source name in header.
37556
375572003-10-24 GNAT Script <nobody@gnat.com>
37558
37559 * Make-lang.in: Makefile automatically updated
37560
b4e2d709
NN
375612003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
37562
37563 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
37564 stringt.h: Convert to ISO C90 declarations and definitions.
37565
9d7d51be
AC
375662003-10-23 Thomas Quinot <quinot@act-europe.fr>
37567
6f7f72f9 37568 PR ada/11978
9d7d51be
AC
37569 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
37570 External_Tag attribute definition clauses.
37571
375722003-10-23 Ed Schonberg <schonberg@gnat.com>
37573
6f7f72f9 37574 PR ada/7613
9d7d51be
AC
37575 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
37576 child unit, generate a fully qualified name to avoid spurious errors
37577 when the context contains renamings of different child units with
37578 the same simple name.
37579
37580 * exp_dbug.ads: Add documentation on name qualification for renamings
37581 of child units.
37582
375832003-10-23 Robert Dewar <dewar@gnat.com>
37584
37585 * g-regpat.ads, g-regpat.adb: Minor reformatting
37586
375872003-10-23 Jose Ruiz <ruiz@act-europe.fr>
37588
37589 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
37590
375912003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37592
37593 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
37594 Machine call.
37595
37596 * urealp.h: (Machine): Update to proper definition.
37597
6d244bbe
AC
375982003-10-23 Arnaud Charlet <charlet@act-europe.fr>
37599
37600 * init.c, adaint.c: Minor reformatting.
37601
8f4eb34b
DS
376022003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
37603
6d244bbe 37604 * adaint.c (w32_epoch_offset): Define static const at file level.
8f4eb34b
DS
37605 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
37606 rather than t_create, t_access in call to GetFileTime. Use union
37607 to convert between FILETIME and unsigned long long.
37608 (__gnat_file_time_name): Test for invalid file handle.
37609 (__gnat_set_filetime_name): Support win32 targets using
37610 w32api SetFileTime.
37611
25412599
DS
376122003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
37613
37614 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
37615
37616 * ctrl_c.c (__gnat_int_handler): Remove declaration.
37617
37618 * decl.c (creat_concat_name): Const-ify prefix.
37619
37620 * adaint.c: Include ctype.h if __MINGW32__.
37621 (__gnat_readlink): Mark arguments as possibly unused.
37622 (__gnat_symlink): Likewise.
37623 (__gnat_is_symbolic_link): Likewise.
37624 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
37625 declaration
b6b3c138 37626 (__gnat_file_time_name): Don't declare struct stat statbuf when
25412599
DS
37627 not needed.
37628 (__gnat_is_absolute_path): Add parenthesis around condition of
37629 'if' statement to avoid warning.
37630 (__gnat_plist_init): Specify void as parameter.
37631 (plist_enter): Likewise.
37632 (plist_leave): Likewise.
37633 (remove_handle): Make static. Initialize prev.
37634
698a5e79
AC
376352003-10-22 Arnaud Charlet <charlet@act-europe.fr>
37636
6f7f72f9
EB
37637 PR ada/10110
37638 * Makefile.in: Disable build of gnatpsta.
698a5e79
AC
37639 * cstreams.c (__gnat_full_name): Minor improvements and clean up
37640 of previous change.
37641
e97c30aa
RO
376422003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
37643
37644 * tracebak.c (MAX): Avoid redefinition warning.
37645
37646 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
37647 Change msg to const char *.
37648 (__gnat_install_handler): Remove ss, unused.
37649 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
37650 to const char *.
37651 * cstreams.c (__gnat_full_name): Declare p only when used.
37652 (__gnat_full_name) [sgi] Return buffer.
37653
65f1ebd1
AC
376542003-10-22 Arnaud Charlet <charlet@act-europe.fr>
37655
37656 * mingw32.h: New file.
0c644933
AC
37657 * gnat_wrapper.adb: New file.
37658
6d244bbe 376592003-10-22 Jerome Roussel <roussel@act-europe.fr>
0c644933
AC
37660
37661 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
37662 string match a pre compiled regular expression (the corresponding
37663 version of the function working on a raw regular expression)
37664 Fix typos in various comments
37665 Update copyright notice in spec
37666
6d244bbe 376672003-10-21 Gary Dismukes <dismukes@gnat.com>
0c644933 37668
b6b3c138 37669 * exp_ch3.adb:
0c644933
AC
37670 (Component_Needs_Simple_Initialization): Return False when the type is a
37671 packed bit array. Revise spec comments to document this case.
37672
b6b3c138 37673 * exp_prag.adb:
0c644933
AC
37674 (Expand_Pragma_Import): Set any expression on the imported object to
37675 empty to avoid initializing imported objects (in particular this
37676 covers the case of zero-initialization of bit arrays).
37677 Update copyright notice.
37678
6d244bbe 376792003-10-21 Ed Schonberg <schonberg@gnat.com>
0c644933 37680
b6b3c138 37681 * sem_ch12.adb:
0c644933
AC
37682 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
37683 a subunit is missing.
37684 (Instantiate_Subprogram_Body): If body of function is missing, set type
37685 of return expression explicitly in dummy body, to prevent cascaded
37686 errors when a subunit is missing.
37687 Fixes PR 5677.
37688
b6b3c138 37689 * sem_ch3.adb:
0c644933
AC
37690 (Access_Subprogram_Declaration): Verify that return type is valid.
37691 Fixes PR 8693.
37692
b6b3c138 37693 * sem_elab.adb:
0c644933
AC
37694 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
37695 generic.
37696 Fixes PR 12318.
37697
b6b3c138 37698 * sem_util.adb:
0c644933
AC
37699 (Corresponding_Discriminant): If the scope of the discriminant is a
37700 private type without discriminant, use its full view.
37701 Fixes PR 8247.
65f1ebd1 37702
fbf5a39b
AC
377032003-10-21 Arnaud Charlet <charlet@act-europe.fr>
37704
37705 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
37706 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
37707 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
37708 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
37709 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
37710 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
37711 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
37712 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
37713 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
37714 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
37715 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
37716 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
37717 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
37718 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
37719 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
37720 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
37721 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
37722 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
37723 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
37724 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
37725 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
37726 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
37727 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
37728 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
37729 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
37730 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
37731 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
37732 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
37733 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
37734 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
37735 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
37736 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
37737 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
37738 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
37739 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
37740 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
37741 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
37742 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
37743 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
37744 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
37745 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
37746 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
37747 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
37748 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
37749 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
37750 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
37751 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
37752 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
37753 vms_conv.ads, vms_conv.adb, vms_data.ads,
37754 vxaddr2line.adb: Files added. Merge with ACT tree.
37755
37756 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
37757 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
37758 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
37759 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
37760 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
37761 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
37762 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
37763 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
37764 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
37765 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
37766
37767 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
37768 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
37769 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
37770 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
37771 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
37772 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
37773 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
37774 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
37775 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
37776 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
37777 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
37778 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
37779 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
37780 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
37781 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
37782 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
37783 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
37784 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
37785 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
37786 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
37787 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
37788 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
37789 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
37790 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
37791 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
37792 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
37793 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
37794 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
37795 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
37796 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
37797 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
37798 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
37799 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
37800 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
37801 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
37802 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
37803 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
37804 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
37805 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
37806 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
37807 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
37808 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
37809 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
37810 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
37811 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
37812 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
37813 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
37814 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
37815 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
37816 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
37817 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
37818 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
37819 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
37820 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
37821 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
37822 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
37823 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
37824 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
37825 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
37826 checks.adb, checks.ads, cio.c, comperr.adb,
37827 comperr.ads, csets.adb, cstand.adb, cstreams.c,
37828 debug_a.adb, debug_a.ads, debug.adb, decl.c,
37829 einfo.adb, einfo.ads, errout.adb, errout.ads,
37830 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
37831 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
37832 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
37833 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
37834 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
37835 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
37836 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
37837 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
37838 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
37839 fe.h, fmap.adb, fmap.ads, fname.adb,
37840 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
37841 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
37842 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
37843 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
37844 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
37845 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
37846 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
37847 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
37848 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
37849 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
37850 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
37851 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
37852 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
37853 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
37854 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
37855 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
37856 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
37857 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
37858 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
37859 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
37860 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
37861 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
37862 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
37863 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
37864 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
37865 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
37866 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
37867 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
37868 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
37869 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
37870 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
37871 layout.adb, lib.adb, lib.ads, lib-list.adb,
37872 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
37873 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
37874 link.c, live.adb, make.adb, make.ads,
37875 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
37876 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
37877 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
37878 misc.c, mkdir.c, mlib.adb, mlib.ads,
37879 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
37880 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
37881 namet.adb, namet.ads, namet.h, nlists.ads,
37882 nlists.h, nmake.adt, opt.adb, opt.ads,
37883 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
37884 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
37885 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
37886 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
37887 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
37888 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
37889 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
37890 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
37891 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
37892 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
37893 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
37894 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
37895 prj-util.adb, prj-util.ads, raise.c, raise.h,
37896 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
37897 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
37898 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
37899 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
37900 scans.ads, scn.adb, scn.ads, s-crc32.adb,
37901 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
37902 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
37903 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
37904 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
37905 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
37906 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
37907 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
37908 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
37909 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
37910 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
37911 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
37912 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
37913 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
37914 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
37915 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
37916 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
37917 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
37918 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
37919 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
37920 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
37921 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
37922 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
37923 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
37924 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
37925 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
37926 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
37927 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
37928 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
37929 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
37930 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
37931 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
37932 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
37933 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
37934 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
37935 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
37936 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
37937 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
37938 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
37939 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
37940 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
37941 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
37942 stringt.adb, stringt.ads, stringt.h, style.ads,
37943 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
37944 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
37945 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
37946 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
37947 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
37948 table.adb, table.ads, targparm.adb, targparm.ads,
37949 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
37950 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
37951 ttypes.ads, types.ads, types.h, uintp.adb,
37952 uintp.ads, uintp.h, uname.adb, urealp.adb,
37953 urealp.ads, urealp.h, usage.adb, utils2.c,
37954 utils.c, validsw.adb, validsw.ads, widechar.adb,
37955 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
37956 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
37957 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
37958 gnatvsn.ads: Merge with ACT tree.
37959
37960 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
37961
97ae108d
MM
379622003-10-20 Mark Mitchell <mark@codesourcery.com>
37963
de696511
MM
37964 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
37965 (gnat_ug_vmx.info): Likewise.
37966 (gnat_ug_vxw.info): Likewise.
37967 (gnat_ug_wnt.info): Likewise.
37968 (gnat_rm.info): Likewise.
37969 (gnat-style.info): Likewise.
37970
97ae108d
MM
37971 * Make-lang.in (ada.install-info): Remove target.
37972 (info): New target.
37973 (install-info): Likewise.
37974 (gnat_ug_unx.info): Simplify rule.
37975 (gnat_ug_vmx.info): Likewise.
37976 (gnat_ug_vxw.info): Likewise.
37977 (gnat_ug_wnt.info): Likewise.
37978 (gnat_rm.info): Likewise.
37979 (gnat-style.info): Likewise.
37980
43aba518
NN
379812003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
37982
37983 * Make-lang.in: Replace uses of $(target_alias) with
37984 $(target_noncanonical).
37985 * ada/Makefile.in: Remove unused mention of $(target_alias).
37986
62b81e45
MM
379872003-10-06 Mark Mitchell <mark@codesourcery.com>
37988
37989 * Make-lang.in (ada.info): Replace with ...
37990 (info): ... this.
37991 (ada.dvi): Replace with ...
37992 (dvi): ... this.
37993
783be936
ZW
379942003-09-29 Zack Weinberg <zack@codesourcery.com>
37995
37996 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
37997 initialize dconstp5 and dconstmp5.
37998
177560b2
RH
379992003-09-28 Richard Henderson <rth@redhat.com>
38000
38001 * trans.c (tree_transform): Update call to expand_asm_operands.
38002
f31686a3
RH
380032003-09-21 Richard Henderson <rth@redhat.com>
38004
38005 * trans.c, utils.c: Revert.
38006
7e2af53a
RH
380072003-09-21 Richard Henderson <rth@redhat.com>
38008
38009 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
38010 change to const.
38011
5f1e32fa
MM
380122003-09-04 Michael Matz <matz@suse.de>
38013
38014 * misc.c: Include "target.h".
38015 * Make-lang.in (misc.o): Add dependency on target.h.
38016
61f71b34
DD
380172003-09-03 DJ Delorie <dj@redhat.com>
38018
38019 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
38020 hook.
38021
2ed26f6b
ZW
380222003-08-30 Zack Weinberg <zack@codesourcery.com>
38023
38024 * Makefile.in: Update substitutions to match changes to
38025 configure. Use include directives instead of @-insertions
38026 to read in host and target fragments. Add a rule to
38027 regenerate ada/Makefile.
38028
b2e608ca
NB
380292003-07-18 Neil Booth <neil@daikokuya.co.uk>
38030
38031 * lang-options.h: Remove.
38032 * lang.opt: Add help text.
38033
0cea056b
NS
380342003-07-07 Nathan Sidwell <nathan@codesourcery.com>
38035
38036 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
38037 calls.
38038
cb66e385
NB
380392003-07-06 Neil Booth <neil@daikokuya.co.uk>
38040
38041 * misc.c (gnat_handle_option): Don't handle filenames.
38042
9e94c78f 380432003-07-04 H.J. Lu <hongjiu.lu@intel.com>
8c90b13a
L
38044
38045 * Make-lang.in: Replace PWD with PWD_COMMAND.
38046 * Makefile.adalib: Likewise.
38047 * Makefile.in: Likewise.
38048
9c286213
MK
380492003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
38050
38051 * misc.c (gnat_argv): Revert last change.
38052 (gnat_handle_option, gnat_init_options): Copy arguments.
38053
b9add449
NB
380542003-07-03 Neil Booth <neil@daikokuya.co.uk>
38055
9c286213 38056 * misc.c (gnat_argv): Make const.
b9add449 38057
836d77a9
NB
380582003-07-02 Neil Booth <neil@daikokuya.co.uk>
38059
38060 * misc.c (save_argc, save_argv): Keep non-static!
38061
b86f6cd9
NB
380622003-07-02 Neil Booth <neil@daikokuya.co.uk>
38063
38064 * misc.c (save_argc, save_argv): Make static.
38065 (gnat_init_options): New prototype.
38066 (gnat_init_options): Update.
38067
6344b1f1
MK
380682003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
38069
38070 * gnat_ug.texi: Remove unlikely characters from @vars.
38071 * gnat_ug_vms.texi: Regenerate.
38072
2e040219
NS
380732003-06-27 Nathan Sidwell <nathan@codesourcery.com>
38074
38075 * misc.c (record_code_position): Adjust emit_note call.
38076
9eee5e72
NB
380772003-06-26 Neil Booth <neil@daikokuya.co.uk>
38078
38079 * misc.c (gnat_handle_option): Don't check for missing arguments.
38080
1f9cc6db
NS
380812003-06-20 Nathan Sidwell <nathan@codesourcery.com>
38082
38083 * utils.c (end_subprog_body): Adjust expand_function_end call.
38084
23d6baa3
MK
380852003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
38086
38087 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
38088 Bind_Main_Program.
38089
be43ab4e
NB
380902003-06-15 Neil Booth <neil@daikokuya.co.uk>
38091
38092 * lang.opt: Declare Ada.
38093 * misc.c (gnat_init_options): Update.
38094
ee6b0296
NS
380952003-06-14 Nathan Sidwell <nathan@codesourcery.com>
38096
38097 * utils.c (begin_subprog_body): Adjust init_function_start call.
38098
d7b42618
NB
380992003-06-14 Neil Booth <neil@daikokuya.co.uk>
38100
38101 * Make-lang.in: Update to use options.c and options.h.
38102 * misc.c: Include options.h not aoptions.h.
38103 (gnat_handle_option): Abort on unrecognized switch.
38104 (gnat_init_options): Request Ada switches.
38105
57eb6503
NB
381062003-06-14 Neil Booth <neil@daikokuya.co.uk>
38107
38108 * lang.opt: Add -Wall.
38109 * misc.c (gnat_handle_option): Handle it.
38110
70fd6569
NB
381112003-06-12 Neil Booth <neil@daikokuya.co.uk>
38112
38113 * misc.c (gnat_handle_option): Fix warnings.
38114
8cdea5a1
MK
381152003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
38116
38117 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
38118
3c900cb5
NB
381192003-06-11 Neil Booth <neil@daikokuya.co.uk>
38120
38121 * Make-lang.in: Update to handle command-line options.
38122 * lang.opt: New file.
38123 * misc.c: Include aoptions.h.
38124 (cl_options_count, cl_options): Remove.
38125 (gnat_handle_option): New.
38126 (gnat_decode_option): Remove.
38127 (LANG_HOOKS_DECODE_OPTION): Remove.
38128 (LANG_HOOKS_HANDLE_OPTION): Override.
38129
e8face4c
NN
381302003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
38131
38132 * init.c, misc.c, trans.c, utils.c: Remove dead code.
38133
4665e56c
NN
381342003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
38135
38136 * Makefile.in: Replace "host_canonical" with "host" for autoconf
38137 substitution.
38138
a165c302
NB
381392003-06-08 Neil Booth <neil@daikokuya.co.uk>
38140
38141 * Make-lang.in: Update.
38142 * misc.c: Include opts.h. Define cl_options_count and cl_options.
38143
2772ef3e
NB
381442003-06-07 Neil Booth <neil@daikokuya.co.uk>
38145
38146 * misc.c (gnat_init_options): Update.
38147
d8277a55
MK
381482003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
38149
38150 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
38151 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
38152 __attribute__ ((__unused__)).
38153
602a82f3 381542003-06-05 Jan Hubicka <jh@suse.cz>
8f231b5d
JH
38155
38156 * Make-lang.in: Add support for stageprofile and stagefeedback
38157
3aa07c6d
MK
381582003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
38159
38160 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
38161 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
38162
f1093866
MK
381632003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
38164
38165 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
38166 Remove non-VMS directive.
38167 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
38168 alternatives.
38169 (Examples of gnatls Usage): Remove VMS alternative.
dee2df72
OH
38170
381712003-06-04 Olivier Hainque <hainque@act-europe.fr>
38172
6f7f72f9 38173 PR ada/9953
2ed26f6b
ZW
38174 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
38175 and turn ZCX_By_Default back to False since the underlying support
38176 is not quite there yet.
dee2df72 38177
80eaf415
AJ
381782003-06-01 Andreas Jaeger <aj@suse.de>
38179
38180 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
38181 and ROUND_TYPE_SIZE_UNIT.
38182
9e94c78f 381832003-05-22 Geert Bosch <bosch@gnat.com>
36f9020c
GB
38184
38185 * gnat_rm.texi : Remove reference to Ada Core Technologies.
38186
e7b5f0c9
NS
381872003-05-03 Nathan Sidwell <nathan@codesourcery.com>
38188
38189 * trans.c (tree_transform): Use location_t and input_location
38190 directly.
38191 (build_unit_elab): Likewise.
38192 * utils.c (create_label_decl): Likewise.
38193
d479d37f
NS
381942003-05-01 Nathan Sidwell <nathan@codesourcery.com>
38195
561712fe
NS
38196 * trans.c (tree_transform, build_unit_elab,
38197 set_lineno): Rename lineno to input_line.
d479d37f
NS
38198 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
38199 end_subprog_body): Likewise.
38200 * utils2.c (build_call_raise): Likewise.
38201
9e94c78f 382022003-05-01 Laurent Guerby <guerby@acm.org>
4f9335cd 38203
2ed26f6b
ZW
38204 PR ada/10546
38205 * 5iosinte.ads: Increase pthread_cond_t size to match recent
38206 LinuxThread and NPTL version, merge from ACT.
80eaf415 38207
0864034e
ZW
382082003-04-28 Zack Weinberg <zack@codesourcery.com>
38209
38210 * utils.c (convert): No need to clear TREE_CST_RTL.
38211
9e94c78f 382122003-04-23 Geert Bosch <bosch@gnat.com>
bcea76b6
GB
38213
38214 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
38215 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
38216 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
38217 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
38218 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
38219 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
38220 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
38221 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
38222 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
38223 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
38224 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
38225 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
38226 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
38227 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
38228 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
38229 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
38230 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
38231 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
38232 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
38233 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
38234 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
38235 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
38236 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
38237 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
38238 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
38239 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
38240 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
38241 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
38242 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
38243 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
38244 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
38245 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
38246 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
38247 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
38248 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
38249 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
38250 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
38251 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
38252 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
38253 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
38254 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
38255 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
38256 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
38257 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
38258 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
38259 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
38260 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
38261 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
38262 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
38263 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
38264 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
38265 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
38266 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
38267 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
38268 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
38269 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
38270 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
38271 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
38272 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
38273 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
38274 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
38275 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
38276 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
38277 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
38278 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
38279 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
38280 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
38281 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
38282 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
38283 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
38284 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
38285 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
38286 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
38287 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
38288 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
38289 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
38290 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
38291 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
38292 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
38293 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
38294 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
38295 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
38296 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
38297 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
38298 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
38299 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
38300 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
38301 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
38302 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
38303 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
38304 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
38305 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
38306 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
38307 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
38308 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
38309 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
38310 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
38311 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
38312 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
38313 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
38314 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
38315 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
38316 ali.adb, ali.ads, alloc.ads, argv.c,
38317 atree.adb, atree.ads, atree.h, aux-io.c,
38318 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
38319 binde.adb, binde.ads, binderr.adb, binderr.ads,
38320 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
38321 butil.adb, butil.ads, cal.c, calendar.ads,
38322 casing.adb, casing.ads, ceinfo.adb, checks.adb,
38323 checks.ads, cio.c, comperr.adb, comperr.ads,
38324 config-lang.in, csets.adb, csets.ads, csinfo.adb,
38325 cstand.adb, cstand.ads, cuintp.c, debug.adb,
38326 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
38327 dec-io.ads, dec.ads, deftarg.c, directio.ads,
38328 einfo.adb, einfo.ads, elists.adb, elists.ads,
38329 elists.h, errno.c, errout.adb, errout.ads,
38330 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
38331 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
38332 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
38333 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
38334 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
38335 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
38336 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
38337 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
38338 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
38339 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
38340 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
38341 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
38342 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
38343 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
38344 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
38345 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
38346 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
38347 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
38348 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
38349 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
38350 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
38351 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
38352 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
38353 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
38354 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
38355 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
38356 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
38357 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
38358 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
38359 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
38360 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
38361 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
38362 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
38363 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
38364 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
38365 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
38366 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
38367 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
38368 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
38369 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
38370 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
38371 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
38372 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
38373 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
38374 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
38375 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
38376 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
38377 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
38378 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
38379 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
38380 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
38381 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
38382 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
38383 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
38384 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
38385 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
38386 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
38387 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
38388 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
38389 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
38390 lib.adb, lib.ads, live.adb, live.ads,
38391 machcode.ads, make.adb, make.ads, makeusg.adb,
38392 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
38393 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
38394 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
38395 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
38396 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
38397 mlib.ads, namet.adb, namet.ads, nlists.adb,
38398 nlists.ads, opt.adb, opt.ads, osint-b.adb,
38399 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
38400 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
38401 osint.ads, output.adb, output.ads, par-ch10.adb,
38402 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
38403 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
38404 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
38405 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
38406 par-tchk.adb, par-util.adb, par.adb, par.ads,
38407 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
38408 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
38409 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
38410 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
38411 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
38412 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
38413 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
38414 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
38415 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
38416 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
38417 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
38418 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
38419 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
38420 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
38421 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
38422 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
38423 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
38424 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
38425 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
38426 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
38427 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
38428 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
38429 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
38430 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
38431 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
38432 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
38433 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
38434 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
38435 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
38436 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
38437 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
38438 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
38439 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
38440 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
38441 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
38442 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
38443 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
38444 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
38445 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
38446 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
38447 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
38448 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
38449 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
38450 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
38451 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
38452 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
38453 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
38454 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
38455 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
38456 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
38457 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
38458 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
38459 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
38460 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
38461 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
38462 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
38463 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
38464 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
38465 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
38466 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
38467 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
38468 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
38469 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
38470 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
38471 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
38472 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
38473 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
38474 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
38475 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
38476 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
38477 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
38478 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
38479 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
38480 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
38481 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
38482 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
38483 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
38484 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
38485 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
38486 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
38487 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
38488 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
38489 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
38490 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
38491 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
38492 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
38493 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
38494 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
38495 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
38496 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
38497 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
38498 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
38499 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
38500 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
38501 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
38502 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
38503 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
38504 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
38505 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
38506 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
38507 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
38508 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
38509 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
38510 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
38511 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
38512 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
38513 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
38514 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
38515 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
38516 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
38517 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
38518 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
38519 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
38520 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
38521 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
38522 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
38523 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
38524 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
38525 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
38526 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
38527 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
38528 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
38529 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
38530 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
38531 snames.ads, sprint.adb, sprint.ads, stand.adb,
38532 stand.ads, stringt.adb, stringt.ads, style.adb,
38533 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
38534 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
38535 switch-m.ads, switch.adb, switch.ads, system.ads,
38536 table.adb, table.ads, targparm.adb, targparm.ads,
38537 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
38538 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
38539 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
38540 ttypef.ads, ttypes.ads, types.adb, types.ads,
38541 uintp.adb, uintp.ads, uname.adb, uname.ads,
38542 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
38543 usage.adb, usage.ads, validsw.adb, validsw.ads,
38544 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
38545 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
38546 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
38547 formatting and other trivial changes from ACT.
38548
dcf92453
ZW
385492003-04-12 Zack Weinberg <zack@codesourcery.com>
38550
38551 * gigi.h, utils2.c (build_constructor):
38552 Rename gnat_build_constructor. Use build_constructor.
38553 * decl.c (gnat_to_gnu_entity)
38554 * trans.c (tree_transform, pos_to_constructor, extract_values)
38555 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
38556 (unchecked_convert)
38557 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
38558 (fill_vms_descriptor):
38559 Update to match.
38560
d78e771d
ZW
385612003-04-06 Zack Weinberg <zack@codesourcery.com>
38562
38563 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
38564 * misc.c (gnat_tree_size): New function.
38565 (LANG_HOOKS_TREE_SIZE): Override.
38566
78d55cc8
JM
385672003-04-03 Jason Merrill <jason@redhat.com>
38568
38569 * misc.c (gnat_adjust_rli): #if 0.
38570
9e94c78f 385712003-03-31 Geert Bosch <bosch@gnat.com>
b174e2d4
GB
38572
38573 PR ada/10020
38574 * link.c : Fix misspelled "const" keyword
38575
f29a2bd1
MM
385762003-03-23 Mark Mitchell <mark@codesourcery.com>
38577
38578 PR c++/7086
38579 * utils2.c: Adjust calls to put_var_into_stack.
38580
08e247b1
NN
385812003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
38582
38583 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
38584
4bfec483
NB
385852003-03-08 Neil Booth <neil@daikokuya.co.uk>
38586
38587 * misc.c (gnat_init): Update for new prototype.
38588
3d713bb8
GB
385892003-03-05 Olivier Hainque <hainque@gnat.com>
38590
38591 ada/9961
78d55cc8
JM
38592 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
38593 warning, and fix return type for the IN_RTS && !SJLJ case.
3d713bb8 38594
8b89fcdf
TT
385952003-03-04 Tom Tromey <tromey@redhat.com>
38596
38597 * Make-lang.in (ada.tags): New target.
38598
3d713bb8 385992003-03-04 Olivier Hainque <hainque@act-europe.fr>
23cae84f
OH
38600
38601 ada/9911
38602 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
38603 wrapper, which name remains constant whatever underlying GCC
38604 scheme.
38605
38606 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
38607 the stable interface needed for a-except.
38608
f4ae98be
AJ
386092003-03-02 Andreas Jaeger <aj@suse.de>
38610
38611 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
38612 gnat_ug_wnt.texi: Regenerate.
38613
9e94c78f 386142003-03-02 Laurent Guerby <guerby@acm.org>
5348742b 38615
f4ae98be 38616 * Makefile.in (install-gnatlib): Match previous change there
5348742b 38617 so it works.
f4ae98be 38618
8c108db2
AS
386192003-02-28 Andreas Schwab <schwab@suse.de>
38620
38621 * Make-lang.in (install-gnatlib): Change to ada directory before
38622 running make instead of using ada/Makefile directly.
38623
601d71bc
BE
386242003-02-18 Ben Elliston <bje@redhat.com>
38625
6f7f72f9 38626 Part of PR ada/9406
601d71bc
BE
38627 * gnat_ug.texi (Binder output file): Grammar fix.
38628
bf7c02dd
BE
386292003-02-18 Ben Elliston <bje@redhat.com>
38630
38631 PR other/7350
38632 * 5qtaprop.adb (Sleep): Fix typo in comment.
38633
b3a8389d
JM
386342003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
38635
38636 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
38637 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
38638 gnat_ug_wnt.texi: Regenerate.
38639
9e94c78f 386402003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
5da14cb5
CC
38641
38642 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
38643 be created if necessary.
38644 (ada.install-common): Let $(DESTDIR)$(bindir) be created
38645 if necessary. Remove erroneous and redundant gnatchop
38646 installation commands. Test for gnatdll before attempting
38647 to install it.
38648 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
38649 and gnatdll from all plausible locations.
38650
271bd540
RS
386512003-02-01 Richard Sandiford <rsandifo@redhat.com>
38652
38653 * utils2.c (build_unary_op): Don't check flag_volatile.
38654 * gnat_ug.texi: Remove -fvolatile from example.
38655 * gnat_ug_vxw.texi: Likewise.
38656
9e94c78f 386572003-01-29 Laurent Guerby <guerby@acm.org>
c1cc6a51 38658
d78e771d
ZW
38659 PR ada/8344
38660 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
38661 * Makefile.in: match previous change.
38662 * Make-lang.in: match previous change.
c1cc6a51 38663
9e94c78f 386642003-01-29 Joel Sherrill <joel@OARcorp.com>
c4039eb0
JS
38665
38666 * 5rosinte.ads: Add SIGXCPU.
38667 * 5rtpopsp.adb: New file.
38668 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
38669 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
38670 specific file 5rtpopsp.adb.
38671 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
38672 is likely needed for all newlib targets.
38673 * init.c: Add RTEMS specific version of __gnat_initialize().
38674
00d29f7d
RO
386752003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38676
38677 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
38678
437026ef
RO
386792003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38680
38681 * init.c (__gnat_error_handler): Make msg const.
38682
38683 * gmem.c (convert_addresses): Move declaration ...
38684 * adaint.h: ... here.
38685 * adaint.c (convert_addresses): Adapt addrs type to match
38686 prototype.
38687
38688 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
38689
e12825cd
AS
386902003-01-24 Andreas Schwab <schwab@suse.de>
38691
38692 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
38693 size_t to avoid warning.
38694
a8729406
ZW
386952003-01-21 Zack Weinberg <zack@codesourcery.com>
38696
b09b91b9 38697 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
a8729406 38698
17211ab5
GK
386992003-01-09 Geoffrey Keating <geoffk@apple.com>
38700
38701 * gnat_rm.texi: Remove RCS version number.
38702
38703 * ada-tree.h (union lang_tree_node): Add chain_next option.
38704
1d27195c
CC
387052003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
38706
38707 * Make-lang.in (ada.install-info, ada.install-common,
38708 ada.uninstall): Prepend $(DESTDIR) to the destination
38709 directory in all (un)installation commands.
38710 * Makefile.in (install-gnatlib, install-rts): Ditto.
38711
bdefb2ab
JM
387122002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
38713
38714 * gnat_rm.texi, gnat_ug.texi: Use @copying.
38715 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
38716 gnat_ug_wnt.texi: Regenerate.
38717
46d40353
JM
387182002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
38719
38720 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
38721 only.
38722 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
38723 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
38724 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
38725 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
38726 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
38727 $(srcdir)/doc/include/gcc-common.texi.
38728
9e94c78f 387292002-12-15 Geert Bosch <bosch@gnat.com>
d2f97d3e
GB
38730
38731 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
38732
9e94c78f 387332002-12-14 Geert Bosch <bosch@gnat.com>
93a81b02 38734
6f7f72f9 38735 PR ada/5690
4977bab6
ZW
38736 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
38737 case of a body created for a Renaming_As_Body, on which
6f7f72f9 38738 conformance checks are not performed.
4977bab6
ZW
38739
387402002-11-30 Zack Weinberg <zack@codesourcery.com>
38741
38742 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
38743 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
38744 not already included.
38745 * Make-lang.in: Update dependencies.
93a81b02 38746
dfc15546
NN
387472002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
38748 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
4977bab6 38749 solution to buffer overflow bug on GNU/Linux.
dfc15546 38750
8b54424d 387512002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
6f7f72f9
EB
38752
38753 PR ada/5856
38754 PR ada/6919
8b54424d
NN
38755 * bindgen.adb: Remove all references to Public_Version.
38756 * comperr.adb: Remove all references to Public_Version and
38757 GNATPRO_Version; correct bug reporting instructions.
38758 * comperr.ads: Change to match bug box.
38759 * gnatvsn.ads: Remove all references to Public version and
38760 GNATPRO version.
38761
cc41268d 387622002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
6f7f72f9 38763
1a083c0e
NN
38764 PR ada/6919
38765 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
38766 GNU/Linux.
38767
cc41268d
NN
38768 PR ada/6558
38769 * config-lang.in: Remove diff_excludes.
38770
1c7b0712 387712002-11-05 Graham Stott <graham.stott@btinternet.com>
6f7f72f9 38772
1c7b0712
GS
38773 PR ada/8358
38774 * trans.c (gnu_pending_elaboration_lists): New GC root.
4977bab6 38775 (build_unit_elab): Use..
1c7b0712 38776
9e94c78f 387772002-10-30 Geert Bosch <bosch@gnat.com>
6f7f72f9 38778
1c4048ca
GB
38779 PR ada/6558
38780 * misc.c : Include optabs.h
38781
38782 * Make-lang.in (misc.o): Add dependency on optabs.h
38783
9e94c78f 387842002-10-29 Geert Bosch <bosch@gnat.com>
6f7f72f9 38785
4977bab6 38786 PR ada/6558
f0d96f9c
GB
38787 * Make-lang.in (gnatbind): Depend on CONFIG_H
38788
a7512dec 387892002-10-29 Geert bosch <bosch@gnat.com>
6f7f72f9 38790
4977bab6
ZW
38791 PR ada/6558
38792 * misc.c: Unrevert misc.c (1.13)
a7512dec 38793
c6362f4f
NN
387942002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
38795
38796 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
38797 maintainership comments.
38798
387992002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
6f7f72f9 38800
91ed4b19 38801 PR ada/5904
4977bab6
ZW
38802 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
38803 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
38804 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
38805 7staprop.adb: Correct statements in comments about
91ed4b19
NN
38806 maintainership of GNAT.
38807
1f02b6af 38808 PR ada/5904
4977bab6
ZW
38809 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
38810 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
38811 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
38812 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
38813 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
38814 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
38815 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
1f02b6af
NN
38816 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
38817 comments about maintainership of GNAT.
38818
71ff80dc 38819 PR ada/6919 (forward port of patch for PR ada/5904)
4977bab6
ZW
38820 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
38821 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
38822 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
38823 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
38824 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
38825 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
38826 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
38827 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
38828 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
38829 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
38830 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
38831 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
38832 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
38833 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
38834 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
38835 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
38836 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
38837 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
38838 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
38839 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
38840 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
38841 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
38842 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
38843 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
38844 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
38845 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
38846 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
38847 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
38848 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
38849 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
38850 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
38851 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
38852 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
38853 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
38854 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
38855 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
38856 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
38857 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
38858 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
38859 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
38860 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
38861 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
38862 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
38863 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
38864 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
38865 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
38866 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
38867 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
38868 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
38869 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
38870 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
38871 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
38872 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
38873 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
38874 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
38875 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
38876 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
38877 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
38878 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
38879 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
38880 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
38881 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
38882 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
38883 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
38884 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
38885 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
38886 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
38887 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
38888 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
38889 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
38890 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
38891 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
38892 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
38893 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
38894 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
38895 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
38896 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
38897 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
38898 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
38899 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
38900 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
38901 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
38902 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
38903 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
38904 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
38905 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
38906 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
38907 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
38908 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
38909 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
38910 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
38911 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
38912 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
38913 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
38914 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
38915 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
38916 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
38917 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
38918 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
38919 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
38920 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
38921 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
38922 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
38923 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
38924 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
38925 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
38926 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
38927 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
38928 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
38929 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
38930 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
38931 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
38932 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
38933 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
38934 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
38935 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
38936 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
38937 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
38938 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
38939 par-endh.adb par-labl.adb par-load.adb par-prag.adb
38940 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
38941 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
38942 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
38943 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
38944 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
38945 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
38946 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
38947 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
38948 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
38949 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
38950 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
38951 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
38952 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
38953 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
38954 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
38955 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
38956 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
38957 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
38958 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
38959 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
38960 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
38961 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
38962 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
38963 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
38964 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
38965 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
38966 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
38967 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
38968 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
38969 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
38970 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
38971 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
38972 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
38973 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
38974 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
38975 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
38976 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
38977 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
38978 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
38979 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
38980 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
38981 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
38982 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
38983 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
38984 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
38985 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
38986 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
38987 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
38988 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
38989 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
38990 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
38991 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
38992 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
38993 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
38994 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
38995 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
38996 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
38997 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
38998 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
38999 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
39000 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
39001 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
39002 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
39003 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
39004 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
39005 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
39006 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
39007 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
39008 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
39009 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
39010 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
39011 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
39012 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
39013 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
39014 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
39015 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
39016 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
39017 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
39018 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
39019 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
39020 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
39021 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
39022 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
39023 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
39024 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
39025 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
39026 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
39027 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
39028 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
39029 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
39030 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
39031 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
39032 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
39033 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
39034 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
39035 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
39036 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
39037 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
39038 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
39039 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
39040 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
39041 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
39042 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
39043 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
39044 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
39045 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
39046 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
39047 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
39048 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
39049 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
39050 stringt.ads stringt.h style.adb style.ads stylesw.adb
39051 stylesw.ads switch.adb switch.ads sysdep.c system.ads
39052 table.adb table.ads targparm.adb targparm.ads targtyps.c
39053 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
39054 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
39055 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
39056 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
39057 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
39058 usage.ads utils.c utils2.c validsw.adb validsw.ads
39059 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
39060 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
71ff80dc
NN
39061 xtreeprs.adb: Correct statements in comments about maintainership
39062 of GNAT.
39063
b4f94ac1
ZW
390642002-09-23 Zack Weinberg <zack@codesourcery.com>
39065
39066 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
39067 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
39068 * gnatvsn.ads: Gnat_Version_String is now a function.
39069 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
39070 copy the C version_string into a String and return it.
39071 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
39072 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
39073 Remove pragma Ident (Gnat_Version_String). If this was the
39074 sole use of package Gnatvsn, remove the with statement too.
39075 * gnat1drv.adb: Tweak -gnatv output.
39076
eaff3bf8
RH
390772002-09-17 Richard Henderson <rth@redhat.com>
39078
39079 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
39080 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
39081 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
39082 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
39083 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
39084 and real_2expN instead of a loop.
39085 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
39086 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
39087
9e94c78f
EB
390882002-08-25 Andre Leis <a.leis@gmx.net>
39089 David Billinghurst <David.Billinghurst@riotinto.com>
d241f75b 39090
f4ae98be 39091 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
d241f75b 39092
4320085a
RO
390932002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
39094
39095 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
39096 Remove $(CONFIG_H) dependency.
39097
22aa533e
NS
390982002-08-08 Nathan Sidwell <nathan@codesourcery.com>
39099
39100 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
39101
1dcd444b
KG
391022002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
39103
39104 * adadecode.c (ada_demangle): Use xstrdup in lieu of
39105 xmalloc/strcpy.
39106 * misc.c (gnat_decode_option): Likewise.
39107
7bc7d27b
FW
391082002-07-15 Florian Weimer <fw@deneb.enyo.de>
39109
39110 * make.adb (Add_Switch): Make Generic_Position a procedure. The
39111 function approach did not work well because of a side effect (the
39112 function call could reallocate the table which was being indexed
39113 using its result). Fixes ada/4851. [RESURRECTED]
39114
6a2dd09a
RS
391152002-07-01 Roger Sayle <roger@eyesopen.com>
39116
39117 * ada/utils.c (builtin_function): Accept an additional parameter.
39118
c168bbd7
AJ
391192002-06-28 Andreas Jaeger <aj@suse.de>
39120
39121 PR ada/7144
39122 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
39123 <adi@thur.de>.
39124
b41e09a7
KG
391252002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
39126
39127 * Makefile.in (SHELL): Set to @SHELL@.
39128
62c71f4b
KG
391292002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
39130
39131 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
39132 array size calculation.
39133
94213cff
AJ
391342002-06-04 Andreas Jaeger <aj@suse.de>
39135
39136 * Make-lang.in (gnatbind): Readd rule that has been lost in last
39137 patch.
39138
e2500fed
GK
391392002-06-03 Geoffrey Keating <geoffk@redhat.com>
39140
39141 Merge from pch-branch:
39142
39143 * config-lang.in (gtfiles): Add ada-tree.h.
39144 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
39145 (SET_TYPE_MODULUS): New.
39146 (SET_TYPE_INDEX): New.
39147 (SET_TYPE_DIGITS_VALUE): New.
39148 (SET_TYPE_RM_SIZE): New.
39149 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
39150 (SET_TYPE_ADA_SIZE): New.
39151 (SET_TYPE_ACTUAL_BOUNDS): New.
39152 (SET_DECL_CONST_CORRESPONDING_VAR): New.
39153 (SET_DECL_ORIGINAL_FIELD): New.
39154 (TREE_LOOP_ID): Correct typo.
39155 * decl.c: Use new macros.
39156 * utils.c: Include debug.h, use new macros.
94213cff 39157 * utils2.c: Use new macros.
e2500fed
GK
39158
39159 * ada-tree.h: Update all macros for new tree description.
39160 (struct tree_loop_id): New.
39161 (union lang_tree_node): New.
39162 (struct lang_decl): New.
39163 (struct lang_type): New.
39164 * misc.c (gnat_mark_tree): Delete.
39165 (LANG_HOOKS_MARK_TREE): Delete.
39166 * trans.c (tree_transform): No longer any need to cast
39167 for TREE_LOOP_ID.
39168
39169 * utils.c (struct language_function): New dummy structure.
39170
39171 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
39172 (misc.o): Likewise.
39173 (utils.o): Likewise; also gtype-ada.h.
39174 * Make-lang.in (gnat1): Add dependency on s-gtype.
39175 (gnatbind): Add dependency on $(CONFIG_H).
39176 * utils.c: Correct last #include.
39177 (stuct e_stack): Remove unnecessary 'static'.
39178 (mark_e_stack): Remove unused prototype.
39179
39180 * scn-nlit.adb: Remove whitespace after version number to
39181 keep lines under 80 chars.
39182 * snames.adb: Likewise.
39183 * treepr.ads: Likewise.
94213cff 39184
e2500fed
GK
39185 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
39186 (misc.o): Likewise.
39187 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
39188 * config-lang.in (gtfiles): New.
39189 * decl.c: Use gengtype for roots.
39190 * gigi.h: Use gengtype for roots.
39191 * trans.c: Use gengtype for roots.
39192 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
39193
27e511e0
GDR
391942002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
39195
39196 * misc.c (gnat_init): Adjust setting of internal_error_function.
39197
113dc143
JM
391982002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
39199
39200 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
39201 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
39202 gnat_ug_wnt.texi: Regenerate.
39203
5321fb3e
FW
392042002-05-31 Florian Weimer <fw@deneb.enyo.de>
39205
15e6136e
FW
39206 * 5ntaprop.adb (with System.OS_Primitives): Remove.
39207
019310ac
FW
39208 * cstreams.c (max_path_len): Move from here ...
39209 * adaint.c (__gnat_max_path_len): ... to here.
39210 * adaint.c (__gnat_max_path_len): Declare.
39211 * g-dirope.adb (Max_Path): Adjust.
39212 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
94213cff 39213 * i-cstrea.ads (max_path_len): Adjust.
019310ac
FW
39214 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
39215 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
39216
5321fb3e
FW
39217 * Makefile.in, Make-lang.in: Documentation is now built in
39218 Make-lang.in. Store Info and generated Texinfo files in the
39219 source directory.
39220 * gnat_ug.texi: Remove CVS keywords, correct version number.
39221 Set file name correctly.
39222
39223 * gnat_ug_*.texi: Add.
39224 * .cvsignore: Ignore generated Texinfo files.
39225
b1c12c4b
ZW
392262002-05-30 Zack Weinberg <zack@codesourcery.com>
39227
39228 * ada.h: Add MI guard macro.
39229 (SUBTYPE): Define constants with an anonymous enum, not static
39230 const variables.
39231 (IN): Cast constants to appropriate type before use.
39232
ead33da9
JM
392332002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
39234
39235 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
39236 (experimental)".
39237
7d600178
RO
392382002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
39239
39240 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
39241 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
39242 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
39243 (ALL_ADA_CFLAGS): Likewise.
39244 (ADA_INCLUDES): Likewise.
39245 Adapt for new working dir.
39246 (GNATBIND): Use Makefile.in version.
39247 (.SUFFIXES): Copy from Makefile.in.
39248 (ada-warn): Define.
39249 (.adb.o, .ads.o): Copy from Makefile.in.
39250 Added $(OUTPUT_OPTION).
39251 (GNAT1_C_OBJS): Moved from Makefile.in.
39252 Prefix with ada subdir.
39253 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
39254 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
39255 Adapt for new working dir.
39256 (EXTRA_GNATBIND_OBJS): Likewise.
39257 (ADA_BACKEND): Moved from Makefile.in.
39258 Renamed to avoid conflict with global BACKEND.
39259 Use that one.
39260 (TARGET_ADA_SRCS): Moved from Makefile.in.
39261 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
39262 Use ADA_BACKEND.
39263 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
39264 (ada_extra_files): Moved from Makefile.in.
39265 Prefix with ada subdir.
39266 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
39267 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
39268 (ada/nmake.ads): Likewise.
39269 (update-sources): Moved from Makefile.in.
39270 Prefix with ada subdir.
39271 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
39272 (ADA_TREE_H): Likewise.
39273 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
39274 (ada/memtrack.o): Likewise.
39275 (ada/adadecode.o): Likewise.
39276 Update dependencies.
39277 (ada/adaint.o): New.
39278 (ada/argv.o): Moved from Makefile.in.
39279 Prefix with ada subdir.
94213cff 39280 Update dependencies.
7d600178
RO
39281 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
39282 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
39283 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
39284 Prefix with ada subdir.
39285 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
39286 (GNAT DEPENDENCIES): Regenerate.
39287 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
39288 toplevel Makefile.in.
39289 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
39290 (TARGET_ADA_SRCS): Removed.
39291 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
39292 (GNATBIND_OBJS): Likewise.
39293 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
39294 (BACKEND): Removed.
39295 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
39296 (TREE_H): Likewise.
39297 (ada_extra_files): Likewise.
39298 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
39299 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
39300 (update-sources): Likewise.
39301 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
39302 (ADA_TREE_H): Likewise.
39303 (adadecoce.o): Likewise.
39304 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
39305 (GNAT DEPENDENCIES): Likewise.
39306
1e6347d8
RO
393072002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
39308
39309 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
39310 * Makefile.in: Likewise.
39311
db80834f
RO
393122002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
39313
39314 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
39315 Restore $(CONFIG_H) and prefix.o dependencies.
39316 (ada.stage[1-4]): Depend on stage?-start.
39317
39318 * Makefile.in (b_gnatb.c): Depend on interfac.o.
39319
ac293f98
JW
393202002-05-02 Jim Wilson <wilson@redhat.com>
39321
39322 * utils.c (finish_record_type): Change record_size to record_type.
39323
b303008e
JDA
393242001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
39325
39326 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
39327 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
39328 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
94213cff 39329
ff45c01e
NB
393302002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
39331
39332 * misc.c (gnat_parse_file): Update.
39333
349ae713
NB
393342002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
39335
39336 * misc.c (gnat_init): Don't set lang_attribute_common.
39337
ace133aa
JM
393382002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
39339
39340 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
39341
5c558dd9
FW
393422002-04-21 Florian Weimer <fw@deneb.enyo.de>
39343
b4f94ac1 39344 * gnat_ug.texi: New file.
88e1739c 39345
5c558dd9
FW
39346 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
39347 instead of gfdl.texi
39348
39349 * xgnatug.adb, ug_words: New files.
39350
39351 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
b4f94ac1 39352 gnat_rm and gnat-style manuals.
5c558dd9 39353
7a228918
NB
393542002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
39355
39356 * gigi.h (incomplete_type_error): Remove.
39357 * utils.c (incomplete_type_error): Remove.
39358
b2123dc0
MM
393592002-04-16 Mark Mitchell <mark@codesourcery.com>
39360
39361 * trans.c (tree_transform): Add has_scope argument to
39362 expand_start_stmt_expr.
39363
78ef5b89
NB
393642002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
39365
39366 * gigi.h (truthvalue_conversion): Rename.
39367 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
39368 * trans.c (tree_transform): Update.
39369 * utils2.c (truthvalue_conversion): Rename, update.
39370 (build_binary_op, build_unary_op): Update.
39371
a71742a8
LG
393722002-04-04 Laurent Guerby <guerby@acm.org>
39373
39374 * make.adb: Implement -margs, remove restriction about file name placement.
39375 * makeusg.adb: Documentation update.
39376 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
39377 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
39378
82a4b025
NB
393792002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
39380
39381 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
39382 (builtin_function): Similarly.
39383
dffd7eb6
NB
393842002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
39385
39386 * decl.c (gnat_to_gnu_entity): Update.
39387 * gigi.h (mark_addressable): Rename.
39388 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
39389 * trans.c (tree_transform): Update.
39390 * utils.c (create_var_decl): Update.
39391 * util2.c (build_binary_op, build_unary_op,
39392 fill_vms_descriptor): Update.
39393 (mark_addressable): Rename, update.
39394
ceef8ce4
NB
393952002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
39396
39397 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
39398 Rename.
39399 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
39400 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
39401 * trans.c (tree_transform, convert_with_check): Update.
39402 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
39403 Rename.
39404
48a7a235
NB
394052002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
39406
39407 * gigi.h (finish_incomplete_decl): Rename.
39408 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
39409 * utils.c (gnat_init_decl_processing): Don't set hook.
39410 (finish_incomplete_decl): Rename.
39411
1d5af871
AS
394122002-03-29 Andreas Schwab <schwab@suse.de>
39413
39414 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
39415 directory.
39416
9e94c78f 394172001-03-28 Robert Dewar <dewar@gnat.com>
8cbb664e
MG
39418
39419 * checks.ads:
39420 (Remove_Checks): New procedure
39421
39422 * checks.adb:
39423 (Remove_Checks): New procedure
39424
39425 * exp_util.adb:
39426 Use new Duplicate_Subexpr functions
39427 (Duplicate_Subexpr_No_Checks): New procedure
39428 (Duplicate_Subexpr_No_Checks_Orig): New procedure
39429 (Duplicate_Subexpr): Restore original form (checks duplicated)
39430 (Duplicate_Subexpr): Call Remove_Checks
39431
82a4b025 39432 * exp_util.ads:
8cbb664e
MG
39433 (Duplicate_Subexpr_No_Checks): New procedure
39434 (Duplicate_Subexpr_No_Checks_Orig): New procedure
39435 Add 2002 to copyright notice
39436
39437 * sem_util.adb: Use new Duplicate_Subexpr functions
39438
82a4b025 39439 * sem_eval.adb:
8cbb664e
MG
39440 (Eval_Indexed_Component): This is the place to call
39441 Constant_Array_Ref and to replace the value. We simply merge
39442 the code of this function in here, since it is now no longer
39443 used elsewhere. This fixes the problem of the back end not
39444 realizing we were clever enough to see that this was
39445 constant.
39446 (Expr_Val): Remove call to Constant_Array_Ref
39447 (Expr_Rep_Val): Remove call to Constant_Array_Ref
39448 Minor reformatting
39449 (Constant_Array_Ref): Deal with string literals (patch
39450 suggested by Zack Weinberg on the gcc list)
39451
9e94c78f 394522001-03-28 Ed Schonberg <schonber@gnat.com>
8cbb664e 39453
82a4b025 39454 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
8cbb664e
MG
39455 Duplicate_Subexpr_Move_Checks.
39456
82a4b025 39457 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
8cbb664e
MG
39458 Duplicate_Subexpr_Move_Checks.
39459
82a4b025
NB
39460 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
39461 value of array exists before retrieving it (it may a private
8cbb664e
MG
39462 protected component in a function).
39463
9e94c78f 394642002-03-28 Geert Bosch <bosch@gnat.com>
792c4e74
GB
39465
39466 * prj-pp.adb : New file.
39467
39468 * prj-pp.ads : New file.
39469
915e8bad
AJ
394702002-03-28 Andreas Jaeger <aj@suse.de>
39471
39472 * Makefile.in (stamp-sdefault): Fix path for Makefile.
39473
0840811c
NB
394742002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
39475
39476 * misc.c (gnat_expand_expr): Move prototype.
39477
7ffb4fd2
NB
394782002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
39479
39480 * misc.c (insert_default_attributes): Remove.
39481
c9d892a8
NB
394822002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
39483
39484 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
39485 (gnat_init): Don't set hook.
39486 (gnat_expand_expr): Fix prototype.
39487
31c816cf
NB
394882002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
39489
39490 * misc.c (ggc_p): Remove.
39491
ef83161c
GB
394922002-03-27 Geert Bosch <bosch@gnat.com>
39493
39494 * prj-makr.ads, prj-makr.adb : New files.
39495
4f0ade92
NB
394962002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
39497
39498 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
39499 (lang_mark_tree): Make static, rename.
39500
c88770e9
NB
395012002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
39502
39503 * misc.c (maybe_build_cleanup): Remove.
39504
05671968
NB
395052002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
39506
39507 * gigi.h (yyparse): Remove.
39508
ad42149c
FW
395092002-03-23 Florian Weimer <fw@deneb.enyo.de>
39510
9e94c78f 39511 From Ben Brosgol <brosgol@gnat.com>
82a4b025 39512 * gnat_rm.texi: Sync with ACT version.
ad42149c 39513
7afff7cf
NB
395142002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
39515
39516 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
39517 (gnat_init): Remove old hook.
39518
52dabb6c
NB
395192002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
39520
39521 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
39522 (yyparse): Rename gnat_parse_file.
39523
6cbcc541
GK
395242002-03-14 Geoffrey Keating <geoffk@redhat.com>
39525
39526 Delete all lines containing "$Revision:".
39527 * xeinfo.adb: Don't look for revision numbers.
39528 * xnmake.adb: Likewise.
39529 * xsinfo.adb: Likewise.
39530 * xsnames.adb: Likewise.
39531 * xtreeprs.adb: Likewise.
39532
2f9834e8
KG
395332002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
39534
39535 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
39536 gnat_tree_code_name): Delete.
39537 (tree_code_type, tree_code_length, tree_code_name): Define.
39538 (gnat_init): Don't try to copy into the various tree_code
39539 arrays.
39540
63adb4ff
RH
395412002-03-11 Richard Henderson <rth@redhat.com>
39542
39543 * Makefile.in (.NOTPARALLEL): Add fake tag.
39544
43ff4547
GB
395452002-03-07 Geert Bosch <bosch@gnat.com>
39546
82a4b025
NB
39547 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
39548 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
39549 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
43ff4547
GB
39550 switch-m.adb, switch-m.ads : New files.
39551
07fc65c4
GB
395522002-03-07 Geert Bosch <bosch@gnat.com>
39553
39554 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
39555 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
39556 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
39557 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
39558 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
39559 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
39560 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
39561 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
39562 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
39563 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
39564 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
39565 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
39566 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
39567 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
39568 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
39569 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
39570 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
39571 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
39572 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
39573 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
39574 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
39575 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
39576 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
39577 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
39578 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
39579 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
39580 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
39581 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
39582 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
39583 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
39584 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
39585 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
39586 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
39587 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
39588 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
39589 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
39590 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
39591 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
39592 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
39593 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
39594 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
39595 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
39596 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
39597 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
39598 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
39599 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
39600 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
39601 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
39602 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
39603 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
39604 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
39605 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
39606 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
39607 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
39608 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
39609 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
39610 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
39611 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
39612 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
39613 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
39614 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
39615 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
39616 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
39617 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
39618 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
39619 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
39620 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
39621 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
39622 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
39623 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
39624 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
39625 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
39626 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
39627 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
39628 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
39629 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
39630 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
39631 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
39632 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
39633 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
39634 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
39635 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
39636 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
39637 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
39638 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
39639 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
39640 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
39641 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
39642 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
39643 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
39644 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
39645 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
39646 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
39647 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
39648 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
39649 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
39650 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
39651
39652 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
39653 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
39654 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
39655 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
39656
39657 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
39658 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
39659
39660 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
39661 to mdll-fil.ad[bs] and mdll-util.ad[bs]
39662
39663 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
39664 from mdllfile.ad[bs] and mdlltool.ad[bs]
39665
ca7558fc
KG
396662002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
39667
39668 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
39669 lieu of explicit sizeof/sizeof.
39670
63e1b1c4
NB
396712002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
39672
39673 * misc.c (copy_lang_decl): Remove.
39674
f458d1d5
ZW
396752002-02-27 Zack Weinberg <zack@codesourcery.com>
39676
39677 * misc.c: Delete traditional-mode-related code copied from the
39678 C front end but not used, or used only to permit the compiler
39679 to link.
39680
21e09952
RH
396812002-02-07 Richard Henderson <rth@redhat.com>
39682
39683 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
39684 * adaint.h (__gnat_to_gm_time): Update prototype.
39685
ead39bdf 396862002-01-30 Richard Henderson <rth@redhat.com>
e803a64b
RH
39687
39688 * trans.c (tree_transform) [N_Loop_Statement]: Use
39689 expand_exit_loop_top_cond.
39690
72ac12bf
RH
396912001-12-23 Richard Henderson <rth@redhat.com>
39692
39693 * utils.c (end_subprog_body): Push GC context around
39694 rest_of_compilation for nested functions.
39695
14aacce7
RH
396962001-12-23 Richard Henderson <rth@redhat.com>
39697
39698 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
39699
b3d45d87
FW
397002001-12-23 Florian Weimer <fw@deneb.enyo.de>
39701
ece2d1b8
FW
39702 * gnat-style.texi (Declarations and Types): Remove ancient style
39703 rule which was mandated by code generation issues.
82a4b025 39704
b3d45d87
FW
39705 * gnat-style.texi (header): Add @dircategory, @direntry.
39706 (title page): Remove date.
39707 (general) Add @./@: where approriate, and two spaces after the
39708 full stop at the end of a sentence. Use @samp markup when
39709 referring concrete lexical entities (keywords, attribute names
39710 etc.), and @syntax for ARM grammar elements. Use @r for English
39711 text in comments. Use @emph for emphasis. Change "if-statements"
39712 etc. to "if statements" (without @samp). Break long lines. Make
39713 casing of section names consistent.
39714 (Identifiers): Use @samp markup for variable names.
39715 (Comments): Use @samp markup for comment characters. Line-end
39716 comments may follow any Ada code, not just statements. Fix
39717 misspelling of "Integer" as "integer".
39718 (Loop statements): Do not use variable name "I", use "J".
39719 (Subprogram Declarations): Document alignment.
39720 (Subprogram Bodies, Block statements): Document empty line before
39721 "begin".
39722
7a73ad55
FW
397232001-12-22 Florian Weimer <fw@deneb.enyo.de>
39724
39725 * make.adb (Add_Switch): Make Generic_Position a procedure. The
39726 function approach did not work well because of a side effect (the
39727 function call could reallocate the table which was being indexed
39728 using its result). Fixes ada/4851.
39729
9e94c78f 397302001-12-19 Robert Dewar <dewar@gnat.com>
17c5c8a5
GB
39731
39732 * bindgen.adb: Minor reformatting
82a4b025 39733
17c5c8a5 39734 * cstand.adb: Minor reformatting
82a4b025 39735
17c5c8a5
GB
39736 * fmap.adb: Minor reformatting
39737 Change name from Add for Add_To_File_Map (Add is much too generic)
39738 Change Path_Name_Of to Mapped_Path_Name
39739 Change File_Name_Of to Mapped_File_Name
39740 Fix copyright dates in header
82a4b025 39741
17c5c8a5
GB
39742 * fmap.ads:
39743 Change name from Add for Add_To_File_Map (Add is much too generic)
39744 Change Path_Name_Of to Mapped_Path_Name
39745 Change File_Name_Of to Mapped_File_Name
39746 Fix copyright dates in header
82a4b025 39747
17c5c8a5
GB
39748 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
39749 Add use clause for Fmap.
82a4b025 39750
17c5c8a5 39751 * make.adb: Minor reformatting
82a4b025 39752
17c5c8a5
GB
39753 * osint.adb: Minor reformatting. Change of names in Fmap.
39754 Add use clause for Fmap.
82a4b025 39755
17c5c8a5 39756 * prj-env.adb: Minor reformatting
82a4b025 39757
17c5c8a5 39758 * prj-env.ads: Minor reformatting
82a4b025 39759
07fc65c4
GB
39760 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
39761 error found (there were odd exceptions to this general rule in
17c5c8a5 39762 -gnatec/-gnatem processing)
82a4b025 39763
9e94c78f 397642001-12-19 Olivier Hainque <hainque@gnat.com>
17c5c8a5 39765
07fc65c4
GB
39766 * raise.c (__gnat_eh_personality): Exception handling personality
39767 routine for Ada. Still in rough state, inspired from the C++ version
17c5c8a5 39768 and still containing a bunch of debugging artifacts.
07fc65c4 39769 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
17c5c8a5 39770 inspired from the C++ library.
82a4b025 39771
07fc65c4 39772 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
17c5c8a5 39773 exception handling integration.
82a4b025 39774
9e94c78f 397752001-12-19 Arnaud Charlet <charlet@gnat.com>
17c5c8a5
GB
39776
39777 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
39778 (HIE_SOURCES): Add s-secsta.ad{s,b}.
39779 (HIE_OBJS): Add s-fat*.o
07fc65c4 39780 (RAVEN_SOURCES): Remove files that are no longer required. Add
17c5c8a5
GB
39781 interrupt handling files.
39782 (RAVEN_MOD): Removed, no longer needed.
82a4b025 39783
9e94c78f 397842001-12-19 Robert Dewar <dewar@gnat.com>
17c5c8a5
GB
39785
39786 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
39787 Add 2001 to copyright date
82a4b025 39788
07fc65c4 39789 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
17c5c8a5 39790 need to force universal inlining for these cases.
82a4b025 39791
9e94c78f 397922001-12-19 Arnaud Charlet <charlet@gnat.com>
17c5c8a5 39793
07fc65c4 39794 * s-taprob.adb: Minor clean ups so that this unit can be used in
17c5c8a5 39795 Ravenscar HI.
82a4b025 39796
17c5c8a5
GB
39797 * exp_ch7.adb: Allow use of secondary stack in HI mode.
39798 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
82a4b025 39799
9e94c78f 398002001-12-19 Vincent Celier <celier@gnat.com>
17c5c8a5 39801
07fc65c4 39802 * prj-tree.ads (Project_Node_Record): Add comments for components
17c5c8a5 39803 Pkg_Id and Case_Insensitive.
82a4b025 39804
9e94c78f 398052001-12-19 Pascal Obry <obry@gnat.com>
17c5c8a5
GB
39806
39807 * g-socket.adb: Minor reformatting. Found while reading code.
82a4b025 39808
9e94c78f 398092001-12-19 Robert Dewar <dewar@gnat.com>
17c5c8a5
GB
39810
39811 * prj-tree.ads: Minor reformatting
39812
38be19f6
JM
398132001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
39814
39815 * config-lang.in (diff_excludes): Remove.
39816
9e94c78f 398172001-12-17 Ed Schonberg <schonber@gnat.com>
6510f4c9 39818
07fc65c4
GB
39819 * sem_res.adb (Resolve_Selected_Component): do not generate a
39820 discriminant check if the selected component is a component of
6510f4c9
GB
39821 the argument of an initialization procedure.
39822
07fc65c4
GB
39823 * trans.c (tree_transform, case of arithmetic operators): If result
39824 type is private, the gnu_type is the base type of the full view,
6510f4c9 39825 given that the full view itself may be a subtype.
82a4b025 39826
9e94c78f 398272001-12-17 Robert Dewar <dewar@gnat.com>
6510f4c9
GB
39828
39829 * sem_res.adb: Minor reformatting
82a4b025 39830
07fc65c4
GB
39831 * trans.c (tree_transform, case N_Real_Literal): Add missing third
39832 parameter in call to Machine (unknown horrible effects from this
6510f4c9 39833 omission).
82a4b025 39834
6510f4c9
GB
39835 * urealp.h: Add definition of Round_Even for call to Machine
39836 Add third parameter for Machine
82a4b025 39837
9e94c78f 398382001-12-17 Ed Schonberg <schonber@gnat.com>
6510f4c9 39839
07fc65c4 39840 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
6510f4c9 39841 predefined units in No_Run_Time mode.
82a4b025 39842
9e94c78f 398432001-12-17 Richard Kenner <kenner@gnat.com>
6510f4c9
GB
39844
39845 * misc.c (insn-codes.h): Now include.
82a4b025 39846
9e94c78f 398472001-12-17 Olivier Hainque <hainque@gnat.com>
6510f4c9 39848
07fc65c4 39849 * a-except.adb: Preparation work for future integration of the GCC 3
6510f4c9
GB
39850 exception handling mechanism
39851 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
39852 to factorize previous code sequences and make them externally callable,
39853 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
39854 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
39855 Use the new notification routines.
82a4b025 39856
9e94c78f 398572001-12-17 Emmanuel Briot <briot@gnat.com>
6510f4c9
GB
39858
39859 * prj-tree.ads (First_Choice_Of): Document the when others case
82a4b025 39860
9e94c78f 398612001-12-17 Arnaud Charlet <charlet@gnat.com>
6510f4c9 39862
07fc65c4 39863 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
6510f4c9 39864 HI-E mode, in order to support Ravenscar profile properly.
82a4b025 39865
07fc65c4 39866 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
6510f4c9 39867 mode on 32 bits targets.
82a4b025 39868
9e94c78f 398692001-12-17 Vincent Celier <celier@gnat.com>
6510f4c9
GB
39870
39871 * fmap.adb: Initial version.
82a4b025 39872
6510f4c9 39873 * fmap.ads: Initial version.
82a4b025 39874
6510f4c9
GB
39875 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
39876 If search is successfully done, add to mapping.
82a4b025 39877
6510f4c9 39878 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
82a4b025 39879
6510f4c9
GB
39880 * make.adb:
39881 (Gnatmake): Add new local variable Mapping_File_Name.
39882 Create mapping file when using project file(s).
39883 Delete mapping file before exiting.
82a4b025 39884
6510f4c9 39885 * opt.ads (Mapping_File_Name): New variable
82a4b025 39886
6510f4c9 39887 * osint.adb (Find_File): Use path name found in mapping, if any.
82a4b025 39888
6510f4c9 39889 * prj-env.adb (Create_Mapping_File): New procedure
82a4b025 39890
6510f4c9 39891 * prj-env.ads (Create_Mapping_File): New procedure.
82a4b025 39892
07fc65c4 39893 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
6510f4c9 39894 (Mapping_File)
82a4b025 39895
6510f4c9 39896 * usage.adb: Add entry for new switch -gnatem.
82a4b025 39897
6510f4c9 39898 * Makefile.in: Add dependencies for fmap.o.
82a4b025 39899
9e94c78f 399002001-12-17 Ed Schonberg <schonber@gnat.com>
6510f4c9 39901
07fc65c4 39902 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
6510f4c9
GB
39903 is a package instantiation rewritten as a package body.
39904 (Install_Withed_Unit): Undo previous change, now redundant.
82a4b025 39905
9e94c78f 399062001-12-17 Gary Dismuke <dismukes@gnat.com>
6510f4c9
GB
39907
39908 * layout.adb:
39909 (Compute_Length): Move conversion to Unsigned to callers.
39910 (Get_Max_Size): Convert Len expression to Unsigned after calls to
39911 Compute_Length and Determine_Range.
39912 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
39913 Compute_Length and Determine_Range.
39914 Above changes fix problem with length computation for supernull arrays
07fc65c4 39915 where Max (Len, 0) wasn't getting applied due to the Unsigned
6510f4c9 39916 conversion used by Compute_Length.
82a4b025 39917
9e94c78f 399182001-12-17 Arnaud Charlet <charlet@gnat.com>
6510f4c9
GB
39919
39920 * rtsfind.ads:
39921 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
39922 System.Secondary_Stack.
39923 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
39924 in HI-E mode.
39925 Remove unused entity RE_Exception_Data.
82a4b025 39926
6510f4c9 39927 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
82a4b025 39928
6510f4c9
GB
39929 * rident.ads (No_Secondary_Stack): New restriction.
39930
9e94c78f 399312001-12-17 Joel Brobecker <brobecke@gnat.com>
3a77b68d 39932
07fc65c4 39933 * gnat_rm.texi: Fix minor typos. Found while reading the section
3a77b68d
GB
39934 regarding "Bit_Order Clauses" that was sent to a customer.
39935 Very interesting documentation!
82a4b025 39936
9e94c78f 399372001-12-17 Robert Dewar <dewar@gnat.com>
3a77b68d 39938
07fc65c4
GB
39939 * sem_case.adb (Choice_Image): Avoid creating improper character
39940 literal names by using the routine Set_Character_Literal_Name. This
3a77b68d 39941 fixes bombs in certain error message cases.
82a4b025 39942
9e94c78f 399432001-12-17 Arnaud Charlet <charlet@gnat.com>
3a77b68d
GB
39944
39945 * a-reatim.adb: Minor reformatting.
82a4b025 39946
9e94c78f 399472001-12-17 Ed Schonberg <schonber@gnat.com>
3a77b68d 39948
07fc65c4
GB
39949 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
39950 case where the formal is an extension of another formal in the current
3a77b68d 39951 unit or in a parent generic unit.
82a4b025 39952
9e94c78f 399532001-12-17 Arnaud Charlet <charlet@gnat.com>
3a77b68d 39954
07fc65c4 39955 * s-tposen.adb: Update comments. Minor reformatting.
3a77b68d 39956 Minor code clean up.
82a4b025 39957
3a77b68d 39958 * s-tarest.adb: Update comments. Minor code reorganization.
82a4b025 39959
9e94c78f 399602001-12-17 Gary Dismukes <dismukes@gnat.com>
3a77b68d 39961
07fc65c4 39962 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
3a77b68d 39963 when Java_VM.
82a4b025 39964
9e94c78f 399652001-12-17 Robert Dewa <dewar@gnat.com>
3a77b68d
GB
39966
39967 * exp_attr.adb: Minor reformatting
82a4b025 39968
9e94c78f 399692001-12-17 Ed Schonberg <schonber@gnat.com>
3a77b68d 39970
07fc65c4 39971 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
3a77b68d
GB
39972 derivations nested within a child unit: verify that the parent
39973 type is declared in an outer scope.
82a4b025 39974
9e94c78f 399752001-12-17 Robert Dewar <dewar@gnat.com>
3a77b68d
GB
39976
39977 * sem_ch12.adb: Minor reformatting
82a4b025 39978
9e94c78f 399792001-12-17 Ed Schonberg <schonber@gnat.com>
3a77b68d 39980
07fc65c4
GB
39981 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
39982 warning if current unit is a predefined one, from which bodies may
3a77b68d 39983 have been deleted.
82a4b025 39984
9e94c78f 399852001-12-17 Robert Dewar <dewar@gnat.com>
3a77b68d
GB
39986
39987 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
39988 Fix header format. Add 2001 to copyright date.
82a4b025 39989
07fc65c4 39990 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
3a77b68d
GB
39991 which caused CE during compilation if checks were enabled.
39992
9e94c78f 399932001-12-17 Vincent Celier <celier@gnat.com>
79503fdd
GB
39994
39995 * make.adb:
39996 (Switches_Of): New function
39997 (Test_If_Relative_Path): New procedure
39998 (Add_Switches): Use new function Switches_Of
39999 (Collect_Arguments_And_Compile): Use new function Switches_Of.
40000 When using a project file, test if there are any relative
40001 search path. Fail if there are any.
07fc65c4
GB
40002 (Gnatmake): Only add switches for the primary directory when not using
40003 a project file. When using a project file, change directory to the
40004 object directory of the main project file. When using a project file,
40005 test if there are any relative search path. Fail if there are any.
40006 When using a project file, fail if specified executable is relative
40007 path with directory information, and prepend executable, if not
40008 specified as an absolute path, with the exec directory. Make sure
79503fdd 40009 that only one -o switch is transmitted to the linker.
82a4b025 40010
79503fdd 40011 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
82a4b025 40012
79503fdd
GB
40013 * prj-nmsc.adb:
40014 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
40015 when using a non standard naming scheme.
40016 (Check_Ada_Naming_Scheme): Make sure that error messages
40017 do not raise exceptions.
40018 (Is_Illegal_Append): Return True if there is no dot in the suffix.
40019 (Language_Independent_Check): Check the exec directory.
82a4b025 40020
79503fdd 40021 * prj.adb (Project_Empty): Add new component Exec_Directory
82a4b025 40022
79503fdd
GB
40023 * prj.ads:
40024 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
40025 (Project_Data): Add component Exec_Directory
82a4b025 40026
79503fdd 40027 * snames.adb: Updated to match snames.ads revision 1.215
82a4b025 40028
79503fdd 40029 * snames.ads: Added Exec_Dir
82a4b025 40030
9e94c78f 400312001-12-17 Robert Dewar <dewar@gnat.com>
79503fdd
GB
40032
40033 * make.adb: Minor reformatting
82a4b025 40034
79503fdd 40035 * prj-nmsc.adb: Minor reformatting
82a4b025 40036
79503fdd 40037 * snames.adb: Updated to match snames.ads
82a4b025 40038
79503fdd
GB
40039 * snames.ads: Alphebetize entries for project file
40040
9e94c78f 400412001-12-17 Ed Schonberg <schonber@gnat.com>
79503fdd 40042
07fc65c4 40043 * trans.c (process_freeze_entity): Do nothing if the entity is a
79503fdd 40044 subprogram that was already elaborated.
82a4b025 40045
9e94c78f 400462001-12-17 Richard Kenner <kenner@gnat.com>
82a4b025 40047
07fc65c4 40048 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
79503fdd
GB
40049 and Esize if object is referenced via pointer.
40050
9e94c78f 400512001-12-17 Ed Schonberg <schonber@gnat.com>
855ff2e1 40052
07fc65c4 40053 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
855ff2e1 40054 is discrete before analyzing choices.
82a4b025 40055
9e94c78f 400562001-12-17 Joel Brobecker <brobecke@gnat.com>
855ff2e1 40057
07fc65c4
GB
40058 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
40059 containing the name of the Ada Main Program. This string is mainly
855ff2e1
GB
40060 intended for the debugger.
40061 (Gen_Output_File_C): Do the equivalent change when generating a C file.
82a4b025 40062
9e94c78f 400632001-12-17 Robert Dewar <dewar@gnat.com>
855ff2e1
GB
40064
40065 * ali.adb: Set new Dummy_Entry field in dependency entry
82a4b025 40066
855ff2e1 40067 * ali.ads: Add Dummy_Entry field to source dependency table
82a4b025 40068
855ff2e1 40069 * bcheck.adb (Check_Consistency): Ignore dummy D lines
82a4b025 40070
855ff2e1 40071 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
82a4b025 40072
855ff2e1 40073 * lib-writ.ads: Document dummy D lines for missing files.
82a4b025 40074
855ff2e1
GB
40075 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
40076
9e94c78f 400772001-12-17 Robert Dewar <dewar@gnat.com>
c1c22e7a
GB
40078
40079 * ali.adb: Type reference does not reset current file.
82a4b025 40080
c1c22e7a 40081 * ali.adb: Recognize and scan renaming reference
82a4b025 40082
c1c22e7a 40083 * ali.ads: Add spec for storing renaming references.
82a4b025 40084
c1c22e7a 40085 * lib-xref.ads: Add documentation for handling of renaming references
82a4b025 40086
c1c22e7a 40087 * lib-xref.adb: Implement output of renaming reference.
82a4b025 40088
c1c22e7a
GB
40089 * checks.adb:
40090 (Determine_Range): Document local variables
40091 (Determine_Range): Make sure Hbound is initialized. It looks as though
40092 there could be a real problem here with an uninitialized reference
40093 to Hbound, but no actual example of failure has been found.
82a4b025 40094
9e94c78f 400952001-12-17 Laurent Pautet <pautet@gnat.com>
c1c22e7a
GB
40096
40097 * g-socket.ads:
40098 Fix comment of Shutdown_Socket and Close_Socket. These functions
40099 should not fail silently because if they are called twice, this
40100 probably means that there is a race condition in the user program.
40101 Anyway, this behaviour is consistent with the rest of this unit.
40102 When an error occurs, an exception is raised with the error message
40103 as exception message.
40104
9e94c78f 401052001-12-17 Robert Dewar <dewar@gnat.com>
7eb7bb07 40106
07fc65c4 40107 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
7eb7bb07 40108 that it happens before modification of Sloc values for -gnatD.
82a4b025 40109
07fc65c4 40110 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
7eb7bb07 40111 so that it happens before modification of Sloc values for -gnatD.
82a4b025 40112
7eb7bb07
RD
40113 * switch.adb: Minor reformatting
40114
b6434700
RH
401152001-12-15 Richard Henderson <rth@redhat.com>
40116
40117 * sem_ch7.adb: Wrap comment.
40118
44d6a706
JM
401192001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
40120
40121 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
40122 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
40123 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
40124 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
40125 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
40126 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
40127 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
40128 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
40129 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
40130 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
40131 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
40132 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
40133 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
40134 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
40135 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
40136 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
40137 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
40138 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
40139 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
40140 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
40141 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
40142 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
40143 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
40144 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
40145 spelling errors.
40146
9e94c78f 401472001-12-14 Vincent Celier <celier@gnat.com>
226ada7a 40148
07fc65c4 40149 * osint.adb(Create_Debug_File): When an object file is specified,
226ada7a 40150 put the .dg file in the same directory as the object file.
82a4b025 40151
9e94c78f 401522001-12-14 Robert Dewar <dewar@gnat.com>
226ada7a
GB
40153
40154 * osint.adb: Minor reformatting
82a4b025 40155
07fc65c4 40156 * lib-xref.adb (Output_Instantiation): New procedure to generate
226ada7a 40157 instantiation references.
82a4b025 40158
226ada7a 40159 * lib-xref.ads: Add documentation of handling of generic references.
82a4b025 40160
07fc65c4 40161 * ali.adb (Read_Instantiation_Ref): New procedure to read
226ada7a 40162 instantiation references
82a4b025 40163
226ada7a 40164 * ali.ads: Add spec for storing instantiation references
82a4b025 40165
226ada7a 40166 * bindusg.adb: Minor reformatting
82a4b025 40167
226ada7a 40168 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
82a4b025 40169
226ada7a 40170 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
82a4b025 40171
226ada7a 40172 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
82a4b025 40173
226ada7a 40174 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
82a4b025 40175
226ada7a
GB
40176 * csets.ads:
40177 Fix header format
40178 Add 2001 to copyright date
40179 Add entry for Latin-5 (Cyrillic ISO-8859-5)
82a4b025 40180
9e94c78f 401812001-12-14 Matt Gingell <gingell@gnat.com>
226ada7a 40182
07fc65c4 40183 * adaint.c: mktemp is a macro on Lynx and can not be used as an
226ada7a 40184 expression.
82a4b025 40185
9e94c78f 401862001-12-14 Richard Kenner <kenner@gnat.com>
226ada7a 40187
07fc65c4 40188 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
226ada7a 40189 if operand is CONSTRUCTOR.
82a4b025 40190
9e94c78f 401912001-12-14 Ed Schonberg <schonber@gnat.com>
226ada7a 40192
07fc65c4
GB
40193 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
40194 before emiting check on right-hand side, so that exception information
226ada7a
GB
40195 is correct.
40196
9e94c78f 401972001-12-14 Richard Kenner <kenner@gnat.com>
82a4b025 40198
07fc65c4 40199 * utils.c (create_var_decl): Throw away initializing expression
226ada7a 40200 if just annotating types and non-constant.
82a4b025 40201
9e94c78f 402022001-12-14 Vincent Celier <celier@gnat.com>
226ada7a
GB
40203
40204 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
40205 Default_Ada_...
82a4b025 40206
07fc65c4 40207 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
226ada7a
GB
40208 Remove functions.
40209 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
82a4b025 40210
07fc65c4 40211 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
226ada7a
GB
40212 Remove functions.
40213 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
40214
9b94bf9e
JM
402152001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
40216
40217 * ChangeLog: Remove piece of diff output.
40218
9e94c78f 402192001-12-14 Geert Bosch <bosch@gnat.com>
449d2be3
GB
40220
40221 * config-lang.in: Update copyright notice
40222
40223 * layout.adb: Remove commented out code.
40224
40225 * mdllfile.ads: Update copyright notice. Fix header format.
40226
40227 * sem_case.ads: Likewise.
40228
40229 * sem_ch3.adb: Minor reformatting.
40230
9e94c78f 402312001-12-12 Geert Bosch <bosch@gnat.com>
e5bd5cb4
GB
40232
40233 * freeze.ads: Update copyright date.
40234
40235 * g-comlin.ads: Minor reformatting.
40236
40237 * gnat-style.texi: Fix typo.
40238
9e94c78f 402392001-12-12 Geert Bosch <bosch@gnat.com>
b468d8ec
GB
40240
40241 * einfo.h: Regenerate.
40242
9e94c78f 402432001-12-12 Ed Schonberg <schonber@gnat.com>
ed7da216 40244
07fc65c4 40245 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
ed7da216 40246 on known node types, rather than untyped fields. Further cleanups.
82a4b025 40247
9e94c78f 402482001-12-12 Robert Dewar <dewar@gnat.com>
ed7da216
GB
40249
40250 * sem_ch12.adb:
40251 (Save_Entity_Descendant): Minor comment update.
40252 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
07fc65c4 40253 of an N_Attribute_Reference node. As per note below, this does not
ed7da216 40254 eliminate need for Associated_Node in attribute ref nodes.
07fc65c4 40255 (Associated_Node): Documentation explicitly mentions attribute
ed7da216 40256 reference nodes, since this field is used in such nodes.
82a4b025 40257
ed7da216
GB
40258 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
40259
9e94c78f 402602001-12-12 Robert Dewar <dewar@gnat.com>
de76a39c
GB
40261
40262 * s-stalib.adb: Add more comments on with statements being needed
82a4b025 40263
de76a39c 40264 * par-ch12.adb: Minor reformatting
82a4b025 40265
de76a39c 40266 * prj-dect.ads: Fix copyright header
82a4b025 40267
07fc65c4 40268 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
de76a39c 40269 inputs fit in 32 bits, but the result still overflows.
82a4b025 40270
de76a39c 40271 * s-fatgen.ads: Minor comment improvement
82a4b025 40272
9e94c78f 402732001-12-12 Ed Schonberg <schonber@gnat.com>
de76a39c 40274
07fc65c4
GB
40275 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
40276 formal derived type, look for an inherited component from the full
de76a39c 40277 view of the parent, if any.
82a4b025 40278
9e94c78f 402792001-12-12 Robert Dewar <dewar@gnat.com>
de76a39c
GB
40280
40281 * checks.ads (Apply_Alignment_Check): New procedure.
82a4b025 40282
07fc65c4
GB
40283 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
40284 ensure that the alignment of objects with address clauses is
de76a39c
GB
40285 appropriate, and raise PE if not.
40286
07fc65c4 40287 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
de76a39c 40288 Exp_Pakd.Known_Aligned_Enough
82a4b025 40289
de76a39c
GB
40290 * mdllfile.ads: Minor reformatting
40291
40292 * mlib-fil.ads: Minor reformatting
82a4b025 40293
9e94c78f 402942001-12-12 Ed Schonberg <schonber@gnat.com>
de76a39c 40295
07fc65c4
GB
40296 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
40297 fix to any component reference if enclosing record has non-standard
de76a39c 40298 representation.
82a4b025 40299
9e94c78f 403002001-12-12 Vincent Celier <celier@gnat.com>
de76a39c 40301
07fc65c4 40302 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
de76a39c 40303 Iteration
82a4b025 40304
9e94c78f 403052001-12-12 Ed Schonberg <schonber@gnat.com>
de76a39c 40306
07fc65c4 40307 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
de76a39c 40308 sem_attr.
82a4b025 40309
9e94c78f 403102001-12-12 Robert Dewar <dewar@gnat.com>
de76a39c
GB
40311
40312 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
82a4b025 40313
9e94c78f 403142001-12-12 Emmanuel Briot <briot@gnat.com>
de76a39c
GB
40315
40316 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
40317 and it adds dependencies to system.io.
82a4b025 40318
9e94c78f 403192001-12-12 Pascal Obry <obry@gnat.com>
de76a39c 40320
07fc65c4 40321 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
de76a39c
GB
40322 variable name.
40323
9e94c78f 403242001-12-11 Ed Schonberg <schonber@gnat.com>
0b09835f
ES
40325
40326 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
07fc65c4
GB
40327 that is the parent of other generics, the instance body replaces the
40328 instance node. Retrieve the instance of the spec, which is the one
0b09835f
ES
40329 that is visible in clients and within the body.
40330
9e94c78f 403312001-12-11 Vincent Celier <celier@gnat.com>
598c3446
GB
40332
40333 * gnatmain.adb: Initial version.
82a4b025 40334
598c3446 40335 * gnatmain.ads: Initial version.
82a4b025 40336
598c3446 40337 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
82a4b025 40338
598c3446 40339 * snames.adb: Updated to match snames.ads.
82a4b025 40340
598c3446 40341 * snames.ads: Added Gnatstub.
82a4b025 40342
9e94c78f 403432001-12-11 Vincent Celier <celier@gnat.com>
598c3446 40344
07fc65c4 40345 * prj-attr.adb (Initialization_Data): Change name from
598c3446 40346 Initialisation_Data.
82a4b025 40347
9e94c78f 403482001-12-11 Emmanuel Briot <briot@gnat.com>
598c3446
GB
40349
40350 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
40351 + and * applied to backslashed expressions like \r.
82a4b025 40352
9e94c78f 403532001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
598c3446 40354
07fc65c4 40355 * g-os_lib.ads: String_List type added, Argument_List type is now
598c3446 40356 subtype of String_List.
82a4b025 40357
9e94c78f 403582001-12-11 Robert Dewar <dewar@gnat.com>
598c3446
GB
40359
40360 * g-os_lib.ads: Change copyright to FSF
40361 Add comments for String_List type
82a4b025 40362
9e94c78f 403632001-12-11 Vincent Celier <celier@gnat.com>
598c3446 40364
07fc65c4 40365 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
598c3446
GB
40366 string to the buffer).
40367
9e94c78f 403682001-12-11 Ed Schonberg <schonber@gnat.com>
7fb754a1
GB
40369
40370 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
40371 sem_attr.
82a4b025 40372
7fb754a1 40373 * sem_attr.adb: Simplify previous fix for Address.
07fc65c4
GB
40374 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
40375 to avoid anomalies where the bound of the type appears to raise
7fb754a1
GB
40376 constraint error.
40377
9e94c78f 403782001-12-11 Robert Dewar <dewar@gnat.com>
7fb754a1 40379
07fc65c4 40380 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
7fb754a1 40381 handled.
82a4b025 40382
9e94c78f 403832001-12-11 Ed Schonber <schonber@gnat.com>
7fb754a1 40384
07fc65c4 40385 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
7fb754a1 40386 renamed unit before checking for recursive instantiations.
82a4b025 40387
9e94c78f 403882001-12-11 Emmanuel Briot <briot@gnat.com>
7fb754a1
GB
40389
40390 * prj.ads: Add comments for some of the fields.
40391
9e94c78f 403922001-12-11 Robert Dewar <dewar@gnat.com>
0873bafc 40393
07fc65c4 40394 * lib-xref.adb (Output_Refs): Don't output type references outside
0873bafc 40395 the main unit if they are not otherwise referenced.
82a4b025 40396
9e94c78f 403972001-12-11 Ed Schonberg <schonber@gnat.com>
0873bafc 40398
07fc65c4 40399 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
0873bafc 40400 code and diagnose additional illegal uses
82a4b025 40401
07fc65c4 40402 * sem_util.adb (Is_Object_Reference): An indexed component is an
0873bafc 40403 object only if the prefix is.
82a4b025 40404
9e94c78f 404052001-12-11 Vincent Celier <celier@gnat.com>
0873bafc
GB
40406
40407 * g-diopit.adb: Initial version.
82a4b025 40408
0873bafc 40409 * g-diopit.ads: Initial version.
82a4b025 40410
0873bafc
GB
40411 * g-dirope.adb:
40412 (Expand_Path): Avoid use of Unbounded_String
40413 (Find, Wildcard_Iterator): Moved to child package Iteration
82a4b025 40414
0873bafc 40415 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
82a4b025 40416
9e94c78f 404172001-12-11 Robert Dewar <dewar@gnat.com>
0873bafc
GB
40418
40419 * sem_attr.adb: Minor reformatting
40420
9e94c78f 404212001-12-11 Ed Schonberg <schonber@gnat.com>
d087cd96
GB
40422
40423 * sem_ch3.adb: Clarify some ???.
82a4b025 40424
9e94c78f 404252001-12-11 Robert Dewar <dewar@gnat.com>
d087cd96 40426
07fc65c4 40427 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
d087cd96 40428 Exp_Pakd.Known_Aligned_Enough
82a4b025 40429
07fc65c4 40430 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
d087cd96
GB
40431 version is moved to Exp_Ch13.
40432
9e94c78f 404332001-12-11 Robert Dewar <dewar@gnat.com>
d087cd96
GB
40434
40435 * einfo.ads: Minor reformatting
82a4b025 40436
d087cd96 40437 * exp_ch5.adb: Add comment for previous.change
82a4b025 40438
d087cd96 40439 * ali.adb: New interface for extended typeref stuff.
82a4b025 40440
d087cd96 40441 * ali.ads: New interface for typeref stuff.
82a4b025 40442
d087cd96 40443 * checks.adb (Apply_Alignment_Check): New procedure.
82a4b025 40444
d087cd96 40445 * debug.adb: Add -gnatdM for modified ALI output
82a4b025 40446
d087cd96 40447 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
82a4b025 40448
07fc65c4
GB
40449 * lib-xref.adb: Extend generation of <..> notation to cover
40450 subtype/object types. Note that this is a complete rewrite,
40451 getting rid of the very nasty quadratic algorithm previously
d087cd96 40452 used for derived type output.
82a4b025 40453
07fc65c4
GB
40454 * lib-xref.ads: Extend description of <..> notation to cover
40455 subtype/object types. Uses {..} for these other cases.
d087cd96 40456 Also use (..) for pointer types.
82a4b025 40457
d087cd96 40458 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
82a4b025 40459
07fc65c4 40460 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
d087cd96
GB
40461 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
40462
9e94c78f 404632001-12-11 Vincent Celier <celier@gnat.com>
290986ed
GB
40464
40465 * gnatcmd.adb:
40466 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
40467 Changed /BIND_ONLY to /ACTIONS=BIND
40468 Changed /LINK_ONLY to /ACTIONS=LINK
82a4b025 40469
290986ed
GB
404702001-12-11 Ed Schonberg <schonber@gnat.com>
40471
40472 * sem_ch8.adb (Find_Selected_Component): improved search for a
40473 candidate package in case of error.
82a4b025 40474
290986ed
GB
40475 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
40476 chain back on scope stack before reinstalling use clauses.
82a4b025 40477
290986ed
GB
40478 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
40479 is enabled, do not kill the code for the condition, to preserve
40480 warning.
40481
9e94c78f 404822001-12-11 Robert Dewar <dewar@gnat.com>
84157f51 40483
07fc65c4 40484 * checks.adb (Insert_Valid_Check): Apply validity check to expression
84157f51
GB
40485 of conversion, not to result of conversion.
40486
9e94c78f 404872001-12-11 Ed Schonberg <schonber@gnat.com>
82a4b025 40488
07fc65c4
GB
40489 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
40490 before freezing parent. If the declarations are mutually recursive,
40491 an access to the current record type may be frozen before the
84157f51
GB
40492 derivation is complete.
40493
9e94c78f 404942001-12-05 Vincent Celier <celier@gnat.com>
7ffa903f 40495
07fc65c4 40496 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
7ffa903f 40497 -c /COMPILE_ONLY, -l /LINK_ONLY
82a4b025 40498
7ffa903f
VC
40499 * opt.ads:
40500 (Bind_Only): New Flag
40501 (Link_Only): New flag
82a4b025 40502
07fc65c4 40503 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
7ffa903f 40504 and -l (Link_Only)
82a4b025 40505
7ffa903f 40506 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
82a4b025 40507
7ffa903f
VC
40508 * make.adb:
40509 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
40510 (Gnatmake): Set the step flags. Only perform a step if the
40511 corresponding step flag is True.
40512 (Scan_Make_Arg): Reset the bind and link step flags when -u
40513 or -gnatc has been specified.
40514
9e94c78f 405152001-12-05 Ed Schonberg <schonber@gnat.com>
f91b40db 40516
07fc65c4 40517 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
f91b40db 40518 get bounds from right operand.
82a4b025 40519
f91b40db 40520 * sem_eval.adb: Minor reformatting
82a4b025 40521
07fc65c4 40522 * exp_util.adb (Make_Literal_Range): use bound of literal rather
f91b40db 40523 than Index'First, its lower bound may be different from 1.
82a4b025 40524
07fc65c4 40525 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
f91b40db 40526 and C48009J
82a4b025 40527
9e94c78f 405282001-12-05 Vincent Celier <celier@gnat.com>
f91b40db
GB
40529
40530 * prj-nmsc.adb Minor reformatting
82a4b025 40531
07fc65c4 40532 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
f91b40db 40533 set and libraries are not supported.
82a4b025 40534
9e94c78f 405352001-12-05 Ed Schonberg <schonber@gnat.com>
f91b40db 40536
07fc65c4
GB
40537 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
40538 private view explicitly, so the back-end can treat as a global
f91b40db
GB
40539 when appropriate.
40540
9e94c78f 405412001-12-05 Ed Schonberg <schonber@gnat.com>
45d04cbb
GB
40542
40543 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
40544 unit, always replace instance node with new body, for ASIS use.
40545
9e94c78f 405462001-12-05 Vincent Celier <celier@gnat.com>
82a4b025 40547
07fc65c4
GB
40548 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
40549 libraries are not supported and both attributes Library_Name and
45d04cbb 40550 Library_Dir are specified.
82a4b025 40551
07fc65c4 40552 * prj-proc.adb (Expression): Set location of Result to location of
45d04cbb 40553 first term.
82a4b025 40554
45d04cbb
GB
40555 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
40556 (prj-nmsc is now importing MLib.Tgt)
82a4b025 40557
45d04cbb
GB
40558 * prj-proc.adb: Put the change indicated above that was forgotten.
40559
9e94c78f 405602001-12-05 Robert Dewar <dewar@gnat.com>
84436014
RD
40561
40562 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
40563
9e94c78f 405642001-12-05 Ed Schonberg <schonber@gnat.com>
7ae0dcd8
ES
40565
40566 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
40567 constraint, introduce explicit subtype declaration and derive from it.
82a4b025 40568
7ae0dcd8
ES
40569 * sem_ch3.adb: Minor reformatting
40570
9e94c78f 405712001-12-05 Robert Dewar <dewar@gnat.com>
c9a4817d 40572
07fc65c4 40573 * checks.adb (Determine_Range): Increase cache size for checks.
c9a4817d 40574 Minor reformatting
82a4b025 40575
c9a4817d
RD
40576 * exp_ch6.adb: Minor reformatting
40577 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
40578 a parameter whose root type is System.Address, since treating such
40579 subprograms as pure in the code generator is almost surely a mistake
40580 that will lead to unexpected results.
82a4b025 40581
07fc65c4 40582 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
c9a4817d 40583 change handling of conversions.
82a4b025 40584
c9a4817d
RD
40585 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
40586
9e94c78f 405872001-12-05 Ed Schonberg <schonber@gnat.com>
2514b839 40588
07fc65c4
GB
40589 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
40590 aggregate with static wrong size, attach generated Raise node to
2514b839
ES
40591 declaration.
40592
9e94c78f 405932001-12-05 Robert Dewar <dewar@gnat.com>
457b6274 40594
07fc65c4 40595 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
457b6274
RD
40596 Fixes compilation abandoned bomb in B24009B.
40597
9e94c78f 405982001-12-05 Ed Schonberg <schonber@gnat.com>
19349925
ES
40599
40600 * sem_ch12.adb:
40601 Document use of Associated_Node on Selected_Components.
40602 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
40603 to clarify use of untyped descendant fields.
40604
9e94c78f 406052001-12-05 Robert Dewar <dewar@gnat.com>
6663c393
RD
40606
40607 * prj-dect.ads: Add ??? comment
40608 Add 2001 to copyright notice (was not done in after all)
82a4b025 40609
6663c393 40610 * prj-part.adb: Minor reformatting. Reword one awkward error message.
82a4b025 40611
6663c393 40612 * prj.ads: Minor reformatting throughout, and add some ??? comments
82a4b025 40613
6663c393
RD
40614 * snames.ads: Minor reformatting
40615
9e94c78f 406162001-12-05 Geert Bosch <bosch@gnat.com>
d7b2a6af
GB
40617
40618 * snames.adb: Autoupdate
40619
9e94c78f 406202001-12-05 Vincent Celier <celier@gnat.com>
fbc9a404
VC
40621
40622 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
82a4b025 40623
fbc9a404 40624 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
82a4b025 40625
fbc9a404 40626 * prj-env.adb: Minor comment changes (modifying -> extends).
82a4b025 40627
fbc9a404 40628 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
82a4b025 40629
07fc65c4 40630 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
fbc9a404 40631 Tok_Extends.
82a4b025 40632
fbc9a404 40633 * prj.adb (Initialize): Change Modifying to Extends.
82a4b025 40634
fbc9a404 40635 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
82a4b025 40636
fbc9a404 40637 * prj.ads: Minor comment change (Modifying -> extending).
82a4b025 40638
fbc9a404
VC
40639 * snames.ads: Change modifying to extends.
40640
9e94c78f 406412001-12-05 Robert Dewar <dewar@gnat.com>
7cff0b1b 40642
07fc65c4 40643 * sem_warn.adb: Remove stuff for conditionals, we are not going to
7cff0b1b 40644 do this after all.
82a4b025 40645
07fc65c4 40646 * sem_warn.ads: Remove stuff for conditionals, we are not going to
7cff0b1b
RD
40647 do this after all. Add 2001 to copyright notice
40648
9e94c78f 406492001-12-04 Geert Bosch <bosch@gnat.com>
4f56ebb7
GB
40650
40651 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
40652
9e94c78f 406532001-12-04 Robert Dewar <dewar@gnat.com>
053defdf 40654
07fc65c4
GB
40655 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
40656 location if we already have errors. Stops some cases of cascaded
053defdf 40657 errors.
82a4b025 40658
053defdf
RD
40659 * errout.adb: Improve comment.
40660
9e94c78f 406612001-12-04 Robert Dewar <dewar@gnat.com>
f311e166
RD
40662
40663 * sem_ch12.adb:
40664 (Analyze_Formal_Type_Definition): Defend against Error.
40665 (Analyze_Formal_Subprogram): Defend against Error.
82a4b025 40666
07fc65c4 40667 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
f311e166
RD
40668 remove following semicolon if present. Removes cascaded error.
40669
9e94c78f 406702001-12-04 Douglas B. Rupp <rupp@gnat.com>
d61bd65a
DR
40671
40672 * bindgen.adb:
40673 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
40674 exceptions equals 0.
40675 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
40676 Fixes PIWG E tests (which have to be run with -gnatL).
40677
9e94c78f 406782001-12-04 Robert Dewar <dewar@gnat.com>
4ba603e2
RD
40679
40680 * einfo.ads: Minor reformatting
40681
9e94c78f 406822001-12-04 Ed Schonberg <schonber@gnat.com>
57568d91 40683
07fc65c4
GB
40684 * einfo.ads: Block_Node points to the identifier of the block, not to
40685 the block node itself, to preserve the link when the block is
40686 rewritten, e.g. within an if-statement with a static condition.
82a4b025 40687
07fc65c4 40688 * inline.adb (Cleanup_Scopes): recover block statement from block
57568d91 40689 entity using new meaning of Block_Node.
82a4b025 40690
07fc65c4 40691 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
57568d91
ES
40692 identifier of block node, rather than to node itself.
40693
9e94c78f 406942001-12-04 Gary Dismukes <dismukes@gnat.com>
82a4b025 40695
0815d36a
GD
40696 * layout.adb:
40697 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
40698 (Discrimify): Go back to setting the Etypes of the selected component
07fc65c4 40699 because the Vname component does not exist at this point and will
0815d36a
GD
40700 fail name resolution. Also set Analyzed.
40701 Remove with and use of Sem_Res.
40702
9e94c78f 407032001-12-04 Arnaud Charlet <charlet@gnat.com>
edc0f304
AC
40704
40705 * Makefile.in: (HIE_SOURCES): add s-fat*.
40706
9e94c78f 407072001-12-04 Robert Dewar <dewar@gnat.com>
32213142
RD
40708
40709 * sem_attr.adb:
40710 (Compile_Time_Known_Attribute): New procedure.
40711 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
40712 proper range check.
40713
9e94c78f 407142001-12-04 Ed Schonberg <schonber@gnat.com>
c0def2ad 40715
07fc65c4 40716 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
c0def2ad
ES
40717 processing discriminants to diagnose illegal default values.
40718
9e94c78f 407192001-12-04 Ed Schonberg <schonber@gnat.com>
ee0a48c5 40720
07fc65c4
GB
40721 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
40722 access discriminant within a type extension that constrains its
ee0a48c5
ES
40723 parent discriminants.
40724
9e94c78f 407252001-12-04 Ed Schonberg <schonber@gnat.com>
dd5875a6 40726
07fc65c4 40727 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
dd5875a6 40728 is malformed, use instance of Any_Id to allow analysis to proceed.
82a4b025 40729
07fc65c4 40730 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
dd5875a6
ES
40731 type definition is illegal.
40732 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
40733 misplaced.
40734
9e94c78f 407352001-12-04 Ed Schonberg <schonber@gnat.com>
c2a41e57 40736
07fc65c4 40737 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
c2a41e57
ES
40738 constants.
40739
9e94c78f 407402001-12-04 Robert Dewar <dewar@gnat.com>
0ae84753
RD
40741
40742 * errout.adb: Minor reformatting
40743
9e94c78f 407442001-12-04 Robert Dewar <dewar@gnat.com>
63db260e
RD
40745
40746 * exp_util.adb: Minor reformatting from last change
82a4b025 40747
07fc65c4
GB
40748 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
40749 which is a rewriting of an expression, traverse the original
63db260e
RD
40750 expression to remove warnings that may have been posted on it.
40751
9e94c78f 407522001-12-04 Ed Schonberg <schonber@gnat.com>
c6d289f4 40753
07fc65c4 40754 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
c6d289f4
ES
40755 record that has other packed components.
40756
9e94c78f 407572001-12-04 Douglass B. Rupp <rupp@gnat.com>
5917e80d
DR
40758
40759 * adaint.c: Minor cleanups.
40760
9e94c78f 407612001-12-04 Douglass B. Rupp <rupp@gnat.com>
2c70f9dd
DR
40762
40763 * adaint.c: Do not use utime.h on vxworks.
40764
9e94c78f 407652001-12-04 Arnaud Charlet <charlet@gnat.com>
e59b3387 40766
07fc65c4 40767 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
e59b3387
AC
40768 more confusion than it solves.
40769
9e94c78f 407702001-12-04 Geert bosch <bosch@gnat.com>
e288604a
GB
40771
40772 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
40773
5ac21013
GB
407742001-12-04 Geert Bosch <bosch@gnat.com>
40775
07fc65c4 40776 * Makefile.in (update-sources): New target.
5ac21013
GB
40777 For use by gcc_release script.
40778
9e94c78f 407792001-12-04 Ed Schonberg <schonber@gnat.com>
7dd5bd5e 40780
07fc65c4 40781 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
7dd5bd5e
ES
40782 a configuration pragma, it is now legal wherever a pragma can appear.
40783
a078a589
ZW
407842001-12-04 Zack Weinberg <zack@codesourcery.com>
40785
40786 * Makefile.in: Don't set ALL. Delete @cross_defines@,
40787 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
40788 is now @CROSS@ -DIN_GCC; update comment.
40789
9e94c78f 407902001-12-04 Robert Dewar <dewar@gnat.com>
0839863c
GB
40791
40792 * einfo.adb (Has_Pragma_Pure_Function): New flag.
40793 Fix problem that stopped ceinfo from working
82a4b025 40794
0839863c 40795 * einfo.ads (Has_Pragma_Pure_Function): New flag.
82a4b025 40796
0839863c
GB
40797 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
40798
9e94c78f 407992001-12-04 Douglas B. Rupp <rupp@gnat.com>
9678de49
DR
40800
40801 * gnatchop.adb:
40802 (File_Time_Stamp): New procedure.
40803 (Preserve_Mode): New boolean.
40804 (Write_Unit): Pass time stamp.
40805 Implement -p switch (preserve time stamps).
82a4b025 40806
9678de49 40807 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
82a4b025 40808
9678de49 40809 * gnatchop.adb: Do usage info for -p switch
82a4b025 40810
9678de49 40811 * adaint.h (__gnat_set_file_time_name): New function
82a4b025 40812
9678de49 40813 * adaint.c (__gnat_set_file_time_name): Implement
82a4b025 40814
9678de49
DR
40815 * adaint.h: Fix typo
40816
9e94c78f 408172001-12-03 Robert Dewar <dewar@gnat.com>
3b9a13c4 40818
667e5c5d 40819 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
b4f94ac1 40820 have Associated_Node.
3b9a13c4 40821
9e94c78f 408222001-12-03 Robert Dewar <dewar@gnat.com>
767b404e
RD
40823
40824 * prj-proc.adb: Minor reformatting
667e5c5d 40825
767b404e
RD
40826 * make.adb: Minor reformatting
40827
9e94c78f 408282001-12-03 Geert Bosch <bosch@gnat.com>
11ac71ba 40829
667e5c5d 40830 * make.adb: Minor reformatting.
11ac71ba 40831
ef3d4d6e 408322001-12-03 Robert Dewar <dewar@gnat.com>
b1446533
RD
40833
40834 * sem_ch12.adb: Minor reformatting
40835
9e94c78f 408362001-12-03 Ed Schonberg <schonber@gnat.com>
d6d32b24 40837
667e5c5d
AJ
40838 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
40839 push Standard on the stack before analyzing the instance body,
d6d32b24 40840 in order to have a clean visibility environment.
667e5c5d
AJ
40841
40842 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
d6d32b24 40843
9e94c78f 408442001-12-03 Ed Schonberg <schonber@gnat.com>
13f08f03 40845
667e5c5d 40846 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
13f08f03
ES
40847 instantiation of a body that contains an inlined body.
40848
9e94c78f 408492001-12-03 Ed Schonberg <schonber@gnat.com>
3bd6c100
ES
40850
40851 * sem_ch12.adb:
40852 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
40853 to prevent freezing within formal packages.
40854 (Freeze_Subprogram_Body): If body comes from another instance that
40855 appeared before its own body, place freeze node at end of current
40856 declarative part, to prevent a back-end crash.
40857 (Inline_Instance_Body): Handle properly a package instance within
40858 a subprogram instance that is a child unit.
40859
58d07d8f
GS
408602001-12-01 Graham Stott <grahams@redhat.com>
40861
40862 * Makefile.in (misc.o): Add missing $(srcdir) prefix
40863 and add optabs.h dependency.
40864
40865 * misc.c: Include optabs.h
40866 (gnat_tree_code_type): Make static and const.
40867 (gnat_tree_code_length): Likewise.
40868 (gnat_tree_code_name): Likewise.
40869 (update_setjmp_buf): Obtain operands mode from insn_data.
40870
c87222f0
RH
408712001-11-29 Richard Henderson <rth@redhat.com>
40872
40873 * init.c: Remove obsolete dwarf2 frame.h section.
40874
d3945f0a
JM
408752001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
40876
40877 * Make-lang.in (ada.generated-manpages): New dummy target.
40878
9e94c78f 408792001-11-29 Ed Schonberg <schonber@gnat.com>
9f639397 40880
667e5c5d
AJ
40881 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
40882 into Command, an array conversion is illegal here. Uncovered by
9f639397
ES
40883 ACATS B460005.
40884
9e94c78f 408852001-11-28 Geert Bosch <bosch@gnat.com>
c835e5c6
GB
40886
40887 * init.c: Minor whitespace changes.
40888
9e94c78f 408892001-11-28 Doug Rupp <rupp@gnat.com>
49bb4548 40890
667e5c5d 40891 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
49bb4548
DR
40892 signal stack.
40893
ea2417e5
ZW
408942001-11-28 Zack Weinberg <zack@codesourcery.com>
40895
40896 * misc.c (gnat_expand_constant): Move declaration above
40897 definition of lang_hooks.
40898 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
40899 (gnat_init): lang_expand_constant no longer exists.
40900
40901 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
40902 always have vprintf.
40903 (gnat_init): Always call set_internal_error_function.
40904
f8e0aa73
AJ
409052001-11-27 Andreas Jaeger <aj@suse.de>
40906
40907 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
40908
d99b0e79
LG
409092001-11-27 Laurent Guerby <guerby@acm.org>
40910
40911 * Makefile.in: Regenerate Ada dependencies.
40912
3f0496e5
RH
409132001-11-26 Richard Henderson <rth@redhat.com>
40914
40915 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
40916 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
40917 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
40918
92fa4733
LG
409192001-11-25 Laurent Guerby <guerby@acm.org>
40920
40921 * sysdep.c (rts_get_*): Fix style.
40922
07626501
LG
409232001-11-19 Laurent Guerby <guerby@acm.org>
40924
40925 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
40926 since it is of no apparent use and cause warnings.
40927
22703ccc
NB
409282001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
40929
40930 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
40931 static too.
40932 (gnat_init): Don't return NULL.
40933 (finish_parse): Remove.
40934
b0df4321
LG
409352001-11-17 Laurent Guerby <guerby@acm.org>
40936
40937 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
40938 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
40939 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
40940 * lang-spec.h: Add missing struct field to silence warnings.
40941 * sysdep.c (rts_get_*): Provide K&R prototype.
40942 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
40943 * traceback.c (Unlock_Task, Lock_Task): Likewise.
40944 * tracebak.c (__gnat_backtrace): Remove unused variable.
40945 * utils.c (end_subprog_body): Move to K&R style.
40946
d215024f
RK
40947Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
40948
40949 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
40950
f5e99456
NB
409512001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
40952
40953 * misc.c (gnat_init): Change prototype. Include the
40954 functionality of the old init_parse and init_decl_processing.
40955 (gnat_init_decl_processing): New prototype.
40956 (init_parse): Remove.
40957 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
40958
5d69f816
NB
409592001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
40960
40961 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
40962 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
40963 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
40964 set_yydebug): Remove.
40965
3ac88239
NB
409662001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
40967
40968 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
40969 (struct lang_hooks): Constify.
40970 (language_string, lang_identify): Remove.
40971 * utils.c (init_decl_processing): Update.
40972
d23c55c2
NB
409732001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
40974
40975 * misc.c: Include langhooks-def.h.
40976 * Makefile.in: Update.
40977
9e94c78f 409782001-10-30 Robert Dewar <dewar@gnat.com>
04a1b79c
RD
40979
40980 * style.adb:
40981 (Check_Identifier): Rewrite circuit to be compatible with use of letters
40982 in the upper half of ASCII.
40983 (Check_Identifier): Minor reformatting
40984
9e94c78f 409852001-10-30 Geert Bosch <bosch@gnat.com>
81fa2d39 40986
f8e0aa73 40987 * (Associated_Node, Set_Associated_Node): Do not check for
81fa2d39
GB
40988 Freeze_Entity.
40989
9e94c78f 409902001-10-30 Robert Dewar <dewar@gnat.com>
ffc5527f
RD
40991
40992 * a-reatim.ads: Minor reformatting
40993
9e94c78f 409942001-10-30 Robert Dewar <dewar@gnat.com>
865335eb 40995
f8e0aa73 40996 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
865335eb
RD
40997 undocumented declarations.
40998
9e94c78f 409992001-10-30 Pascal Obry <obry@gnat.com>
5e257178 41000
f8e0aa73 41001 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
5e257178
PO
41002 to the binder and linker.
41003 Minor style fix.
f8e0aa73 41004
5e257178
PO
41005 * mdll.ads: Fix layout. Update copyright notice.
41006
41007 * mdll.adb: Fix layout. Update copyright notice.
41008
9e94c78f 410092001-10-30 Robert Dewar <dewar@gnat.com>
1753e0ad
RD
41010
41011 * usage.adb: Minor fix to output for -gnaty.
41012
9e94c78f 410132001-10-30 Ed Schonberg <schonber@gnat.com>
84bfdde0 41014
f8e0aa73
AJ
41015 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
41016 to accommodate all its possible values.
84bfdde0 41017
f8e0aa73 41018 * a-reatim.adb (Split): Special-case handling of Time_Span_First
84bfdde0
ES
41019 and of small absolute values of T.
41020
9e94c78f 410212001-10-30 Richard Kenner <kenner@gnat.com>
c296e5fc 41022
f8e0aa73
AJ
41023 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
41024 set_mem_attributes since not needed and wrong if RESULT if a REG;
c296e5fc
RK
41025 fixes ACATS failures.
41026
9e94c78f 410272001-10-30 Geert Bosch <bosch@gnat.com>
07c809df
GB
41028
41029 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
41030 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
41031
9e94c78f 410322001-10-30 Robert Dewar <dewar@gnat.com>
f8e0aa73 41033
54d22416 41034 * bindusg.adb: Undocument -f switch.
f8e0aa73 41035
54d22416 41036 * gnatcmd.adb: Remove /FULL_ELABORATION.
f8e0aa73
AJ
41037
41038 * opt.ads (Force_RM_Elaboration_Order): Document that this is
54d22416 41039 obsolescent.
f8e0aa73 41040
54d22416 41041 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
f8e0aa73 41042
54d22416
RD
41043 * gnatbind.adb: Minor update of warning msg.
41044
9e94c78f 410452001-10-30 Vincent Celier <celier@gnat.com>
af5cf6f8 41046
f8e0aa73 41047 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
af5cf6f8 41048 for project file switches (-P (/PROJECT_FILE=),
f8e0aa73 41049 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
af5cf6f8
VC
41050 or MEDIUM or HIGH)
41051
9e94c78f 410522001-10-30 Geert Bosch <bosch@gnat.com>
984bc4c3
GB
41053
41054 * decl.c: Minor whitespace fixes.
41055
9e94c78f 410562001-10-30 Richard Kenner <kenner@gnat.com>
5dece937
RK
41057
41058 * utils2.c (build_allocator): Test for SIZE overflow in array case too
41059
9e94c78f 410602001-10-30 Geert Bosch <bosch@gnat.com>
de4bf6cb 41061
f8e0aa73 41062 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
de4bf6cb 41063 Found due to GCC 3.0 warning of using uninitialized value.
f8e0aa73 41064
de4bf6cb
GB
41065 * layout.adb:
41066 (Get_Max_Size): Use variant record for tracking value/expression.
41067 Makes logic clearer and prevents warnings for uninitialized variables.
41068 (Layout_Array_Type): Use variant record for tracking value/expression.
41069 Makes logic clearer and prevents warnings for uninitialized variables.
41070
9e94c78f 410712001-10-30 Robert Dewar <dewar@gnat.com>
f5e44987
RD
41072
41073 * lib.adb: Minor reformatting
41074
41075 * s-taprop.ads: Minor reformatting
41076
45659035 410772001-10-29 Laurent Guerby <guerby@acm.org>
f8e0aa73 41078
45659035
GB
41079 * init.c:
41080 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
41081 const.
41082 (_gnat_error_handler): Make MSG const.
41083
9e94c78f 410842001-10-29 Richard Kenner <kenner@gnat.com>
45659035
GB
41085
41086 * sysdep.c: Fix localtime_r problem on LynxOS.
41087 Also remove #elif to avoid warnings.
f8e0aa73
AJ
41088
41089 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
45659035 41090 used by this.
f8e0aa73 41091
45659035
GB
41092 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
41093
638e383e
JM
410942001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
41095
41096 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
41097 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
41098 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
41099 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
41100 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
41101 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
41102 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
41103 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
41104 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
41105 types.ads, urealp.adb: Fix spelling errors.
41106
9e94c78f 411072001-10-27 Laurent Guerby <guerby@acm.org>
97f6baa0
LG
41108
41109 * trans.c (gigi): Fix non determinism leading to bootstrap
41110 comparison failures for debugging information.
41111
46b58b8c
FW
411122001-10-26 Florian Weimer <fw@deneb.enyo.de>
41113
41114 * gnat_rm.texi: Use @./@: where appropriate.
41115
9e94c78f 411162001-10-26 Robert Dewar <dewar@gnat.com>
30151c7b
RD
41117
41118 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
41119
9e94c78f 411202001-10-26 Richard Kenner <kenner@gnat.com>
c0b1738d
RK
41121
41122 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
41123
9e94c78f 411242001-10-26 Richard Kenner <kenner@gnat.com>
5b09c153 41125
f8e0aa73 41126 * decl.c (validate_size): Modify message for bad size to avoid
5b09c153
RK
41127 implication that compiler is modifying the size.
41128
9e94c78f 411292001-10-26 Robert Dewar <dewar@gnat.com>
4d553668
RD
41130
41131 * prj-util.adb: Minor reformatting. Fix bad header format.
41132
9e94c78f 411332001-10-26 Robert Dewar <dewar@gnat.com>
3e542a58
RD
41134
41135 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
f8e0aa73 41136
3e542a58 41137 * sinfo.ads: Clarify use of Associated_Node (documentation only).
f8e0aa73
AJ
41138
41139 * sem_ch12.adb: Change Node4 to Associated_Node. Change
41140 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
3e542a58
RD
41141 much more narrowly in places where needed. These are cleanups.
41142
9e94c78f 411432001-10-26 Joel Brobecker <brobecke@gnat.com>
0bf08bfe
JB
41144
41145 * 5zosinte.ads (null_pthread): new constant.
f8e0aa73 41146
0bf08bfe
JB
41147 * 5ztaprop.adb:
41148 (Initialize_TCB): Initialize thread ID to null, to be able to verify
41149 later that this field has been set.
41150 (Finalize_TCB): ditto.
41151 (Suspend_Task): Verify that the thread ID is not null before using it.
41152 (Resume_Task): ditto.
f8e0aa73 41153
0bf08bfe
JB
41154 * s-tasdeb.adb:
41155 (Resume_All_Tasks): Lock the tasks list before using it.
41156 (Suspend_All_Tasks): ditto.
41157
9e94c78f 411582001-10-26 Richard Kenner <kenner@gnat.com>
7a3a8c06 41159
f8e0aa73 41160 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
7a3a8c06
RK
41161 Make constant variant of designated type for Is_Access_Constant.
41162 Call update_pointer_to with main variant.
f8e0aa73
AJ
41163
41164 * trans.c (process_freeze_entity, process_type):
7a3a8c06 41165 Call update_pointer_to on main variant.
f8e0aa73 41166
7a3a8c06
RK
41167 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
41168 If main variant, update all other variants.
f8e0aa73
AJ
41169
41170 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
7a3a8c06
RK
41171 TREE_STATIC.
41172
9e94c78f 411732001-10-26 Robert Dewar <dewar@gnat.com>
a160babb
RD
41174
41175 * prj-util.adb: Minor reformatting
41176
9e94c78f 411772001-10-26 Robert Dewar <dewar@gnat.com>
b403bd17
RD
41178
41179 * prj-util.adb: Minor reformatting
41180
9e94c78f 411812001-10-26 Robert Dewar <dewar@gnat.com>
5fc3b4c7
RD
41182
41183 * prj-attr.adb: Minor reformatting throughout
41184
9e94c78f 411852001-10-26 Robert Dewar <dewar@gnat.com>
8c736034
RD
41186
41187 * prj-attr.ads: Minor reformatting
41188 Add ??? comment (this whole spec has almost no comments)
41189
9e94c78f 411902001-10-26 Vincent Celier <celier@gnat.com>
47d5b6ed 41191
f8e0aa73 41192 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
b4f94ac1 41193 ("//") that precede the drive letter on Interix.
47d5b6ed 41194
9e94c78f 411952001-10-26 Geert Bosch <bosch@gnat.com>
41af791f
GB
41196
41197 * gnat_rm.texi: Add GNAT Reference Manual.
41198
9e94c78f 411992001-10-25 Robert Dewar <dewar@gnat.com>
ed4a1468 41200
f8e0aa73 41201 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
b4f94ac1 41202 is Error. Similar change for other renaming cases.
ed4a1468 41203
9e94c78f 412042001-10-25 Robert Dewar <dewar@gnat.com>
24377ae4
RD
41205
41206 * s-atacco.ads: Add pragma Inline_Always for functions.
41207 Fix header format. Add copyright 2001
41208
9e94c78f 412092001-10-25 Ed Schonberg <schonber@gnat.com>
fef3204e 41210
f8e0aa73 41211 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
b4f94ac1 41212 return Error rather than Empty so that analysis can proceed.
fef3204e 41213
9e94c78f 412142001-10-25 Ed Schonberg <schonber@gnat.com>
dfc69d80 41215
f8e0aa73 41216 * sem_util.adb (Enter_Name): better handling of cascaded error
b4f94ac1 41217 messages when a unit appears in its own context.
dfc69d80 41218
9e94c78f 412192001-10-25 Ed Schonberg <schonber@gnat.com>
5a15af62 41220
f8e0aa73 41221 * sem_util.adb (Defining_Entity): in case of error, attach created
b4f94ac1 41222 entity to specification, so that semantic analysis can proceed.
5a15af62 41223
9e94c78f 412242001-10-25 Robert Dewar <dewar@gnat.com>
2b881d53 41225
f8e0aa73 41226 * sem_util.adb
b4f94ac1 41227 (Defining_Entity): Deal with Error.
2b881d53
RD
41228 (Process_End_Label): Deal with bad end label for.
41229
9e94c78f 412302001-10-25 Ed Schonberg <schonber@gnat.com>
578053f2 41231
f8e0aa73 41232 * sem_elab.adb (Check_A_Call): refine message when call is in an
578053f2
ES
41233 instance but callee is not declared in the generic unit.
41234
9e94c78f 412352001-10-25 Ed Schonberg <schonber@gnat.com>
f8e0aa73
AJ
41236
41237 * sem_elab.adb (Check_A_Call): check for renaming before finding the
0597ce0b
ES
41238 enclosing unit, which may already be different from the calling unit.
41239
9e94c78f 412402001-10-25 Geert Bosch <bosch@gnat.com>
3de6e6da
GB
41241
41242 * 4gintnam.ads: fix header format.
41243
9e94c78f 412442001-10-25 Ed Schonberg <schonber@gnat.com>
6f311316 41245
f8e0aa73 41246 * sem_res.adb (Resolve_Call): if the call is actually an indexing
b4f94ac1
ZW
41247 operation on the result of a parameterless call, perform elaboration
41248 check after the node has been properly rewritten.
f8e0aa73
AJ
41249
41250 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
b4f94ac1
ZW
41251 inlined within the generic tree, the defining identifier is not a
41252 compilation_unit.
6f311316 41253
9e94c78f 412542001-10-25 Ed Schonberg <schonber@gnat.com>
17be0cdf 41255
f8e0aa73 41256 * sem_res.adb (Resolve): special-case resolution of Null in an
b4f94ac1 41257 instance or an inlined body to avoid view conflicts.
f8e0aa73
AJ
41258
41259 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
b4f94ac1 41260 compatibility by retrieving the access type of the generic copy.
17be0cdf 41261
9e94c78f 412622001-10-25 Robert Dewar <dewar@gnat.com>
ce9e9122
RD
41263
41264 * sem_ch3.adb:
41265 (Analyze_Number_Declaration): Handle error expression.
41266 (Signed_Integer_Type_Declaration): Handle error bound.
41267 (Analyze_Subtype_Indication): Handle error range.
f8e0aa73 41268
ce9e9122
RD
41269 * sem_util.adb (Get_Index_Bounds): Check for Error.
41270
9e94c78f 412712001-10-25 Robert Dewar <dewar@gnat.com>
e12fbc9e 41272
f8e0aa73 41273 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
e12fbc9e
RD
41274 in no run time mode.
41275
9e94c78f 412762001-10-25 Pascal Obry <obry@gnat.com>
52b80488 41277
f8e0aa73 41278 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
b4f94ac1 41279 mode case for ALLOC case.
f8e0aa73
AJ
41280
41281 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
b4f94ac1 41282 all platforms. Improvement of last change.
52b80488 41283
9e94c78f 412842001-10-25 Robert Dewar <dewar@gnat.com>
316ad9c5
RD
41285
41286 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
41287
1a7e4df4
GB
412882001-10-25 Geert Bosch <bosch@gnat.com>
41289
41290 * osint.adb (Is_Relative): Remove duplicate.
41291
9e94c78f 412922001-10-25 Pascal Obry <obry@gnat.com>
90a9fff2 41293
f8e0aa73 41294 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
b4f94ac1 41295 pathnames in UNIX and DOS style with drive letter.
90a9fff2 41296 (Is_Relative): new routine.
f8e0aa73 41297
90a9fff2 41298 * osint.adb: Minor reformatting
f8e0aa73
AJ
41299
41300 * osint.adb (Is_Relative): implementation using
b4f94ac1 41301 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
90a9fff2 41302
9e94c78f 413032001-10-25 Pascal Obry <obry@gnat.com>
5c1ba4cc 41304
f8e0aa73 41305 * g-dirope.adb (Basename): correctly compute offset between the
b4f94ac1 41306 original Path and the translated one.
f8e0aa73 41307
5c1ba4cc
PO
41308 * g-dirope.adb: (Base_Name): add some comments.
41309
9e94c78f 413102001-10-25 Robert Dewar <dewar@gnat.com>
a7fb206d 41311
f8e0aa73 41312 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
b4f94ac1 41313 in HIE mode, avoids compilation abandoned message
f8e0aa73 41314
a7fb206d 41315 * exp_imgv.adb: Correct typo in previous change
f8e0aa73 41316
a7fb206d
RD
41317 * exp_imgv.adb: Correct typo in previous change (not my day!)
41318
9e94c78f 413192001-10-25 Robert Dewar <dewar@gnat.com>
e6a7e62e
RD
41320
41321 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
41322
9e94c78f 413232001-10-25 Pascal Obry <obry@gnat.com>
75c09e7d 41324
f8e0aa73 41325 * g-awk.ads: Move all pragma inlines next to the routine
0d2b8e0b 41326 declarations. This is more uniform with other GNAT spec.
75c09e7d 41327
0d2b8e0b 413282001-10-22 Geert Bosch <bosch@gnat.com>
d2740a69
GB
41329
41330 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
41331
0d2b8e0b 413322001-10-19 Geert Bosch <bosch@gnat.com>
d7ac9bdd
GB
41333
41334 * Makefile.in (tools, gnattools): Remove gnatmem.
41335
17ed6335
RH
413362001-10-17 Richard Henderson <rth@redhat.com>
41337
41338 * Makefile.in (misc.o): Depend on langhooks.h.
41339 * misc.c: Include it.
41340 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
41341 (LANG_HOOKS_DECODE_OPTION): New.
41342 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
41343
f2436274
FW
413442001-10-16 Florian Weimer <fw@deneb.enyo.de>
41345
41346 * trans.c (tree_transform): Adjust to recent change in
41347 expand_asm_operands to implement named asm operands.
41348
b14127e6
ES
413492001-10-11 Ed Schonberg <schonber@gnat.com>
41350
f8e0aa73 41351 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
b14127e6
ES
41352 renaming of discriminant for mutable record type.
41353
e70ee92a
RD
413542001-10-11 Robert Dewar <dewar@gnat.com>
41355
41356 * validsw.adb: Properly save -gnatVn status.
41357
9e94c78f 413582001-10-11 Robert Dewar <dewar@gnat.com>
f8e0aa73 41359
9a5621d7
RD
41360 * usage.adb: Add lines for V switch.
41361
f8e0aa73 41362 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
9a5621d7
RD
41363 (/VALIDITY_CHECKING).
41364
9e94c78f 413652001-10-11 Ed Schonberg <schonber@gnat.com>
45667f04 41366
f8e0aa73 41367 * sem_type.adb (Add_One_Interp): an operator for a type declared in
45667f04
ES
41368 an extension of System is known to be visible.
41369
9e94c78f 413702001-10-11 Ed Schonberg <schonber@gnat.com>
c3de5c4c 41371
f8e0aa73 41372 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
c3de5c4c
ES
41373 properly. Fixes regression on ACATS C34005G.
41374
9e94c78f 413752001-10-11 Robert Dewar <dewar@gnat.com>
4fa964a6 41376
f8e0aa73 41377 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
4fa964a6
RD
41378 loop in generic instance, since this is likely not very useful.
41379
9e94c78f 413802001-10-11 Robert Dewar <dewar@gnat.com>
0868e09c 41381
f8e0aa73 41382 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
0868e09c 41383 the error message for high integrity mode.
f8e0aa73
AJ
41384
41385 * rtsfind.adb (RTE): Give message if we try to find an entity that
0868e09c 41386 is not available in high integrity mode.
f8e0aa73 41387
0868e09c
RD
41388 * rtsfind.ads:
41389 (OK_To_Use_In_HIE_Mode): New array.
41390 (RTE): May return Empty in high integrity mode.
f8e0aa73
AJ
41391
41392 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
41393 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
41394
41395 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
41396 unit if not inlined always and in no runtime mode. Fixes problem
0868e09c 41397 caused by new Rtsfind changes.
f8e0aa73
AJ
41398
41399 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
0868e09c 41400 body is deleted.
f8e0aa73
AJ
41401
41402 * rtsfind.adb (RTE): Make sure we do not try to load unit after
0868e09c
RD
41403 giving message for entity not available in high integrity mode.
41404
9e94c78f 414052001-10-11 Pascal Obry <obry@gnat.com>
f8e0aa73 41406
934abf9c
PO
41407 * impunit.adb: Add GNAT.CRC32.
41408
9e94c78f 414092001-10-11 Ed Schonberg <schonber@gnat.com>
3c72bea4 41410
f8e0aa73
AJ
41411 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
41412 properly the case where one universal operand in a non-static
3c72bea4
ES
41413 exponentiation of a real literal.
41414
9e94c78f 414152001-10-11 Ed Schonberg <schonber@gnat.com>
44d8d2bb 41416
f8e0aa73
AJ
41417 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
41418 clause, return the gobal finalization list, for lack of anthing else.
44d8d2bb 41419
9e94c78f 414202001-10-11 Ed Schonberg <schonber@gnat.com>
9e2b9627 41421
f8e0aa73
AJ
41422 * exp_ch7.adb (Make_Transient_Block): if statement is within
41423 exception handler, always use new transient scope to place Clean
9e2b9627
ES
41424 procedure.
41425
9e94c78f 414262001-10-11 Pascal Obry <obry@gnat.com>
cfac6e9f
PO
41427
41428 * Makefile.in:
41429 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
41430 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
41431 (GNATLS_RTL_OBJS): add g-crc32.o
41432 (GNATMAKE_RTL_OBJS): add g-crc32.o
f8e0aa73 41433
cfac6e9f
PO
41434 * ali-util.adb:
41435 (CRC_Match): new function.
f8e0aa73 41436 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
cfac6e9f
PO
41437 instead of the previous simple checksum algorithm.
41438 (Time_Stamp_Mismatch): use CRC_Match for comparison.
41439 (Set_Source_Table): idem.
f8e0aa73 41440
cfac6e9f 41441 * ali-util.ads:
f8e0aa73 41442 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
cfac6e9f
PO
41443 instead of simple checksum.
41444 (CRC_Match): new function.
41445 (CRC_Error): new constant.
f8e0aa73
AJ
41446
41447 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
41448 a CRC now and not a simple checksum. A CRC uses lower-case hex
cfac6e9f 41449 letters, fixes ambiguity in parsing.
f8e0aa73
AJ
41450
41451 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
cfac6e9f 41452 is what this variable will store.
f8e0aa73 41453
cfac6e9f 41454 * bcheck.adb: Change reference to chechsum in comments by CRC.
f8e0aa73
AJ
41455 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
41456 rename All_Checksum_Match to All_CRC_Match. Change due to API
41457 renaming since now GNAT does not use a simple checksum but a
cfac6e9f 41458 CRC using GNAT.CRC32.
f8e0aa73
AJ
41459
41460 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
cfac6e9f 41461 now and not anymore a simple checksum.
f8e0aa73
AJ
41462
41463 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
cfac6e9f 41464 places.
f8e0aa73 41465
cfac6e9f 41466 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
f8e0aa73 41467
cfac6e9f
PO
41468 * scans.adb:
41469 (Restore_Scan_State): rename Checksum to CRC.
41470 (Save_Scan_State): idem.
f8e0aa73 41471
cfac6e9f
PO
41472 * scans.ads:
41473 With GNAT.CRC32.
41474 (Checksum): rename to CRC.
41475 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
f8e0aa73
AJ
41476
41477 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
cfac6e9f 41478 GNAT.CRC32). Update copyright notice.
f8e0aa73
AJ
41479
41480 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
cfac6e9f 41481 GNAT.CRC32). Update copyright notice.
f8e0aa73 41482
cfac6e9f
PO
41483 * scn.adb:
41484 (Accumulate_Checksum): removed.
41485 (Update): new procedure. Add a wide-character into the CRC.
f8e0aa73 41486
cfac6e9f
PO
41487 * sinput-l.adb:
41488 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
f8e0aa73 41489 (Load_File): fix initialization of S (change Source_Checksum to
cfac6e9f 41490 Source_CRC)
f8e0aa73
AJ
41491
41492 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
cfac6e9f 41493 Source_CRC in S initialization.
f8e0aa73 41494
cfac6e9f 41495 * sinput.adb (Source_Checksum): renamed to Source_CRC.
f8e0aa73 41496
cfac6e9f
PO
41497 * sinput.ads (Source_Checksum): renamed to Source_CRC.
41498 Update comments for the CRC.
f8e0aa73 41499
cfac6e9f 41500 * types.adb (Hex): Use lowercase for the letter part.
f8e0aa73
AJ
41501
41502 * types.ads (Get_Hex_String): Returns the hexadecimal representation
41503 for a word. This is currently used only for CRC. In previous version,
41504 the checksum was using a representation with all letter being
41505 upper-case. With the new implementation (using CRC) we do not remove
41506 the 32th bit of the CRC, so we can have an upper-case starting letter
41507 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
41508 It is ambigous since the CRC was optional and could be followed by
41509 options like EB, EE. So now this routines uses lower-case letter for
41510 the hexadecimal representation. Strange enough only lower case letters
cfac6e9f 41511 where checked in Scan_ALI (even if this was not a possible case).
f8e0aa73 41512
cfac6e9f 41513 * gnatvsn.ads (Library_Version): changed to 3.15a.
f8e0aa73
AJ
41514
41515 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
cfac6e9f 41516 for the compiler.
f8e0aa73
AJ
41517
41518 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
cfac6e9f 41519 for the compiler.
f8e0aa73 41520
cfac6e9f
PO
41521 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
41522 Add 2001 to copyright notice
41523 (Accumulate_Checksum): Modify to use System.CRC32.
f8e0aa73
AJ
41524
41525 * ali-util.ads: Redo changes of previous revision to continue to use
cfac6e9f 41526 the word Checksum. Add 2001 to copyright notice.
f8e0aa73 41527
cfac6e9f
PO
41528 * ali.adb: Undo some of previous changes, not needed.
41529 Keep the change for lower case letters in the checksum.
f8e0aa73 41530
cfac6e9f
PO
41531 * ali.ads: Undo previous change not needed.
41532
41533 * bcheck.adb: Undo most of previous change, not needed.
41534 But do use Checksums_Match for checksum comparison.
f8e0aa73 41535
cfac6e9f
PO
41536 * gnatls.adb: Undo most of previous change, not needed.
41537 But do use Checksums_Match for comparing checksums.
f8e0aa73 41538
cfac6e9f 41539 * lib-load.adb: Undo previous change, not needed.
f8e0aa73 41540
cfac6e9f 41541 * lib-writ.adb: Undo previous change, not needed.
f8e0aa73
AJ
41542
41543 * lib-writ.ads: Document that checksums use lower case,
cfac6e9f 41544 not upper case letters.
f8e0aa73 41545
cfac6e9f 41546 * scans.adb: Undo previous change, not needed
f8e0aa73 41547
cfac6e9f 41548 * scans.ads: Undo previous change, not needed.
f8e0aa73 41549
cfac6e9f 41550 * scn-nlit.adb: Undo previous changes, not needed.
f8e0aa73 41551
cfac6e9f 41552 * scn-slit.adb: Undo previous change, not needed. Fix header format.
f8e0aa73 41553
cfac6e9f
PO
41554 * scn.adb:
41555 (Accumulate_Checksum): Use System.CRC32.
41556 (Initialize_Checksum): New procedure.
41557 Remove other changes of previous revision.
f8e0aa73 41558
cfac6e9f 41559 * sinput-p.adb: Undo previous change, not needed.
f8e0aa73 41560
cfac6e9f
PO
41561 * sinput.adb: Undo previous change, not needed.
41562
41563 * sinput-l.adb: Undo previous change, not needed.
f8e0aa73
AJ
41564
41565 * sinput.ads: Undo previous change, not needed. Keep only comment
cfac6e9f 41566 on new checksum algorithm
f8e0aa73 41567
cfac6e9f
PO
41568 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
41569 Also remove a-tags and a-stream from GNAT sources.
f8e0aa73 41570
cfac6e9f 41571 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
f8e0aa73 41572
cfac6e9f
PO
41573 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
41574
4d6d06a5
GB
415752001-10-11 Geert Bosch <bosch@gnat.com>
41576
41577 * einfo.h: Regenerate.
41578
41579 * nmake.ads: Regenerate.
41580
41581 * nmake.adb: Regenerate.
41582
41583 * sinfo.h: Regenerate.
41584
41585 * treeprs.adb: Regenerate.
41586
c97412e2
GB
415872001-10-10 Geert Bosch <bosch@gnat.com>
41588
41589 * gnat-style.texi: New file describing coding guidelines for Ada.
f8e0aa73 41590
9e94c78f 415912001-10-10 Ed Schonberg <schonber@gnat.com>
b83018ca 41592
f8e0aa73 41593 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
b83018ca
ES
41594 is Flag174.
41595
e834fe1f
GB
415962001-10-10 Geert Bosch <bosch@gnat.com>
41597
41598 * snames.ads: Add new names for project facility.
41599
41600 * snames.adb: Update to reflect snames.ads changes.
41601
41602 * snames.h: Update to reflect snames.ads changes.
41603
9e94c78f 416042001-10-10 Vincent Celier <celier@gnat.com>
b30668b7
VC
41605
41606 * make.adb:
41607 (Add_Switches): reflect the changes for the switches attributes
41608 Default_Switches indexed by the programming language,
41609 Switches indexed by the file name.
41610 (Collect_Arguments_And_Compile): Idem.
41611 Reflect the attribute name changes.
f8e0aa73 41612
b30668b7
VC
41613 * prj-attr.adb:
41614 (Initialisation_Data): Change the names of some packages and
41615 attributes.
41616 (Initialize): process case insensitive associative arrays.
f8e0aa73 41617
b30668b7
VC
41618 * prj-attr.ads:
41619 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
f8e0aa73 41620
b30668b7
VC
41621 * prj-dect.adb:
41622 (Parse_Attribute_Declaration): For case insensitive associative
41623 arrays, set the index string to lower case.
f8e0aa73 41624
b30668b7
VC
41625 * prj-env.adb:
41626 Reflect the changes of the project attributes.
f8e0aa73 41627
b30668b7
VC
41628 * prj-nmsc.adb:
41629 Replace Check_Naming_Scheme by Ada_Check and
41630 Language_Independent_Check.
f8e0aa73 41631
b30668b7
VC
41632 * prj-nmsc.ads:
41633 Replaced Check_Naming_Scheme by 2 procedures:
41634 Ada_Check and Language_Independent_Check.
f8e0aa73 41635
b30668b7
VC
41636 * prj-proc.adb:
41637 (Process_Declarative_Items): For case-insensitive associative
41638 arrays, set the index string to lower case.
41639 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
41640 Prj.Nmsc.Check_Naming_Scheme.
f8e0aa73 41641
b30668b7
VC
41642 * prj-tree.adb:
41643 (Case_Insensitive): New function
41644 (Set_Case_Insensitive): New procedure
f8e0aa73 41645
b30668b7
VC
41646 * prj-tree.ads:
41647 (Case_Insensitive): New function
41648 (Set_Case_Insensitive): New procedure
41649 (Project_Node_Record): New flag Case_Insensitive.
f8e0aa73 41650
b30668b7
VC
41651 * prj-util.adb:
41652 (Value_Of): new function to get the string value of a single
41653 string variable or attribute.
f8e0aa73 41654
b30668b7
VC
41655 * prj-util.ads:
41656 (Value_Of): new function to get the string value of a single
41657 string variable or attribute.
f8e0aa73 41658
b30668b7
VC
41659 * prj.adb:
41660 (Ada_Default_Spec_Suffix): New function
41661 (Ada_Default_Impl_Suffix): New function
41662 Change definitions of several constants to reflect
41663 new components of record types.
f8e0aa73 41664
b30668b7
VC
41665 * prj.ads:
41666 (Naming_Data): Change several components to reflect new
41667 elements of naming schemes.
41668 (Project_Data): New flags Sources_Present and
41669 Language_Independent_Checked.
41670 (Ada_Default_Spec_Suffix): New function.
41671 (Ada_Default_Impl_Suffix): New function.
f8e0aa73 41672
b30668b7
VC
41673 * snames.ads:
41674 Modification of predefined names for project manager: added
41675 Implementation, Specification_Exceptions, Implementation_Exceptions,
41676 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
41677 Default_Switches, _Languages, Builder, Cross_Reference,
41678 Finder. Removed Body_Part, Specification_Append, Body_Append,
41679 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
41680 Gnatlink.
f8e0aa73 41681
b30668b7
VC
41682 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
41683 Add comments.
f8e0aa73 41684
b30668b7
VC
41685 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
41686 not that it is Nil_Variable_Value.
f8e0aa73 41687
b30668b7
VC
41688 * prj.ads: Add ??? for uncommented declarations
41689
9e94c78f 416902001-10-10 Ed Schonberg <schonber@gnat.com>
662e57b4 41691
f8e0aa73
AJ
41692 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
41693 constant, do not indicate possible modification, so that gigi can
662e57b4
ES
41694 treat it as a bona fide constant.
41695
9e94c78f 416962001-10-10 Robert Dewar <dewar@gnat.com>
72e4357f
RD
41697
41698 * sem_prag.adb: Add processing for pragma External.
f8e0aa73 41699
72e4357f 41700 * snames.ads: Add entry for pragma External.
f8e0aa73 41701
72e4357f 41702 * par-prag.adb: Add pragma External.
f8e0aa73 41703
72e4357f
RD
41704 * snames.adb: Updated to match snames.ads.
41705
9e94c78f 417062001-10-10 Ed Schonberg <schonber@gnat.com>
7bc1c7df
ES
41707
41708 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
41709 a dynamic task if the allocator appears in an indexed assignment
41710 or selected component assignment.
f8e0aa73
AJ
41711
41712 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
41713 For a dynamic task in an assignment statement, use target of
7bc1c7df
ES
41714 assignment to generate meaningful name.
41715
9e94c78f 417162001-10-10 Ed Schonberg <schonber@gnat.com>
c84700e7 41717
f8e0aa73 41718 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
c84700e7
ES
41719 a generic package.
41720
41721 * einfo.ads: Body_Entity is also defined for generic package.
41722 Documentation change only
f8e0aa73
AJ
41723
41724 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
41725 others_choice for a discriminated component initialization,
41726 convert discriminant references into the corresponding discriminals.
41727
41728 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
41729 only if original type is private and expression has to be wrapped
c84700e7 41730 in a conversion.
f8e0aa73
AJ
41731
41732 * checks.adb:
41733 (Apply_Constraint_Check): Do not perform length check
c84700e7 41734 if expression is an aggregate with only an others_choice.
f8e0aa73 41735 (Length_N_Cond): two references to the same in_parameter
c84700e7
ES
41736 (typically the discriminal in an init_proc) denote the same value.
41737 Two useful optimization uncovered by bugfixes above.
41738
9e94c78f 417392001-10-10 Robert Dewar <dewar@gnat.com>
d8d80dcd 41740
f8e0aa73 41741 * xeinfo.adb: Change int to char in translation of enumeration types.
d8d80dcd
RD
41742 This fixes a problem in the C representation of component alignment.
41743 Add 2001 to copyright notice
41744
9e94c78f 417452001-10-10 Richard Kenner <kenner@gnat.com>
a8fee948 41746
f8e0aa73 41747 * decl.c: (validate_size): Do check size of object of integral type
a8fee948
RK
41748 if it is a packed array type.
41749
9e94c78f 417502001-10-10 Richard Kenner <kenner@gnat.com>
c2d7fe59 41751
f8e0aa73 41752 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
c2d7fe59
RK
41753 VAR_DECL for constant if not Is_Public but -O0.
41754
fb75e100
RK
417552001-10-10 Richard Kenner <kenner@gnat.com>
41756
41757 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
41758
1724557a
GB
417592001-10-10 Geert Bosch <bosch@gnat.com>
41760
f8e0aa73 41761 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
1724557a
GB
41762 use '/' as switch character, allowing for absolute file names.
41763
9f2f9eb6
JM
417642001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
41765
41766 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
41767 FSF address.
41768
8fecf41d
GB
417692001-10-08 Geert Bosch <bosch@gnat.com>
41770
41771 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
41772 Automatically build utilities when files need to be regenerated.
41773
589f1edf
GB
417742001-10-08 Geert Bosch <bosch@gnat.com>
41775
41776 * xsnames.adb: New utility for updating snames.ads and snames.adb
41777
67f28219
ZW
417782001-10-08 Zack Weinberg <zack@codesourcery.com>
41779
41780 * Make-lang.in (ADAFLAGS): Add -W -Wall.
41781 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
41782 (gnat1): Also depend on attribs.o.
41783 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
41784 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
41785 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
41786 (ADAFLAGS): Add -W -Wall.
41787 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
41788 take out CFLAGS.
41789
41790 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
41791 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
41792 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
41793 Use $(ADAC), not $(CC), as compilation command.
41794
41795 (gnattools): Depend directly on tools to build, don't use
41796 recursive make.
41797 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
41798
41799 * einfo.h, sinfo.h: New files (autogenerated).
41800
295ef2bb
RH
418012001-10-08 Richard Henderson <rth@redhat.com>
41802
41803 * comperr.adb (Abort_In_Progress): New.
41804 (Compiler_Abort): Use it to prevent recursion.
41805
9e94c78f 418062001-10-08 Robert Dewar <dewar@gnat.com>
5c736541
RD
41807
41808 * atree.adb: Set Error_Posted in Error node, helps error recovery.
67f28219
ZW
41809
41810 * par-endh.adb (Output_End_Expected): We should also not test
5c736541 41811 Error_Posted on the Error node, since now it is always set.
67f28219
ZW
41812
41813 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
5c736541 41814 to help error recovery. Part of general work on 9407-004.
67f28219 41815
5c736541 41816 * par.adb: Add ??? for misuse of error
67f28219 41817
5c736541
RD
41818 * sem_res.adb:
41819 (Resolve): Defend against Error, fixes 9407-003.
41820 (Resolve_Discrete_Subtype_Indication): Defend against Error.
67f28219
ZW
41821
41822 * sinfo.ads (N_Error): Now has Etype field (which will be set
5c736541
RD
41823 to Any_Type to help error recovery).
41824
9e94c78f 418252001-10-08 Richard Kenner <kenner@gnat.com>
a153ae15
RK
41826
41827 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
41828 Consistently set MEM attributes from expression; fixes
41829 bootstrap failure on x86.
41830
9e94c78f 418312001-10-08 Geert Bosch <bosch@gnat.com>
743f3c7b
GB
41832
41833 * 5oosinte.adb: Add 2001 to copyright notice.
41834
9e94c78f 418352001-10-08 Geert Bosch <bosch@gnat.com>
210c4ef4
GB
41836
41837 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
41838
41839 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
41840
cc712abf
JM
418412001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
41842
41843 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
41844
9e94c78f 418452001-10-05 Geert Bosch <bosch@gnat.com>
4c4abc0f
GB
41846
41847 * adaint.h: Small formatting fix.
41848
7f50e2e3
GB
418492001-10-04 Geert Bosch <bosch@gnat.com>
41850
41851 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
41852 Arg is int, not FILE *, in dummy version of functions.
67f28219 41853
7f50e2e3
GB
41854 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
41855 Arg is int, not FILE *.
41856
5d1a9698
GB
418572001-10-04 Geert Bosch <bosch@gnat.com>
41858
41859 * 3lsoccon.ads: Added file, missed with initial check ins.
67f28219 41860
5d1a9698
GB
41861 * 4lintnam.ads: Fix header format.
41862 Change Linux to GNU/Linux.
67f28219 41863
5d1a9698
GB
41864 * 5iosinte.adb: Change Linux to GNU/Linux.
41865
41866 * 5iosinte.ads: Change Linux to GNU/Linux.
67f28219 41867
5d1a9698 41868 * 5itaprop.adb: Change Linux to GNU/Linux.
67f28219 41869
5d1a9698
GB
41870 * 5itaspri.ads: Change Linux to GNU/Linux.
41871 Update copyright notice.
67f28219 41872
5d1a9698 41873 * 5lintman.adb: Change Linux to GNU/Linux.
67f28219 41874
5d1a9698 41875 * 5lml-tgt.adb: Change Linux to GNU/Linux.
67f28219 41876
5d1a9698 41877 * 5losinte.ads: Change Linux to GNU/Linux.
67f28219 41878
5d1a9698 41879 * 5lsystem.ads: Change Linux to GNU/Linux.
67f28219 41880
5d1a9698 41881 * 5qosinte.adb: Change Linux to GNU/Linux.
67f28219 41882
5d1a9698 41883 * 5qosinte.ads: Change Linux to GNU/Linux.
67f28219 41884
5d1a9698 41885 * 5qparame.ads: Change Linux to GNU/Linux.
67f28219 41886
5d1a9698 41887 * 5qtaprop.adb: Change Linux to GNU/Linux.
67f28219 41888
5d1a9698
GB
41889 * 5qtaspri.ads: Change Linux to GNU/Linux.
41890 Add 2001 to copyright notice.
67f28219 41891
5d1a9698
GB
41892 * 5vintman.ads: Change Linux to GNU/Linux.
41893 Fix header format. Add 2001 to copyright notice.
67f28219 41894
5d1a9698 41895 * g-soccon.ads: Change Linux to GNU/Linux.
67f28219 41896
5d1a9698
GB
41897 * g-trasym.ads: Change Linux to GNU/Linux.
41898 Add 2001 to copyright notice.
67f28219 41899
5d1a9698 41900 * memtrack.adb: Change Linux to GNU/Linux.
67f28219 41901
5d1a9698
GB
41902 * s-intman.ads: Change Linux to GNU/Linux.
41903 Add 2001 to copyright notice. Fix header format.
67f28219 41904
5d1a9698 41905 * s-stache.adb: Change Linux to GNU/Linux.
67f28219 41906
5d1a9698 41907 * adaint.c: Change Linux to GNU/Linux.
67f28219 41908
5d1a9698 41909 * cio.c: Change Linux to GNU/Linux.
67f28219 41910
5d1a9698 41911 * cstreams.c: Change Linux to GNU/Linux.
67f28219 41912
5d1a9698 41913 * init.c: Change Linux to GNU/Linux.
67f28219 41914
5d1a9698 41915 * gmem.c: Change Linux to GNU/Linux.
67f28219 41916
5d1a9698
GB
41917 * tracebak.c: Change Linux to GNU/Linux.
41918
41919
c25ca2d7
GB
419202001-10-02 Geert Bosch <bosch@gnat.com>
41921
41922 * misc.c (insert_default_attributes): Add dummy version.
This page took 5.85488 seconds and 5 git commands to generate.