]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ada/ChangeLog
g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
[thirdparty/gcc.git] / gcc / ada / ChangeLog
CommitLineData
4cded177
RD
12004-10-04 Robert Dewar <dewar@gnat.com>
2
3 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
4 (XMatchD): Avoid warning for Logic_Error call
5
c6a60aa1
RD
62004-10-04 Robert Dewar <dewar@gnat.com>
7
8 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
9 consider expressions buried within a procedure actual to be an actual.
10 This caused some blowups with uses of packed slices within a procedure
11 actual.
12
1fdebfe5
RD
132004-10-04 Robert Dewar <dewar@gnat.com>
14
15 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
16 longer need to be initialized to zero.
17 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
18 initialized to zero.
19
20 * checks.adb (Expr_Known_Valid): Packed arrays are now always
21 considered valid, even if the representation is modular. That's correct
22 now that we no longer initialize packed modular arrays to zero.
23
24 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
25 suffixes. These are now documented as the only cases in which the
26 debugger ignores outer records.
27 Previously, the spec allowed arbitrary suffixes for this purpose.
28 Change name of LJM to JM for packed array pad records
29 Create separate section on packed array handling, and add a whole new
30 set of comments to this section describing the situation with packed
31 modular types and justification requirements depending on endianness.
32
cd91501c
RD
332004-10-04 Robert Dewar <dewar@gnat.com>
34
35 * a-except.adb: Add a comment for last change
36
37 * einfo.ads: Minor spelling correction in comment
38
39 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
40
41 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
42 messages.
43
44 * sem_util.ads: Minor comment update
45
c71c53a8
ES
462004-10-04 Ed Schonberg <schonberg@gnat.com>
47
48 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
49 Inline_Always when in Configurable_Run_Time mode.
50
51 * sem_prag.adb (Process_Convention): If entity is an inherited
52 subprogram, apply convention to parent subprogram if in same scope.
53 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
54 when in Configurable_Run_Time mode.
55
71d9e9f2
ES
562004-10-04 Ed Schonberg <schonberg@gnat.com>
57
58 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
59 class_wide type after component list has been inherited.
60
0b525bee
ES
612004-10-04 Ed Schonberg <schonberg@gnat.com>
62
63 * sem_ch12.adb (Check_Generic_Actuals): New predicate
64 Denotes_Previous_Actual, to handle properly the case of a private
65 actual that is also the component type of a subsequent array actual.
66 The visibility status of the first actual is not affected when the
67 second is installed.
68 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
69 make fully recursive the treatment of formals of packages declared
70 with a box.
71 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
72 the above on exit from an instantiation.
73 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
74 current instantiation which is now complete.
75 (Analyze_Package_Instantiation): No instantiated body is needed if the
76 main unit is generic. Efficient, and avoid anomalies when a instance
77 appears in a package accessed through rtsfind.
78
27ad9660
ES
792004-10-04 Ed Schonberg <schonberg@gnat.com>
80
81 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
82 do not generate a declaration for a temporary if the call is part of a
83 library-level instantiation.
84
1c6c6771
ES
852004-10-04 Ed Schonberg <schonberg@gnat.com>
86
87 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
88 searching for a limited component to flag.
89
90 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
91 expansion of Input, to account for the fact that the implicit call
92 generated by the attribute reference must freeze the user-defined
93 stream subprogram. This is only relevant to 'Input, because it can
94 appear in an object declaration, prior to the body of the subprogram.
95
96 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
97 expansion can proceed and further errors uncovered.
98 (Minor clean up): Fix cases of using | instead of \ for continuation
99 messages.
100
8005f3e5
RK
1012004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
102
103 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
104
105 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
106 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
107 Use gcc_assert and gcc_unreachable.
108
109 * decl.c (gnat_to_gnu_entity, case object): Check and process a
110 specified alignment before validating size.
111 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
112 stripped-down declaration for the type of the inner field when making
113 a JM type.
114
115 * utils.c (finish_record_type): Do not compute the size in units
116 incrementally. Instead compute it once for the rep clause case.
117 Use gcc_assert and gcc_unreachable.
118
6a294a29
VC
1192004-10-04 Vincent Celier <celier@gnat.com>
120
121 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
122 in file name.
123 (Is_Valid_Path_Name): Take '/' as a directory separator.
124
9a080ea3
VC
1252004-10-04 Vincent Celier <celier@gnat.com>
126
127 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
128 (Extended_Project) only if Extended_Project is defined, to avoid
129 assertion error.
130 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
131 resolved path.
132 (Parse_Single_Project): Ditto.
133
134 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
135 Add_To_Project_Path for virtual projects.
136
51004cb5
VC
1372004-10-04 Vincent Celier <celier@gnat.com>
138
139 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
140 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
141 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
142 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
143 parameter Options_2.
144
145 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
146 Build_Dynamic_Library with an empty Options_2.
147
148 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
149 default anymore.
150
151 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
152 directory separator, if any.
153 (Gprmake): Do not allow mains on the command line for library projects.
154 Do not attempt to link when the project is a library project.
155 (Library_Opts): New table to store Library_Options.
156 (Build_Library): If Library_Options is specified, pass these options
157 when building a shared library.
158
3b37ffbf
JR
1592004-10-04 Jose Ruiz <ruiz@act-europe.fr>
160
161 * s-tposen.adb (Service_Entry): The object must be always unlocked at
162 the end of this procedure now that the unlock operation was inserted
163 by the expander.
164
b23e28d5
JR
1652004-10-04 Jose Ruiz <ruiz@act-europe.fr>
166
167 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
168 corresponding to the Preallocated_Stacks flags in System.
169 (Get_Target_Parameters): Including the processing for
170 Preallocated_Stacks.
171
172 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
173 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
174 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
175 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
176 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
177 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
178 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
179 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
180 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
181 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
182 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
183 used to signal whether the compiler creates the required stacks and
184 descriptors for the different tasks (when True) or it is done by the
185 underlying operating system at run time (when False).
186 It is initially set to False in all targets.
187
188 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
189 if it is supported by the target.
190 (Make_Task_Create_Call): Pass the stack address if it has been
191 previously created. Otherwise pass a Null_Address.
192
193 * snames.adb: Add _stack.
194
195 * snames.ads: Add Name_uStack. Required to allow the expander to
196 statically allocated task stacks.
197
198 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
199 Stack_Address argument.
200 Check that its value is equal to Null_Address because this target does
201 not support the static stack allocation.
202
6fd459bb
TQ
2032004-10-04 Thomas Quinot <quinot@act-europe.fr>
204
205 * usage.adb: Change "pragma inline" to "pragma Inline" in information
206 and error messages
207
5885facb
TQ
2082004-10-04 Thomas Quinot <quinot@act-europe.fr>
209
210 * exp_dist.adb: Split declaration of asynchronous flag out of
211 Add_RACW_Read_Attribute.
212 Minor reformatting for better alignment with PolyORB version.
213 Store the entity for the asynchronous flag of an RACW, rather than the
214 expression, in the asynchronous flags table. This will allow this flag
215 to be used in other subprograms beside Add_RACW_Read_Attribute.
216
d6c7ed50
TQ
2172004-10-04 Thomas Quinot <quinot@act-europe.fr>
218
219 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
220 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
221 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
222 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
223 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
224 sockets constant MSG_NOSIGNAL (Linux-specific).
225 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
226 all Send operations.
227 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
228 from trigerring SIGPIPE.
229 Rename components to avoid clash with Ada 2005 possible reserved
230 word 'interface'.
231 (Check_Selector): When the select system call returns with an error
232 condition, propagate Socket_Error to the caller.
233
0f0377f6
JH
2342004-10-01 Jan Hubicka <jh@suse.cz>
235
236 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
237
2c9beb8a
RD
2382004-09-23 Robert Dewar <dewar@gnat.com>
239
240 PR ada/17540
241
242 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
243 instead do this at freeze time (we won't do it if there is an address
244 clause).
245 Change "pragma inline" to "pragma Inline" in information and error
246 messages.
247 Minor reformatting.
248
249 * freeze.adb (Check_Address_Clause): Remove previous change, not the
250 right way of doing things after all.
251 (Freeze_Entity): For object, set Is_Public for imported entities
252 unless there is an address clause present.
253
2494e673
OH
2542004-09-21 Olivier Hainque <hainque@act-europe.fr>
255
256 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
257 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
258 ensures proper handling of types with rep clauses, which might have
259 their TYPE_SIZE set already.
260
910d20fc
RD
2612004-09-21 Robert Dewar <dewar@gnat.com>
262
263 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
264 packed array types in both little- and big-endian cases. This change
265 ensures that we no longer count on the unused bits being initialized
266 for such types (and in particular ensures that equality testing will
267 only read the relevant bits).
268 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
269 These changes mean that we no longer need to initialize small packed
270 arrays.
271 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
272 optimization to an LJM field as to its parent field.
273
274 * ada-tree.h, trans.c, utils.c, utils2.c:
275 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
276
8f235343
JH
2772004-09-20 Jan Hubicka <jh@suse.cz>
278
279 * utils.c (gnat_finalize): Remove.
280 (end_subprog_body): Directly call cgraph_finalize_function;
281 do not lower the nested functions.
282
bb9be5eb
RD
2832004-09-20 Robert Dewar <dewar@gnat.com>
284
285 PR ada/17540
286
287 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
288 if an address clause is present, since that means that the Import
289 should be ignored.
290
796ef2e2
AC
2912004-09-20 Arnaud Charlet <charlet@act-europe.fr>
292
293 * 5tsystem.ads: Removed, no longer used.
294
6615c446
JO
2952004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
296 Zack Weinberg <zack@codesourcery.com>
297
298 * ada-tree.def: Use tree_code_class enumeration constants
299 instead of code letters.
300 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
301 Update for new tree-class enumeration constants.
302
93ed8a01
VC
3032004-09-17 Vincent Celier <celier@gnat.com>
304
305 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
306 capabilities of the general project manager.
307
c885d7a1
AC
3082004-09-09 Vincent Celier <celier@gnat.com>
309
310 * a-direct.ads: Add pragma Ada_05
311 (Directory_Entry_Type): Give default value to component Kind to avoid
312 not initialized warnings.
313
314 * a-direct.adb (Current_Directory): Remove directory separator at the
315 end.
316 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
317 an existing directory.
318 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
319 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
320 Convert the result to File_Size.
321
322 * prj.ads: (Project_Error): New exception
323
324 * prj-attr.adb: Except in procedure Initialize, Fail comes from
325 Prj.Com, not from Osint.
326 (Attrs, Package_Attributes): Tables moved to private part of spec
327 (Add_Attribute, Add_Unknown_Package): Moved to new child package
328 Prj.Attr.PM.
329 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
330 Prj.Project_Error after call to Fail.
331 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
332 Fail. Check that package name is not already in use.
333
334 * prj-attr.ads: Comment updates to indicate that all subprograms may be
335 used by tools, not only by the project manager, and to indicate that
336 exception Prj.Prj_Error may be raised in case of problem.
337 (Add_Unknown_Package, Add_Attribute): Moved to new child package
338 Prj.Attr.PM.
339 (Attrs, Package_Attributes): Table instantiations moved from the body to
340 the private part to be accessible from Prj.Attr.PM body.
341
342 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
343 from new package Prj.Attr.PM.
344 (Parse_Attribute_Declaration): Call Add_Attribute from new package
345 Prj.Attr.PM.
346
347 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
348
349 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
350 instead of Elaboration_Checks).
351
352 * a-calend.adb: Minor reformatting
353
3542004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
355
356 * gigi.h (maybe_pad_type): New declaration.
357 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
358
359 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
360
361 * cuintp.c: Convert to use buildN.
362
363 * decl.c (maybe_pad_type): No longer static.
364 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
365 target pointer.
366 Convert to use buildN.
367
368 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
369 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
370 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
371 RHS.
372 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
373 (gnat_gimplify_expr, case ADDR_EXPR): New case.
374 Convert to use buildN.
375
376 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
377 TREE_READONLY for const.
378 Convert to use buildN.
379
380 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
381 (create_var_decl): Refine when TREE_STATIC is set.
382 Convert to use buildN.
383
3842004-09-09 Gary Dismukes <dismukes@gnat.com>
385
386 * gnat_ugn.texi: Delete text relating to checking of ali and object
387 consistency.
388
389 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
390 routines.
391
3922004-09-09 Jose Ruiz <ruiz@act-europe.fr>
393
394 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
395 pragmas recognized by GNAT.
396
397 * gnat_rm.texi: Document pragma Detect_Blocking.
398
399 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
400 raise Program_Error if called from a protected operation.
401
402 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
403 the protected action nesting level.
404 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
405 protected action nesting level.
406 (Unlock): When pragma Detect_Blocking is active decrease the protected
407 action nesting level.
408
409 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
410 Protected_Action_Nesting.
411
412 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
413 Common_ATCB record. It contains the dynamic level of protected action
414 nesting for each task. It is needed for checking whether potentially
415 blocking operations are called from protected operations.
416 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
417 Detect_Blocking is active or not in the partition.
418
419 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
420 raise Program_Error if called from a protected operation.
421 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
422 Program_Error if called from a protected operation.
423 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
424 Program_Error if called from a protected operation.
425
426 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
427 raise Program_Error if called from a protected operation.
428
429 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
430 raise Program_Error if called from a protected operation, and increase
431 the protected action nesting level.
432 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
433 Program_Error if called from a protected operation, and increase the
434 protected action nesting level.
435 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
436 protected action nesting level.
437
438 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
439 raise Program_Error if called from a protected operation, and increase
440 the protected action nesting level.
441 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
442 Program_Error if called from a protected operation, and increase the
443 protected action nesting level.
444 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
445 raise Program_Error if called from a protected operation.
446 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
447 active, raise Program_Error if called from a protected operation.
448 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
449 protected action nesting level.
450
451 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
452 insertion of the statement raising Program_Error. The run time
453 contains the required machinery for handling that.
454
455 * sem_util.ads: Change comment associated to procedure
456 Check_Potentially_Blocking_Operation.
457 This procedure does not insert a call for raising the exception because
458 that is currently done by the run time.
459
460 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
461
462 * init.c: Add the global variable __gl_detect_blocking that indicates
463 whether pragma Detect_Blocking is active (1) or not (0). Needed for
464 making the pragma available at run time.
465 (__gnat_set_globals): Pass and update the detect_blocking parameter.
466
467 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
468 pragma Detect_Blocking is active.
469
470 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
471
472 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
473 DB is found in the ali file. Any unit compiled with pragma
474 Detect_Blocking active forces its effect in the whole partition.
475
476 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
477 Detect_Blocking is active and delay is called from a protected
478 operation.
479
480 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
481 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
482 Detect_Blocking is active (0 otherwise).
483 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
484 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
485 otherwise).
486
4872004-09-09 Thomas Quinot <quinot@act-europe.fr>
488
489 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
490 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
491 package.
492
493 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
494 (Register_Receiving_Stub): Add Subp_Info formal parameter.
495 Update API in placeholder implemetation of s-parint to reflect changes
496 in distribution runtime library.
497
498 * sem_ch3.adb (Expand_Derived_Record): Rename to
499 Expand_Record_Extension.
500
501 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
502 primitive operations of potentially distributed object types that have
503 non-controlling anonymous access formals.
504
505 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
506 subprogram.
507 New implementation of expansion for remote access-to-subprogram types,
508 based on the RACW infrastructure.
509 This version of sem_dist is compatible with PolyORB/DSA as well as
510 GLADE.
511
512 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
513 Asynchrronous that applies to a remote access-to-subprogram type, mark
514 the underlying RACW type as asynchronous.
515
516 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
517 __gnat_using_gnu_linker to 1.
518
519 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
520 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
521 GNAT.Perfect_Hash_Generators, and remove the empty
522 GNAT.Perfect_Hash package.
523
524 * atree.adb: Minor reformatting
525
526 * exp_ch3.adb (Expand_Derived_Record): Rename to
527 Expand_Record_Extension.
528 (Build_Record_Init_Proc.Build_Assignment): The default expression in
529 a component declaration must remain attached at that point in the
530 tree so New_Copy_Tree copies it if the enclosing record type is derived.
531 It is therefore necessary to take a copy of the expression when building
532 the corresponding assignment statement in the init proc.
533 As a side effect, in the case of a derived record type, we now see the
534 original expression, without any rewriting that could have occurred
535 during expansion of the ancestor type's init proc, and we do not need
536 to go back to Original_Node.
537
538 * exp_ch3.ads (Expand_Derived_Record): Rename to
539 Expand_Record_Extension.
540
541 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
542 Returns the RACW type used to implement a remote access-to-subprogram
543 type.
544 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
545 New subprograms. Used to create a proxy tagged object for a remote
546 subprogram. The proxy object is used as the designated object
547 for RAS values on the same partition (unless All_Calls_Remote applies).
548 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
549 System.Partition_Interface.Get_Unique_Remote_Pointer.
550 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
551 Renamed from Add_RAS_*_Attribute.
552 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
553 subprograms.
554 New implementation of expansion for remote access-to-subprogram types,
555 based on the RACW infrastructure.
556
557 * exp_dist.ads (Copy_Specification): Update comment to note that this
558 function can copy the specification from either a subprogram
559 specification or an access-to-subprogram type definition.
560
5612004-09-09 Ed Schonberg <schonberg@gnat.com>
562
563 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
564 in an instance, between an explicit subprogram an one inherited from a
565 type derived from an actual.
566
567 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
568 add a polling call if the subprogram is to be inlined by the back-end,
569 to avoid repeated calls with multiple inlinings.
570
571 * checks.adb (Apply_Alignment_Check): If the expression in the address
572 clause is a call whose name is not a static entity (e.g. a dispatching
573 call), treat as dynamic.
574
5752004-09-09 Robert Dewar <dewar@gnat.com>
576
577 * g-trasym.ads: Minor reformatting
578
579 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
580 packed arrays, since unused bits are expected to be zero for a
581 comparison.
582
5832004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
584
585 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
586 comment.
587
5882004-09-09 Pascal Obry <obry@gnat.com>
589
590 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
591 enable map file generation. Add the right option to generate the map
592 file if Map_File is set to True.
593
594 * gnatdll.adb (Gen_Map_File): New variable.
595 (Syntax): Add info about new -m (Map_File) option.
596 (Parse_Command_Line): Add support for -m option.
597 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
598 Minor reformatting.
599
6002004-09-09 Laurent Pautet <pautet@act-europe.fr>
601
602 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
603 new gnatdist implementation.
604 Define a subpackage isolating the output routines specific to this
605 verbose mode.
606
6072004-09-09 Joel Brobecker <brobecker@gnat.com>
608
609 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
610
611 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
612
6132004-09-09 Cyrille Comar <comar@act-europe.fr>
614
615 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
616 internal unit.
617
618 * opt.ads: Add Ada_Version_Runtime constant used to decide which
619 version of the language is used to compile the run time.
620
6212004-09-09 Arnaud Charlet <charlet@act-europe.fr>
622
623 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
624 of variable length temporaries for function return now that the
625 back-end and gigi support it.
626
23c7b149 6272004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6cdb2c6e
AC
628
629 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
630
631 * trans.c (struct stmt_group): Delete field GLOBAL.
632 (gnat_init_stmt_group): Do not initialize it.
633 (call_to_gnu): Use save_expr, not protect_multiple_eval.
634 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
635 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
636 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
637 (start_stmt_group): Likewise.
638 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
639
640 * utils2.c (ggc.h): Include.
641 (build_call_raise): Call build_int_cst, not build_int_2.
642
643 * utils.c (gnat_init_decl_processing): Fix arg to
644 build_common_tree_nodes.
645 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
646 (gnat_define_builtin): Set built_in_decls.
647 (init_gigi_decls): Call build_int_cst, not build_int_2.
648
649 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
650 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
651 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
652 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
653 SET_TYPE_MODULE): Use them.
654 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
655 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
656 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
657 SET_TYPE_ADA_SIZE): Likewise.
658 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
659 (DECL_CONST_CORRESPONDING_VAR,
660 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
661 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
662 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
663 (TYPE_RM_SIZE_NUM): New macro.
664 (TYPE_RM_SIZE): Modified to use above.
665
666 * cuintp.c: (build_cst_from_int): New function.
667 (UI_To_gnu): Use it.
668
669 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
670 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
671 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
672 MIN_EXPR for the size, copy it into new.
673
23c7b149 6742004-09-01 Robert Dewar <dewar@gnat.com>
6cdb2c6e
AC
675
676 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
677 packed indexed component where array is an IN OUT formal. This
678 generated garbage code previously.
679
680 * gnat_ugn.texi: Document -fverbose-asm
681
682 * gnat-style.texi: Minor updates (note that boolean constants and
683 variables are joined with AND/OR rather than short circuit forms).
684
23c7b149 6852004-09-01 Ed Schonberg <schonberg@gnat.com>
6cdb2c6e
AC
686
687 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
688 it is an upward conversion of an untagged type with no representation
689 change.
690
23c7b149 6912004-09-01 Thomas Quinot <quinot@act-europe.fr>
6cdb2c6e
AC
692
693 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
694 System.Partition_Interface.
695
696 * checks.adb (Apply_Access_Checks): Do not generate checks when
697 expander is not active (but check for unset reference to prefix of
698 dereference).
699
700 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
701 pragma Debug as an if statement with a constant condition, for
702 consistent treatment of entity references contained within the
703 enclosed procedure call.
704
23c7b149 7052004-09-01 Vincent Celier <celier@gnat.com>
6cdb2c6e
AC
706
707 * bindgen.adb: (Set_EA_Last): New procedure
708 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
709 Set_EA_Last.
710 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
711 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
712 linked without errors.
713 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
714 ST and EA.
715 (Gen_Exception_Table_C): Correct same bugs
716
717 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
718
719 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
720 on Windows, make sure that the drive letter is in upper case.
721
722 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
723 Windows, when the drive letter is added and Case_Sensitive is True, the
724 drive letter is forced to upper case.
725
726 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
727 to Options_2 for the call to MLib.Utl.Gcc.
728
729 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
730 directory separator when defining BASE_DIR.
731
23c7b149 7322004-09-01 Pascal Obry <obry@gnat.com>
6cdb2c6e
AC
733
734 * gprcmd.adb (Extend): Do not output trailing directory separator. This
735 is not needed and it confuses Windows GNU/make which does not report
736 directory terminated by a slash as a directory.
737 (gprcmd): Idem for "pwd" internal command.
738
739 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
740 target names rewrite to fix regressions with recent version of
741 GNU/make. Starting with GNU/make 3.80 the pipe character was not
742 handled properly anymore.
743
4eb104c1
AS
7442004-09-01 Andreas Schwab <schwab@suse.de>
745
746 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
747 * raise.c [!IN_RTS]: Undef abort.
748
6a6bfc8e
NS
7492004-08-27 Nathan Sidwell <nathan@codesourcery.com>
750
ce552f75
NS
751 * utils2.c (build_allocator): Use ssize_int.
752
6a6bfc8e
NS
753 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
754
f8b7bf58
AS
7552004-08-27 Andreas Schwab <schwab@suse.de>
756
757 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
758
15793d0c
NS
7592004-08-25 Nathan Sidwell <nathan@codesourcery.com>
760 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6615c446 761
15793d0c
NS
762 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
763
7d60be94
NS
7642004-08-25 Nathan Sidwell <nathan@codesourcery.com>
765
766 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
767 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
768 * utils.c (init_gigi_decls): Likewise.
769 * utils2.c (build_call_raise, build_allocator): Likewise.
6615c446 770
8c1d6d62
NS
7712004-08-24 Nathan Sidwell <nathan@codesourcery.com>
772
7d60be94 773 * utils.c (gnat_init_decl_processing): Adjust
8c1d6d62
NS
774 build_common_tree_nodes call.
775
3224bead
NS
7762004-08-20 Nathan Sidwell <nathan@codesourcery.com>
777
778 * utils2.c (build_allocator): Use build_int_cst for negative
779 size types.
780
4766261d
RH
7812004-08-18 Richard Henderson <rth@redhat.com>
782
783 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
784
1f6c00df
NS
7852004-08-16 Nathan Sidwell <nathan@codesourcery.com>
786
787 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
788 call.s
789 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
790 (gnat_to_gnu): Likewise.
791
4c46b835
AC
7922004-08-16 Pascal Obry <obry@gnat.com>
793
794 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
795 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
796 option and not mdll anymore. Update comment.
797
7982004-08-16 Pascal Obry <obry@gnat.com>
799
800 * bld.adb (Put_Include_Project): Properly handle directory separators
801 on Windows.
802
8032004-08-16 Ed Schonberg <schonberg@gnat.com>
804
805 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
806 decreasing the number of allocated junk nodes while searching for the
807 appropriate subprogram.
808
4a90aeeb
NS
8092004-08-15 Nathan Sidwell <nathan@codesourcery.com>
810
811 * cuintp.c (UI_To_gnu): Use build_int_cst..
812 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
813 * utils.c (init_gigi_decls): Likewise.
814 * utils2.c (build_call_raise): Likewise.
815
244e5a2c
AC
8162004-08-13 Olivier Hainque <hainque@act-europe.fr>
817
818 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
819 for a global aliased object with a variable size and an unconstrained
820 nominal subtype, pretend there is no initializer if the one we have is
821 incomplete, and avoid referencing an inexistant component in there. The
822 part we have will be rebuilt anyway and the reference may confuse
823 further operations.
824
8252004-08-13 Thomas Quinot <quinot@act-europe.fr>
826
827 * einfo.ads: Minor reformatting
828
829 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
830 restrictions in the ALI if we only want to warn about violations.
831
8322004-08-13 Vincent Celier <celier@gnat.com>
833
834 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
835 when creating a new Unit_Record in table Units.
836
837 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
838 that are violated, if any.
839
840 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
841 add directory separator if path already ends with a directory separator.
842
8432004-08-13 Ed Schonberg <schonberg@gnat.com>
844
845 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
846 unit, this is an attempt to inline a construct that is not available in
847 the current restricted mode, so abort rather than trying to continue.
848
849 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
850 discriminants that rename those of the parent, recover names of
851 original discriminants for the constraint on the full view of the
852 parent.
853 (Complete_Private_Subtype): Do not create a subtype declaration if the
854 subtype is an itype.
855
856 * gnat_rm.texi: Added section on implementation of discriminated
857 records with default values for discriminants.
858
8592004-08-13 Ed Schonberg <schonberg@gnat.com>
860
861 PR ada/15601
862 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
863 the second operand is overloaded.
864
1a186ec5
RH
8652004-08-10 Richard Henderson <rth@redhat.com>
866
867 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
868 add __builtin_alloca.
869
89f1a702
RH
8702004-08-10 Richard Henderson <rth@redhat.com>
871
872 * config-lang.in (boot_language): Yes.
873
5d09245e
AC
8742004-08-09 Thomas Quinot <quinot@act-europe.fr>
875
876 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
877 from complaining on potential uninitialized reference.
878 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
879 new specification and test explicitly for non-zero return value.
880
881 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
882 returning C.int, to avoid using a derived boolean type.
883
884 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
885 Duplicate_Subexpr_No_Checks in preference to direct use of
886 Remove_Side_Effects and New_Copy_Tree.
887 Clear Comes_From_Source on prefix of 'Size attribute reference.
888
889 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
890 g-socthi-vxworks.adb: Change calls to
891 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
892 and test explicitly for non-zero return value.
893
6615c446 894 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
5d09245e
AC
895 (Is_Socket_In_Set): Declare imported function as returning C.int, to
896 avoid using a derived boolean type.
897
8982004-08-09 Albert Lee <lee@gnat.com>
899
900 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
901
9022004-08-09 Pascal Obry <obry@gnat.com>
903
904 * gnat_ugn.texi: Document new way to build DLLs on Windows using
905 GCC's -shared option.
906
907 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
908 Options_2 parameter (options put after object files).
909
9102004-08-09 Olivier Hainque <hainque@act-europe.fr>
911
912 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
913 ignore overflows on low and high bounds of an index to also account for
914 differences in signedness between sizetype and gnu_index_subtype.
915 These are as legitimate as the ones caused by a lower TYPE_PRECISION
916 on sizetype.
917
9182004-08-09 Robert Dewar <dewar@gnat.com>
919
920 * s-solita.ads, s-solita.adb: Minor reformatting
921
922 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
923 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
924 obsolescent section
925 Add note that No_Implicit_Conditionals does not suppress
926 run time constraint checks.
927
928 * vms_conv.ads: Minor reformatting
929
930 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
931 and necessary for following change).
932 (Mark): Return new format Mark_Id containing sec stack address
933 (Release): Use sec stack address from Mark_Id avoiding Self call
934
935 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
936 pointer (cleanup and necessary for following change).
937 Define Mark_Id as record containing address of secondary stack, that way
938 Release does not need to find the stack again, decreasing the number of
939 calls to Self and improving efficiency.
940
941 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
942
943 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
944 case variable into the individual case branches when possible.
945
946 * sem_ch11.adb: Minor reformatting
947
948 * prj.ads: Correct spelling of suffixs
949
950 * prj-nmsc.adb: Minor reformatting
951 Correct spelling suffixs throughout (also in identifiers)
952
953 * freeze.adb: Minor spelling correction
954
955 * exp_ch2.adb: Cleanups to handling of Current_Value
956 (no functional effect).
957
958 * bld.adb: Correct spelling of suffixs
959
960 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
961
9622004-08-09 Ed Schonberg <schonberg@gnat.com>
963
964 PR ada/15408
965
966 * sem_ch7.adb (Install_Private_Declarations): In the body of the
967 package or of a child, private entities are both immediately_visible
968 and not hidden.
969
9702004-08-09 Ed Schonberg <schonberg@gnat.com>
971
972 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
973 there are no range checks on the value of the literal.
974
975 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
976 wrapped is the triggering alternative of an asynchronous select, action
977 statements mustbe inserted before the select itself.
978
979 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
980 case where the prefix is a protected function call.
981 (Resolve_Attribute, case 'Access): The attribute reference on a
982 subprogram is legal in a generic body if the subprogram is declared
983 elsewhere.
984
9852004-08-09 Vincent Celier <celier@gnat.com>
986
987 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
988 languages, otherwise building the library may fail with unresolved
989 symbols.
990 (Compile_Sources): Do not build libraries if -c switch is used
991
992 * gnatlink.adb (Process_Args): New switches -M and -Mmap
993 (Write_Usage): If map file creation is supported, output new switches
994 -M and -Mmap.
995 (Gnatlink): When -M is specified, add the necessary switch(es) to the
996 gcc call, when supported.
997
998 * Makefile.in: Added indepsw.o to the object list for gnatlink
999 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
1000
1001 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
1002 indepsw.adb, indepsw.ads: New files.
1003
10042004-08-09 Bernard Banner <banner@gnat.com>
1005
1006 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
1007
1008 * Makefile.in: add section for vxworks x86
1009
10102004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
1011
1012 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
1013 per-object constrained components where the discriminant is of an
1014 Access type.
1015 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
1016 the parent initialization procedure for derived Unchecked_Unions.
1017 Instead, derived Unchecked_Unions build their own initialization
1018 procedure.
1019 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
1020 Check the body of the subprogram for details.
1021 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
1022 functions for derived Unchecked_Union types by introducing a condition.
1023 Allow the creation of TSS equality functions for Unchecked_Unions.
1024 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
1025 Add formal parameter Discr to function signature. Discr is used to
1026 control the generated case statement for Unchecked_Union types.
1027 (Make_Eq_If): Rename formal parameter Node to E in function signature.
1028
1029 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
1030 Unchecked_Unions.
1031 Check the body of the subprogram for details.
1032 (Expand_Composite_Equality): Augment composite type equality to include
1033 correct handling of Unchecked_Union components.
1034 (Expand_N_In): Add condition to detect illegal membership tests when the
1035 subtype mark is a constrained Unchecked_Union and the expression lacks
1036 inferable discriminants, and build a Raise_Program_Error node.
1037 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
1038 to detect types that contain components of unconstrained Unchecked_Union
1039 subtype. Add condition to detect equality between types that have an
1040 unconstrained Unchecked_Union component, and build a Raise_Program_Error
1041 node. Add condition to detect equality between Unchecked_Union types
1042 that lack inferable discriminants, and build a Raise_Program_Error node.
1043 Otherwise build a TSS equality function call.
1044 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
1045 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
1046 with the operand lacking inferable discriminants, and build a Raise_
1047 Program_Error node.
1048 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
1049 composite equality.
1050 (Has_Inferable_Discriminants): Implement new predicate for objects and
1051 expressions of Unchecked_Union type. Check the body of subprogram for
1052 details.
1053 (Has_Unconstrained_UU_Components): Add function
1054 Component_Is_Unconstrained_UU. It is used to detect whether a single
1055 component is of an unconstrained Unchecked_Union subtype. Add function
1056 Variant_Is_Unconstrained_UU. It is used to detect whether a single
1057 component inside a variant is of an unconstrained Unchecked_Union type.
1058
1059 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
1060 inferred discriminant values. Add condition to generate a case
1061 statement with an inferred discriminant as the switch.
1062 (Make_Component_List_Assign): Introduce a Boolean flag that determines
1063 the behaviour of the subprogram in the presence of an Unchecked_Union.
1064 Add condition to trigger the usage of the inferred discriminant value
1065 as the generated case statement switch.
1066 (Make_Field_Assign): Introduce a Boolean flag that determines the
1067 behaviour of the subprogram in the presence of an Unchecked_Union. Add
1068 condition to trigger the usage of the inferred discriminant value as
1069 the right-hand side of the generated assignment.
1070
1071 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
1072 parameter generation when dealing with Unchecked_Unions.
1073
1074 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
1075 checks for Unchecked_Unions.
1076
1077 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
1078
1079 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
1080 Raise_Program_Error nodes for the execution of Read and Write
1081 attributes of Unchecked_Union types and the execution of Input and
1082 Output attributes of Unchecked_Union types that lack default
1083 discriminant values.
1084
1085 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
1086 Unchecked_Union. Add procedure Check_Component. It is used to inspect
1087 per-object constrained components of Unchecked_Unions for being
1088 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
1089 check individual components withing a variant.
1090
1091 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
1092 comparison of Unchecked_Unions.
1093 (Resolve_Equality_OP): Remove guard that prevents equality between
1094 Unchecked_Unions.
1095
1096 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
1097 of component subtypes for Unchecked_Union components.
1098 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
1099 since it is the actual subtype.
1100
1101 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
1102 pass of Unchecked_Union subtypes as generic actuals to formal types
1103 that lack known_discriminant_parts or that are derived Unchecked_Union
1104 types, and do nothing. In any other case, produce an error message.
1105
1106 * sem_ch3.adb (Analyze_Component_Declaration): Add function
1107 Contains_POC. It determines whether a constraint uses the discriminant
1108 of an enclosing record type.
1109 Add condition to detect per-object constrained component and set the
1110 appropriate flag.
1111 (Derived_Type_Declaration): Remove guard that prevents derivation from
1112 Unchecked_Union types.
1113 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
1114 Union subtypes.
1115
1116 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
1117 references to Unchecked_Union discriminants.
1118
1119 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
1120 formal generation when dealing with Unchecked_Unions.
1121 (Set_Actual_Subtypes): Add condition to prevent generation of actual
1122 subtypes for Unchecked_Unions.
1123
1124 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
1125 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
1126 completions of discriminated partial views by Unchecked_Unions and
1127 produce an error message.
1128
11292004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1130
1131 * trans.c (struct stmt_group): New field, GLOBAL.
1132 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
1133 (struct elab_info): New struct.
1134 (elab_info_list, gnu_elab_proc_stack): New variables.
1135 (Compilation_Unit_to_gnu): New procedure.
1136 (gigi): Call it and also handle elaboration procs we've saved.
1137 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
1138 global field from parent.
1139 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
1140 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
1141 (start_stmt_group): Initialize global field from parent.
1142 (add_decl_expr): Set to global for current statement group.
1143 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
1144 post.
1145
1146 * utils.c (global_bindings_p): True when no current_function_decl; no
1147 longer check current_binding_level.
1148
11492004-08-09 Ben Brosgol <brosgol@gnat.com>
1150
1151 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
1152 choice.
1153
1154 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
1155
160ff372
AS
11562004-08-06 Andreas Schwab <schwab@suse.de>
1157
1158 * utils.c (gnat_define_builtin): Remove second parameter of
1159 make_decl_rtl.
1160 (begin_subprog_body): Likewise.
1161
615cbd95
AC
11622004-07-26 Arnaud Charlet <charlet@act-europe.fr>
1163
1164 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
1165 optimization, not supported by the tree-ssa back-end.
1166
11672004-07-26 Olivier Hainque <hainque@act-europe.fr>
1168
1169 * s-mastop-irix.adb: Update comments.
1170
1171 * a-except.adb (Exception_Information): Raise Constraint_Error if
1172 exception Id is Null_Id.
1173 This is required behavior, which is more reliably and clearly checked
1174 at the top level interface level.
1175
11762004-07-26 Javier Miranda <miranda@gnat.com>
1177
1178 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
1179 call if a component has no default_expression and the box is used.
1180
1181 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
1182 default_expression and you use box, it behaves as if you had declared a
1183 stand-alone object.
1184 (Resolve_Record_Aggregate): If a component has no default_expression and
1185 you use box, it behaves as if you had declared a stand-alone object.
1186
1187 * sem_ch10.adb (Install_Siblings): Do not make visible the private
1188 entities of private-with siblings.
1189
11902004-07-26 Ed Schonberg <schonberg@gnat.com>
1191
1192 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
1193 for a component of an itype, set the parent pointer for analysis,
1194 there is no list in which to insert it.
1195
1196 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
1197 bona-fide renamings, not for inherited operations.
1198
1199 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
1200 actual for a formal that is an access parameter, create local
1201 finalization list even if the expression is not an aggregate.
1202
12032004-07-26 Ed Schonberg <schonberg@gnat.com>
1204
1205 PR ada/16213
1206 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
1207 Diagnose properly illegal subprogram renamings that are library units.
1208
12092004-07-26 Ed Schonberg <schonberg@gnat.com>
1210
1211 PR ada/15588
1212 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
1213 conversion rewritten as an unchecked conversion, check that original
1214 expression is a variable.
1215
1216 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
1217 unchecked_conversion, create new node rather than rewriting in place,
1218 to preserve original construct.
1219
12202004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1221
1222 * gigi.h (gnat_expand_body): Deleted.
1223
1224 * Make-lang.in: (trans.o): Depends on function.h.
1225
1226 * misc.c: (gnat_expand_body): Moved to here.
1227
1228 * trans.c (gnat_expand_body_1): Deleted.
1229 (gnat_expand_body): Moved from here.
1230 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
1231 (add_stmt): Check for marked visited with global_bindings_p.
1232 (gnat_gimplify_expr, case COMPONENT_REF): New case.
1233 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
1234
1235 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
1236 VIEW_CONVERT_EXPR if not operation type.
1237
1238 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
1239 fat pointer.
1240
1241 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
1242 changes: reformatting of negation operators, removing unneeded
1243 inequality comparison with zero, converting equality comparisons with
1244 zero to negations, changing int/0/1 to bool/false/true, replace calls
1245 to gigi_abort with abort, and various other similar changes.
1246
12472004-07-26 Vincent Celier <celier@gnat.com>
1248
1249 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
1250 "setup".
1251
1252 * make.adb (Gnatmake): Fail when a library is not present and there is
1253 no object directory.
1254
1255 * mlib-prj.adb (Check_Library): No need to check if the library needs
1256 to be rebuilt if there is no object directory, hence no object files
1257 to build the library.
1258
1259 * opt.ads (Setup_Projects): New Boolean flag.
1260
1261 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
1262 Location.
1263 Create directory when Kind /= "" and in "gnat setup". Report error if
1264 directory cannot be created.
1265 (Ada_Check): Create library interface copy dir if it does not exist
1266 and we are in "gnat setup".
1267 (Find_Sources): No error if in "gnat setup" and no Ada sources were
1268 found.
1269 (Language_Independent_Check): Create object directory, exec directory
1270 and/or library directory if they do not exist and we are in
1271 "gnat setup".
1272
1273 * vms_conv.ads: (Command_Type): New command Setup.
1274
1275 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
1276
1277 * vms_data.ads: Add qualifiers/switches for new built-in command
1278 "setup".
1279
b785f485
RH
12802004-07-25 Richard Henderson <rth@redhat.com>
1281
1282 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
1283 DECL_IGNORED_P on RESULT_DECL.
1284
35ae2ed8
AC
12852004-07-20 Olivier Hainque <hainque@act-europe.fr>
1286
1287 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
1288 allocation and potentially overflowing update with
1289 Tailored_Exception_Information. Use the sec-stack free procedural
1290 interface to output Exception_Information instead.
1291
1292 * a-except.adb (To_Stderr): New subprogram for character, and string
1293 version moved from a-exextr to be visible from other separate units.
1294 (Tailored_Exception_Information): Remove the procedural version,
1295 previously used by the default Last_Chance_Handler and not any more.
1296 Adjust various comments.
1297
1298 * a-exexda.adb: Generalize the exception information procedural
1299 interface, to minimize the use of secondary stack and the need for
1300 local buffers when the info is to be output to stderr:
1301 (Address_Image): Removed.
1302 (Append_Info_Character): New subprogram, checking for overflows and
1303 outputing to stderr if buffer to fill is of length 0.
1304 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
1305 (Append_Info_Address, Append_Info_Exception_Name,
1306 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
1307 Append_Info_Basic_Exception_Traceback,
1308 Append_Info_Exception_Information): New subprograms.
1309 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
1310 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
1311 Exception_Info_Maxlength, Exception_Name_Length,
1312 Exception_Message_Length): New subprograms.
1313 (Exception_Information): Use Append_Info_Exception_Information.
1314 (Tailored_Exception_Information): Use
1315 Append_Info_Basic_Exception_Information.
1316 Export services for the default Last_Chance_Handler.
1317
1318 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
1319 other separate units.
1320
13212004-07-20 Vincent Celier <celier@gnat.com>
1322
1323 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
1324
13252004-07-20 Ed Schonberg <schonberg@gnat.com>
1326
1327 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
1328 emit itype references for the designated types of component types that
1329 are declared outside of the full record declaration, and that may
1330 denote a partial view of that record type.
1331
13322004-07-20 Ed Schonberg <schonberg@gnat.com>
1333
1334 PR ada/15607
1335 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
1336 which is the designated type in an access component declaration, to the
1337 list of incomplete dependents of the parent type, to avoid elaboration
1338 issues with out-of-scope subtypes.
1339 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
1340 full view of the parent.
1341
13422004-07-20 Ed Schonberg <schonberg@gnat.com>
1343
1344 PR ada/15610
1345 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
1346 entities that are hidden, such as references to generic actuals
1347 outside an instance.
1348
13492004-07-20 Javier Miranda <miranda@gnat.com>
1350
1351 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
1352 support to the new notation.
1353 (Analyze_Selected_Component): Add call to Try_Object_Operation.
1354
13552004-07-20 Jose Ruiz <ruiz@act-europe.fr>
1356
1357 * s-taprob.adb: Adding the elaboration code required for initializing
1358 the tasking soft links that are common to the full and the restricted
1359 run times.
1360
1361 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
1362 restricted run time has been moved to the package
1363 System.Soft_Links.Tasking.
1364
1365 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
1366 restricted run time has been moved to the package
1367 System.Soft_Links.Tasking.
1368
1369 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
1370
1371 * s-solita.ads, s-solita.adb: New files.
1372
13732004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1374
1375 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
1376 Case_Statement_to_gnu): Split off from gnat_to_gnu.
1377 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
1378 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
1379 Exception_Handler_to_gnu_zcx): Likewise.
1380
6e34d3a3
JM
13812004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
1382
1383 * gigi.h (builtin_function): Declare.
1384
523456db
AC
13852004-07-15 Robert Dewar <dewar@gnat.com>
1386
1387 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
1388 reformatting
1389
1390 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
1391 access values as an example of a warning.
1392
1393 * gnat_rm.texi: Document new attribute Has_Access_Values
1394
1395 * gnat-style.texi: Document that box comments belong on nested
1396 subprograms
1397
1398 * sem_util.ads (Has_Access_Values): Improved documentation
1399
1400 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
1401
1402 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
1403 (Process_Interface_Name): Call to this new procedure
1404 (Set_Extended_Import_Export_External_Name): Call to this new procedure
1405
1406 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
1407
1408 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
1409
1410 * einfo.ads: Minor comment typo fixed
1411
14122004-07-15 Jose Ruiz <ruiz@act-europe.fr>
1413
1414 * snames.adb: Add _atcb.
1415
1416 * snames.ads: Add Name_uATCB.
1417
1418 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
1419 (in the expanded code) when using the restricted run time.
1420
1421 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
1422 a in parameter in order to allow ATCBs to be preallocated (in the
1423 expanded code).
1424
1425 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
1426 order to allow ATCBs to be preallocated. In case of error, the ATCB is
1427 deallocated in System.Tasking.Stages.
1428
1429 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
1430 order to allow ATCBs to be preallocated.
1431
1432 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
1433 here. It was previously done in Initialize_ATCB.
1434
1435 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
1436
1437 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
1438 Restricted run time.
1439
1440 * exp_ch3.adb: When using the Restricted run time, pass the
1441 preallocated Ada_Task_Control_Block when creating a task.
1442
14432004-07-15 Ed Schonberg <schonberg@gnat.com>
1444
1445 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
1446 function call that is itself an actual in an enclosing call, diagnose
1447 problem here rather than assuming that resolution will catch it.
1448
1449 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
1450 the local copy of a generic unit for a formal package, and the generic
1451 is a child unit, install private part of ancestors before compiling
1452 private part of spec.
1453
1454 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
1455 use scope entities rather than tree structures, to handle properly
1456 parent units that are instances rewritten as bodies for inlining
1457 purposes.
1458
1459 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
1460 Remove_Parents): Handle properly a parent unit that is an
1461 instantiation, when the unit has been rewritten as a body for inlining
1462 purposes.
1463
1464 * par.adb (Goto_List): Global variable to collect goto statements in a
1465 given unit, for use in detecting natural loops.
1466
1467 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
1468 use in detecting natural loops.
1469
1470 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
1471 backwards goto's, and rewrite as a infinite loop, to improve locality
1472 of temporaries.
1473
1474 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
1475 subcomponent that includes an indexed reference, to prevent the
1476 generation of copies that would miscompile the desired assignment
1477 statement.
1478 (Build_Task_Image_Decls): Add a numeric suffix to
1479 generated name for string variable, to avoid spurious conflicts with
1480 the name of the type of a single protected object.
1481
1482 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
1483 loop with an explicit exit statement, to avoid generating an
1484 out-of-range value with 'Succ leading to spurious constraint_errors
1485 when compiling with -gnatVo.
1486
14872004-07-15 Thomas Quinot <quinot@act-europe.fr>
1488
1489 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
1490 might not be analyzed yet, even if its Etype is already set (case of an
1491 unchecked conversion built using Unchecked_Convert_To, for example).
1492 If the prefix has already been analyzed, this will be a nop anyway.
1493
1494 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
1495 controller type, or an assignment of a record type with controlled
1496 components, copy only user data, and leave the finalization chain
1497 pointers untouched.
1498
14992004-07-15 Vincent Celier <celier@gnat.com>
1500
1501 * make.adb (Collect_Arguments): Improve error message when attempting
1502 to compile a source not part of any project, when -x is not used.
1503
1504 * prj.ads: (Defined_Variable_Kind): New subtype
1505
1506 * prj-attr.adb (Register_New_Package): Two new procedures to register
1507 a package with or without its attributes.
1508 (Register_New_Attribute): Mew procedure to register a new attribute in a
1509 package.
1510 New attribute oriented subprograms: Attribute_Node_Id_Of,
1511 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
1512 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
1513 Next_Attribute.
1514 New package oriented subprograms: Package_Node_Id_Of,
1515 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
1516
1517 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
1518 type.
1519 (Package_Node_Id): Now a private, self initialized type
1520 (Register_New_Package): New procedure to register a package with its
1521 attributes.
1522 New attribute oriented subprograms: Attribute_Node_Id_Of,
1523 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
1524 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
1525 Next_Attribute.
1526 New package oriented subprograms: Package_Node_Id_Of,
1527 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
1528
1529 * prj-dect.adb (Parse_Attribute_Declaration,
1530 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
1531
1532 * prj-makr.adb (Make): Parse existing project file before creating
1533 other files. Fail if there was an error during parsing.
1534
1535 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
1536 new spec of Prj.Attr.
1537
1538 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
1539 to new spec of Prj.Attr.
1540
15412004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1542
1543 * utils2.c: Fix typo in comment.
1544
15452004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
54805e13
RK
1546
1547 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
1548 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
1549
a1c7af89
AS
15502004-07-14 Andreas Schwab <schwab@suse.de>
1551
1552 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
1553
a5cb3b30
AC
15542004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1555
1556 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
1557 object type.
1558 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
1559 TYPE_STUB_DECL.
1560
1561 * misc.c (gnat_types_compatible_p): New function.
1562 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
1563 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
1564
1565 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
1566 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
1567 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
1568 (mark_visited): Don't mark dummy type.
6615c446 1569 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
a5cb3b30
AC
1570 parameter, we must remove any LJM building from GNU_NAME.
1571 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
1572 (pos_to_constructor): Use int_const_binop.
1573 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
1574 PARM_DECL.
1575
1576 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
1577 (gnat_pushlevel): Set TREE_USE on BLOCK node.
1578 (gnat_install_builtins): Add __builtin_memset.
1579
15802004-07-13 Olivier Hainque <hainque@act-europe.fr>
1581
1582 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
1583 for a renaming, stabilize the initialization expression if we are at a
1584 local level. At the local level, uses of the renaming may be performed
1585 by a direct dereference of the initializing expression, and we don't
1586 want possible variables there to be evaluated for every use.
1587
1588 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
1589 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
1590 them on the way. Account for the fact that we may introduce side
1591 effects in the process.
1592
0976078c
RH
15932004-07-13 Richard Henderson <rth@redhat.com>
1594
1595 * misc.c (default_pass_by_ref): Use pass_by_reference.
1596
9dcf6e73
JM
15972004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
1598
1599 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
1600 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
1601
ac45df5d
RH
16022004-07-08 Richard Henderson <rth@redhat.com>
1603
1604 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
1605 commentary.
1606
15ce9ca2
AC
16072004-07-06 Vincent Celier <celier@gnat.com>
1608
1609 * vms_conv.ads: Minor reformatting.
1610 Alphabetical order for enumerated values of type Command_Type, to have
1611 the command in alphabetical order for the usage.
1612
1613 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
1614 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
1615
1616 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
1617
1618 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
1619 (Add_Archive_Path): Only add the global archive if there is one.
1620 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
1621 or not any object file to put in the global archive, and don't build
1622 a global archive if there is none.
1623 (X_Switches): New table
1624 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
1625 in the X_Switches table, if any.
1626 (Initialize): Make sure the X_Switches table is empty
1627 (Scan_Arg): Record -X switches in table X_Switches
1628
1629 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
1630
1631 * make.adb: Minor comment fix
1632
1633 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
1634 invoked with directory information, add the directory in front of the
1635 path.
1636
1637 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
1638 invoked with directory information, add the directory in front of the
1639 path.
1640
1641 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
1642 when Keep_Temporary_Files is False.
1643 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
1644 directory information, add the directory in front of the path.
1645 When not on VMS, handle new switch -dn before the command to set
1646 Keep_Temporary_Files to True.
1647 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
1648 everywhere.
1649
1650 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
1651 invoked with directory information, add the directory in front of the
1652 path.
1653
16542004-07-06 Thomas Quinot <quinot@act-europe.fr>
1655
1656 * snames.ads, snames.adb (Name_Stub): New name for the distributed
1657 systems annex.
1658
1659 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
1660 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
1661
1662 * g-socket.adb (To_Timeval): Fix incorrect conversion of
1663 Selector_Duration to Timeval for the case of 0.0.
1664
1665 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
1666 documentation from Evolve_And_Then.
1667
16682004-07-06 Jose Ruiz <ruiz@act-europe.fr>
1669
1670 * s-taprop-tru64.adb, s-taprop-os2.adb,
1671 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
1672
16732004-07-06 Robert Dewar <dewar@gnat.com>
1674
1675 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
1676 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
1677 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
1678 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
1679 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
1680 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
1681 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
1682 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
1683 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
1684 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
1685 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
1686 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
1687 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
1688 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
1689 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
1690 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
1691 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
1692 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
1693 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
1694 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
1695 vms_data.ads: Minor reformatting,
1696 Fix bad box comment format.
1697
1698 * gnat_rm.texi: Fix minor grammatical error
1699
1700 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
1701
1702 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
1703 more cases of discriminated records to be recognized as not needing a
1704 secondary stack.
1705 (Has_Access_Values): New function.
1706
1707 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
1708
1709 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
1710 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
1711 with LRM terminology).
1712 Change terminology in comments primitive type => elementary type.
1713
17142004-07-06 Ed Schonberg <schonberg@gnat.com>
1715
1716 PR ada/15602
1717 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
1718 parameters do not impose any requirements on the presence of a body.
1719
17202004-07-06 Ed Schonberg <schonberg@gnat.com>
1721
1722 PR ada/15593
1723 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
1724 compilation unit and is in an open scope at the point of instantiation,
1725 assume that a body may be present later.
1726
17272004-07-06 Ed Schonberg <schonberg@gnat.com>
1728
1729 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
1730 Improve error message when specified size is not supported.
1731
1732 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
1733 is never a primitive operation.
1734
cb42deba
AS
17352004-07-05 Andreas Schwab <schwab@suse.de>
1736
1737 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
1738 RECORD_OR_UNION_CHECK.
1739 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
1740
98877933
KC
17412004-07-04 Kelley Cook <kcook@gcc.gnu.org>
1742
1743 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
1744 dependency on xgnatugn, instead build it via a submake.
1745 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
1746
8fff4fc1
RH
17472004-07-04 Richard Henderson <rth@redhat.com>
1748
1749 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
1750
4dfa0342
RH
17512004-07-01 Richard Henderson <rth@redhat.com>
1752
1753 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
1754 * utils.c (max_size): Likewise.
1755
909f21b3
RK
17562004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1757
1758 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
1759 and rest_of_type_compilation; add arg to create_*_decl.
1760 (annotate_decl_with_node): Deleted.
1761 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
1762 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
1763 (get_current_block_context, gnat_pushdecl): New declarations.
1764 (gnat_init_stmt_group): Likewise.
1765 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
1766 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
1767 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
1768 (gnat_init): Call gnat_init_stmt_group.
1769 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
1770 (gnu_pending_elaboration_list): Deleted.
1771 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
1772 (gigi): Rearrange initialization calls and move some to last above.
1773 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
1774 Delete calls to add_decl_expr; add arg to create_*_decl.
1775 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
6615c446 1776 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
909f21b3
RK
1777 begin_subprog_body and call it.
1778 Don't push and pop ggc context.
1779 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
1780 (add_stmt): Remove handling of DECL_EXPR from here.
1781 If not in function, mark visited.
1782 (add_decl_expr): Put global at top level.
1783 Check for cases of DECL_INITIAL we have to handle here.
1784 (process_type): Add extra arg to create_type_decl.
1785 (build_unit_elab): Rework to just gimplify.
1786 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
1787 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
1788 (get_pending_elaborations, pending_elaborations_p): Likewise.
1789 (push_pending_elaborations, pop_pending_elaborations): Likewise.
1790 (get_elaboration_location, insert_elaboration_list): Likewise.
1791 (gnat_binding_level): Renamed from ada_binding_level.
1792 (init_gnat_to_gnu): Don't clear pending_elaborations.
1793 (global_bindings_p): Treat as global if no current_binding_level.
1794 (set_current_block_context): New function.
1795 (gnat_pushdecl): Renamed from pushdecl; major rework.
1796 All callers changed.
1797 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
1798 (finish_record_type): Call call pushdecl for stub decl.
1799 (function_nesting_depth): Deleted.
1800 (begin_subprog_body): Delete obsolete code.
1801 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
6615c446 1802
246d2ceb
AC
18032004-06-28 Robert Dewar <dewar@gnat.com>
1804
1805 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
1806 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
1807 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
1808 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
1809 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
1810
1811 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
1812 deal with problem of inefficient slices on machines with strict
1813 alignment, when the slice is a component of a composite.
1814
1815 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
1816 machines, we need the check there as well.
1817
18182004-06-28 Ed Schonberg <schonberg@gnat.com>
1819
1820 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
1821 determine safe copying direction for overlapping slice assignments
1822 when component is controlled.
1823
1824 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
1825 formal derived type in the actual for a formal package are visible in
1826 the enclosing instance.
1827
18282004-06-28 Ed Schonberg <schonberg@gnat.com>
1829
1830 PR ada/15600
1831 * sem_util.adb (Trace_Components): Diagnose properly an illegal
1832 circularity involving a private type whose completion includes a
1833 self-referential component.
1834 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
1835 renaming or an instantiation from an implicit derived operation.
1836
18372004-06-28 Pascal Obry <obry@gnat.com>
1838
1839 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
1840 DLL.
1841 (Library_File_Name_For): Idem.
1842
18432004-06-28 Matthew Gingell <gingell@gnat.com>
1844
1845 * g-traceb.ads: Add explanatory note on the format of addresses
1846 expected by addr2line.
1847
18482004-06-28 Jerome Guitton <guitton@act-europe.fr>
1849
1850 * Makefile.in: Force debugging information on s-tasdeb.adb,
1851 a-except.adb and s-assert.adb needed by the debugger.
1852
18532004-06-28 Vincent Celier <celier@gnat.com>
1854
1855 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
1856 Need_To_Build_Lib.
1857 (Gnatmake): Ditto.
1858
1859 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
1860
1861 * prj.adb: Minor reformatting
1862 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
1863
1864 * prj.ads: Comment updates
1865 Minor reformatting
1866 (Project_Data): Change Flag1 to Need_To_Build_Lib.
1867 Remove Flag2: not used.
1868
1869 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
1870 declaration.
1871
1872 * gnat_ugn.texi: Put a "null;" declaration in one project file example
1873
1874 * gnat_rm.texi: Document Empty declarations "null;".
1875
1876 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
1877 front of the linker options.
1878 (Link_Foreign): Put the global archives and the libraries in front of
1879 the linker options.
1880
18812004-06-28 Javier Miranda <miranda@gnat.com>
1882
1883 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
1884 (RTU_Loaded): Code cleanup
1885 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
1886 withed predefined units.
1887
1888 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
1889 explicitly withed predefined units.
1890 Fix typo in comment
1891
1892 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
1893 explicitly withed predefined units.
1894
bce3da32
RK
18952004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1896
1897 * ada-tree.def (DECL_STMT): Deleted.
1898 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
1899 (DECL_STMT_VAR): Deleted.
1900 * decl.c: add_decl_stmt now add_decl_expr.
1901 * gigi.h: Likewise.
1902 * trans.c: Likewise.
1903 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
1904 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
1905 (add_stmt): Only handle padded type here.
1906 (add_stmt_with_node): Allow gnat_node to not be present.
1907 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
1908 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
1909 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
1910 make a SAVE_EXPR for the entire fat pointer.
1911 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
1912 (create_index_type): Make a DECL_EXPR.
1913 (end_subprog_body): Don't call allocate_struct_function here but
1914 do clear cfun.
1915
0da2c8ac
AC
19162004-06-25 Pascal Obry <obry@gnat.com>
1917
1918 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
1919 Relocatable from Build_Dynamic_Library call.
1920
1921 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
1922 Relocatable are now synonym.
1923
1924 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
1925
1926 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
1927 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
1928 call.
1929
1930 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
1931 Lib_Address and Relocatable.
1932 (Default_DLL_Address): Removed.
1933
6615c446
JO
1934 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
1935 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
0da2c8ac
AC
1936 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
1937 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
1938 (Default_DLL_Address): Removed.
1939
1940 * mlib-tgt-mingw.adb: Ditto.
1941 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
1942
1943 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
1944 the initial thread stack size.
1945
1946 * a-strmap.ads: Move package L to private part as it is not used in
1947 the spec. Found while reading code.
1948
19492004-06-25 Olivier Hainque <hainque@act-europe.fr>
1950
1951 * tracebak.c: Introduce support for a GCC infrastructure based
1952 implementation of __gnat_backtrace.
1953
1954 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
1955 any more. Use accessors instead. This eases maintenance and relaxes
1956 some alignment constraints.
1957 (_GNAT_Exception structure): Remove the Ada specific fields
1958 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
1959 a-exexpr.adb.
1960 (is_handled_by, __gnat_eh_personality): Replace component references to
1961 exception structure by use of the new accessors.
1962
1963 * init.c (__gnat_initialize): Adjust comments to match the just
1964 reverted meaning of the -static link-time option.
1965
1966 * adaint.c (convert_addresses): Arrange not to define a stub for
1967 mips-irix any more, as we now want to rely on a real version from a
1968 recent libaddr2line.
1969
1970 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
1971 the personality routine can use them and not have to rely on a C
1972 counterpart of the record anymore. This simplifies maintenance and
1973 relaxes the constraint of having Standard'Maximum_Alignment match
1974 BIGGEST_ALIGNMENT.
1975 Update comments, and add a section on the common header alignment issue.
1976
19772004-06-25 Geert Bosch <bosch@gnat.com>
1978
1979 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
1980 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
1981
19822004-06-25 Robert Dewar <dewar@gnat.com>
1983
1984 * gnat_rm.texi: Fix section on component clauses to indicate that the
1985 restriction on byte boundary placement still applies for bit packed
1986 arrays.
1987 Add comment on stack usage from Initialize_Scalars
1988
1989 * gnat_ugn.texi: Add documentation for -gnatyLnnn
1990
1991 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
1992 limiting nesting level.
1993
1994 * usage.adb: Add line for -gnatyLnnn switch
1995
1996 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
1997 sem_ch13.adb, exp_aggr.adb: Minor reformatting
1998
1999 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
2000 type as well as on the subtype. This corrects a problem in freeze in
2001 setting alignments of atomic types.
2002
2003 * sem_eval.ads: Minor comment typo fixed
2004
2005 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
2006 level. Minor reformatting.
2007
2008 * fname.adb (Is_Predefined_File_Name): Require a letter after the
2009 minus sign. This means that file names like a--b.adb will not be
2010 considered predefined.
2011
2012 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
2013 record Test new flag and give diagnostic for bad component clause.
2014 (Freeze_Entity): Set alignment of array from component alignment in
2015 cases where this is safe to do.
2016
2017 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
2018 arrays.
2019
2020 * cstand.adb: (Create_Standard): Set alignment of String to 1
2021
2022 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
2023
2024 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
2025 code in the common constrained array cases.
2026
2027 * a-storio.adb: Change implementation to avoid possible alignment
2028 problems on machines requiring strict alignment (data should be moved
2029 as type Buffer, not type Elmt).
2030
2031 * checks.adb (Apply_Array_Size_Check): Improve these checks by
2032 killing the overflow checks which we really do not need (64-bits is
2033 enough).
2034
20352004-06-25 Vincent Celier <celier@gnat.com>
2036
2037 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
2038 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
2039 inconditionally for the main project.
2040 (Recursive_Add_Archives.Add_Archive_Path): New procedure
2041 (Link_Executables.Check_Time_Stamps): New procedure
2042 (Link_Executables.Link_Foreign): New procedure
2043 Changes made to reduce nesting level of this package
2044 (Check): New procedure
2045 (Add_Switches): When not in quiet output, check that a switch is not
2046 the concatenation of several valid switches. If it is, issue a warning.
2047 (Build_Global_Archive): If the global archive is rebuilt, linking need
2048 to be done.
2049 (Compile_Sources): Rebuilding a library archive does not imply
2050 rebuilding the global archive.
2051 (Build_Global_Archive): New procedure
2052 (Build_Library): New name for Build_Archive, now only for library
2053 project
2054 (Check_Archive_Builder): New procedure
2055 (Create_Global_Archive_Dependency_File): New procedure
2056 (Gprmake): Call Build_Global_Archive before linking
2057 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
2058 throughout.
2059 (Scan_Arg): Display the Copyright notice when -v is used
2060
2061 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
2062 for gnatls.
2063
2064 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
2065 COMPILE.
2066 Add new GNAT LIST qualifier /FILES=
2067 Added qualifier /DIRECTORY= to GNAT METRIC
2068 Added qualifier /FILES= to GNAT METRIC
2069 Added qualifier /FILES to GNAT PRETTY
2070
2071 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
2072 to take into account both versions of the switch.
2073
2074 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
2075 always be the last switch to the gcc driver. Disable switch storing so
2076 that switches automatically added by the gcc driver are not put in the
2077 ALI file.
2078
2079 * prj.adb (Project_Empty): Take into account changes in components of
2080 Project_Data.
2081
2082 * prj.ads (Languages_Processed): New enumaration value All_Languages.
2083
2084 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
2085 used. Split Boolean component Ada_Sources_Present in two Boolean
2086 components Ada_Sources_Present and Other_Sources_Present.
2087 Minor reformatting
2088
2089 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
2090 instead of Sources_Present.
2091 (Set_Ada_Paths.Add.Recursive_Add): Ditto
2092
2093 * prj-nmsc.adb: Minor reformatting
2094 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
2095 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
2096 Check_Ada_Naming_Scheme.
2097 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
2098 throughout.
2099
2100 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
2101 In_Limited.
2102 Make sure that all cycles where there is at least one "limited with"
2103 are detected.
2104 (Parse_Single_Project): New Boolean parameter In_Limited
2105
2106 * prj-proc.adb (Recursive_Check): When Process_Languages is
2107 All_Languages, call first Prj.Nmsc.Ada_Check, then
2108 Prj.Nmsc.Other_Languages_Check.
2109
2110 * prj-proc.adb (Process): Use Ada_Sources_Present or
2111 Other_Sources_Present (instead of Sources_Present) depending on
2112 Process_Languages.
2113
2114 * lang-specs.h: Keep -g and -m switches in the same order, and as the
2115 last switches.
2116
2117 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
2118 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
2119 False.
2120 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
2121 False.
2122
2123 * lib.ads (Disable_Switch_Storing): New procedure.
2124
2125 * make.adb: Modifications to reduce nesting level of this package.
2126 (Check_Standard_Library): New procedure
2127 (Gnatmake.Check_Mains): New procedure
2128 (Gnatmake.Create_Binder_Mapping_File): New procedure
2129 (Compile_Sources.Compile): Add switch -gnatez as the last option
2130 (Display): Never display -gnatez
2131
6615c446 2132 * Makefile.generic:
0da2c8ac
AC
2133 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
2134
2135 * gnatcmd.adb (Check_Project): New function
2136 (Process_Link): New procedure to reduce nesting depth
2137 (Check_Files): New procedure to reduce the nesting depth.
2138 For GNAT METRIC, include the inherited sources in extending projects.
2139 (GNATCmd): When GNAT LS is invoked with a project file and no files,
2140 add the list of files from the sources of the project file. If this list
2141 is too long, put it in a temp text files and use switch -files=
2142 (Delete_Temp_Config_Files): Delete the temp text file that contains
2143 a list of source for gnatpp or gnatmetric, if one has been created.
2144 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
2145 in the project file is too large, create a temporary text file that
2146 list them and pass it to the tool with "-files=<temp text file>".
2147 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
2148
2149 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
2150 generated file is in not in Ada.
2151
2152 * gnatls.adb: Remove all parameters And_Save that are no longer used.
2153 (Scan_Ls_Arg): Add processing for -files=
2154 (Usage): Add line for -files=
2155
2156 * g-os_lib.adb (On_Windows): New global constant Boolean flag
2157 (Normalize_Pathname): When on Windows and the path starts with a
2158 directory separator, make sure that the resulting path will start with
2159 a drive letter.
2160
2161 * clean.adb (Clean_Archive): New procedure
2162 (Clean_Project): When there is non-Ada code, delete the global archive,
2163 the archive dependency files, the object files and their dependency
2164 files, if they exist.
2165 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
2166
21672004-06-25 Thomas Quinot <quinot@act-europe.fr>
2168
2169 * sinfo.ads: Fix typo in comment.
2170
2171 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
2172 the TSS for remote access-to-subprogram types, since these TSS are
2173 always present once the type has been analyzed.
2174 (RAS_E_Dereference): Same.
2175
2176 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
2177 reference raises Bad_Attribute, mark the reference as analyzed so the
2178 node (and any children resulting from rewrites that could have occurred
2179 during the analysis that ultimately failed) is not analyzed again.
2180
2181 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
2182
2183 * exp_dist.adb: Minor comment fix.
2184
2185 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
2186 type is an anonymous access type, no unchecked deallocation of the
2187 allocated object can occur. If the object is controlled, attach it with
2188 a count of 1. This allows attachment to the Global_Final_List, if
2189 no other relevant list is available.
2190 (Get_Allocator_Final_List): For an anonymous access type that is
2191 the type of a discriminant or record component, the corresponding
2192 finalisation list is the one of the scope of the type.
2193
21942004-06-25 Ed Schonberg <schonberg@gnat.com>
2195
2196 * sem_ch3.adb (Replace_Type): When computing the signature of an
2197 inherited subprogram, use the first subtype if the derived type
2198 declaration has no constraint.
2199
2200 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
2201 before applying previous optimization. Minor code cleanup.
2202
2203 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
2204 placed at the beginning of an unpacked record without explicit
2205 alignment, a slice of it will be aligned and does not need a copy when
2206 used as an actual.
2207
22082004-06-25 Ed Schonberg <schonberg@gnat.com>
2209
2210 PR ada/15591
2211 PR ada/15592
2212 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
2213 reference is written with expressions mimicking parameters.
2214
22152004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
2216
2217 PR ada/15589
2218 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
2219 STEP 2a. The constraints of a full type declaration of a derived record
2220 type are checked for conformance with those declared in the
2221 corresponding private extension declaration. The message
2222 "not conformant with previous declaration" is emitted if an error is
2223 detected.
2224
22252004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
2226
2227 * g-traceb.ads: Document the need for -E binder switch in the spec.
2228
2229 * g-trasym.ads: Document the need for -E binder switch in the spec.
2230
22312004-06-25 Jose Ruiz <ruiz@act-europe.fr>
2232
2233 * sem_prag.adb: Add handling of pragma Detect_Blocking.
2234
2235 * snames.h, snames.ads, snames.adb: Add entry for pragma
2236 Detect_Blocking.
2237
2238 * s-rident.ads: Change reference to pragma Detect_Blocking.
2239
2240 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
2241 system.ads.
2242
2243 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
2244 to indicate whether pragma Detect_Blocking is active.
2245
2246 * par-prag.adb: Add entry for pragma Detect_Blocking.
2247
2248 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
2249 of not handling WITH.
2250 Note that this replaces the previous update which was incorrect.
2251
22522004-06-25 Javier Miranda <miranda@gnat.com>
2253
2254 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
2255 use-clauses to have a clean environment.
2256
2257 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
2258 the installation of the use-clauses to stablish a clean environment in
2259 case of compilation of a separate unit; otherwise the call to
2260 use_one_package is protected by the barrier Applicable_Use.
2261
2262 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
2263 the installation of the use-clauses to stablish a clean environment in
2264 case of compilation of a separate unit.
2265 (End_Use_Clauses): Minor comment cleanup.
2266
22672004-06-25 Sergey Rybin <rybin@act-europe.fr>
2268
2269 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
2270
65355d53
RH
22712004-06-23 Richard Henderson <rth@redhat.com>
2272
2273 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
2274
c0e3aa48
RK
22752004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2276
2277 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
2278 now bool instead of int.
2279 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
2280 * trans.c (gnu_switch_label_stack): New function.
2281 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
2282 elaboration of renamed entity returns.
2283 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
2284 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
2285 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
2286 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
2287 DECL_SIZE_UNIT and simplify variable-sized case.
2288 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
2289 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
2290 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
2291 (build_unit_elab): Disable for now.
2292 * utils.c (mark_visited): New function.
2293 (pushdecl): Walk tree to call it for global decl.
2294 (update_pointer_to): Update all variants of pointer and ref types.
2295 Add arg to COMPONENT_REF.
2296 (convert): Likewise.
2297 Move check for converting between variants lower down.
2298 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
2299 (build_allocator): Don't force type of MODIFY_EXPR.
2300 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
2301 put_var_into_stack.
2302
966389ee
RK
23032004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2304
2305 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
2306 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
2307 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
2308 subprograms.
2309 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
2310 all callers changed.
2311 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
2312 the way that EXIT_STMT finds the loop label.
2313 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
2314 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
2315 (add_stmt): Use annotate_with_locus insted of setting directly.
2316 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
2317 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
2318 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
2319 (build_vms_descriptor): Add extra args to ARRAY_REF.
2320 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
2321 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
2322 New cases.
2323 (build_binary_op): Don't make explicit CONVERT_EXPR.
2324 Add extra rgs to ARRAY_REF.
2325
cc335f43
AC
23262004-06-14 Pascal Obry <obry@gnat.com>
2327
2328 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
2329 Windows. Fix minor typo.
2330
2331 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
2332 which is now supported on Windows. With this implementation using the
2333 Library Project feature is no different on Windows than on UNIX.
2334
23352004-06-14 Vincent Celier <celier@gnat.com>
2336
2337 * makegpr.adb (Compile_Sources): Nothing to do when there are no
2338 non-Ada sources.
2339
2340 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
2341
2342 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
2343 found, show the project name and the path of the previously parsed
2344 project file.
2345
23462004-06-14 Ed Schonberg <schonberg@gnat.com>
2347
2348 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
2349 array, avoid copying the actual before the call.
2350
23512004-06-14 Thomas Quinot <quinot@act-europe.fr>
2352
2353 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
2354 Instead, allocate memory on worst-case alignment assumptions, and then
2355 return an aligned address within the allocated zone.
2356
23572004-06-14 Robert Dewar <dewar@gnat.com>
2358
2359 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
2360 elab entities in predefined units in No_Run_Time_Mode.
2361 (Gen_Adainit_C): Same fix
2362 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
2363 units in No_Run_Time_Mode
2364 (Gen_Elab_Calls_C): Same fix
2365
2366 * symbols-vms-alpha.adb: Minor reformatting
2367
2368 * g-debpoo.ads: Minor reformatting
2369
2370 * lib.adb (In_Same_Extended_Unit): Version working on node id's
2371
2372 * lib.ads (In_Same_Extended_Unit): Version working on node id's
2373
2374 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
2375 working on nodes.
2376
2377 * make.adb: Minor reformatting
2378
2379 * par-ch12.adb: Minor reformatting
2380
2381 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
2382
2383 * prj-strt.adb: Minor reformatting
2384
2385 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
2386 be more general.
2387
2388 * sem_attr.adb: Minor reformatting
2389
2390 * sem_ch7.adb: Minor reformatting
2391
2392 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
2393 for type in the same unit as the object declaration.
2394
2395 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
2396 static string expressions and not just string literals.
2397 Minor reformatting
2398 (Set_Warning): Reset restriction warning flag for restriction pragma
2399 Implement pragma Profile_Warnings
2400 Implement pragma Profile (Restricted)
2401 Give obolescent messages for old restrictions and pragmas
2402
2403 * snames.h, snames.ads, snames.adb: Add new entry for pragma
2404 Profile_Warnings.
2405
2406 * s-rident.ads: Add declarations for restrictions required by profile
2407 Restricted and profile Ravenscar.
2408
2409 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
2410
2411 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
2412 configuration pragmas.
2413
5453d5bd
AC
24142004-06-11 Vincent Celier <celier@gnat.com>
2415
2416 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
2417 gnatsym, when symbol policy is Restricted.
2418
2419 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
2420 gnatsym, when symbol policy is Restricted.
2421
2422 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
2423 read the symbol file.
2424 (Finalize): Fail in symbol policy Restricted if a symbol in the original
2425 symbol file is not in the object files. Do not create a new symbol file
2426 when symbol policy is Restricted.
2427
2428 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
2429 in Scng.
2430
2431 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
2432 Restricted.
2433 (Usage): Line for new switch -R
2434
2435 * make.adb (Initialize): When the platform is not VMS, add the
2436 directory where gnatmake is invoked in the front of the path, if
2437 gnatmake is invoked with directory information. Change the Scan_Args
2438 while loop to a for loop.
2439 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
2440 if Depth is equal or greater than the proposed depth, there is nothing
2441 to do.
2442 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
2443 instead of 0.
2444
2445 * prj.ads: Add new symbol policy Restricted.
2446
2447 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
2448 with the new parameters Check_All_Labels and Case_Location.
2449
2450 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
2451 (Library_Symbol_File needs to be defined).
2452
2453 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
2454 and Case_Location If Check_All_Labels is True, check that all values of
2455 the string type are used, and output warning(s) if they are not.
2456
2457 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
2458 and Case_Location.
2459
2460 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
2461
2462 * gnat_ugn.texi: Update documentation about the library directory in
2463 Library Projects.
2464
2465 * makegpr.adb (Display_Command): In verbose mode, also display the
2466 value of the CPATH env var, when the compiler is gcc.
2467 (Initialize): Change the Scan_Args while loop to a for loop
2468 (Compile_Individual_Sources): Change directory to object directory
2469 before compilations.
2470
2471 * symbols.ads: New symbol policy Restricted.
2472
24732004-06-11 Olivier Hainque <hainque@act-europe.fr>
2474
2475 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
2476 is now taken care of internally in the Exception_Propagation package
2477 and does not require clients assistance any more.
2478
2479 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
2480 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
2481 functions. Helpers to maintain a predicate required in the handling of
2482 occurrence transfer between tasks.
2483 This is now handled internally and does not require clients assistance
2484 for the setup/propagate separation anymore.
2485 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
2486 allocation strategy, handle the Setup_And_Not_Propagated predicate and
2487 document.
2488
2489 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
2490 raise_after_setup, now that everything is handled internally within the
2491 setup/propagation engine.
2492
24932004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
2494
2495 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
2496 Add additional conditions for the case of an actual being a simple
2497 name or literal. Improve inlining by preventing the generation
2498 of temporaries with a short lifetime (one use).
2499
25002004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
2501
2502 PR ada/15587
2503
2504 * einfo.ads: Minor comment updates for Has_Completion and
2505 E_Constant list of flags.
2506
2507 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
2508 and constant redeclarations now set the Has_Completion flag of their
2509 defining identifiers.
2510
2511 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
2512 Inspect_Deferred_Constant_Completion.
2513 Used to detect private deferred constants that have not been completed
2514 either by a constant redeclaration or pragma Import. Emits error message
2515 "constant declaration requires initialization expression".
2516
2517 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
2518 completes a deferred constant.
2519
25202004-06-11 Geert Bosch <bosch@gnat.com>
2521
2522 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
2523
2524 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
2525 calculating exponent for scaling denormal numbers.
2526 (Leading_Part): Properly raise Constraint_Error for zero or negative
2527 Adjustment.
2528 (Remainder): Properly raise Constraint_Error for zero divisor.
2529
25302004-06-11 Thomas Quinot <quinot@act-europe.fr>
2531
2532 * sem_util.adb: Minor reformatting.
2533
2534 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
2535 dereference when accessing the entry parameter record.
2536 (Check_Array_Type): Always check for possible implicit dereference.
2537 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
2538 Abort if a pointer is still present (denoting that an implicit
2539 dereference was left in the tree by the front-end).
2540
2541 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
2542 dereference when accessing the entry parameter record.
2543 (Check_Array_Type): Always check for possible implicit dereference.
2544 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
2545 Abort if a pointer is still present (denoting that an implicit
2546 dereference was left in the tree by the front-end).
2547
25482004-06-11 Emmanuel Briot <briot@act-europe.fr>
2549
2550 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
2551 message, like the compiler itself does. Easier to parse the output.
2552
2553 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
2554
2555 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
2556 be base names, and not includes directories.
2557
25582004-06-11 Arnaud Charlet <charlet@act-europe.fr>
2559
2560 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
2561 so that dependencies are properly taken into account by make.
2562
25632004-06-11 Arnaud Charlet <charlet@act-europe.fr>
2564
2565 PR ada/15622
2566 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
2567 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
2568
25692004-06-11 Jerome Guitton <guitton@act-europe.fr>
2570
2571 * Makefile.in (install-gnatlib): install target-specific run-time files.
2572
2573 * Make-lang.in: Remove obsolete targets.
2574
25752004-06-11 Ed Schonberg <schonberg@gnat.com>
2576
2577 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
2578 specification, to catch misuses of program unit names.
2579
2580 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
2581 superfluous conversions in an instance.
2582
25832004-06-11 Ed Schonberg <schonberg@gnat.com>
2584
2585 PR ada/15403
2586
2587 * sem_ch12.adb (Save_References): If operator node has been folded to
2588 enumeration literal, associated_node must be discarded.
2589
25902004-06-11 Jose Ruiz <ruiz@act-europe.fr>
2591
2592 * s-stchop-vxworks.adb: Add required pragma Convention to
2593 Task_Descriptor because it is updated by a C function.
2594
a98f59be
AC
25952004-06-08 Arnaud Charlet <charlet@act-europe.fr>
2596
2597 PR ada/15568
2598
2599 * Makefile.in: Remove target specific SO_OPT on IRIX
2600
821e1ea1
RK
26012004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2602
2603 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
2604 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
2605 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
2606 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
2607 (STMT_STMT, USE_STMT): New statement codes.
2608 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
2609 * ada-tree.h: Reflect above changes.
2610 (struct tree_loop_id): Deleted.
2611 (union lang_tree_node, struct lang_decl, struct lang_type):
2612 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
2613 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
2614 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
2615 (IS_ADA_STMT): New macro.
2616 * decl.c (annotate_decl_with_node): New function.
2617 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
2618 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
2619 Call add_stmt_with_node to do needed assignments.
2620 Add call to update setjmp buffer directly, not via EXPR_STMT.
2621 (maybe_variable): Argment GNAT_NODE deleted.
2622 * gigi.h (maybe_variable): Likewise.
2623 (make_transform, add_stmt_with_node, set_block_for_group): New.
2624 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
2625 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
2626 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
2627 (set_lineno, set_lineno_from_sloc): Likewise.
2628 (record_code_position, insert_code_for): Likewise.
2629 (gnat_poplevel): Now returns void.
2630 (end_subprog_body): Now takes argument.
2631 * misc.c (cgraph.h, tree-inline.h): New includes.
2632 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
2633 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
2634 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
2635 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
2636 (gnat_parse_file): Don't set immediate_size_expand.
2637 Call cgraph functions.
2638 (gnat_expand_expr): Remove most cases.
2639 (record_code_position, insert_code_for): Remove from here.
2640 * trans.c (toplev.h, tree-gimple.h): Now included.
2641 (discard_file_names): Deleted.
2642 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
2643 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
2644 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
2645 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
2646 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
2647 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
2648 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
2649 (set_block_for_group, add_stmt_list): Likewise.
2650 (start_stmt_group): Renamed from start_block_stmt.
2651 (end_stmt_group): Likewise, from end_block_stmt.
2652 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
2653 (gigi): Don't set discard_file_names or call set_lineno.
2654 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
2655 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
2656 Numerous changes throughout to reflect new names and complete
2657 function-at-a-time implementation.
2658 (gnat_expand_stmt): Delete or comment out all cases.
2659 (process_inlined_subprograms): Use add_stmt.
2660 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
2661 call set_lineno; also remove unneeded block handling.
2662 (process_type): Remove unneeded block handling.
2663 (build_unit_elab): Remove calls to deleted functions.
2664 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
2665 (tree-dump.h): Likewise.
2666 (struct ada_binding_level): Add field jmpbuf_decl.
2667 (gnat_define_builtin, gnat_install_builtins): New.
2668 (gnat_gimplify_function, gnat_finalize): Likewise.
2669 (gnat_poplevel): No longer return BLOCK, set it instead.
2670 Remove code dealing with nested functions.
2671 (gnat_init_decl_processing): Also set size_type_node.
2672 Call gnat_install_builtins.
2673 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
2674 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
2675 Remove special-case for "main".
2676 (end_subprog_body): Add arg and rework for tree-ssa.
2677 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
2678 Add case for BOOLEAN_TYPE.
2679 * utils2.c (rtl.h): Now include.
2680 (build_call_raise): Test Debug_Flag_NN directly.
2681 (build_call_alloc_dealloc): Don't use local stack allocation for now.
2682 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
2683 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
2684
0ab80019
AC
26852004-06-07 Robert Dewar <dewar@gnat.com>
2686
2687 * a-direct.ads, einfo.ads: Minor comment updates
2688
2689 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
2690 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
2691 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
2692 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
2693 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
2694
2695 * s-interr-sigaction.adb: Remove unreferenced variable
2696 (Attached_Interrupts). Minor reformatting.
2697 Avoid use of variable I (replace by J).
2698
2699 * par-ch10.adb: Fix text of one error message
2700
2701 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
2702 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
2703 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
2704 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
2705 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
2706 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
6615c446 2707 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
0ab80019
AC
2708 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
2709 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
2710 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
2711 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
2712 2005 support.
2713
27142004-06-07 Doug Rupp <rupp@gnat.com>
2715
2716 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
2717
2718 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
2719
2720 * mlib-tgt-vms-ia64.adb: New file.
2721
2722 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
2723 Add mlib-tgt-vms-ia64.adb
2724 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
2725 Move to alpha specific ifeq section.
2726 Add VMS specific versions of symbols.adb
2727 Renaming of 5q vms files.
2728
2729 * 5qsystem.ads renamed to system-vms_64.ads.
2730
27312004-06-07 Vincent Celier <celier@gnat.com>
2732
2733 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
2734 explain that when a time of day corresponding to the non existing hour
2735 on the day switching to DST is specified, Split may return a different
2736 value for Seconds.
2737
2738 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
2739 to GNAT PRETTY.
2740
2741 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
2742 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
2743
2744 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
2745 to False.
2746 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
2747 the linking options.
2748 (Build_Library.Check_Libs): On VMS, if there is a dependency on
2749 g-trasym.ads, set Gtrasymobj_Needed to True.
2750
2751 * prj-attr.adb: Add new package Metrics for gnatmetric
2752
2753 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
2754 canonical case to take into account files with upper case characters on
2755 Windows.
2756 (Ada_Check): Load the reference symbol file name in the name buffer to
2757 check it, not the symbol file name.
2758
2759 * snames.ads, snames.adb: Add standard name Metrics (name of project
2760 file package for gnatmetric).
2761
2762 * vms_conv.ads: Add Metric to Comment_Type
2763
2764 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
2765
2766 * vms_data.ads: Add qualifiers for GNAT METRIC
2767
2768 * makegpr.adb (Link_Executables): Take into account the switches
2769 specified in package Linker of the main project.
2770
27712004-06-07 Thomas Quinot <quinot@act-europe.fr>
2772
2773 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
2774 the index of the last element is Units.Last, not Units.Table'Last
2775 (which is usually not a valid index within the actually allocated
2776 storage for the table).
2777
2778 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
2779 determines whether to generate a call to a checked storage pool
2780 Dereference action.
2781 Generate such a call only for a dereference that either comes from
2782 source, or is the result of rewriting a dereference that comes from
2783 source.
2784
27852004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
2786
2787 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
2788
27892004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
2790
2791 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
2792 file level, elaborate the stride for inner dimensions in alignment
2793 units, not bytes.
2794
2795 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
2796 in a comment.
2797
27982004-06-07 Javier Miranda <miranda@gnat.com>
2799
2800 * exp_ch6.adb: Correct wrong modification in previous patch
2801
28022004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
2803
2804 * g-trasym.ads: Corrected comment to properly reflect level of support
2805 on VMS.
2806
28072004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
2808
2809 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
2810 includes case of a variable referenced on the left hand side of an
2811 assignment, therefore remove redundant code. Variables and prefixes of
2812 indexed or selected components are now marked as referenced on left
2813 hand side. Warnings are now properly emitted when variables or prefixes
2814 are assigned but not read.
2815
2816 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
2817 left hand side referenced variables. Private access types do not
2818 produce the warning "variable ... is assigned but never read".
2819 Add also additional checks to left hand side referenced variables.
2820 Aliased, renamed objects and access types do not produce the warning
2821 "variable ... is assigned but never read" since other entities may read
2822 the memory location.
2823
28242004-06-07 Jerome Guitton <guitton@act-europe.fr>
2825
2826 * Makefile.in: In the powerpc/vxworks-specific section, restore
2827 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
2828 by mistake).
2829
28302004-06-07 Ed Schonberg <schonberg@gnat.com>
2831
2832 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
2833 predefined operators.
2834 Removes spurious type errors from g-trasym-vms.adb.
2835
2836 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
2837 distinct from the operator appearing in the source, call appropriate
2838 routine to insert conversions when needed, and complete resolution of
2839 node.
2840 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
2841 interpretations for rewritten right operand.
2842 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
2843 the other operand is overloaded and the context is a type conversion.
2844
28452004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2846
2847 * ada-tree.def (BLOCK_STMT): Now has two operands.
2848 (BREAK_STMT): New.
2849
2850 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
2851
2852 * gigi.h: (gnat_poplevel): Now returns a tree.
2853
2854 * trans.c (end_block_stmt): Add arg; all callers changed.
2855 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
2856 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
2857 (add_stmt): Set TREE_TYPE.
2858 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
2859 (gnat_expand_stmt, case BREAK_STMT): New case.
2860
2861 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
2862
28632004-06-07 Jose Ruiz <ruiz@act-europe.fr>
2864
2865 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
2866 procedure Set_Stack_Size that is not needed.
2867
28682004-06-07 Sergey Rybin <rybin@act-europe.fr>
2869
2870 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
2871 used for gnatpp input file and for the files upon which it depends
2872
28732004-06-07 Ben Brosgol <brosgol@gnat.com>
2874
2875 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
2876
28772004-06-07 Arnaud Charlet <charlet@act-europe.fr>
2878
2879 * gnatvsn.ads: Bump version numbers appropriately.
2880 Add new build type.
2881
28822004-06-07 Pascal Obry <obry@gnat.com>
2883
2884 * gnat_ugn.texi: Improve comments about imported names and link names
2885 on Windows. Add a note about the requirement to use -k gnatdll's option
2886 when working with a DLL which has stripped stdcall symbols (no @nn
2887 suffix).
2888
8a36a0cc
AC
28892004-05-27 Vincent Celier <celier@gnat.com>
2890
2891 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
2892 COMMENTS_LAYOUT=UNTOUCHED
2893
2894 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
2895 symbols-vms-alpha.adb
2896
28972004-05-27 Thomas Quinot <quinot@act-europe.fr>
2898
2899 * sem.ads: Clarify documentation on checks suppression.
2900
2901 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
2902
29032004-05-27 Ed Schonberg <schonberg@gnat.com>
2904
2905 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
2906 the case of multiple derivations.
2907 (Is_Object_Reference): For a selected component, verify that the prefix
2908 is itself an object and not a value.
2909
2910 * sem_ch12.adb (Same_Instantiated_Constant): New name for
2911 Same_Instantiated_Entity.
2912 (Same_Instantiated_Variable): Subsidiary to
2913 Check_Formal_Package_Instance, to recognize actuals for in-out generic
2914 formals that are obtained from a previous formal package.
2915 (Instantiate_Subprogram_Body): Emit proper error when
2916 generating code and the proper body of a stub is missing.
2917
2918 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
2919 has a universal interpretation, do the disambiguation here.
2920
2921 * exp_ch4.adb (Expand_N_Type_Conversion,
2922 Expand_N_Unchecked_Type_Conversion): Special handling when target type
2923 is Address, to avoid typing anomalies when Address is a visible integer
2924 type.
2925
2926 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
2927 to determine whether a subprogram should not be marked Pure, even when
2928 declared in a pure package.
2929
29302004-05-27 Jose Ruiz <ruiz@act-europe.fr>
2931
2932 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
2933
2934 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
2935 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
2936 Update the documentation about the Ravenscar profile, following the
2937 definition found in AI-249.
2938
2939 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
2940 setting the Profile (Ravenscar). This must be done in addition to
2941 setting the required restrictions.
2942
2943 * rtsfind.ads: Add the set of operations defined in package
2944 Ada.Interrupts.
2945
2946 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
2947 restriction.
2948
29492004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
2950
2951 lang-specs.h: Always require -c or -S and always redirect to /dev/null
2952 if -gnatc or -gnats is passed.
2953
29542004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
2955
2956 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
2957 a significant reference. Warnings are now properly emitted when a
2958 discriminated type is not referenced.
2959
2960 * lib-xref.adb (Generate_Reference): A deferred constant completion,
2961 record representation clause or record type discriminant does not
2962 produce a reference to its corresponding entity. Warnings are now
2963 properly emitted when deferred constants and record types are not
2964 referenced.
2965
29662004-05-27 Geert Bosch <bosch@gnat.com>
2967
2968 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
2969 Fixes ACATS Annex G tests.
2970
29712004-05-27 Robert Dewar <dewar@gnat.com>
2972
2973 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
2974 handling WITH
2975
29762004-05-27 Arnaud Charlet <charlet@act-europe.fr>
2977
2978 * s-interr.adb (Server_Task): Take into account case of early return
2979 from sigwait under e.g. linux.
2980
29812004-05-27 Sergey Rybin <rybin@act-europe.fr>
2982
2983 * gnat_ugn.texi: Add description for the new gnatpp options:
2984 -rnb - replace the original source without creating its backup copy
2985 -c0 - do not format comments
2986
0fb2ea01
AC
29872004-05-24 Geert Bosch <bosch@gnat.com>
2988
2989 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
2990 with 192 bits of precision, sufficient to reduce a double-extended
2991 arguments X with a maximum relative error of T'Machine_Epsilon, for X
2992 in -2.0**32 .. 2.0**32.
2993 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
2994 reduction by the processor, which only uses a 68-bit approximation of
2995 Pi.
2996 (Tan): Always reduce arguments and compute function either using
2997 the processor's fptan instruction, or by dividing sin and cos as needed.
2998
29992004-05-24 Doug Rupp <rupp@gnat.com>
3000
3001 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
3002 gcc error on 32/64 bit VMS.
3003
30042004-05-24 Olivier Hainque <hainque@act-europe.fr>
3005
3006 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
3007 since this is what we get for stack overflows although not documented
3008 as such.
3009 Document the issues which may require adjustments to our signal
3010 handlers.
3011
30122004-05-24 Ed Schonberg <schonberg@gnat.com>
3013
3014 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
3015 enclosing dynamic scope if the instantiation is within a generic unit.
3016
30172004-05-24 Arnaud Charlet <charlet@act-europe.fr>
3018
3019 * exp_dbug.ads: Fix typo.
3020
3021 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
3022 Rename it to its proper name: system-linux-ia64.ads
3023 (stamp-gnatlib1): Remove extra target specific run time files when
3024 setting up the rts directory.
3025
30262004-05-24 Javier Miranda <miranda@gnat.com>
3027
3028 * einfo.ads, einfo.adb (Limited_Views): Removed.
3029 (Limited_View): New attribute that replaces the previous one. It is
3030 now a bona fide package with the limited-view list through the
3031 first_entity and first_private attributes.
3032
3033 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
3034 limited-private-with clause.
3035 (Install_Limited_Withed_Unit): Install the private declarations of a
3036 limited-private-withed package. Update the installation of the shadow
3037 entities according to the new structure (see Build_Limited_Views)
3038 (Build_Limited_Views): Replace the previous implementation of the
3039 limited view by a package entity that references the first shadow
3040 entity plus the first shadow private entity (required for limited-
3041 private-with clause)
3042 (New_Internal_Shadow_Entity): Code cleanup.
3043 (Remove_Limited_With_Clause): Update the implementation to undo the
3044 new work carried out by Build_Limited_Views.
3045 (Build_Chain): Complete documentation.
3046 Replace Ada0Y by Ada 0Y in comments
3047 Minor reformating
3048
3049 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
3050 types the level of accessibility depends on the enclosing type
3051 declaration.
3052
3053 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
3054 entities. Complete documentation of previous change.
3055
30562004-05-24 Robert Dewar <dewar@gnat.com>
3057
3058 * namet.adb: Minor reformatting
3059 Avoid use of name I (replace by J)
3060 Minor code restructuring
3061
3062 * sem_ch6.adb: Minor reformatting
3063
3064 * lib-writ.adb: Do not set restriction as active if this is a
3065 Restriction_Warning case.
3066
3067 * sem_prag.adb: Reset restriction warning flag if real pragma
3068 restriction encountered.
3069
3070 * s-htable.adb: Minor reformatting
3071 Change rotate count to 3 in Hash (improves hash for small strings)
3072
3073 * 5qsystem.ads: Add comments for type Address (no literals allowed).
3074
3075 * gnat_ugn.texi: Add new section of documentation "Code Generation
3076 Control", which describes the use of -m switches.
3077
30782004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
3079
a1db9d9c
AC
3080 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
3081 through the DECL_INITIAL for renamed variables.
0fb2ea01 3082
7599f1b0
AC
30832004-05-24 Arnaud Charlet <charlet@act-europe.fr>
3084
3085 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
3086
c37bb106
AC
30872004-05-19 Joel Brobecker <brobecker@gnat.com>
3088
3089 * exp_dbug.ads: Correct comments concerning handling of overloading,
3090 since we no longer use $ anymore.
3091
30922004-05-19 Sergey Rybin <rybin@act-europe.fr>
3093
3094 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
3095 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
3096 with illegal subunits.
3097
30982004-05-19 Ed Schonberg <schonberg@gnat.com>
3099
3100 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
3101 body with front-end inlining enabled, check whether an inline pragma
3102 appears immediately after the body and applies to it.
3103
3104 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
3105 enabled and the pragma appears after the body of the subprogram.
3106
b5e792e2
AC
31072004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3108
3109 Part of function-at-a-time conversion
3110
3111 * misc.c (adjust_decl_rtl): Deleted.
3112 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
3113 Define.
3114
3115 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
3116 (add_decl_stmt, add_stmt, block_has_vars): New functions.
3117 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
3118
3119 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
3120 when making a decl.
3121 (gnat_to_gnu_entity): Likewise.
3122 Use add_stmt to update setjmp buffer.
3123 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
3124 flush_addressof.
3125 No longer call adjust_decl_rtl.
3126 (DECL_INIT_BY_ASSIGN_P): New macro.
3127 (DECL_STMT_VAR): Likewise.
3128
3129 * trans.c (gigi): Call start_block_stmt to make the outermost
3130 BLOCK_STMT.
3131 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
3132 Call start_block_stmt and end_block_stmt temporarily.
3133 Use gnat_expand_stmt instead of expand_expr_stmt.
3134 (add_decl_stmt): New function.
3135 (tree_transform): Call it.
3136 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
3137 (end_block_stmt): Set type and NULL_STMT.
3138 (gnat_expand_stmt): Make recursize call instead of calling
3139 expand_expr_stmt.
3140 (gnat_expand_stmt, case DECL_STMT): New case.
3141 (set_lineno_from_sloc): Do nothing if global.
3142 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
3143 (start_block_stmt, add_stmt, end_block_stmt): New functions.
3144 (build_block_stmt): Call them.
3145 (gnat_to_code): Don't expand NULL_STMT.
3146 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
3147 args.
3148 (tree_transform): Likewise.
3149 (tree_transform, case N_Null_Statement): Return NULL_STMT.
3150 (gnat_expand_stmt, case NULL_STMT): New case.
3151 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
3152 IF_STMT_TRUE.
3153
3154 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
3155 TREE_ADDRESSABLE.
3156
3157 * utils.c (create_var_decl): Do not call expand_decl or
3158 expand_decl_init.
3159 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
3160 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
3161 here.
3162 (struct e_stack): Add chain_next to GTY.
3163 (struct binding_level): Deleted.
3164 (struct ada_binding_level): New struct.
3165 (free_block_chain): New.
3166 (global_binding_level, clear_binding_level): Deleted.
3167 (global_bindings_p): Rework to see if no chain.
3168 (kept_level_p, set_block): Deleted.
3169 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
3170 new data structure and work directly on BLOCK node.
3171 (gnat_poplevel): Similarly.
3172 (get_decls): Look at BLOCK_VARS.
3173 (insert_block): Work directly on BLOCK node.
3174 (block_has_var): New function.
3175 (pushdecl): Rework for new binding structures.
3176 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
3177 poplevel.
3178 (build_subprog_body): Likewise.
3179 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
3180
3181 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
3182
3183 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
3184 (DECL_STMT_VAR): Likewise.
3185
31862004-05-17 Robert Dewar <dewar@gnat.com>
3187
3188 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
3189 procedure
3190
3191 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
3192 of restriction synonyums by using
3193 Restrict.Process_Restriction_Synonyms.
3194
3195 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
3196
3197 * s-restri.ads (Tasking_Allowed): Correct missing comment
3198
3199 * s-rident.ads: Add entries for restriction synonyms
3200
3201 * ali.adb: Fix some problems with badly formatted ALI files that can
3202 result in infinite loops.
3203
3204 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
3205 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
3206 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
3207 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
3208 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
3209 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
3210 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
3211 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
3212 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
3213 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
3214 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
3215 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
3216 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
3217 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
3218 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
3219 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
3220 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
3221 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
3222 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
3223 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
3224 to Task_Id (minor cleanup).
3225
32262004-05-17 Vincent Celier <celier@gnat.com>
3227
3228 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
3229 directory separator.
3230
3231 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
3232 project being extended, if Languages is not declared in extending
3233 project.
3234
32352004-05-17 Javier Miranda <miranda@gnat.com>
3236
3237 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
3238 limited view of a visible sibling.
3239
9bc856dd
AC
32402004-05-14 Robert Dewar <dewar@gnat.com>
3241
3242 * gnat_ugn.texi: Minor change to -gnatS documentation
3243
3244 * sprint.adb: Remove some instances of Assert (False) and for this
3245 purpose replace them by output of a ??? string.
3246
3247 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
3248 Assert (False).
3249
3250 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
3251 flag processing. This was suppressing required dependencies in
3252 No_Run_Time mode and is not needed since the binder does not generate
3253 references for things in libgnat anyway.
3254
3255 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
3256 warning.
3257
32582004-05-14 Thomas Quinot <quinot@act-europe.fr>
3259
3260 * gnat_ugn.texi: Document AIX-specific issue with initialization of
3261 resolver library.
3262
3263 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
3264 action for the case of an actual parameter in an init proc call.
3265
32662004-05-14 Ed Schonberg <schonberg@gnat.com>
3267
3268 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
3269 subtype, check visible entities in base type.
3270
3271 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
3272 actions if the object is a renaming.
3273
3274 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
3275 Check_Formal_Package_Instance, to determine more precisely when the
3276 formal and the actual denote the same entity.
3277
32782004-05-14 Javier Miranda <miranda@gnat.com>
3279
3280 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
3281
3282 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
3283 corresponding to a private_with must be removed from visibility; it
3284 will be made visible later, just before we analyze the private part of
3285 the package.
3286 (Check_Private_Child_Unit): Allow private_with clauses in public
3287 siblings.
3288 (Install_Siblings): Make visible the private entities of private-withed
3289 siblings.
3290 (Install_Withed_Unit): Do not install the private withed unit if we
3291 are compiling a package declaration and the Private_With_OK flag was
3292 not set by the caller. These declarations will be installed later,
3293 just before we analyze the private part of the package.
3294
3295 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
3296 during the evaluation of the expression that initializes the object,
3297 decorate it with the expected type to avoid cascade errors.
3298 Code cleanup.
3299
3300 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
3301 subprogram we have to install the private_with clauses after its
3302 specification has been analyzed (as documented in AI-262.TXT).
3303
3304 * sem_ch8.adb (Has_Private_With): New function. Determines if the
3305 current compilation unit has a private with on a given entity.
3306 (Find_Direct_Name): Detect the Beaujolais problem described in
3307 AI-262.TXT
3308
3309 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
3310 provides the functionality of the function Is_Ancestor that was
3311 previously available in sem_ch10. It has been renamed to avoid
3312 overloading.
3313
3314 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
3315
33162004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3317
3318 * utils.c (build_vms_descriptor): Use SImode pointers.
3319
33202004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
3321
3322 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
3323
33242004-05-14 GNAT Script <nobody@gnat.com>
3325
3326 * Make-lang.in: Makefile automatically updated
3327
084c663c
AC
33282004-05-14 Arnaud Charlet <charlet@act-europe.fr>
3329
3330 Renaming of target specific files for clarity
3331
6615c446 3332 * Makefile.in: Rename GNAT target specific files.
084c663c
AC
3333
3334 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
3335 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
3336 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
3337 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
3338 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
3339 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
3340 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
3341 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
3342 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
3343 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
3344 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
3345 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
3346 51osinte.adb, 51osinte.ads, 51system.ads,
3347 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
3348 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
3349 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
3350 56tpopsp.adb, 57system.ads, 58system.ads,
3351 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
3352 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
3353 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
3354 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
3355 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
3356 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
3357 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
3358 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
3359 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
3360 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
3361 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
3362 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
3363 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
3364 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
3365 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
3366 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
3367 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
3368 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
3369 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
3370 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
3371 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
3372 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
3373 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
3374 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
3375 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
3376 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
3377 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
3378 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
3379 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
3380 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
3381 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
3382 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
3383 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
3384 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
3385 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
3386 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
3387 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
3388 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
3389 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
3390 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
3391
3392 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
3393 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
3394 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
3395 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
3396 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
3397 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
3398 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
3399 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
3400 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
3401 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
3402 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
3403 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
3404 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
3405 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
3406 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
3407 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
3408 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
3409 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
3410 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
3411 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
3412 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
3413 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
3414 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
3415 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
3416 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
3417 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
3418 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
3419 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
3420 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
3421 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
3422 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
3423 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
3424 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
3425 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
3426 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
3427 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
3428 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
3429 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
3430 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
3431 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
3432 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
3433 s-osinte-vms.ads, s-osinte-vxworks.adb,
3434 s-osinte-vxworks.ads, s-osprim-mingw.adb,
3435 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
3436 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
3437 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
3438 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
3439 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
3440 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
3441 s-stchop-vxworks.adb, s-taprop-dummy.adb,
3442 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
3443 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
3444 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
3445 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
3446 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
3447 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
3448 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
3449 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
3450 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
3451 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
3452 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
3453 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
3454 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
3455 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
3456 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
3457 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
3458 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
3459 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
3460 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
3461 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
3462 system-irix-o32.ads, system-linux-x86_64.ads,
3463 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
3464 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
3465 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
3466 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
3467 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
3468 system-vxworks-mips.ads, system-vxworks-ppc.ads,
3469 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
3470 above.
3471
90afe2c9
ZW
34722004-05-13 Zack Weinberg <zack@codesourcery.com>
3473
3474 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
3475
6de9cd9a
DN
34762004-05-13 Diego Novillo <dnovillo@redhat.com>
3477
3478 Merge from tree-ssa-20020619-branch.
3479
3480 * config-lang.in (boot_language, build_by_default): Set
3481 to no.
3482 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
3483 (max_size): Add static chain op for call_expr.
3484
f5657d67
RS
34852004-05-12 Richard Sandiford <rsandifo@redhat.com>
3486
3487 PR target/15331
3488 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
3489
4413b636
RS
34902004-05-11 Roger Sayle <roger@eyesopen.com>
3491
3492 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
3493 COND_EXPR.
3494
5950a3ac
AC
34952004-05-10 Doug Rupp <rupp@gnat.com>
3496
3497 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
3498 system.aux_dec.
3499
3500 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
3501
3502 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
3503
3504 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
3505 Fixes undefined symbols in IA64 gnatlib.
3506
3507 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
3508
3509 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
3510 Short_Address). This will be moved to system.auxdec.
3511
35122004-05-10 Thomas Quinot <quinot@act-europe.fr>
3513
3514 * sem_util.adb: Replace test for presence of a node that is always
3515 present with a call to Discard_Node.
3516
3517 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
3518 Analyze on the library unit node after generation of distribution stub
3519 constructs. The call was a no-op because Unit_Node has already been
3520 Analyzed, and the tree fragments for the distribution stubs are
3521 analyzed as they are inserted in Exp_Dist.
3522 Update comment regarding to distribution stubs to reflect that we
3523 do not generate stub in separate files anymore.
3524
3525 * einfo.ads: Clarify the fact that a tagged private type has the
3526 E_Record_Type_With_Private Ekind.
3527
3528 * erroutc.adb: Minor reformatting
3529
3530 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
3531 values if line length is increased using -gnatyM (noticed during code
3532 reading).
3533
3534 * eval_fat.adb: Minor reformatting
3535 Put spaces around exponentiation operator
3536
35372004-05-10 Ed Schonberg <schonberg@gnat.com>
3538
3539 PR ada/15005
3540 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
3541 has been rewritten as an explicit dereference, retrieve type of
3542 original node to check for possibly unconstrained record type.
3543
35442004-05-10 Ed Schonberg <schonberg@gnat.com>
3545
3546 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
3547 overriding, use the operation of the parent unconditionally.
3548
3549 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
3550 operation when either operand is a literal, to avoid further
3551 ambiguities.
3552
3553 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
3554 overridden by a previous explicit declaration, mark the previous entity
3555 as overriding.
3556
3557 * sem_disp.adb (Check_Dispatching_Operation): New predicate
3558 Is_Visibly_Controlled, to determine whether a declaration of a
3559 primitive control operation for a derived type overrides an inherited
3560 one. Add warning if the explicit declaration does not override.
3561
35622004-05-10 Vincent Celier <celier@gnat.com>
3563
3564 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
3565 some cases when the sources are no longer present.
3566
3567 * make.adb (Collect_Arguments): Fail if an external source, not part
3568 of any project need to be compiled, when switch -x has not been
3569 specified.
3570
3571 * makeusg.adb: Document new switch -x
3572
3573 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
3574 defaulted to False.
3575
3576 * switch-m.adb (Scan_Make_Switches): New switch -x
3577
3578 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
3579 gnatmake switch -x.
3580
3581 * gnat_ugn.texi: Document new gnatmake switch -x
3582
35832004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
3584
3585 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
3586
3587 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
3588 (process_attributes): Likewise.
3589
35902004-05-10 Joel Brobecker <brobecker@gnat.com>
3591
3592 * s-inmaop.ads: Fix spelling mistake in one of the comments.
3593
35942004-05-10 Robert Dewar <dewar@gnat.com>
3595
3596 * gnat_ugn.texi: Document that for config pragma files, the maximum
3597 line length is always 32767.
3598
3599 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
3600 literals is now allowed.
3601
3602 * gnat-style.texi: Remove statement about splitting long lines before
3603 an operator rather than after, since we do not follow this rule at all.
3604 Clarify rule (really lack of rule) for spaces around exponentiation
3605
3606 * sem_elim.adb: Allow concatenation of string literals as well as a
3607 single string literal for pragma arguments.
3608
3609 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
3610
3611 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
3612 written for append case.
3613
3614 * frontend.adb: Changes to avoid checking max line length in config
3615 pragma files.
3616
3617 * g-os_lib.ads: Minor reformatting
3618
3619 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
3620 wrong in any case. Instead use standard value. Noticed during code
3621 reading.
3622
3623 * opt.ads (Max_Line_Length): New field, used to implement removal of
3624 limitation on length of lines when scanning config pragma files.
3625
3626 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
3627 makeutl.ads, makeutl.adb: Minor reformatting
3628
3629 * scn.adb: Do not check line length while scanning config pragma files
3630 Do not check line length while scanning out license information
3631
3632 * scng.adb: Changes to avoid line length checks while parsing config
3633 pragma files.
3634
36352004-05-10 GNAT Script <nobody@gnat.com>
3636
3637 * Make-lang.in: Makefile automatically updated
3638
48664302
AC
36392004-05-05 Arnaud Charlet <charlet@act-europe.fr>
3640
3641 * osint.adb (Find_Program_Name): Fix handling of VMS version
3642 number.
3643
aa720a54
AC
36442004-05-05 Emmanuel Briot <briot@act-europe.fr>
3645
3646 * g-os_lib.ads (Invalid_Time): New constant
3647
3648 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
3649 return OS_Time instead of time_t to match what is imported by Ada.
3650 Now return -1 if the file doesn't exist, instead of a random value
3651
36522004-05-05 Robert Dewar <dewar@gnat.com>
3653
3654 * usage.adb: Add line for -gnatR?s switch
3655
3656 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
3657
3658 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
3659 and for Match (Data_First, Data_last)
3660
3661 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
3662 written when we are dealing with multi-unit files.
3663
36642004-05-05 Jerome Guitton <guitton@act-europe.fr>
3665
3666 * Makefile.in: Remove unused targets and variables.
3667
36682004-05-05 Vincent Celier <celier@gnat.com>
3669
3670 * switch-m.adb: New gnatmake switch -eI
3671
3672 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
3673 of new gnatmake switch -eInnn.
3674
3675 * makegpr.adb: Take into account new parameters Index and Src_Index in
3676 Prj.Util.
3677
3678 * clean.adb: Implement support for multi-unit sources, including new
3679 switch -i.
3680
3681 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
3682 Src_Index.
3683
3684 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
3685 (Extract_From_Q): New out parameter Index
3686 (Mark, Is_Marked): Subprograms moved to Makeutl
3687 (Switches_Of): New parameter Source_Index
3688 (Add_Switch): New parameter Index
3689 (Check): New parameter Source_Index
3690 (Collect_Arguments): New parameter Source_Index
3691 (Collect_Arguments_And_Compile): New parameter Source_Index
3692 (Compile): New parameter Source_Index
3693 Put subprograms in alphabetical order
3694 Add support for multi-source sources, including in project files.
3695
3696 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
3697 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
3698 Make.
3699
3700 * makeusg.adb: New gnatmake switch -eInnn
3701
3702 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
3703 Prj.Util.Value_Of.
3704
3705 * opt.ads (Main_Index): New variable, defaulted to 0.
3706
3707 * osint.ads, osinte.adb (Add_File): New parameter Index
3708 (Current_Source_Index): New function
3709
3710 * prj.adb: Take into account new components Index and Src_Index
3711
3712 * prj.ads (String_Element): New component Index
3713 (Variable_Value): New component Index
3714 (Array_Element): New component Src_Index
3715
3716 * prj-attr.adb: Indicate that optional index may be specified for
3717 attributes Main, Executable, Spec, Body and some of Switches.
3718
3719 * prj-attr.ads (Attribute_Kind): New values for optional indexes
3720 (Attribute_Record): New component Optional_Index
3721
3722 * prj-com.ads (File_Name_Data): New component Index
3723
3724 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
3725
3726 * prj-env.adb (Put): Output optional index
3727
3728 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
3729 attributes Spec and Body.
3730
3731 * prj-nmsc.adb: Process optional indexes
3732
3733 * prj-pp.adb: Ouput "at" for optional indexes
3734
3735 * prj-proc.adb: Take into account optional indexes
3736
3737 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
3738 Optional_Index. For string literal,
3739 process optional index when Optional_Index is True.
3740 (Parse_Expresion): New Boolean parameter Optional_Index
3741
3742 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
3743 (Set_Source_Index_Of): New procedure
3744
3745 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
3746 index.
3747
3748 * prj-util.ads (Executable_Of): New parameter Index
3749 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
3750 New parameter Src_Index, defaulted to 0.
3751
37522004-05-05 Ed Schonberg <schonberg@gnat.com>
3753
3754 PR ada/15257
3755 * sem_ch3.adb (Access_Definition): If this is an access parameter
3756 whose designated type is imported through a limited_with clause, do
3757 not add the enclosing subprogram to the list of private dependents of
3758 the type.
3759
37602004-05-05 Ed Schonberg <schonberg@gnat.com>
3761
3762 PR ada/15258
3763 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
3764 a limited_with clause, and the other is its non-limited view.
3765
37662004-05-05 Thomas Quinot <quinot@act-europe.fr>
3767
3768 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
3769
90afe2c9 3770 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
aa720a54
AC
3771 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
3772 Stand.Boolean_Literals to produce references to entities
3773 Standard_False and Standard_True from compile-time computed boolean
3774 values.
3775
3776 * stand.ads (Boolean_Literals): New variable, provides the entity
3777 values for False and True, for use by the expander.
3778
37792004-05-05 Doug Rupp <rupp@gnat.com>
3780
3781 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
3782 5vinmaop.adb: Unchecked convert Short_Address vice Address
3783
3784 * adaint.c, raise.c: Caste CRTL function return value
3785 to avoid gcc error on 32/64 bit IVMS.
3786
3787 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
3788 target = IA64/VMS.
3789
3790 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
3791
3792 * 5qsystem.ads (Address): Declare as Long_Integer
3793 (Short_Address): Declare as 32 bit subtype of Address
3794 Declare abstract address operations to avoid gratuitous ambiguities.
3795
37962004-05-05 Jose Ruiz <ruiz@act-europe.fr>
3797
3798 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
3799 instead of the old Boolean_Entry_Barriers.
3800 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
3801
38022004-05-05 GNAT Script <nobody@gnat.com>
3803
3804 * Make-lang.in: Makefile automatically updated
3805
1ab2888d
AC
38062004-05-03 Arnaud Charlet <charlet@act-europe.fr>
3807
3808 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
3809
9f4fd324
AC
38102004-05-03 Olivier Hainque <hainque@act-europe.fr>
3811
3812 PR ada/15152
3813
3814 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
3815 alone. Replacing object references by literals is inappropriate in a
3816 so low level context.
3817
38182004-05-03 Arnaud Charlet <charlet@act-europe.fr>
3819
3820 * a-exexpr.adb: Add comments
3821
38222004-05-03 Joel Brobecker <brobecker@gnat.com>
3823
3824 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
3825 declare the Ancestor_Tags array in Type_Specific_Data with a small size
3826 without risking a bounds check error when accessing one of its
3827 components.
3828 (Type_Specific_Data): Define Ancestor_Tags as a small array.
3829 This prevents us from hitting a limitation during the debug info
3830 generation when using stabs.
3831
3832 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
3833 small array.
3834 This prevents us from hitting a limitation during the debug info
3835 generation when using stabs.
3836
38372004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
3838
3839 lang-specs.h: Remove -gnatz* from specs.
3840
38412004-05-03 Vincent Celier <celier@gnat.com>
3842
3843 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
3844
3845 * Make-lang.in, Makefile.in: Add gprmake
3846
38472004-05-03 Thomas Quinot <quinot@act-europe.fr>
3848
3849 * sem_aggr.adb: Fix typo in comment.
3850
38512004-05-03 Robert Dewar <dewar@gnat.com>
3852
3853 * make.adb: Minor reformatting
3854
3855 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
3856
3857 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
3858 so that it works when address is not a private type.
3859
3860 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
3861 properly with rewritten unchecked conversions. This prevents
3862 order-of-elaboration issues that can otherwise arise.
3863 (Minimum_Size): Don't check size of access types under VMS
3864
3865 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
3866 interpretations of integer literals as type System.Address.
3867
3868 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
3869 (Is_Descendent_Of): New function
3870
38712004-05-03 Jose Ruiz <ruiz@act-europe.fr>
3872
3873 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
3874 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
3875 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
3876
3877 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
3878 of the old Max_Entry_Queue_Depth.
3879
3880 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
3881 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
3882 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
3883
3884 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
3885 New entry for proper handling of Max_Entry_Queue_Depth.
3886 New entry for proper handling of No_Dynamic_Interrupts.
3887
3888 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
3889 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
3890 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
3891 the GNAT specific restriction Max_Entry_Queue_Depth.
3892 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
3893 the GNAT specific restriction No_Dynamic_Interrupts.
3894
3895 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
3896 instead of the old Boolean_Entry_Barriers.
3897 Use the new restriction No_Dynamic_Attachment instead of the old
3898 No_Dynamic_Interrupts.
3899
3900 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
3901 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
3902
3903 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
3904 of the old Max_Entry_Queue_Depth.
3905
39062004-05-03 GNAT Script <nobody@gnat.com>
3907
3908 * Make-lang.in: Makefile automatically updated
3909
d935a36e
AC
39102004-04-29 Ed Schonberg <schonberg@gnat.com>
3911
3912 * checks.adb (Enable_Range_Check): If the prefix of an index component
3913 is an access to an unconstrained array, perform check unconditionally.
3914
39152004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3916
3917 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
3918 Component_Clause.
3919
39202004-04-29 Olivier Hainque <hainque@act-europe.fr>
3921
3922 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
3923 alternate stack setting. There was no support for the tasking cases
3924 and the changes eventually caused a number of side-effect failures in
3925 the non-tasking case too.
3926
39272004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
3928
3929 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
3930 -gnats is passed.
3931
39322004-04-29 Vincent Celier <celier@gnat.com>
3933
3934 * make.adb (Gnatmake): Increase max size of argument array for
3935 gnatbind for the potential addition of -F.
3936 If there are Stand-Alone Library projects, invoke gnatbind with -F to
3937 be sure that elaboration flags will be checked.
3938
3939 * switch-c.adb: Correct call to Scan_Pos for -gnateI
3940
39412004-04-29 Thomas Quinot <quinot@act-europe.fr>
3942
3943 * sem_warn.adb (Check_References): Move '<access-variable> may be
3944 null' warning out of under Warn_On_No_Value_Assigned.
3945
39462004-04-29 Ed Falis <falis@gnat.com>
3947
3948 * gnat_ugn.texi: Fixed texi error
3949
39502004-04-29 Robert Dewar <dewar@gnat.com>
3951
3952 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
3953 abstract operations if they come from predefined files.
3954
3955 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
3956 Dynamic, not RM).
3957
3958 * s-addope.adb: Correct obvious error in mod function
3959
39602004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
3961
3962 * Makefile.in: Add target pairs for powerpc darwin*
3963 tasking support.
3964
3965 * a-intnam-darwin.ads, s-osinte-darwin.adb,
3966 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
3967
ea16c81b
UW
39682004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
3969
3970 * Makefile.in: Add target macro definitions for s390*-linux*.
3971 * system-linux-s390.ads: New file.
3972 * system-linux-s390x.ads: New file.
3973
f0e6f845
JM
39742004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
3975
3976 * gnat_ugn.texi: Correct argument to @setfilename.
3977
e8c2eedc
UW
39782004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
3979
3980 * a-exexpr.adb (Unwind_Word): New data type.
3981 (Unwind_Exception): Use it as type of Private1 and Private2.
3982
3983 * raise.c (db_action_for): Fix debug printf.
3984
f2c9e65a
AC
39852004-04-27 Ed Schonberg <schonberg@gnat.com>
3986
3987 * a-wtmoio.ads: Formal type must be a modular type, not a signed
3988 integer type.
3989
39902004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3991
3992 * decl.c (gnat_to_gnu_entity, case object): Call
3993 __builtin_update_setjmp_buf.
3994
3995 * gigi.h (update_setjmp_buf): Deleted.
3996 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
3997
3998 * misc.c: (update_setjmp_buf): Deleted.
3999
4000 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
4001 around block of RTL.
4002
4003 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
4004
35b7fa6a
AC
40052004-04-26 Thomas Quinot <quinot@act-europe.fr>
4006
4007 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
4008 subprogram for which no pragma All_Calls_Remote applies, store the
4009 address of the real subprogram in the underlying record type, so local
4010 dereferences do not go through the PCS.
4011
40122004-04-26 Robert Dewar <dewar@gnat.com>
4013
4014 * i-c.ads: Add some type qualifications to avoid ambiguities when
4015 compiling with s-auxdec.ads and a non-private address type.
4016
40172004-04-26 Arnaud Charlet <charlet@act-europe.fr>
4018
4019 * Makefile.rtl: Fix error in previous check-in:
4020 Add s-addope.o to non tasking object list (rather than tasking object
4021 list).
4022
40232004-04-26 Javier Miranda <miranda@gnat.com>
4024
4025 * sem_aggr.adb: Fix typo in comments
4026 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
4027 Required to check the null-exclusion attribute.
4028
4029 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
4030 case of anonymous access types in record and array components. For a
4031 component definition the level is the same of the enclosing composite
4032 type.
4033
4034 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
4035 that are anonymous access types the level of accessibility depends on
4036 the enclosing type declaration. In order to have this information, set
4037 the scope of the anonymous access type to the enclosing record type
4038 declaration.
4039 (Array_Type_Declaration): In case of components that are anonymous
4040 access types the level of accessibility depends on the enclosing type
4041 declaration. In order to have this information, set the scope of the
4042 anonymous access type to the enclosing array type declaration.
4043
4044 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
4045 access type.
4046
4047 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
4048 renaming of anonymous access-to-constant types allowed if and only if
4049 the renamed object is access-to-constant.
4050
4051 * sem_util.adb (Type_Access_Level): In case of anonymous access types
4052 that are component_definition or discriminants of a nonlimited type,
4053 the level is the same as that of the enclosing component type.
4054
40552004-04-26 Sergey Rybin <rybin@act-europe.fr>
4056
4057 * sem_elim.adb: Some minor code reorganization from code reading. Fix
4058 misprint in the function name (File_Name_Match).
4059
5a944040
LG
40602004-04-23 Laurent GUERBY <laurent@guerby.net>
4061
90afe2c9 4062 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
5a944040 4063 install.
90afe2c9 4064
d0fd1344
RO
40652004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4066
4067 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
4068
cc4f0de1
AC
40692004-04-23 Emmanuel Briot <briot@act-europe.fr>
4070
4071 * adaint.c (__gnat_try_lock): No longer requires that the parent
4072 directory be writable, the directory itself is enough.
4073 (gnat_is_absolute_path): Change profile, so that the call from
4074 GNAT.OS_Lib can be made more efficient.
4075
4076 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
4077 from GNAT.OS_Lib can be made more efficient.
4078
4079 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
4080 one copy of the file name. Found by code reading.
4081
40822004-04-23 Vincent Celier <celier@gnat.com>
4083
4084 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
4085 Correct documentation on gnatmake switches transmitted to the compiler
4086
4087 * ali.ads: Minor comment fix
4088
40892004-04-23 Javier Miranda <miranda@gnat.com>
4090
4091 * sem_ch6.adb: (Confirming Types): Code cleanup
4092
4093 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
4094 subprogram types: E_Anonymous_Access_Subprogram_Type and
4095 E_Anonymous_Access_Protected_Subprogram_Type.
4096
40972004-04-23 Thomas Quinot <quinot@act-europe.fr>
4098
4099 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
4100 whether a pragma All_Calls_Remote applies to the subprogram on which
4101 'Access is taken.
4102 No functional change is introduced by this revision; the new parameter
4103 will be used to allow calls to local RCI subprograms to be optimized
4104 to not use the PCS in the case where no pragma All_Calls_Remote applies,
4105 as is already done in the PolyORB implementation of the DSA.
4106
4107 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
4108 whether a pragma All_Calls_Remote applies to the subprogram on which
4109 'Access is taken.
4110 No functional change is introduced by this revision; the new parameter
4111 will be used to allow calls to local RCI subprograms to be optimized
4112 to not use the PCS in the case where no pragma All_Calls_Remote applies,
4113 as is already done in the PolyORB implementation of the DSA.
4114
41152004-04-23 Robert Dewar <dewar@gnat.com>
4116
4117 * Makefile.rtl: Add entry for s-addope.o in run time library list
4118 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
4119 * s-addope.ads, s-addope.adb: New files.
4120
90afe2c9
ZW
4121 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
4122 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
cc4f0de1
AC
4123 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
4124 System.Address to be non-private and signed.
4125
4126 * sem_elim.adb: Minor reformatting (fairly extensive)
4127 Some minor code reorganization from code reading
4128 Add a couple of ??? comments
4129
41302004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4131
4132 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
90afe2c9 4133 (tree_transform, case N_If_Statement): Remove non-determinism.
cc4f0de1
AC
4134
4135 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
4136
41372004-04-23 Sergey Rybin <rybin@act-europe.fr>
4138
4139 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
4140 Eliminate' section.
4141
4142 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
4143 no longer used as a parameter name for Eliminate pragma).
4144
78bad775
LG
41452004-04-22 Laurent GUERBY <laurent@guerby.net>
4146
4147 PR optimization/14984
4148 PR optimization/14985
4149 * trans.c (gigi): Fix non determinism leading to bootstrap
4150 comparison failures.
4151
af4b9434
AC
41522004-04-21 Pascal Obry <obry@gnat.com>
4153
4154 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
4155 passed to spawnvp() to properly handle program pathname with spaces on
4156 Win32.
4157
41582004-04-21 Emmanuel Briot <briot@act-europe.fr>
4159
4160 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
4161 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
4162 unlocked in case of exceptions.
4163
41642004-04-21 Joel Brobecker <brobecker@gnat.com>
4165
4166 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
4167 This function does not exist anymore.
4168
41692004-04-21 Thomas Quinot <quinot@act-europe.fr>
4170
4171 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
4172
4173 * link.c: Move variables to the __gnat name space.
4174
4175 * Makefile.in: list link.o explicitly when needed.
4176
4177 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
4178
41792004-04-21 Javier Miranda <miranda@gnat.com>
4180
4181 * einfo.adb (Original_Access_Type): New subprogram
4182 (Set_Original_Access_Type): New subprogram
4183 (Write_Field21_Name): Write the name of the new field
4184
4185 * einfo.ads (Original_Access_Type): New field present in access to
4186 subprogram types.
4187 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
4188 E_Anonymous_Access_Protected_Subprogram_Type.
4189
4190 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
4191 subprogram types.
4192
4193 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
4194 to anonymous access to subprogram types.
4195
4196 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
4197 to subprogram types.
4198
4199 * sem_ch3.adb (Access_Definition): Complete decoration of entities
4200 corresponding to anonymous access to subprogram types.
4201 (Analyze_Component_Declaration): Add new actual to the call to
4202 subprogram replace_anonymous_access_to_protected_subprogram.
4203 (Array_Type_Declaration): Add new actual to the call to subprogram
4204 replace_anonymous_access_to_protected_subprogram.
4205 (Process_Discriminants): Add new actual to the call to subprogram
4206 replace_anonymous_access_to_protected_subprogram.
4207 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
4208
4209 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
4210 formal.
4211
4212 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
4213 access to subprogram types.
4214
4215 * sem_util.adb (Has_Declarations): Addition of package_specification
4216 nodes.
4217
42182004-04-21 Ed Schonberg <schonberg@gnat.com>
4219
4220 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
4221 inlined flags to renamed entity only if in current unit.
4222
42232004-04-21 Thomas Quinot <quinot@act-europe.fr>
4224
4225 * s-parint.ads: Add DSA implementation marker.
4226
4227 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
4228 value of System.Partition_Interface.DSA_Implementation to determine
4229 what version of the distributed systems annex is available (no
4230 implementation, GLADE, or PolyORB).
4231
42322004-04-21 Joel Brobecker <brobecker@gnat.com>
4233
4234 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
4235
42362004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4237
4238 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
4239 with new type if alias sets differ.
4240 Fixes ACATS c41103b.
4241
42422004-04-21 Vincent Celier <celier@gnat.com>
4243
4244 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
4245 Add array Lang_Args for the language specific compiling argument
4246 switches.
4247
4248 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
4249
42502004-04-21 Sergey Rybin <rybin@act-europe.fr>
4251
4252 * gnat_rm.texi: Update the descripton of the Eliminate pragma
4253 according to the recent changes in the format of the parameters of the
4254 pragma (replacing Homonym_Number with Source_Location).
4255
7324bf49
AC
42562004-04-19 Arnaud Charlet <charlet@act-europe.fr>
4257
4258 * 5isystem.ads: Removed, unused.
4259
4260 * gnat_rm.texi: Redo 1.13 change.
4261
42622004-04-19 Robert Dewar <dewar@gnat.com>
4263
4264 * s-stoele.ads: Clean up definition of Storage_Offset (the new
4265 definition is cleaner, avoids the kludge of explicit Standard operator
4266 references, and also is consistent with a visible System.Address with
4267 no visible operations.
4268
4269 * s-geveop.adb: Add declarations to avoid assumption of visible
4270 operations on type System.Address (since these might not be available
4271 if Address is a non-private type for which the operations
4272 are made abstract).
4273
4274 * sem_eval.adb: Minor reformatting
4275
4276 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
4277 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
4278 reformatting (new function spec format).
4279
4280 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
4281 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
4282 s-caun64.adb: Add declarations to avoid assumption of visible
4283 operations on type System.Address (since these might not be available
4284 if Address is a non-private type for which the operations are made
4285 abstract).
4286
4287 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
4288
4289 * exp_intr.adb: Minor comment update
4290
4291 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
4292
4293 * 5omastop.adb: Add declarations to avoid assumption of visible
4294 operations on type System.Address (since these might not be available
4295 if Address is a non-private type for which the operations
4296 are made abstract).
4297
42982004-04-19 Vincent Celier <celier@gnat.com>
4299
4300 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
4301
4302 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
4303 defaulted to Ada.
4304
4305 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
4306 defaulted to Ada.
4307 Call Check with Process_Languages.
4308 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
4309 with Process_Languages.
4310 (Recursive_Check): New Boolean parameter Process_Languages. Call
4311 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
4312 Process_Languages.
4313
4314 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
4315
4316 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
4317 parameter Ada_Main, defaulted to True.
4318 Check for Ada specific characteristics only when Ada_Main is True.
4319
4320 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
4321
4322 * prj.adb: (Project_Empty): Add new Project_Data components.
4323
4324 * prj.ads: New types and tables for non Ada languages.
4325 (Project_Data): New components Languages, Impl_Suffixes,
4326 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
4327 Include_Path, Include_Data_Set.
4328
4329 * prj-env.ads, prj-env.adb: Minor reformatting
4330
4331 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
4332 Put subprograms in alphabetical order
4333
4334 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
4335 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
4336 Opt.Follow_Links.
4337
4338 * mlib-prj.adb: Back out modification in last version, as they are
4339 incorrect.
4340 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
4341
4342 * make.adb: (Mains): Moved to package Makeutl
4343 (Linker_Opts): Moved to package Makeutl
4344 (Is_External_Assignment): Moved to package Makeutl
4345 (Test_If_Relative_Path): Moved to package Makeutl
4346 (Gnatmake): Move sorting of linker options to function
4347 Makeutl.Linker_Options_Switches.
4348
8f9df7d8
VC
4349 * makeutl.ads, makeutl.adb: New files.
4350
7324bf49
AC
4351 * Makefile.in: Add makeutl.o to the object files for gnatmake
4352
4353 * makeusg.adb: Add line for new switch -eL.
4354
4355 * gnatls.adb (Image): New function.
4356 (Output_Unit): If in verbose mode, output the list of restrictions
4357 specified by pragmas Restrictions.
4358
4359 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
4360 Text_IO.
4361
4362 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
4363 needed, to put it in the range 1970 (included) - 2026 (excluded).
4364 (Time_Of): Do not shift Unix_Min_Year (1970).
4365 Shift the date by multiple of 56 years, if needed, to put it in the
4366 range 1970 (included) - 2026 (excluded).
4367
4368 * adaint.h, adaint.c (__gnat_set_executable): New function.
4369
43702004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4371
4372 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
4373 and pop GC context.
4374 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
4375 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
4376 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
4377 (tree_transform, case N_Code_Statement): Likewise.
4378 (gnat_expand_stmt, case LABEL_STMT): Don't look at
4379 LABEL_STMT_FIRST_IN_EH.
4380 (gnat_expand_stmt, case ASM_STMT): New case.
4381
4382 * utils2.c (build_unary_op): Properly set TREE_READONLY of
4383 UNCONSTRAINED_ARRAY_REF.
4384
4385 * utils.c (poplevel): Temporarily push/pop GC context around inline
4386 function expansion.
4387
4388 * decl.c (maybe_variable): Properly set TREE_READONLY of
4389 UNCONSTRAINED_ARRAY_REF.
4390 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
4391
4392 * ada-tree.def: (ASM_STMT): New.
4393
4394 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
4395 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
4396 ASM_STMT_INPUT): New.
4397 (ASM_STMT_CLOBBER): Likewise.
4398
43992004-04-19 Thomas Quinot <quinot@act-europe.fr>
4400
4401 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
4402 general rcheck mechanism to raise Program_Error for E.4(18), instead
4403 of a custom raiser in System.Partition_Interface.
4404 Part of general cleanup work before PolyORB integration.
4405
4406 * snames.ads, snames.adb: Add new runtime library entities and names
4407 for PolyORB DSA.
4408
4409 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
4410 exp_dist.
4411 (Build_Subprogram_Id): New subprogram provided by exp_dist
4412 Code reorganisation in preparation for PolyORB integration.
4413
4414 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
4415 exp_dist.
4416 (Build_Subprogram_Id): New subprogram provided by exp_dist
4417
4418 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
4419 actual parameter types for call to dereference of an
4420 access-to-subprogram type.
4421
4422 * rtsfind.ads: Add new runtime library entities and names for PolyORB
4423 DSA.
4424
4425 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
4426 instead, which has the same behaviour here since we never pass it a
4427 NULL pointer.
4428
4429 * link.c (run_path_option, Solaris case): Use -Wl, as for other
4430 platforms.
4431
4432 * Makefile.in: adjust object file lists for gnatlink and gnatmake
4433 to account for new dependency upon Interfaces.C.Strings + link.o
4434 For x86 FreeBSD, use 86numaux.
4435
4436 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
4437 from Mlib.Tgt to Mlib.
4438
4439 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
4440 target-independent.
4441
4442 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
4443 target-specific versions of this subprogram, now implemented as a
4444 target-independent function in Mlib.
4445
4446 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
4447 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
4448 (Linker_Library_Path_Option): Remove target-specific versions of this
4449 subprogram, now implemented as a target-independent function in Mlib.
4450
4451 * atree.adb: (Allocate_Initialize_Node): New subprogram.
4452 Factors out node table slots allocation.
4453 (Fix_Parents): New subprogram.
4454 Encapsulate the pattern of fixing up parent pointers for syntactic
4455 children of a rewritten node.
4456 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
4457 (Rewrite): Use New_Copy when creating saved copy of original node.
4458 (Replace): Use Copy_Node to copy nodes.
4459
44602004-04-19 Javier Miranda <miranda@gnat.com>
4461
4462 * sprint.adb (Sprint_Node_Actual): Give support to the new
4463 Access_To_Subprogram node available in Access_Definition nodes. In
4464 addition, give support to the AI-231 node fields: null-exclusion,
4465 all-present, constant-present.
4466
4467 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
4468
90afe2c9 4469 * sinfo.ads, sinfo.adb:
7324bf49
AC
4470 New field Access_To_Subprogram_Definition in Access_Definition nodes
4471
4472 * sem_ch6.adb (Process_Formals): Move here the code that creates and
4473 decorates internal subtype declaration corresponding to the
4474 null-excluding formal. This code was previously in Set_Actual_Subtypes.
4475 In addition, carry out some code cleanup on this code. In case of
4476 access to protected subprogram call
4477 Replace_Anonymous_Access_To_Protected_Subprogram.
4478 (Set_Actual_Subtypes): Code cleanup.
4479
4480 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
4481 Find_Type in case of anonymous access renamings. Add warning in case of
4482 null-excluding attribute used in anonymous access renaming.
4483
4484 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
4485 subprogram
4486
4487 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
4488 subprogram.
4489 (Access_Definition): In case of anonymous access to subprograms call
4490 the corresponding semantic routine to decorate the node.
4491 (Access_Subprogram_Declaration): Addition of some comments indicating
4492 some code that probably should be added here. Detected by comparison
4493 with the access_definition subprogram.
4494 (Analyze_Component_Declaration): In case of access to protected
4495 subprogram call Replace_Anonymous_Access_To_Protected.
4496 (Array_Type_Declaration): In case of access to protected subprogram call
4497 Replace_Anonymous_Access_To_Protected_Subprogram.
4498 (Process_Discriminants): In case of access to protected subprogram call
4499 Replace_Anonymous_Access_To_Protected_Subprogram.
4500
4501 * par.adb (P_Access_Definition): New formal that indicates if the
4502 null-exclusion part was present.
4503 (P_Access_Type_Definition): New formal that indicates if the caller has
4504 already parsed the null-excluding part.
4505
4506 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
4507 (P_Identifier_Declarations): Code cleanup and give support to renamings
4508 of anonymous access to subprogram types.
4509 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
4510 (P_Array_Type_Definition): Give support to AI-254.
4511 (P_Component_Items): Give support to AI-254.
4512 (P_Access_Definition): New formal that indicates if the header was
4513 already parsed by the caller.
4514 (P_Access_Type_Definition): New formal that indicates if the caller has
4515 already parsed the null-excluding part.
4516
4517 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
4518 call to P_Access_Definition.
4519
45202004-04-19 Geert Bosch <bosch@gnat.com>
4521
4522 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
4523 the delicate semantics of floating-point to integer conversion.
4524 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
4525
4526 * eval_fat.adb (Machine_Mantissa): Moved to spec.
4527 (Machine_Radix): New function.
4528
4529 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
4530 conversion checks.
4531 (Machine_Radix): New function also for use in conversion checks.
4532
45332004-04-19 Ed Schonberg <schonberg@gnat.com>
4534
4535 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
4536
4537 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
4538 to decorate the access-to-protected subprogram and the equivalent type.
4539
4540 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
4541 to anonymous access to subprogram types.
4542
4543 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
4544 constant-folding, for legality checks in contexts that require an RM
4545 static expression.
4546
4547 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
4548 temporary but stack checking is not enabled, increment serial number
4549 to so that symbol generation is consistent with and without stack
4550 checking.
4551
4552 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
4553 independent on whether stack checking is enabled, caller must check
4554 the corresponding flag.
4555
4556 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
4557 range checks.
4558 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
4559 parent if it has discriminants.
4560 (Build_Derived_Private_Type): Constructed full view does
4561 not come from source.
4562 (Process_Discriminants): Default discriminants on a tagged type are
4563 legal if this is the internal completion of a private untagged
4564 derivation.
4565
4566 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
4567 no constraint checks, because it corresponds to an existing object.
4568
4569 * sem_prag.adb (Process_Convention): Pragma applies
4570 only to subprograms in the same declarative part, i.e. the same unit,
4571 not the same scope.
4572
4573 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
4574 ignore type mismatch on a numeric conversion if expression comes from
4575 expansion.
4576
45772004-04-19 Sergey Rybin <rybin@act-europe.fr>
4578
4579 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
4580 Homonym_Number parameter, add processing for Source_Location parameter
4581 corresponding.
4582 (Check_Eliminated): Remove the check for homonym numbers, add the check
4583 for source location traces.
4584
4585 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
4586 with Arg_Source_Location corresponding to the changes in the format of
4587 the pragma.
4588
4589 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
4590 Eliminate pragma corresponding to the changes in the format of the
4591 pragma: Homonym_Number is replaced with Source_Location, two ways of
4592 distinguishing homonyms are mutially-exclusive.
4593
45942004-04-19 Joel Brobecker <brobecker@gnat.com>
4595
4596 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
4597
4598 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
4599 No_Dollar_In_Label, no longer necessary, as it is always True.
4600 (Strip_Suffixes): Likewise.
4601
46022004-04-19 Gary Dismukes <dismukes@gnat.com>
4603
4604 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
4605 modulus for compatibility with size clause on targets with 16-bit
4606 Integer.
4607
4608 * layout.adb (Discrimify): In the case of private types, set Vtyp to
4609 full type to fix type mismatches on calls to size functions for
4610 discriminant-dependent array components.
4611
46122004-04-19 Jerome Guitton <guitton@act-europe.fr>
4613
4614 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
4615 lib.
4616
46172004-04-19 Pascal Obry <obry@gnat.com>
4618
4619 * mdll-utl.adb (Locate): New version is idempotent.
4620
46212004-04-17 Laurent Guerby <laurent@guerby.net>
fa795c69
LG
4622
4623 PR ada/14988 (partial)
4624 * impunit.adb: Fix typo.
90afe2c9 4625
cce0244b
NN
46262004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
4627
4628 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
4629 and install-rts-cert targets. Remove all gnatlib and gnattools
4630 targets and all other rts-* targets (moved to libada). Remove (now)
4631 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
4632 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
4633
af152989
AC
46342004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4635
4636 * trans.c (tree_transform): Shortcut returning error_mark_node for
4637 statements in annotate_only_mode.
4638 (tree_transform, case N_Label, case N_Return_Statement,
4639 N_Goto_Statement): Make statement tree instead of generating code.
4640 (tree_transform, case N_Assignment_Statement): No longer check
4641 type_annotate_only.
4642 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
4643 RETURN_STMT): New.
4644 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
4645 New fcns.
4646 (gnat_to_gnu): Collect any RTL generated and deal with it.
4647 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
4648 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
4649 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
4650
4651 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
4652
4653 * ada-tree.def (EXPR_STMT): Fix typo in name.
4654 (BLOCK_STMT, IF_STMT): New nodes.
4655
4656 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
4657 LABEL_STMT_FIRST_IN_EH): New macros.
4658 (RETURN_STMT_EXPR): Likewise.
4659
4660 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
4661 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
4662
46632004-04-08 Thomas Quinot <quinot@act-europe.fr>
4664
4665 * atree.ads: Correct documentation on extended nodes.
4666
4667 * link.c: Set run_path_option for FreeBSD.
4668
46692004-04-08 Vincent Celier <celier@gnat.com>
4670
4671 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
4672 one of the ALI file, do not link with DEC lib.
4673
4674 * par.adb Remove the last two characters ("%s" or "%b") when checking
4675 if a language defined unit may be recompiled.
4676
46772004-04-08 Ed Schonberg <schonberg@gnat.com>
4678
4679 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
4680 removal of abstract operation leaves no possible interpretation for
4681 expression.
4682
4683 * sem_eval.adb (Eval_Qualified_Expression): Use
4684 Set_Raises_Constraint_Error on node when needed, so that it does not
4685 get optimized away by subsequent optimizations.
4686
4687 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
4688 operands even when they are not wrapped in a type conversion.
4689
46902004-04-08 Olivier Hainque <hainque@act-europe.fr>
4691
4692 * sem_prag.adb (Set_Exported): Warn about making static as result of
4693 export only when the export is coming from source. This may be not
4694 be true e.g. on VMS where we expand export pragmas for exception codes
4695 together with imported or exported exceptions, and we don't want the
4696 user to be warned about something he didn't write.
4697
46982004-04-08 Thomas Quinot <quinot@act-europe.fr>
4699
4700 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
4701 duplication between normal entities and those declared as renamings.
4702 No functional change.
4703
90afe2c9 4704 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
af152989
AC
4705 inline functions returning an unconstrained result.
4706
47072004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
4708
4709 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
4710 conform to what other front-ends do.
4711
47122004-04-08 Doug Rupp <rupp@gnat.com>
4713
4714 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
4715 libraries.
4716
3984e89a
AC
47172004-04-06 Pascal Obry <obry@gnat.com>
4718
4719 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
4720
4721 * osint.adb (Program_Name): Do not look past a directory separator.
4722
47232004-04-06 Thomas Quinot <quinot@act-europe.fr>
4724
4725 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
4726
4727 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
4728 requirement for preserving a copy of the original assignment node.
4729
4730 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
4731
47322004-04-06 Olivier Hainque <hainque@act-europe.fr>
4733
4734 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
4735 when supported.
4736
47372004-04-06 Ed Schonberg <schonberg@gnat.com>
4738
4739 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
4740 operator calls in functional notation, and apply
4741 Universal_Interpretation to operands, not to their type.
4742
47432004-04-06 Robert Dewar <dewar@gnat.com>
4744
4745 * 5wdirval.adb: Minor reformatting
4746
47472004-04-06 Ed Falis <falis@gnat.com>
4748
4749 * gnat_rm.texi: Improve a reference to the GCC manual
4750
30c20106
AC
47512004-04-05 Vincent Celier <celier@gnat.com>
4752
4753 * adaint.h, adaint.c: Add function __gnat_named_file_length
4754
4755 * impunit.adb: Add Ada.Directories to the list
4756
4757 * Makefile.in: Add VMS and Windows versions of
4758 Ada.Directories.Validity package body.
4759
4760 * Makefile.rtl: Add a-direct and a-dirval
4761
4762 * mlib-tgt.ads: Minor comment update.
4763
4764 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
4765 a-direct.ads, a-direct.adb: New files.
4766
47672004-04-05 Vincent Celier <celier@gnat.com>
4768
4769 PR ada/13620
4770 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
4771 just to the compiler.
4772
47732004-04-05 Robert Dewar <dewar@gnat.com>
4774
4775 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
4776 returned string is 1.
4777
4778 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
4779
4780 * eval_fat.ads: Minor reformatting
4781
4782 * g-curexc.ads: Document that lower bound of returned string values
4783 is always one.
4784
4785 * gnatlink.adb: Add ??? comment for previous change
4786 (need to document why this is VMS specific)
4787
4788 * s-stoele.ads: Minor reformatting
4789
4790 * tbuild.ads: Minor reformatting throughout (new function specs)
4791
4792 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
4793 after WITH.
4794
4795 * scng.adb: Minor reformatting
4796
47972004-04-05 Geert Bosch <bosch@gnat.com>
4798
4799 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
4800 (Leading_Part): Still perform truncation to machine number if the
4801 specified radix_digits is greater or equal to machine_mantissa.
4802
48032004-04-05 Javier Miranda <miranda@gnat.com>
4804
4805 * par-ch3.adb: Complete documentation of previous change
4806 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
4807 (aliased must appear before constant).
4808
4809 * par-ch4.adb: Complete documentation of previous change.
4810
4811 * par-ch6.adb: Complete documentation of previous change.
4812
4813 * sinfo.ads: Fix typo in commment.
4814
48152004-04-05 Ed Schonberg <schonberg@gnat.com>
4816
4817 * sem_ch3.adb (Inherit_Components): If derived type is private and has
4818 stored discriminants, use its discriminants to constrain parent type,
4819 as is done for non-private derived record types.
4820
4821 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
4822 Ada 2005 AI-310: an abstract non-dispatching operation is not a
4823 candidate interpretation in an overloaded call.
4824
4825 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
4826 expression is Null and target type is not an access type (e.g. a
4827 non-private address type).
4828
48292004-04-05 Thomas Quinot <quinot@act-europe.fr>
4830
4831 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
4832 statement whose right-hand side is an inlined call, save a copy of the
4833 original assignment subtree to preserve enough consistency for
4834 Analyze_Assignment to proceed.
4835
4836 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
4837 complete assignment subtree which is now unnecessary, as the expansion
4838 of inlined call has been improved to preserve a consistent assignment
4839 tree. Note_Possible_Modification must be called only
4840 after checks have been applied, or else unnecessary checks will
4841 be generated.
4842
4843 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
4844 of explicit dereferences that do not Come_From_Source:
4845 - be selective on cases where we must go back to the dereferenced
4846 pointer (an assignment to an implicit dereference must not be
4847 recorded as modifying the pointer);
4848 - do not rely on Original_Node being present (Analyze_Assignment
4849 calls Note_Possible_Modification on a copied tree).
4850
4851 * sem_warn.adb (Check_References): When an unset reference to a pointer
4852 that is never assigned is encountered, prefer '<pointer> may be null'
4853 warning over '<pointer> is never assigned a value'.
4854
48552004-04-05 Ramon Fernandez <fernandez@gnat.com>
4856
4857 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
4858 the ABI.
4859
48602004-04-05 Olivier Hainque <hainque@act-europe.fr>
4861
4862 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
4863 libexc. We currently don't reference anything in this library and
4864 linking it in triggers linker warnings we don't want to see.
4865
4866 * init.c: Update comments.
4867
4f976745
RK
48682004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4869
4870 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
4871 * utils.c (create_field_decl): Likewise.
4872 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
4873
6da7d579
AC
48742004-04-02 Arnaud Charlet <charlet@act-europe.fr>
4875
4876 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
4877 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
4878 Add info directory entry and category.
4879
18c6ada9
JH
48802004-04-02 Jan Hubicka <jh@suse.cz>
4881
4882 * utils.c: Include function.h
4883 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
4884
7cd4527e
AC
48852004-04-01 Arnaud Charlet <charlet@act-europe.fr>
4886
4887 PR ada/14150
4888 * Make-lang.in: Clean up generation of documentation
4889
4890 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
4891
4892 * xgnatug.adb: Removed, replaced by xgnatugn.adb
4893
4894 * xgnatugn.adb: Replaces xgnatug.adb
4895
4896 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
4897
4898 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
4899
4900 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
4901 gnat_ug_wnt.texi: Removed.
4902
0c250f07
AC
49032004-04-01 Arnaud Charlet <charlet@act-europe.fr>
4904
4905 * utils2.c: Update copyright notice.
4906
6b6fcd3e
AC
49072004-04-01 Robert Dewar <dewar@gnat.com>
4908
4909 * checks.adb: Minor reformatting throughout
4910 Note that prev checkin added RM reference to alignment warning
4911
49122004-04-01 Ed Schonberg <schonberg@gnat.com>
4913
4914 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
4915 non-static when building aggregate for bit-packed array.
4916
4917 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
4918 function call that is itself the actual in a procedure call, build
4919 temporary for it.
4920
4921 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
4922 a string literal, create a temporary for it, constant folding only
4923 handles scalars here.
4924
49252004-04-01 Vincent Celier <celier@gnat.com>
4926
4927 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
4928 Error_Msg_SP): New empty procedures to instantiate the Scanner.
4929 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
4930 tokens.
4931 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
4932 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
4933 and get the checksum.
4934
4935 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
4936 already in the Q.
4937 Increase the Marking_Label at the end of the Multiple_Main_Loop,
4938 instead of at the beginning.
4939
4940 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
4941 directly.
4942 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
4943 on VMS.
4944
4945 * osint.ads (Multi_Unit_Index_Character): New Character global variable
4946
4947 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
4948 not '~' directly.
4949
4950 * par.adb: Remove test on file name to detect language defined units.
4951 Add test on unit name, after parsing, to detect language defined units
4952 that are not compiled with -gnatg (except System.RPC and its children)
4953
4954 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
4955 following units without style checking.
4956
4957 * switch-c.adb: Change -gnatC to -gnateI
4958
4959 * usage.adb: Document new switch -gnateInnn
4960
4961 * scng.adb (Accumulate_Token_Checksum): New procedure
4962 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
4963 word or literal number.
4964 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
4965 numbers.
4966
49672004-04-01 Thomas Quinot <quinot@act-europe.fr>
4968
4969 * a-tasatt.adb,
4970 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
4971 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
4972 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
4973 5vtpopde.adb: Add missing 'constant' keywords.
4974
49752004-04-01 Javier Miranda <miranda@gnat.com>
4976
4977 * par-ch4.adb: (P_Allocator): Code cleanup
4978
4979 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
4980 attribute.
4981
4982 * sinfo.ads: Complete documentation of previous change
4983
49842004-04-01 Pascal Obry <obry@gnat.com>
4985
4986 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
4987 only on VMS. This special handling was done because an old GNU/ld bug
4988 on Windows which has been fixed.
4989
49902004-04-01 GNAT Script <nobody@gnat.com>
4991
4992 * Make-lang.in: Makefile automatically updated
4993
8df83eae
RK
49942004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4995
4996 * decl.c (gnat_to_gnu_entity, make_type_from_size):
4997 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
4998 * trans.c (tree_transform, convert_with_check): Likewise.
4999 * utils.c (gnat_signed_or_unsigned_type): Likewise.
5000 (build_vms_descriptor, unchecked_convert): Likewise.
5001 * utils2.c (nonbinary_modular_operation): Likewise.
5002
2820d220
AC
50032004-03-29 Javier Miranda <miranda@gnat.com>
5004
5005 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
5006 (Install_Null_Excluding_Check): Local subprogram that determines whether
5007 an access node requires a runtime access check and if so inserts the
5008 appropriate run-time check.
5009 (Apply_Access_Check): Call Install_Null_Excluding check if required
5010 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
5011
5012 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
5013
5014 * einfo.ads: Fix typo in comment
5015
5016 * exp_ch3.adb (Build_Assignment): Generate conversion to the
5017 null-excluding type to force the corresponding run-time check.
5018 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
5019 type to force the corresponding run-time check.
5020
5021 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
5022 the null-excluding type to force the corresponding run-time check.
5023
5024 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
5025 case of access types unless they have the null-excluding attribute.
5026
5027 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
5028 part.
5029
5030 * exp_util.ads: Fix typo in comment
5031
5032 * par.adb (P_Null_Exclusion): New subprogram
5033 (P_Subtype_Indication): New formal that indicates if the null-excluding
5034 part has been scanned-out and it was present
5035
5036 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
5037
5038 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
5039 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
5040 type to force the corresponding run-time check
5041 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
5042 components
5043 (Resolve_Array_Aggregate): Carry out some static checks
5044 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
5045
5046 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
5047 attribute must be set only if specified by means of the null-excluding
5048 part. In addition, we must also propagate the access-constant attribute
5049 if present.
5050 (Access_Subprogram_Declaration, Access_Type_Declaration,
5051 Analyze_Component_Declaration, Analyze_Object_Declaration,
5052 Array_Type_Declaration, Process_Discriminants,
5053 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
5054 and carry out some static checks.
5055 (Build_Derived_Access_Type): Set the null-excluding attribute
5056 (Derived_Type_Declaration, Process_Subtype): Carry out some static
5057 checks.
5058
5059 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
5060
5061 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
5062
5063 * sem_ch6.adb (Process_Formals): Carry out some static checks.
5064 (Set_Actual_Subtypes): Generate null-excluding subtype if the
5065 null-excluding part was present; it is not required to be done here in
5066 case of anonymous access types.
5067 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
5068 value.
5069
5070 * sem_res.adb (Resolve_Actuals): Carry out some static check
5071 (Resolve_Null): Allow null in anonymous access
5072
5073 * sinfo.adb: New subprogram Null_Exclusion_Present
5074 All_Present and Constant_Present available on access_definition nodes
5075
5076 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
5077 object_declaration, derived_type_definition, component_definition,
5078 discriminant_specification, access_to_object_definition,
5079 access_function_definition, allocator, access_procedure_definition,
5080 access_definition, parameter_specification, All_Present and
5081 Constant_Present flags available on access_definition nodes.
5082
50832004-03-29 Robert Dewar <dewar@gnat.com>
5084
5085 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
5086 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
5087 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
5088 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
5089 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
5090 sem_prag.adb: Updates to handle multiple units/file
5091
5092 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
5093
5094 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
5095 sem_util.adb: Minor reformatting
5096
5097 * sem_ch12.adb: Add comment for previous change
5098
50992004-03-29 Laurent Pautet <pautet@act-europe.fr>
5100
5101 * osint.adb (Executable_Prefix): Set Exec_Name to the current
5102 executable name when not initialized. Otherwise, use its current value.
5103
5104 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
5105 initialize it to another executable name than the current one. This
5106 allows to configure paths for an executable name (gnatmake) different
5107 from the current one (gnatdist).
5108
51092004-03-29 Ed Schonberg <schonberg@gnat.com>
5110
5111 * exp_ch6.adb (Expand_Call): A call to a function declared in the
5112 current unit cannot be inlined if it appears in the body of a withed
5113 unit, to avoid order of elaboration problems in gigi.
5114
5115 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
5116 information for protected (wrapper) operation as well, to simplify gdb
5117 use.
5118
5119 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
5120 protected body, indicate that the entity for the generated spec comes
5121 from source, to ensure that references are properly generated for it.
5122 (Build_Body_To_Inline): Do not inline a function that returns a
5123 controlled type.
5124
5125 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
5126 apply convention to homonyms that are declared explicitly.
5127
5128 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
5129 that renames an equality operator and the operands are overloaded,
5130 resolve them with the declared formal types, before rewriting as an
5131 operator.
5132
51332004-03-29 GNAT Script <nobody@gnat.com>
5134
5135 * Make-lang.in: Makefile automatically updated
5136
6d11af89
AC
51372004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
5138
5139 * memtrack.adb: Log realloc calls, which are treated as free followed
5140 by alloc.
5141
51422004-03-25 Vincent Celier <celier@gnat.com>
5143
5144 * prj-makr.adb (Process_Directories): Detect when a file contains
5145 several units. Do not include such files in the config pragmas or
5146 in the naming scheme.
5147
5148 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
5149 Resolve links only when not in Trusted_Mode.
5150 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
5151 Do not resolve links for the display names.
5152
5153 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
5154 resolve links when computing the display names.
5155
51562004-03-25 Thomas Quinot <quinot@act-europe.fr>
5157
5158 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
5159 attribute reference does not denote a subtype, it can be any
5160 expression that has a classwide type, potentially after an implicit
5161 dereference. In particular, the prefix can be a view conversion for
5162 a classwide type (for which Is_Object_Reference holds), but it can
5163 also be a value conversion for an access-to-classwide type. In the
5164 latter case, there is an implicit dereference, and the original node
5165 for the prefix does not verify Is_Object_Reference.
5166
5167 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
5168 conversion of a discriminant-dependent component of a mutable object
5169 is one itself.
5170
51712004-03-25 Ed Schonberg <schonberg@gnat.com>
5172
5173 * freeze.adb (Freeze_Entity): When an inherited subprogram is
5174 inherited, has convention C, and has unconstrained array parameters,
5175 place the corresponding warning on the derived type declaration rather
5176 than the original subprogram.
5177
5178 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
5179 indication on renaming declaration, if formal has a box and actual
5180 is absent.
5181
5182 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
5183 determine whether to generate an implicit or explicit reference to
5184 the renamed entity.
5185
5186 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
5187 subprogram renaming comes from a defaulted formal subprogram in an
5188 instance.
5189
51902004-03-25 Gary Dismukes <dismukes@gnat.com>
5191
5192 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
5193 value expressions to ensure that calls within a component definition
5194 will be checked (since those are evaluated during the record type's
5195 elaboration).
5196
51972004-03-25 Arnaud Charlet <charlet@act-europe.fr>
5198
5199 * s-tpobop.adb: Code clean up:
5200 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
5201 code.
5202 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
5203
52042004-03-25 Jose Ruiz <ruiz@act-europe.fr>
5205
5206 * Makefile.in: Clean up in the ravenscar run time.
5207
22421b79
RK
52082004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5209
5210 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
5211 of No_Strict_Aliasing to build_pointer_type_for_mode.
5212 * utils.c (update_pointer_to): Walk pointer and ref chains.
5213
24105bab
AC
52142004-03-22 Cyrille Comar <comar@act-europe.fr>
5215
5216 * ali.ads: Fix Comment about Dynamic_Elab.
5217
5218 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
5219 Has_RACW, Is_Generic, etc.)
5220 (Output_Object, Gnatls): Take into account ALI files not attached to
5221 an object.
5222
52232004-03-22 Vincent Celier <celier@gnat.com>
5224
5225 * gprep.adb: Change all String_Access to Name_Id
5226 (Is_ASCII_Letter): new function
5227 (Double_File_Name_Buffer): New procedure
5228 (Preprocess_Infile_Name): New procedure
5229 (Process_Files): New procedure
5230 (Gnatprep): Check if output and input are existing directories.
5231 Call Process_Files to do the real job.
5232
52332004-03-22 Robert Dewar <dewar@gnat.com>
5234
5235 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
5236 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
5237
52382004-03-22 Sergey Rybin <rybin@act-europe.fr>
5239
5240 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
5241 case when the source contains only comments.
5242
52432004-03-22 Ed Schonberg <schonberg@gnat.com>
5244
5245 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
5246 declaration for a child subprogram body that acts as a spec, indicate
5247 that the entity in the declaration needs debugging information.
5248
5249 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
5250 full view if the subtype is created for a constrained record component;
5251 gigi has enough information to construct the record, and there is no
5252 place in the tree for the declaration.
5253
5254 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
5255 serial number for the dummy body that is built for analysis, to avoid
5256 inconsistencies in the generation of internal names when compiling
5257 with -gnatN.
5258
52592004-03-22 Thomas Quinot <quinot@act-europe.fr>
5260
5261 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
5262 object.
5263
52642004-03-22 GNAT Script <nobody@gnat.com>
5265
5266 * Make-lang.in: Makefile automatically updated
5267
6fce44af
RK
52682004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5269
5270 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
5271 * trans.c (tree_transform, emit_index_check): Likewise.
5272 * utils.c (build_template): Likewise.
5273 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
5274 (maybe_unconstrained_array, unchecked_convert): Likewise.
5275 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
5276 (build_unary_op): Likewise.
5277 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
5278 (fill_vms_descriptor): Likewise.
5279 (build_call_alloc_dealloc): Likewise.
5280 ALIGN is unsigned.
5281 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
5282
802f6d4b
JM
52832004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
5284
5285 PR other/14630
5286 * gnat_ug.texi: Add info directory category and entry.
5287 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
5288 gnat_ug_wnt.texi: Regenerate.
5289
30f3b32b
AC
52902004-03-19 Arnaud Charlet <charlet@act-europe.fr>
5291
5292 * ada-tree.h: Update copyright notice.
5293 Minor reformatting.
5294
52952004-03-19 Olivier Hainque <hainque@act-europe.fr>
5296
5297 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
5298 as regular exception objects and not as mere integers representing the
5299 condition code. The latter approach required some dynamics to mask off
5300 severity bits, which did not fit well into the GCC table based model.
5301 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
5302 exception data objects. We don't it and it would conflict with the other
5303 external symbol we have to generate for such exceptions.
5304
5305 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
5306 the special code for VMS exceptions, since these are now represented
5307 as regular exceptions objects.
5308
7548281d
RK
53092004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5310
5311 * decl.c (debug_no_type_hash): Remove.
5312 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
5313 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
5314
7324bf49 53152004-03-19 Laurent Guerby <laurent@guerby.net>
dbee7ab9 5316
90afe2c9 5317 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
dbee7ab9 5318 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
90afe2c9 5319
eb34af89
RK
53202004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5321
5322 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
5323 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
5324 (TYPE_RM_SIZE_INT): Directly use type.values.
5325 (TREE_LOOP_ID): Clean up check.
5326 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
5327 TYPE_VALUES, not TYPE_FIELDS.
5328 * trans.c (convert_with_check): Delay access of bounds of basetype
5329 until sure is numeric.
5330
a336eaca
AC
53312004-03-18 Arnaud Charlet <charlet@act-europe.fr>
5332
5333 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
5334
5335 Code clean up:
5336 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
5337 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
5338 Specific.Set instead of direct call to e.g pthread_setspecific.
5339
53402004-03-18 Thomas Quinot <quinot@act-europe.fr>
5341
5342 * adaint.c: Update comments.
5343
5344 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
5345 GNATLIB_SHARED for FreeBSD.
5346
53472004-03-18 Jose Ruiz <ruiz@act-europe.fr>
5348
5349 * init.c [VxWorks]: Do not fix the stack size for the environment task.
5350 When needed (stack checking) the stack size is retrieved
5351 from the VxWorks kernel.
5352
5353 * Makefile.in: Flag -nostdinc is required when building the run time
5354 for avoiding looking for files in the base compiler.
5355 Add the VxWorks specific version of the package body for
5356 System.Stack_checking.Operations (5zstchop.adb).
5357
5358 * Make-lang.in: Add the object file for
5359 System.Stack_Checking.Operations.
5360
5361 * Makefile.rtl: Add object file for the package
5362 System.Stack_Checking.Operations.
5363
5364 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
5365
5366 * s-stache.ads, s-stache.adb: Move the operations related to stack
5367 checking from this package to package System.Stack_Checking.Operations.
5368 This way, stack checking operations are only linked in the final
5369 executable when using the -fstack-check flag.
5370
53712004-03-18 Doug Rupp <rupp@gnat.com>
5372
5373 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
5374 Reorganize ifeq's.
5375
5376 * 5qsystem.ads, 5xcrtl.ads: New files.
5377
53782004-03-18 Vincent Celier <celier@gnat.com>
5379
5380 * prj.adb (Reset): Reset hash table Files_Htable
5381
5382 * prj-env.adb (Source_Paths, Object_Paths): New tables.
5383 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
5384 the procedures Add_To_Path_File.
5385 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
5386 making sure that each directory is present only once and, for object
5387 dirs, when a directory already present is added, the duplicate is
5388 removed and the directory is always put as the last in the table.
5389 Write the path files at the end of these accumulations.
5390
5391 * prj-nmsc.adb (Record_Source): Add source file name in hash table
5392 Files_Htable for all sources.
5393
5394 * prj-proc.adb (Process): Remove restrictions between not directly
5395 related extending projects.
5396
53972004-03-18 Emmanuel Briot <briot@act-europe.fr>
5398
5399 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
5400 (Find_Sources): Minor speed optimization.
5401
5402 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
5403 parameter Trusted_Mode.
5404
54052004-03-18 Sergey Rybin <rybin@act-europe.fr>
5406
5407 * scn.adb (Determine_License): Take into account a degenerated case
5408 when the source contains only comments.
5409
54102004-03-18 Ed Schonberg <schonberg@gnat.com>
5411
5412 * sem_warn.adb (Check_References): For a warning on a selected
5413 component that does not come from source, locate an uninitialized
5414 component of the record type to produce a more precise error message.
5415
e6f69614
AC
54162004-03-15 Jerome Guitton <guitton@act-europe.fr>
5417
5418 * 3zsoccon.ads: Fix multicast options.
5419
5420 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
5421 in the spec.
5422
54232004-03-15 Robert Dewar <dewar@gnat.com>
5424
5425 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
5426 pragma used for a private type.
5427
5428 * lib-xref.adb (Generate_Reference): Do not generate warning if
5429 reference is in a different unit from the pragma Unreferenced.
5430
5431 * 5vtpopde.adb: Minor reformatting
5432 Fix casing of To_Task_ID
5433
5434 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
5435 flag if we have an unchecked conversion to an access type in the same
5436 unit.
5437
54382004-03-15 Geert Bosch <bosch@gnat.com>
5439
5440 * a-ngcoty.adb (Modulus): In alternate formula for large real or
5441 imaginary parts, use Double precision throughout.
5442
5443 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
5444 we want to be able to compile run-time with -gnata for testing, but
5445 this may also be instantiated in user code that is compiled with -gnata.
5446
54472004-03-15 Olivier Hainque <hainque@act-europe.fr>
5448
5449 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
5450 codes. Having a separate type for this is useful to enforce consistency
5451 throughout the various run-time units.
5452 (Exception_Data): Use Exception_Code for Import_Code.
5453
5454 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
5455 Natural and Integer in various places.
5456 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
5457 with the severity bits masked off.
5458 (Register_VMS_Exception): Handle the additional exception data pointer
5459 argument.
5460
5461 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
5462 component, now reflected by an exported accessor.
5463 (is_handled_by): New routine to compute whether the propagated
5464 occurrence matches some handler choice specification. Extracted out of
5465 get_action_description_for, and expanded to take care of the VMS
5466 specifities.
5467 (get_action_description_for): Use is_handled_by instead of an explicit
5468 complex condition to decide if the current choice at hand catches the
5469 propagated occurrence.
5470
5471 * raise.h (Exception_Code): New type for C.
5472
5473 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
5474 System.Standard_Library.Exception_Code, to allow references from the
5475 pragma import/export expander.
5476
5477 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
5478 New accessors to allow easy access to GNAT exception data
5479 characteristics.
5480 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
5481 redundant Handled_By_Others component, helper for the personality
5482 routine which will now be able to call the appropriate exception data
5483 accessor instead.
5484
5485 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
5486 component of Standard_Exception_Type to be the closest possible to
5487 Exception_Code in System.Standard_Library, that we cannot get at this
5488 point. Expand a ??? comment to notify that this type node should
5489 probably be rewritten later on.
5490
5491 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
5492 registration call to include a pointer to the exception object in the
5493 arguments.
5494
5495 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
5496 instead of int and explicit bitmasks.
5497
54982004-03-15 Vincent Celier <celier@gnat.com>
5499
5500 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
5501 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
5502
5503 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
5504 longer needed now that it is in the spec of
5505 System.Tasking.Task_Attributes.
5506
5507 * adaint.h, adaint.c: (__gnat_create_output_file): New function
5508
5509 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
5510
5511 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
5512
5513 * make.adb (Gnatmake): Do not check the executable suffix; it is being
5514 taken care of in Scan_Make_Arg.
5515 (Scan_Make_Arg): Add the executable suffix only if the argument
5516 following -o, in canonical case, does not end with the executable
5517 suffix. When in verbose mode and executable file name does not end
5518 with executable suffix, output the executable name, in canonical case.
5519
5520 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
5521 to avoid warnings when instantiating Ada.Task_Attributes.
5522 Minor reformating.
5523
5524 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
5525 in the correct order.
5526
5527 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
5528 redirect standard output and error to a file for the invocation of the
5529 compiler, then read the file.
5530
5531 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
5532 directory, instead of the Value.
5533 (Find_Source_Dirs): Remove useless code & comments.
5534
55352004-03-15 Ed Schonberg <schonberg@gnat.com>
5536
5537 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
5538 tagged type is inherited, and the parent operation is not frozen yet,
5539 force generation of a freeze node for the inherited operation, so the
5540 corresponding dispatch entry is properly initialized.
5541 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
5542 when looking for user-defined equality operation.
5543
5544 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
5545 boolean when locating primitive equality of tagged component.
5546
5547 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
5548 bit-aligned field and the right-hand side a string literal, introduce
5549 a temporary before expanding assignment into a loop.
5550
5551 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
5552 priority in full, to ensure that any expanded subepxressions of it are
5553 elaborated in the scope of the init_proc.
5554
5555 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
5556 after object declaration, skipping over code that may have been
5557 generated for validity checks.
5558
5559 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
5560 discriminants, ignore the known discriminants of its full view, if
5561 any, to check legality.
5562
5563 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
5564 component if type has unknown discriminants.
5565 (Analyze_Private_Extension_Declaration): Discriminant constraint is
5566 null if type has unknown discriminants.
5567
5568 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
5569 for end label when present.
5570
5571 * s-fileio.adb (Open): When called with a C_Stream, use given name for
5572 temporary file, rather than an empty string.
5573
55742004-03-15 Ed Falis <falis@gnat.com>
5575
5576 * s-thread.adb: Removed, no longer used.
5577
55782004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5579
5580 * decl.c (target.h): Now include.
5581 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
5582 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
5583 (validate_size): For POINTER_TYPE, get smallest size permitted on
5584 machine.
5585
5586 * fe.h: Sort Einfo decls and add Set_Mechanism.
5587
5588 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
5589 (ada/decl.o): Depends on target.h.
5590
5591 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
5592 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
5593
55942004-03-15 Thomas Quinot <quinot@act-europe.fr>
5595
5596 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
5597
5598 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
5599 Insert_Dereference_Action when rewriting an implicit dereference into
5600 an explicit one, this will be taken care of during expansion of the
5601 explicit dereference.
5602 (Expand_N_Slice): Same. Always do the rewriting, even for the case
5603 of non-packed slices, since the dereference action generated by
5604 expansion of the explicit dereference is needed in any case.
5605 (Expand_N_Selected_Component): When rewriting an implicit dereference,
5606 analyze and resolve the rewritten explicit dereference so it is seen
5607 by the expander.
5608 (Insert_Dereference_Action): This procedure is now called only for the
5609 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
5610 dereferences that do not come from source (including explicit
5611 dereferences resulting from rewriting implicit ones), but do not
5612 recursively insert a check for the dereference nodes contained within
5613 the check.
5614 (Insert_Dereference_Action): Clarify and correct comment.
5615
e4c9c075
PB
56162004-03-08 Paolo Bonzini <bonzini@gnu.org>
5617
5618 PR ada/14131
5619 Move language detection to the top level.
5620 * config-lang.in: Build by default.
5621
8a6a52dc
AC
56222004-03-05 Robert Dewar <dewar@gnat.com>
5623
5624 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
5625
5626 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
5627 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
90afe2c9 5628 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
8a6a52dc
AC
5629 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
5630 unchecked conversion to spec to avoid warnings.
5631
5632 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
5633 to Task_ID
5634
5635 * 7stpopsp.adb: Correct casing in To_Task_ID call
5636
5637 * a-strsea.ads, a-strsea.adb: Minor reformatting
5638
5639 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
5640
5641 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
5642 Adjust Max_Msg_Length to be clearly large enough.
5643
5644 * fe.h: Define In_Same_Source_Unit
5645
5646 * osint.adb: Add pragma Warnings Off to suppress warnings
5647 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
5648 aliasing warnings.
5649
5650 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
5651
5652 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
5653
5654 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
5655
5656 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
5657
5658 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
5659
5660 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
5661 node. We now do generate them for gcc back end.
5662
5663 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
5664 warning.
5665
5666 * sinput-c.adb: Fix bad name in header.
5667 Add pragma Warnings Off to suppress aliasing warning.
5668
5669 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
5670
5671 * snames.h, snames.ads, snames.adb: Add entry for pragma
5672 No_Strict_Aliasing.
5673
56742004-03-05 Vincent Celier <celier@gnat.com>
5675
5676 * prj-com.ads: Add hash table Files_Htable to check when a file name
5677 is already a source of another project.
5678
5679 * prj-nmsc.adb (Record_Source): Before recording a new source, check
5680 if its file name is not already a source of another project. Report an
5681 error if it is.
5682
5683 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
5684 source file name, call gnatpp with all the sources of the main project.
5685
5686 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
5687 of file names.
5688
5689 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
5690 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
5691 /RUNTIME_SYSTEM=, converted to --RTS=
5692 /NOTABS, converted to -notabs
5693
56942004-03-05 Pascal Obry <obry@gnat.com>
5695
5696 * make.adb: Minor reformatting.
5697
56982004-03-05 Ed Schonberg <schonberg@gnat.com>
5699
5700 Part of implemention of AI-262.
5701 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
5702
5703 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
5704 procedure.
5705
5706 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
5707 when component type is a partially constrained class-wide subtype.
5708 (Constrain_Discriminated_Type): If parent type has unknown
5709 discriminants, a constraint is illegal, even if full view has
5710 discriminants.
5711 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
5712 with unknown discriminants whose full view is a discriminated record.
5713
5714 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
5715 flag, to handle properly derivations of tagged types with unknown
5716 discriminants.
5717 (Analyze_Package_Spec, Analyze_Package_Body): Install
5718 Private_With_Clauses before analyzing private part or body.
5719
5720 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
5721 Has_Discriminants can be true for a given type (documentation).
5722
57232004-03-05 Arnaud Charlet <charlet@act-europe.fr>
5724
5725 * s-restri.ads: Fix license (GPL->GMGPL).
5726
5727 * s-tassta.adb: Minor reformatting.
5728
5729 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
5730 by calls to Exit_One_ATC_Level, since additional clean up is performed
5731 by this function.
5732
5733 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
5734 by calls to Exit_One_ATC_Level, since additional clean up is performed
5735 by this function.
5736
57372004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5738
5739 * trans.c: Reflect GCC changes to fix bootstrap problem.
5740 Add warning for suspicious aliasing unchecked conversion.
5741
57422004-03-05 GNAT Script <nobody@gnat.com>
5743
5744 * Make-lang.in: Makefile automatically updated
5745
555360a5
AC
57462004-03-02 Emmanuel Briot <briot@act-europe.fr>
5747
5748 * ali.adb (Read_Instantiation_Instance): Do not modify the
5749 current_file_num when reading information about instantiations, since
5750 this corrupts files in later references.
5751
57522004-03-02 Vincent Celier <celier@gnat.com>
5753
5754 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
5755 before checking if it is read-only.
5756
5757 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
5758 of SRC_DIRS and eliminate duplicates.
5759
5760 * gprcmd.adb: Replace command "path" with command "path_sep" to return
5761 the path separator.
5762 (Usage): Document path_sep
5763
5764 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
5765 C++ compiler. No need for a script.
5766 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
5767 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
5768 subst.
5769
5770 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
5771 where there are Ada sources.
5772 (Set_Ada_Paths): Only add to the include path the source dirs of project
5773 with Ada sources.
5774 (Add_To_Path): Add the Display_Values of the directories, not their
5775 Values.
5776
5777 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
5778 data.
5779
5780 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
5781 is not No_Name.
5782 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
5783 Value is canonicalized.
5784 (Language_Independent_Check): Do not copy Value to Display_Value when
5785 canonicalizing Value.
5786
5787 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
5788 path to find limited with cycles.
5789 (Parse_Single_Project): Use canonical cased path to find the end of a
5790 with cycle.
5791
57922004-03-02 Ed Schonberg <schonberg@gnat.com>
5793
5794 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
5795 and not a child unit.
5796
5797 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
5798 appear in a with_clause.
5799
5800 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
5801 only happen in type_annotate mode, do not try to elaborate it.
5802
5803 * exp_util.adb (Force_Evaluation): If expression is a selected
5804 component on the left of an assignment, use a renaming rather than a
5805 temporary to remove side effects.
5806
5807 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
5808 inlined instance body, which is analyzed before the end of the
5809 enclosing scope.
5810
58112004-03-02 Robert Dewar <dewar@gnat.com>
5812
5813 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
5814 sem_ch4.adb: Use new feature for substitution of keywords in VMS
5815
5816 * errout.ads, errout.adb: Implement new circuit for substitution of
5817 keywords in VMS.
5818
5819 * sem_case.adb (Analyze_Choices): Place message properly when case is
5820 a subtype reference rather than an explicit range.
5821
5822 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
5823
58242004-03-02 Doug Rupp <rupp@gnat.com>
5825
5826 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
5827
58282004-03-02 Thomas Quinot <quinot@act-europe.fr>
5829
5830 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
5831
58322004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5833
5834 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
5835 BLKmode bitfield.
5836
8a7988f5
AC
58372004-02-25 Robert Dewar <dewar@gnat.com>
5838
5839 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
5840 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
5841 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
5842 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
5843 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
5844 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
5845 the defining instance of the type to avoid aliasing problems.
5846 Fix copyright header. Fix bad comments in package header.
5847
5848 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
5849
58502004-02-25 Ed Schonberg <schonberg@gnat.com>
5851
5852 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
5853 rewritten as references when aliased through an address clause.
5854
5855 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
5856 whether call can be interpreted as an indirect call to the result of a
5857 parameterless function call returning an access subprogram.
5858
58592004-02-25 Arnaud Charlet <charlet@act-europe.fr>
5860
5861 Code clean up:
5862 * exp_ch7.adb (Make_Clean): Remove generation of calls to
5863 Unlock[_Entries], since this is now done by Service_Entries directly.
5864
5865 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
5866
5867 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
5868 Requeue_Call for better code readability. Change spec and update calls:
5869 PO_Service_Entries now unlock the PO on exit.
5870 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
5871 PO_Service_Entries.
5872
5873 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
5874
5875 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
5876
58772004-02-25 Sergey Rybin <rybin@act-europe.fr>
5878
5879 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
5880 protected subprogram call and analyzing the result of such expanding
5881 in case when the called protected subprogram is eliminated.
5882
5883 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
5884 names.
5885
58862004-02-25 Jerome Guitton <guitton@act-europe.fr>
5887
5888 * Makefile.in: Clean ups.
5889
6871ba5f
AC
58902004-02-23 Ed Schonberg <schonberg@gnat.com>
5891
5892 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
5893 protected operations if original subprogram is flagged as eliminated.
5894 (Expand_N_Subprogram_Body): For a protected operation, create
5895 discriminals for next operation before checking whether the operation
5896 is eliminated.
5897
5898 * exp_ch9.adb (Expand_N_Protected_Body,
5899 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
5900 for internal protected operations if the original subprogram is
5901 eliminated.
5902
5903 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
5904 declared in a single protected object.
5905
59062004-02-23 Vincent Celier <celier@gnat.com>
5907
5908 * prj-attr.adb: Make attribute Builder'Executable an associative array,
5909 case insensitive if file names are case insensitive, instead of a
5910 standard associative array.
5911
5912 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
5913 them as case insensitive on platforms where the file names are case
5914 sensitive.
5915
5916 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
5917 project file has already been parsed that canonical path are compared.
5918
59192004-02-23 Robert Dewar <dewar@gnat.com>
5920
5921 * sinput-c.ads: Correct bad unit title in header
5922
5923 * freeze.adb: Minor reformatting
5924
59252004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5926
5927 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
5928 nonaddressable COMPONENT_REF that is removing padding that we are
5929 taking the address of, take the address of the padded record instead
5930 if item is variable size.
5931
6e059adb
AC
59322004-02-20 Robert Dewar <dewar@gnat.com>
5933
5934 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
5935
59362004-02-20 Ed Schonberg <schonberg@gnat.com>
5937
5938 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
5939 itype references for the constrained designated type of a component
5940 whose base type is already frozen.
5941
59422004-02-20 Arnaud Charlet <charlet@act-europe.fr>
5943
5944 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
5945 avoid GCC warnings.
5946
59472004-02-20 Sergey Rybin <rybin@act-europe.fr>
5948
5949 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
5950 identifier for a phantom package that rewrites the formal package
5951 declaration with a box. The Add semantic decorations for the defining
5952 identifier from the original node (that represents the formal package).
5953
88e3a2a3
MK
59542004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
5955
5956 * Make-lang.in (ada/stamp-sdefault): Use the top level
5957 move-if-change.
5958
4221057e
RH
59592004-02-19 Richard Henderson <rth@redhat.com>
5960
5961 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
5962
5c1c8a03
AC
59632004-02-18 Emmanuel Briot <briot@act-europe.fr>
5964
5965 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
5966 Scan_ALI can be used for multiple ALI files without reinitializing
5967 between calls.
5968
59692004-02-18 Robert Dewar <dewar@gnat.com>
5970
5971 * debug.adb: Minor reformatting.
5972
59732004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5974
5975 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
5976 to zero if there is an address clause.
5977
59782004-02-18 Thomas Quinot <quinot@act-europe.fr>
5979
5980 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
5981
59822004-02-18 Gary Dismukes <dismukes@gnat.com>
5983
5984 * layout.adb (Layout_Component_List): Revise generation of call to
5985 discriminant-checking function to pass selections of all of the type's
5986 discriminants rather than just the variant-controlling discriminant.
5987
59882004-02-18 Olivier Hainque <hainque@act-europe.fr>
5989
5990 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
5991 fail in the current setup and triggers spurious system error messages.
5992 Pretend it occurred and failed instead.
5993
59942004-02-18 Vincent Celier <celier@gnat.com>
5995
5996 * bld.adb: Mark FLDFLAGS as saved
5997 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
5998 it is not the root project. Put each directory to be
5999 extended between double quotes to prevent it to be expanded on Windows.
6000 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
6001 the project file. Set them back to their initial values if they have not
6002 been set in the project file.
6003
6004 * gprcmd.adb: (Gprdebug, Debug): New global variables
6005 (Display_Command): New procedure
6006 (Usage): Document new command "linkopts"
6007 Call Display_Command when env var GPRDEBUG has the value "TRUE"
6008 Implement new command "linkopts"
6009 Remove quotes that may be around arguments for "extend"
6010 Always call Normalize_Pathname with arguments formatted for the platform
6011
6012 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
6013 Change @echo to @$(display) in target clean to be able to clean silently
6014
6015 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
6016
6017 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
6018 canonical case.
6019
6020 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
6021 = Extending_All when current project is an extending all project.
6022
6023 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
6024 set to True only for LINK command, after Unix switch -o.
6025 (Process_Arguments): Set Output_File_Expected to True for LINK command
6026 after Unix switch -o. When Output_File_Expected is True, never add an
6027 extension to a file name.
6028
6029 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
6030 option file name, only to the --for-linker= switch.
6031 (Option_File_Name): If option file name do not end with ".opt", append
6032 "/OPTIONS".
6033
60342004-02-18 GNAT Script <nobody@gnat.com>
6035
6036 * Make-lang.in: Makefile automatically updated
6037
80bcb4d2
MK
60382004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
6039
6040 * Make-lang.in (stamp-sdefault): Do not depend on
6041 move-if-change.
6042
1daa84b6
ZW
60432004-02-12 Zack Weinberg <zack@codesourcery.com>
6044
6045 * config-lang.in: Disable Ada by default until probe logic for
6046 a bootstrap Ada compiler can be moved to the top level configure
6047 script.
6048
18c0ecbe
AC
60492004-02-12 Olivier Hainque <hainque@act-europe.fr>
6050
6051 * decl.c (components_to_record): Don't claim that the internal fields
6052 we make to hold the variant parts are semantically addressable, because
6053 they are not.
6054
6055 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
6056 adjust the comment describing the modular type form when we can use it.
6057 (Install_PAT): Account for the Esiz renaming.
6058
6059 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
6060 sc_onstack context indication before raising the exception to which
6061 the signal is mapped. Allows better handling of later signals possibly
6062 triggered by the resumed user code if the exception is handled.
6063
60642004-02-12 Arnaud Charlet <charlet@act-europe.fr>
6065
6066 * 5zinit.adb: Removed, no longer used.
6067
60682004-02-12 Robert Dewar <dewar@gnat.com>
6069
6070 * ali.adb: Remove separating space between parameters on R line. Makes
6071 format consistent with format used by the binder for Set_Globals call.
6072
6073 * atree.ads, atree.adb: Minor reformatting (new function header format)
6074
6075 * bindgen.adb: Add Run-Time Globals documentation section containing
6076 detailed documentation of the globals passed from the binder file to
6077 the run time.
6078
6079 * gnatls.adb: Minor reformatting
6080
6081 * init.c (__gnat_set_globals): Add note pointing to documentation in
6082 bindgen.
6083
6084 * lib-writ.ads, lib-writ.adb: Remove separating space between
6085 parameters on R line.
6086 Makes format consistent with format used by the binder for Set_Globals
6087 call.
6088
6089 * osint.ads: Add 2004 to copyright notice
6090 Minor reformatting
6091
6092 * snames.ads: Correct capitalization of FIFO_Within_Priorities
6093 Noticed during code reading, documentation issue only
6094
6095 * usage.adb: Remove junk line for obsolete C switch
6096 Noticed during code reading
6097
60982004-02-12 Vincent Celier <celier@gnat.com>
6099
6100 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
6101 extend for each directory, so that multiple /** directories are
6102 extended individually.
6103 (Recursive_Process): Set the default for LANGUAGES to ada
6104
6105 * gprcmd.adb: Define new command "ignore", to do nothing.
6106 Implement new comment "path".
6107
6108 * Makefile.generic: Suppress output when SILENT is set
6109 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
6110 used, so that the correct compiler is invoked.
6111 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
6112 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
6113
61142004-02-12 Jerome Guitton <guitton@act-europe.fr>
6115
6116 * Makefile.in: Clean ups and remove obsolete targets.
6117
61182004-02-12 Ed Schonberg <schonberg@gnat.com>
6119
6120 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
6121 predicate declared in exp_util.
6122
6123 * exp_util.adb: Add comments.
6124
6125 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
6126 visibility before compiling context of the subunit.
6127
6128 * sem_res.adb (Check_Parameterless_Call): If the context expects a
6129 value but the name is a procedure, do not attempt to analyze as a call,
6130 in order to obtain more telling diagnostics.
6131
6132 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
6133 'Access on parameterless function calls.
6134 (Normalize_Actuals): For a parameterless function call with missing
6135 actuals, defer diagnostic until resolution of enclosing call.
6136
6137 * sem_util.adb (Wrong_Type): If the context type is an access to
6138 subprogram and the expression is a procedure name, suggest a missing
6139 'attribute.
6140
c1dcfa14
AC
61412004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
6142 Nathanael Nerode <neroden@gcc.gnu.org>
6143
6144 PR ada/6637, PR ada/5911
6145 Merge with libada-branch:
90afe2c9 6146 * config-lang.in: Build libada only when ada is built.
c1dcfa14 6147
2e071734
AC
61482004-02-09 Ed Schonberg <schonberg@gnat.com>
6149
6150 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
6151 for a tagged type, verify that both formals have the same type.
6152
6153 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
6154 temporary when the formal is an in-parameter and the actual a possibly
6155 unaligned slice.
6156
6157 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
6158 when expansion is disabled, to ensure proper name capture with
6159 overloaded literals. Condition can be of any boolean type, resolve
6160 accordingly.
6161
6162 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
6163 renaming is for a formal subprogram with a default operator name, and
6164 there is a usable operator that is visible at the point of
6165 instantiation.
6166
61672004-02-09 Robert Dewar <dewar@gnat.com>
6168
6169 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
6170 rewrite to ignore errors in ali files, intended to allow tools downward
6171 compatibility with new versions of ali files.
6172
6173 * ali.ads: Add new parameter Ignore_Errors
6174
6175 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
6176 duplicating the error message giving the file with restrictions.
6177
6178 * debug.adb: Add debug flag I for gnatbind
6179
6180 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
6181 operators for the case where the operator is a defining operator.
6182
6183 * exp_ch3.adb: Minor reformatting (new function spec format).
6184
6185 * exp_ch4.adb: Add comment for previous change, and make minor
6186 adjustment to loop to always check for improper loop termination.
6187 Minor reformatting throughout (new function spec format).
6188
6189 * gnatbind.adb: Implement -di debug flag for gnatbind
6190
6191 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
6192
6193 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
6194
6195 * lib-load.adb: Fix bad assertion.
6196 Found by testing and code reading.
6197 Minor reformatting.
6198
6199 * lib-load.ads: Minor reformatting.
6200
6201 * lib-writ.adb: There is only one R line now.
6202
6203 * lib-writ.ads: Add documentation on making downward compatible changes
6204 to ali files so old tools work with new ali files.
6205 There is only one R line now.
6206 Add documentation on format incompatibilities (with special GPS note)
6207
6208 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
6209
6210 * par-load.adb: Minor reformatting
6211
6212 * sem_ch8.adb: Fix to error message from last update
6213 Minor reformatting and restructuring of code from last update
6214
6215 * par-prag.adb, snames.adb, snames.ads, snames.h,
6216 sem_prag.adb: Implement pragma Profile.
6217
6218 * stylesw.adb: Implement -gnatyN switch to turn off all style check
6219 options.
6220
6221 * usage.adb: Add line for -gnatyN switch
6222
6223 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
6224
a41ea816
AC
62252004-02-09 Albert Lee <lee@gnat.com>
6226
6227 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
6228
62292004-02-09 Ed Schonberg <schonberg@gnat.com>
6230
6231 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
6232 slices.
6233
6234 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
6235 is nested in an instance that is not frozen yet, to avoid
6236 order-of-elaboration problems in gigi.
6237
6238 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
6239 body the attribute is legal.
6240
62412004-02-09 Robert Dewar <dewar@gnat.com>
6242
6243 * s-rident.ads: Minor comment correction
6244
6245 * targparm.adb: Remove dependence on uintp completely. There was
6246 always a bug in Make in that it called Targparm before initializing
6247 the Uint package. The old code appeared to get away with this, but
6248 the new code did not! This caused an assertion error in gnatmake.
6249
6250 * targparm.ads: Fix bad comment, restriction pragmas with parameters
6251 are indeed fully supported.
6252
725c60f8
AM
62532004-02-06 Alan Modra <amodra@bigpond.net.au>
6254
6255 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
6256
136e64db
KH
62572004-02-05 Kazu Hirata <kazu@cs.umass.edu>
6258
6259 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
6260 with targetm.calls.promote_prototypes.
6261
06effe87
AC
62622004-02-04 Robert Dewar <dewar@gnat.com>
6263
6264 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
6265 ali.ads, gprcmd.adb: Minor reformatting
6266
6267 * bindgen.adb: Output restrictions string for new style restrictions
6268 handling
6269
6270 * impunit.adb: Add s-rident.ads (System.Rident) and
6271 s-restri (System.Restrictions)
6272
6273 * lib-writ.adb: Fix bug in writing restrictions string (last few
6274 entries wrong)
6275
6276 * s-restri.ads, s-restri.adb: Change name Restrictions to
6277 Run_Time_Restrictions to avoid conflict with package name.
6278 Add circuit to read and acquire run time restrictions.
6279
62802004-02-04 Jose Ruiz <ruiz@act-europe.fr>
6281
6282 * restrict.ads, restrict.adb: Use the new restriction
6283 No_Task_Attributes_Package instead of the old No_Task_Attributes.
6284
6285 * sem_prag.adb: No_Task_Attributes is a synonym of
6286 No_Task_Attributes_Package.
6287
6288 * snames.ads, snames.adb: New entry for proper handling of
6289 No_Task_Attributes.
6290
6291 * s-rident.ads: Adding restriction No_Task_Attributes_Package
6292 (AI-00249) that supersedes the GNAT specific restriction
6293 No_Task_Attributes.
6294
62952004-02-04 Ed Schonberg <schonberg@gnat.com>
6296
90afe2c9 6297 * sem_prag.adb:
06effe87
AC
6298 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
6299 body, an identifier may be wrapped in an unchecked conversion.
6300
63012004-02-04 Vincent Celier <celier@gnat.com>
6302
6303 * lib-writ.ads: Comment update for the W lines
6304
6305 * bld.adb: (Expression): An empty string list is static
6306
6307 * fname-uf.adb: Minor comment update
6308
6309 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
6310
6311 * gnatbind.adb: Initialize Cumulative_Restrictions with the
6312 restrictions on the target.
6313
2fb00d7f
KH
63142004-02-03 Kazu Hirata <kazu@cs.umass.edu>
6315
6316 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
6317 gen_rtx.
6318
5ed23e25
AC
63192004-02-02 Arnaud Charlet <charlet@gnat.com>
6320
6321 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
6322
6e937c1c
AC
63232004-02-02 Vincent Celier <celier@gnat.com>
6324
6325 * gprcmd.adb (Check_Args): If condition is false, print the invoked
6326 comment before the usage.
6327 Gprcmd: Fail when command is not recognized.
6328 (Usage): Document command "prefix"
6329
6330 * g-md5.adb (Digest): Process last block.
6331 (Update): Do not process last block. Store remaining characters and
6332 length in Context.
6333
6334 * g-md5.ads (Update): Document that several call to update are
6335 equivalent to one call with the concatenated string.
6336 (Context): Add fields to allow new Update behaviour.
6337
6338 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
6339 defaulted to False.
6340 When May_Fail is True and no existing file can be found, return No_File.
6341
6342 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
6343 functions.
6344
6345 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
6346 spec file name instead on the W line.
6347
63482004-02-02 Robert Dewar <dewar@gnat.com>
6349
6350 * ali.adb: Read and acquire info from new format restrictions lines
6351
6352 * bcheck.adb: Add circuits for checking restrictions with parameters
6353
6354 * bindgen.adb: Output dummy restrictions data
6355 To be changed later
6356
6357 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
6358 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
6359 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
6360 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
6361 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
6362
6363 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
6364 the warning message on access to possibly uninitialized variable S)
6365 Minor changes for new restrictions handling.
6366
6367 * gnatbind.adb: Minor reformatting
6368 Minor changes for new restrictions handling
6369 Move circuit for -r processing here from bcheck (cleaner)
6370
6371 * gnatcmd.adb, gnatlink.adb: Minor reformatting
6372
6373 * lib-writ.adb: Output new format restrictions lines
6374
6375 * lib-writ.ads: Document new R format lines for new restrictions
6376 handling.
6377
6378 * s-restri.ads/adb: New files
6379
6380 * Makefile.rtl: Add entry for s-restri.ads/adb
6381
6382 * par-ch3.adb: Fix bad error messages starting with upper case letter
6383 Minor reformatting
6384
6385 * restrict.adb: Major rewrite throughout for new restrictions handling
6386 Major point is to handle restrictions with parameters
6387
6388 * restrict.ads: Major changes in interface to handle restrictions with
6389 parameters. Also generally simplifies setting of restrictions.
6390
6391 * snames.ads/adb: New entry for proper handling of No_Requeue
6392
6393 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
6394 restriction counting.
6395 Other minor changes for new restrictions handling
6396
6397 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
6398 Restriction_Warnings now allows full parameter notation
6399 Major rewrite of Restrictions for new restrictions handling
6400
64012004-02-02 Javier Miranda <miranda@gnat.com>
6402
6403 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
6404 syntax rule for object renaming declarations.
6405 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
6406 component definitions.
6407
6408 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
6409 components.
6410 (Array_Type_Declaration): Give support to access components. In addition
6411 it was also modified to reflect the name of the object in anonymous
6412 array types. The old code did not take into account that it is possible
6413 to have an unconstrained anonymous array with an initial value.
6414 (Check_Or_Process_Discriminants): Allow access discriminant in
6415 non-limited types.
6416 (Process_Discriminants): Allow access discriminant in non-limited types
6417 Initialize the new Access_Definition field in N_Object_Renaming_Decl
6418 node. Change Ada0Y to Ada 0Y in comments
6419
6420 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
6421 equality operators.
6422 Change Ada0Y to Ada 0Y in comments
6423
6424 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
6425 renamings Change Ada0Y to Ada 0Y in comments
6426
6427 * sem_type.adb (Find_Unique_Type): Give support to the equality
6428 operators for universal access types
6429 Change Ada0Y to Ada 0Y in comments
6430
6431 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
6432
6433 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
6434 field.
6435 (N_Object_Renaming_Declaration): Addition of Access_Definition field
6436 Change Ada0Y to Ada 0Y in comments
6437
6438 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
6439 component definition and object renaming nodes
6440 Change Ada0Y to Ada 0Y in comments
6441
64422004-02-02 Jose Ruiz <ruiz@act-europe.fr>
6443
6444 * restrict.adb: Use the new restriction identifier
6445 No_Requeue_Statements instead of the old No_Requeue for defining the
6446 restricted profile.
6447
6448 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
6449 No_Requeue_Statements.
6450
6451 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
6452 that supersedes the GNAT specific restriction No_Requeue. The later is
6453 kept for backward compatibility.
6454
64552004-02-02 Ed Schonberg <schonberg@gnat.com>
6456
6457 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
6458 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
6459 pragma and fix incorrect ones.
6460
6461 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
6462 warning if the pragma is redundant.
6463
64642004-02-02 Thomas Quinot <quinot@act-europe.fr>
6465
6466 * 5staprop.adb: Add missing 'constant' keywords.
6467
6468 * Makefile.in: use consistent value for SYMLIB on
6469 platforms where libaddr2line is supported.
6470
64712004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6472
6473 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
6474 annotating types.
6475
64762004-02-02 Olivier Hainque <hainque@act-europe.fr>
6477
6478 * init.c (__gnat_install_handler): Setup an alternate stack for signal
6479 handlers in the environment thread. This allows proper propagation of
6480 an exception on stack overflows in this thread even when the builtin
6481 ABI stack-checking scheme is used without support for a stack reserve
6482 region.
6483
6484 * utils.c (create_field_decl): Augment the head comment about bitfield
6485 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
6486 here, because the former is not accurate enough at this point.
6487 Let finish_record_type decide instead.
6488 Don't make a bitfield if the field is to be addressable.
6489 Always set a size for the field if the record is packed, to ensure the
6490 checks for bitfield creation are triggered.
6491 (finish_record_type): During last pass over the fields, clear
6492 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
6493 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
6494 from DECL_BIT_FIELD.
6495
71cbe2c1
KC
64962004-01-30 Kelley Cook <kcook@gcc.gnu.org>
6497
90afe2c9 6498 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
71cbe2c1
KC
6499 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
6500 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
6501
7f996f90
RO
65022004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6503
6504 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
6505
6506 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
6507 (ZCX_By_Default): Likewise.
6508 (Front_End_ZCX_Support): Likewise.
6509
6510 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
6511 (Initialize_Lock): Mark Level unreferenced.
6512 (Sleep): Mark Reason unreferenced.
6513 (Timed_Sleep): Likewise.
6514 (Wakeup): Likewise.
6515 (Exit_Task): Use Result.
6516 (Check_No_Locks): Mark Self_ID unreferenced.
90afe2c9 6517
7f996f90
RO
6518 * 5gtasinf.adb (New_Sproc): Make Attr constant.
6519 (Bound_Thread_Attributes): Make Sproc constant.
6520 (New_Bound_Thread_Attributes): Likewise.
6521
26fd4eae
AC
65222004-01-26 Ed Schonberg <schonberg@gnat.com>
6523
6524 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
6525 one-dimensional array an slice assignments, when component type is
6526 controlled.
6527
6528 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
6529 component type is controlled, and control_actions are in effect, use
6530 TSS procedure rather than generating inline code.
6531
6532 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
6533 arrays with controlled components.
6534
65352004-01-26 Vincent Celier <celier@gnat.com>
6536
6537 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
6538 command line for the non VMS case.
6539
6540 * gnatlink.adb (Process_Binder_File): When building object file, if
6541 GNU linker is used, put all object paths between quotes, to prevent ld
6542 error when there are unusual characters (such as '!') in the paths.
6543
6544 * Makefile.generic: When there are sources in Ada and the main is in
6545 C/C++, invoke gnatmake with -B, instead of -z.
6546
6547 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
6548 from VMS_Conversion.
6549 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
6550 specification of argument file on the command line.
6551
65522004-01-26 Bernard Banner <banner@gnat.com>
6553
6554 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
6555
65562004-01-26 Ed Schonberg <schonberg@gnat.com>
6557
6558 * snames.adb: Update copyright notice.
6559 Add info on slice assignment for controlled arrays.
6560
b7e429ab
AC
65612004-01-23 Robert Dewar <dewar@gnat.com>
6562
6563 * exp_aggr.adb: Minor reformatting
6564
6565 * exp_ch9.adb: Minor code clean up
6566 Minor reformatting
6567 Fix bad character in comment
6568
6569 PR ada/13471
6570 * targparm.adb (Get_Target_Parameters): Give clean abort error on
6571 unexpected end of file, along with more detailed message.
6572
65732004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6574
6575 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
6576 PAT.
6577
6578 * decl.c (copy_alias_set): New function.
6579 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
6580
65812004-01-23 Doug Rupp <rupp@gnat.com>
6582
6583 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
6584 lib$${file} in case subsequent character is not a separator.
6585
65862004-01-23 Vincent Celier <celier@gnat.com>
6587
6588 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
6589 when the GCC version is at least 3.
6590
6591 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
6592 Remove all "Opt.", to prepare for opt split
6593
6594 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
6595 Extends_All. Set to True when the project parsed is an extending all
6596 project. Fails for importing an extending all project only when the
6597 imported project is an extending all project.
6598 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
6599 depending on the value of Extends_All returned.
6600
6601 * prj-proc.adb (Process): Check that no project shares its object
6602 directory with a project that extends it, directly or indirectly,
6603 including a virtual project.
6604 Check that no project extended by another project shares its object
6605 directory with another also extended project.
6606
6607 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
6608 Kind = N_With_Clause
6609
6610 * prj-tree.ads: Minor reformatting
6611 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
6612
66132004-01-23 Ed Schonberg <schonberg@gnat.com>
6614
6615 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
6616 applies to a type with an incomplete view, use full view in Name of
6617 clause, for consistency with uses of Get_Attribute_Definition_Clause.
6618
66192004-01-23 Arnaud Charlet <charlet@act-europe.fr>
6620
6621 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
6622 SCHED_RR, since other values are not supported by this policy.
6623 (Initialize): Move initialization of mutex attribute to package
6624 elaboration, to prevent early access to this variable.
6625
6626 * Makefile.in: Remove mention of Makefile.adalib, unused.
6627
b291953f
AC
6628 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
6629 1ssecsta.ads: Removed, unused.
b7e429ab 6630
adc04486
AC
66312004-01-21 Javier Miranda <miranda@gnat.com>
6632
6633 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
6634 entity if already built in the current scope.
6635
6636 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
6637 reminder in internal scopes. Required for nested limited aggregates.
6638
66392004-01-21 Doug Rupp <rupp@gnat.com>
6640
6641 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
6642 VMS. Replace all occurences of libgnat- and libgnarl- with
6643 libgnat$(hyphen) and libgnarl$(hyphen).
6644 Fixed shared library build problem on VMS.
6645
66462004-01-21 Robert Dewar <dewar@gnat.com>
6647
6648 * mlib-prj.adb: Minor reformatting
6649
66502004-01-21 Thomas Quinot <quinot@act-europe.fr>
6651
6652 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
6653 'constant' keywords for declaration of pointers that are not modified.
6654
6655 * exp_pakd.adb: Fix English in comment.
6656
66572004-01-21 Ed Schonberg <schonberg@gnat.com>
6658
6659 PR ada/10889
6660 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
6661 copy all attributes of the parent, including the foreign language
6662 convention.
6663
66642004-01-21 Sergey Rybin <rybin@act-europe.fr>
6665
6666 PR ada/10565
6667 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
6668 for 'delay until' statement.
6669
a541f69d
KC
66702004-01-20 Kelley Cook <kcook@gcc.gnu.org>
6671
6672 * Make-lang.in: Replace $(docdir) with doc.
6673 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
6674 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
6675 to use consistent MAKEINFO rule.
6676 (ada.man, ada.srcman): Dummy entry.
6677 (ADA_INFOFILES): Define.
6678 (ada.info, ada.srcinfo): New rules.
6679
c01a9391
AC
66802004-01-19 Arnaud Charlet <charlet@act-europe.fr>
6681
6682 * utils.c: Update copyright notice, missed in previous change.
6683
66842004-01-19 Vincent Celier <celier@gnat.com>
6685
6686 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
6687 args if Bind is True. Set First_ALI, if not already done.
6688 (Build_Library): For Stand Alone Libraries, extract from one ALI file
6689 an eventual --RTS switch, for gnatbind, and all backend switches +
6690 --RTS, for linking.
6691
66922004-01-19 Robert Dewar <dewar@gnat.com>
6693
6694 * sem_attr.adb, memtrack.adb: Minor reformatting
6695
66962004-01-19 Ed Schonberg <schonberg@gnat.com>
6697
6698 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
6699 that rename enumeration literals. This is properly done in sem_eval.
6700
6701 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
6702 to functions that rename enumeration literals.
6703
6704 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
6705 functions that rename enumeration literals.
6706
510d1e80
KH
67072004-01-16 Kazu Hirata <kazu@cs.umass.edu>
6708
6709 * Make-lang.in (utils.o): Depend on target.h.
6710 * utils.c: Include target.h.
6711 (process_attributes): Use targetm.have_named_sections instead
6712 of ASM_OUTPUT_SECTION_NAME.
6713
fbf3e0dd
AJ
67142004-01-16 Andreas Jaeger <aj@suse.de>
6715
6716 * Makefile.in: Add $(DESTDIR).
6717
acd47d2a
AC
67182004-01-15 Olivier Hainque <hainque@act-europe.fr>
6719
6720 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
6721 also when not defining if a Size clause applies. That information is
6722 not to be ignored.
6723
67242004-01-15 Arnaud Charlet <charlet@act-europe.fr>
6725
6726 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
6727 symbolic links for the shared gnat run time when needed.
6728
67292004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
6730
6731 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
6732 for writing, and terminate with an error message if not.
6733
67342004-01-15 Ed Schonberg <schonberg@gnat.com>
6735
6736 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
6737 warning on an access to subprogram in an instance, when the target
6738 type is declared in the same generic unit.
6739 (Eval_Attribute): If 'access is known to fail accessibility check,
6740 rewrite as a raise statement.
6741
67422004-01-15 GNAT Script <nobody@gnat.com>
6743
6744 * Make-lang.in: Makefile automatically updated
6745
03787dfd
KC
67462004-01-15 Kelley Cook <kcook@gcc.gnu.org>
6747
6748 * Make-lang.in (ada.srcextra): Dummy entry.
6749
73e232f0
KC
67502004-01-14 Kelley Cook <kcook@gcc.gnu.org>
6751
6752 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
6753
9bc43c53
AC
67542004-01-13 Ed Schonberg <schonberg@gnat.com>
6755
6756 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
6757 components that are initialized with aggregates.
6758
67592004-01-13 Vincent Celier <celier@gnat.com>
6760
6761 * gnatlink.adb (Process_Binder_File): To find directory of shared
6762 libgcc, if "gcc-lib" is not a subdirectory, look for the last
6763 subdirectory "lib" in the path of the shared libgnat or libgnarl.
6764
6765 * make.adb (Gnatmake): If GCC version is at least 3, link with
6766 -shared-libgcc, when there is at least one shared library project.
6767
6768 * opt.ads (GCC_Version): New integer constant.
6769
6770 * adaint.c (get_gcc_version): New function.
6771
67722004-01-13 Robert Dewar <dewar@gnat.com>
6773
6774 * sem_dist.adb, sem_res.adb, sem_util.adb,
6775 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
6776 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
6777
67782004-01-13 Thomas Quinot <quinot@act-europe.fr>
6779
6780 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
6781 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
6782 declarations.
6783
8b52de7b
AC
67842004-01-12 Arnaud Charlet <charlet@act-europe.fr>
6785
f6ea0188
AC
6786 * misc.c: Remove trailing spaces.
6787 Update copyright notice missed in previous change.
6788
8b52de7b
AC
6789 PR ada/13572
6790 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
6791 prefix/share/make
6792
6793 * Makefile.generic: Update copyright.
6794 Add license notice.
6795
6796 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
6797 of prefix/share/make.
6798
6799 * Makefile.prolog: Update copyright.
6800 Add license notice.
6801
68022004-01-12 Laurent Pautet <pautet@act-europe.fr>
6803
6804 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
6805 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
6806 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
6807 instead of String.
6808
6809 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
6810 signature.
6811
68122004-01-12 Javier Miranda <miranda@gnat.com>
6813
6814 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
6815 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
6816 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
6817 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
6818 Component_Definition node.
6819
68202004-01-12 Ed Falis <falis@gnat.com>
6821
6822 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
6823
68242004-01-12 Thomas Quinot <quinot@act-europe.fr>
6825
6826 * link.c: Change default libgnat kind to STATIC for FreeBSD.
6827
68282004-01-12 Bernard Banner <banner@gnat.com>
6829
6830 * Makefile.in: map 86numaux to a-numaux for x86_64
6831
68322004-01-12 Ed Schonberg <schonberg@gnat.com>
6833
6834 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
6835 generated to rename a generic actual, go to the actual itself, the
6836 subtype is not a user-visible entity.
6837
6838 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
6839 part is a private subtype, reset the visibility of its full view, if
6840 any, to be consistent.
6841
6842 PR ada/13417
6843 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
6844 to use a generic package G as a formal package for another generic
6845 declared within G.
6846
68472004-01-12 Robert Dewar <dewar@gnat.com>
6848
6849 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
6850
6851 * usage.adb: Remove mention of obsolete -gnatwb switch
6852 Noticed during code reading
6853
68542004-01-12 Jerome Guitton <guitton@act-europe.fr>
6855
6856 * 1ssecsta.adb: Minor changes for -gnatwa warnings
6857
68582004-01-12 GNAT Script <nobody@gnat.com>
6859
6860 * Make-lang.in: Makefile automatically updated
6861
0fab64a3
MM
68622004-01-09 Mark Mitchell <mark@codesourcery.com>
6863
6864 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
6865
47527624
RO
68662004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6867
6868 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
6869
dedebde1
KC
68702004-01-05 Kelley Cook <kcook@gcc.gnu.org>
6871
fbf3e0dd 6872 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
dedebde1
KC
6873 Update comment and copyright date.
6874 * stamp-xgnatug: Delete.
6875
91b1417d
AC
68762004-01-05 Robert Dewar <dewar@gnat.com>
6877
6878 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
6879 be modified by the binder generated main program if the -D switch is
6880 used.
6881
6882 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
6883 imported functions (since now we expect this to be done for imported
6884 functions)
6885
6886 * 5vtaprop.adb: Add several ??? for sections requiring more comments
6887 Minor reformatting throughout
6888
6889 * 5zinit.adb: Minor reformatting
6890 Add 2004 to copyright date
6891 Minor changes to avoid -gnatwa warnings
6892 Correct some instances of using OR instead of OR ELSE (noted while
6893 doing reformatting)
6894
6895 * sprint.adb: Minor updates to avoid -gnatwa warnings
6896
fbf3e0dd 6897 * s-secsta.ads, s-secsta.adb:
91b1417d
AC
6898 (SS_Get_Max): New function to obtain high water mark for ss stack
6899 Default_Secondary_Stack is not a constant since it may be modified by
6900 the binder generated main program if the -D switch is used.
6901
6902 * switch-b.adb: New -Dnnn switch for binder
6903
fbf3e0dd 6904 * switch-c.adb:
91b1417d
AC
6905 Make -gnatg imply all warnings currently in -gnatwa
6906
6907 * vms_conv.adb: Minor reformatting
6908 Add 2004 to copyright notice
6909 Add 2004 to printed copyright notice
6910
6911 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
6912 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
6913 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
6914 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
6915 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
6916 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
6917 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
6918 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
6919 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
6920 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
6921 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
6922 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
6923 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
6924 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
6925 checks.adb, clean.adb, cstand.adb, einfo.ads,
6926 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
6927 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
6928 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
6929 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
6930 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
6931 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
6932 Minor reformatting and code clean ups.
6933 Minor changes to prevent -gnatwa warnings
6934
6935 * ali.adb: Minor reformatting and cleanup of code
6936 Acquire new SS indication of secondary stack use from ali files
6937
6938 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
6939 (since now we expect this to be done for imported functions)
6940
6941 * bindgen.adb: Generate call to modify default secondary stack size if
6942 -Dnnn switch given
6943
6944 * bindusg.adb: Add line for new -D switch
6945
6946 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
6947 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
6948 Add circuitry for both records and arrays to avoid gigi
6949 processing if the type involved has non-bit-aligned components
6950
6951 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
6952 N_String_Literal node always references an E_String_Literal_Subtype
6953 entity. This may not be true in the future.
6954 (Possible_Bit_Aligned_Component): Move processing of
6955 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
6956
6957 * exp_ch6.adb (Expand_Thread_Body): Pick up
6958 Default_Secondary_Stack_Size as variable so that we get value modified
6959 by possible -Dnnn binder parameter.
6960
6961 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
6962 (Type_May_Have_Bit_Aligned_Components): New function.
6963
6964 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
6965 (Type_May_Have_Bit_Aligned_Components): New function.
6966
6967 * fe.h: (Set_Identifier_Casing): Fix prototype.
6968 Add declaration for Sem_Elim.Eliminate_Error_Msg.
6969 Minor reformatting.
6970
6971 * freeze.adb (Freeze_Entity): Add RM reference to error message about
6972 importing constant atomic/volatile objects.
6973 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
6974 unless explicit Pure_Function pragma given, to avoid insidious bug of
6975 call to non-pure imported function getting eliminated.
6976
6977 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
6978 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
6979 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
6980 Add 2004 to printed copyright notice
6981
6982 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
6983 stack used.
6984
6985 * Makefile.rtl: Add entry for g-sestin.o
6986 g-sestin.ads: New file.
6987
6988 * mdll.adb: Minor changes to avoid -gnatwa warnings
6989
6990 * mlib-tgt.adb: Minor reformatting
6991
6992 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
6993 New switch Sec_Stack_Used (GNAT, GNATBIND)
6994 Make Default_Secondary_Stack_Size a variable instead of a constant,
6995 so that it can be modified by the new -Dnnn bind switch.
6996
6997 * rtsfind.adb (Load_Fail): Give full error message in configurable
6998 run-time mode if all_errors mode is set. This was not done in the case
6999 of a file not found, which was an oversight.
7000 Note if secondary stack unit is used by compiler.
7001
7002 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
7003 ineffective elaborate all pragmas on non-visible packages (this
7004 happened when a renamed subprogram was called). Now the elaborate all
7005 always goes on the package containing the renaming rather than the one
7006 containing the renamed subprogram.
7007
7008 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
7009 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
7010
7011 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
7012 has an Etype that references an E_String_Literal.
7013 (Eval_String_Literal): Avoid assumption that N_String_Literal node
7014 always references an E_String_Literal_Subtype entity. This may not
7015 be true in the future.
7016
7017 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
7018 pragma location.
7019
7020 * sem_res.adb (Resolve): Specialize msg for function name used in proc
7021 call.
7022
70232004-01-05 Ed Falis <falis@gnat.com>
7024
7025 * g-debuti.adb: Replaced direct boolean operator with short-circuit
7026 form.
7027
70282004-01-05 Vincent Celier <celier@gnat.com>
7029
7030 * bld.adb: Minor comment updates
7031 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
7032 of Item_Name).
7033
7034 * make.adb (Gnatmake): Special process for files to compile/check when
7035 -B is specified. Fail when there are only foreign mains in attribute
7036 Main of the project file and -B is not specified. Do not skip bind/link
7037 steps when -B is specified.
7038
7039 * makeusg.adb: Document new switch -B
7040
7041 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
7042
7043 * switch-m.adb: (Scan_Make_Switches): Process -B switch
7044
7045 * vms_data.ads: Add new GNAT PRETTY qualifier
7046 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
7047
70482004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7049
7050 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
7051 case.
7052
7053 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
7054 Set_Identifier_Casing.
7055
7056 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
7057 has size that overflows.
7058
70592004-01-05 Gary Dismukes <dismukes@gnat.com>
7060
7061 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
7062 -gnatwa warning on static condition.
7063
70642004-01-05 Doug Rupp <rupp@gnat.com>
7065
7066 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
7067
70682004-01-05 Arnaud Charlet <charlet@act-europe.fr>
7069
7070 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
7071 all attributes, including read-only attribute.
7072
70732004-01-05 Pascal Obry <obry@gnat.com>
7074
7075 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
7076 library naming scheme.
7077
7078 * mlib-prj.adb (Build_Library): Generate different names for the static
7079 or dynamic version of the GNAT runtime. This is needed to support the
7080 new shared library naming scheme.
7081 (Process_Binder_File): Add detection of shared library in binder file
7082 based on the new naming scheme.
7083
7084 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
7085 scheme for the shared runtime libraries.
7086
7087 * Makefile.in:
7088 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
7089 scheme.
7090 (install-gnatlib): Do not create symlinks for shared libraries.
7091 (gnatlib-shared-default): Idem.
7092 (gnatlib-shared-dual-win32): New target. Not used for now as the
7093 auto-import feature does not support arrays/records.
7094 (gnatlib-shared-win32): Do not create copy for the shared libraries.
7095 (gnatlib-shared-vms): Fix shared runtime libraries names.
7096
7097 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
7098 dependent runtime shared library name.
7099
71002004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
7101
7102 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
7103 than the object.
7104
71052004-01-05 Ed Schonberg <schonberg@gnat.com>
7106
7107 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
7108 protected objects when allocator has a subtype indication, not a
7109 qualified expression. Note that qualified expressions may have to be
7110 checked when limited aggregates are implemented.
7111
7112 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
7113 pure, emit warning.
7114 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
7115 subprogram is imported, remove warning.
7116
71172004-01-05 Geert Bosch <bosch@gnat.com>
7118
7119 * s-poosiz.adb: Update copyright notice.
7120 (Allocate): Use Task_Lock to protect against concurrent access.
7121 (Deallocate): Likewise.
7122
71232004-01-05 Joel Brobecker <brobecker@gnat.com>
7124
7125 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
7126 comment.
7127
2ab127f3
KC
71282003-12-23 Kelley Cook <kcook@gcc.gnu.org>
7129
7130 * gnat_ug.texi: Force a CVS commit by updating copyright.
7131 * gnat_ug_vxw.texi: Regenerate.
7132 * gnat_ug_wnt.texi: Regenerate.
7133 * gnat_ug_vms.texi: Regenerate.
7134 * gnat_ug_unx.texi: Regenerate.
7135
aed8bfdc
KH
71362003-12-20 Kazu Hirata <kazu@cs.umass.edu>
7137
7138 * trans.c: Remove uses of "register" specifier in
7139 declarations of local variables.
7140
90c2f1de
KC
71412003-12-18 Kelley Cook <kcook@gcc.gnu.org>
7142
7143 * stamp-xgnatug: New stamp file.
7144 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
7145 (ada/doctools/xgnatug): Add $(build_exeext).
7146 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
7147 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
7148
891a6e79
AC
71492003-12-17 Ed Falis <falis@gnat.com>
7150
7151 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
7152 eliminate warning.
7153
7154 * a-exextr.adb: Add context clause for
7155 Ada.Exceptions.Last_Chance_Handler.
7156
71572003-12-17 Sergey Rybin <rybin@act-europe.fr>
7158
7159 * cstand.adb (Create_Standard): Change the way how the declaration of
7160 the Duration type is created (making it the same way as it is for all
7161 the other standard types).
7162
71632003-12-17 Robert Dewar <dewar@gnat.com>
7164
7165 * s-crtl.ads: Fix header format
7166 Change Pure to Preelaborate
7167
71682003-12-17 Ed Schonberg <schonberg@gnat.com>
7169
7170 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
7171 the expression type only if it is declared in the current unit.
7172
7173 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
7174 are universal and already analyzed, as can occur in constrained
7175 subcomponents that depend on discriminants, when one constraint is a
7176 subtype mark.
7177
7178 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
7179 type Any_Fixed is legal as the argument of a conversion, if only one
7180 fixed-point type is in context.
7181
71822003-12-17 GNAT Script <nobody@gnat.com>
7183
7184 * Make-lang.in: Makefile automatically updated
7185
209db2bf
AC
71862003-12-15 Robert Dewar <dewar@gnat.com>
7187
7188 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
7189 sec stack size.
7190
71912003-12-15 Vincent Celier <celier@gnat.com>
7192
7193 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
7194 (Gnatchop): Do not set failure status when reporting the number of
7195 warnings.
7196
71972003-12-15 Doug Rupp <rupp@gnat.com>
7198
7199 * s-ctrl.ads: New file.
7200
7201 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
7202
7203 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
7204 (GNATBIND_OBJS): Add ada/s-crtl.o.
7205
7206 * Makefile.in [VMS]: Clean up ifeq rules.
7207
7208 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
7209 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
7210 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
7211 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
7212 s-tasdeb.adb: Update copyright.
7213 Import System.CRTL.
7214 Make minor modifications to use System.CRTL declared functions instead
7215 of importing locally.
7216
72172003-12-15 GNAT Script <nobody@gnat.com>
7218
7219 * Make-lang.in: Makefile automatically updated
7220
a9f4e3d2
AC
72212003-12-11 Ed Falis <falis@gnat.com>
7222
7223 * 5zinit.adb: Clean up.
7224
7225 * 5zintman.adb (Notify_Exception): replaced case statement with a call
7226 to __gnat_map_signal, imported from init.c to support
7227 signal -> exception mappings that depend on the vxWorks version.
7228
fbf3e0dd 7229 * init.c:
a9f4e3d2
AC
7230 Created and exported __gnat_map_signal to support signal -> exception
7231 mapping that is dependent on the VxWorks version.
7232 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
7233
72342003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
7235
7236 * 5wosinte.ads: Link with -mthreads switch.
7237
72382003-12-11 Arnaud Charlet <charlet@act-europe.fr>
7239
7240 * init.c (__gnat_install_handler [NetBSD]): Set
7241 __gnat_handler_installed, as done on all other platforms.
7242 Remove duplicated code.
7243
72442003-12-11 Jerome Guitton <guitton@act-europe.fr>
7245
7246 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
7247
72482003-12-11 Thomas Quinot <quinot@act-europe.fr>
7249
7250 * sinfo.ads: Fix inconsistent example code in comment.
7251
72522003-12-11 Robert Dewar <dewar@gnat.com>
7253
7254 * a-tiinau.adb: Add a couple of comments
7255
7256 * sem_ch3.adb: Minor reformatting
7257
fbf3e0dd 7258 * sem_prag.adb:
a9f4e3d2
AC
7259 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
7260 Minor reformatting throughout
7261
72622003-12-11 Ed Schonberg <schonberg@gnat.com>
7263
7264 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
7265 bounds of a loop, create a separate block in order to generate proper
7266 cleanup actions to prevent memory leaks.
7267
7268 * sem_res.adb (Resolve_Call): After a call to
7269 Establish_Transient_Scope, the call may be rewritten and relocated, in
7270 which case no further processing is needed.
7271
7272 * sem_util.adb: (Wrong_Type): Refine previous fix.
7273 Fixes ACATS regressions.
7274
7275 PR ada/13353
7276
7277 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
7278 be inlined.
7279
c45b6ae0
AC
72802003-12-08 Jerome Guitton <guitton@act-europe.fr>
7281
7282 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
7283 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
7284 obsolete files.
7285
7286 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
7287 (rts-zfp): Ditto.
7288
72892003-12-08 Robert Dewar <dewar@gnat.com>
7290
7291 * 7sintman.adb: Minor reformatting
7292
7293 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
7294 standard linker options to get standard libraries linked. We now plan
7295 to provide dummy versions of these libraries to match the appropriate
7296 configurable run-time (e.g. if a library is not needed at all, provide
7297 a dummy empty library).
7298
7299 * targparm.ads: Configurable_Run_Time mode no longer affects linker
7300 options (-L parameters and standard libraries). What we plan to do is
7301 to provide dummy libraries where the libraries are not required.
7302
7303 * gnatbind.adb: Minor comment improvement
7304
73052003-12-08 Javier Miranda <miranda@gnat.com>
7306
7307 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
7308 aggregate in the parent. Otherwise constants with limited aggregates
7309 are not supported. Add new formal to pass the component type (Ctype).
7310 It is required to call the corresponding IP subprogram in case of
7311 default initialized components.
7312 (Gen_Assign): In case of default-initialized component, generate a
7313 call to the IP subprogram associated with the component.
7314 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
7315 of aggregate with default initialized components.
7316 (Has_Default_Init_Comps): Improve implementation to recursively check
7317 all the present expressions.
7318
7319 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
7320 to indicate that the initialization call corresponds to a
7321 default-initialized component of an aggregate.
7322 In case of default initialized aggregate with tasks this parameter is
7323 used to generate a null string (this is just a workaround that must be
7324 improved later). In case of discriminants, this parameter is used to
7325 generate a selected component node that gives access to the discriminant
7326 value.
7327
7328 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
7329 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
7330 allocated aggregates with default-initialized components.
7331
7332 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
7333 the box notation is used in positional aggregates.
7334
73352003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
7336
7337 * lib.ads: Fix typo in comment
7338
73392003-12-08 Vincent Celier <celier@gnat.com>
7340
7341 * prj.adb (Project_Empty): New component Unkept_Comments
7342 (Scan): Remove procedure; moved to Prj.Err.
7343
7344 * prj.ads (Project_Data): New Boolean component Unkept_Comments
7345 (Scan): Remove procedure; moved to Prj.Err.
7346
7347 * prj-dect.adb: Manage comments for the different declarations.
7348
7349 * prj-part.adb (With_Record): New component Node
7350 (Parse): New Boolean parameter Store_Comments, defaulted to False.
7351 Set the scanner to return ends of line and comments as tokens, if
7352 Store_Comments is True.
7353 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
7354 comments are associated with these nodes. Store the node IDs in the
7355 With_Records.
7356 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
7357 With_Records.
7358 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
7359 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
7360 current project. Call Tree.Restore afterwards. Set the various nodes
7361 for comment storage (Next_End, End_Of_Line, Previous_Line,
7362 Previous_End).
7363
7364 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
7365 defaulted to False.
7366
7367 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
7368 to False. When Truncated is True, truncate the string, never go to the
7369 next line.
7370 (Write_End_Of_Line_Comment): New procedure
7371 (Print): Process comments for nodes N_With_Clause,
7372 N_Package_Declaration, N_String_Type_Declaration,
7373 N_Attribute_Declaration, N_Typed_Variable_Declaration,
7374 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
7375 Process nodes N_Comment.
7376
7377 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
7378 without comments and there are some comments, set the flag
7379 Unkept_Comments to True.
7380 (Scan): If there are comments, set the flag Unkept_Comments to True and
7381 clear the comments.
7382 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
7383 (Next_End_Nodes: New table
7384 (Comment_Zones_Of): New function
7385 (Scan): New procedure; moved from Prj. Accumulate comments in the
7386 Comments table and set end of line comments, comments after, after end
7387 and before end.
7388 (Add_Comments): New procedure
7389 (Save, Restore, Seset_State): New procedures
7390 (There_Are_Unkept_Comments): New function
7391 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
7392 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
7393 procedures.
7394 (First_Comment_After, First_Comment_After_End): New functions
7395 (First_Comment_Before, First_Comment_Before_End): New functions
7396 (Next_Comment): New function
7397 (End_Of_Line_Comment, Follows_Empty_Line,
7398 Is_Followed_By_Empty_Line): New functions
7399 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
7400 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
7401 (Set_Next_Comment): New procedure
7402 (Default_Project_Node): Associate comment before if the node can store
7403 comments.
7404
7405 * scans.ads (Token_Type): New enumeration value Tok_Comment
7406 (Comment_Id): New global variable
7407
7408 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
7409 defaulted to False.
7410 (Scan): Store position of start of comment. If comments are tokens, set
7411 Comment_Id and set Token to Tok_Comment when scanning a comment.
7412 (Set_Comment_As_Token): New procedure
7413
7414 * sinput-p.adb: Update Copyright notice
7415 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
7416 that no longer exists.
7417
74182003-12-08 Javier Miranda <miranda@gnat.com>
7419
7420 * sem_aggr.adb: Add dependence on Exp_Tss package
7421 Correct typo in comment
7422 (Resolve_Aggregate): In case of array aggregates set the estimated
7423 type of the aggregate before calling resolve. This is needed to know
7424 the name of the corresponding IP in case of limited array aggregates.
7425 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
7426 in case of default initialized array components.
7427
7428 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
7429 types. Required to give support to limited aggregates in generic
7430 formals.
7431
74322003-12-08 Ed Schonberg <schonberg@gnat.com>
7433
7434 * sem_ch3.adb (Check_Initialization): For legality purposes, an
7435 inlined body functions like an instantiation.
7436 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
7437 until bounds are analyzed, to diagnose premature use of type.
7438
7439 * sem_util.adb (Wrong_Type): Improve error message when the type of
7440 the expression is used prematurely.
7441
74422003-12-08 GNAT Script <nobody@gnat.com>
7443
7444 * Make-lang.in: Makefile automatically updated
7445
0875a894
AC
74462003-12-08 Arnaud Charlet <charlet@act-europe.fr>
7447
7618d510
AC
7448 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
7449 they are automatically generated by Make-lang.in and cause nothing but
0875a894
AC
7450 maintenance troubles.
7451
5b4994bc
AC
74522003-12-05 Thomas Quinot <quinot@act-europe.fr>
7453
7454 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
7455 version of this unit).
7456
74572003-12-05 Olivier Hainque <hainque@act-europe.fr>
7458
7459 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
7460 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
7461 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
7462 the body of System.Interrupt_Management common to several targets.
7463 Update copyright notice when appropriate.
7464
7465 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
7466 constant.
7467
7468 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
7469 to ensure that the kernel fills in the interrupted context structure
7470 before calling a signal handler, which is necessary to be able to
7471 unwind past it. Update the copyright notice.
7472
74732003-12-05 Jerome Guitton <guitton@act-europe.fr>
7474
7475 * a-elchha.ads: New file.
7476
7477 * a-elchha.adb: New default last chance handler. Contents taken from
7478 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
7479
7480 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
7481 is moved to a-elchha.adb to provide a target-independent default last
7482 chance handler.
7483
7484 * Makefile.rtl: Add a-elchha.o
7485
7486 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
7487
74882003-12-05 Ed Schonberg <schonberg@gnat.com>
7489
7490 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
7491 declared in an instance, do not inline the call if the instance is not
7492 frozen yet, to prevent order of elaboration problems.
7493
7494 * sem_prag.adb: Add comments for previous fix.
7495
74962003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
7497
7498 * g-table.adb: Use the right variable in Set_Item.
7499 Update copyright notice.
7500
75012003-12-05 Arnaud Charlet <charlet@act-europe.fr>
7502
7503 * Makefile.in: Remove unused rules.
7504
75052003-12-05 Vincent Celier <celier@gnat.com>
7506
7507 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
7508 -nostdlib. Not needed here after all.
7509
efdfd311
AC
75102003-12-03 Thomas Quinot <quinot@act-europe.fr>
7511
7512 PR ada/11724
7513
fbf3e0dd 7514 * adaint.h, adaint.c, g-os_lib.ads:
efdfd311
AC
7515 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
7516 on some platforms (including FreeBSD), it is a 64 bit value.
7517 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
7518
75192003-12-03 Arnaud Charlet <charlet@act-europe.fr>
7520
7521 * gnatvsn.ads (Library_Version): Now contain only the relevant
7522 version info.
7523 (Verbose_Library_Version): New constant.
7524
7525 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
7526 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
7527 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
7528
7529 * gnatlbr.adb: Clean up: replace Library_Version by
7530 Verbose_Library_Version.
7531
fbf3e0dd 7532 * make.adb, lib-writ.adb, exp_attr.adb:
efdfd311
AC
7533 Clean up: replace Library_Version by Verbose_Library_Version.
7534
7535 * 5lintman.adb: Removed.
7536
fbf3e0dd 7537 * Makefile.in:
efdfd311
AC
7538 Update and simplify computation of LIBRARY_VERSION.
7539 Fix computation of GSMATCH_VERSION.
7540 5lintman.adb is no longer used: replaced by 7sintman.adb.
7541
75422003-12-03 Robert Dewar <dewar@gnat.com>
7543
fbf3e0dd 7544 * exp_ch5.adb:
efdfd311
AC
7545 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
7546 name. Modified to consider small non-bit-packed arrays as troublesome
7547 and in need of component-by-component assigment expansion.
7548
75492003-12-03 Vincent Celier <celier@gnat.com>
7550
7551 * lang-specs.h: Process nostdlib as nostdinc
7552
7553 * back_end.adb: Update Copyright notice
7554 (Scan_Compiler_Arguments): Process -nostdlib directly.
7555
75562003-12-03 Jose Ruiz <ruiz@act-europe.fr>
7557
fbf3e0dd 7558 * Makefile.in:
efdfd311
AC
7559 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
7560 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
7561 included in HIE_NONE_TARGET_PAIRS.
7562
75632003-12-03 Ed Schonberg <schonberg@gnat.com>
7564
fbf3e0dd 7565 * sem_attr.adb:
efdfd311
AC
7566 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
7567 is legal in an instance, because legality is cheched in the template.
7568
fbf3e0dd 7569 * sem_prag.adb:
efdfd311
AC
7570 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
7571 appplied to an unchecked conversion of a formal parameter.
7572
fbf3e0dd 7573 * sem_warn.adb:
efdfd311
AC
7574 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
7575 variables.
7576
75772003-12-03 Olivier Hainque <hainque@act-europe.fr>
7578
7579 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
7580 routines. The second one is new functionality to deal with backtracing
7581 through signal handlers.
7582 (unwind): Split into the two separate subroutines above.
7583 Update the documentation, and deal properly with sizeof (REG) different
7584 from sizeof (void*).
7585
08aa9a4a
AC
75862003-12-01 Nicolas Setton <setton@act-europe.fr>
7587
7588 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
7589 so that the debugger can reliably access the value of the parameter,
7590 and therefore is able to display the exception name when an exception
7591 breakpoint is reached.
7592
75932003-12-01 Thomas Quinot <quinot@act-europe.fr>
7594
7595 * fmap.adb: Fix typo in warning message.
7596
7597 * g-socket.ads, g-socket.adb: Make Free a visible instance of
7598 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
7599
76002003-12-01 Vincent Celier <celier@gnat.com>
7601
7602 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
7603 ther is no Afile.
7604 (Build_Library): Get the switches only if Default_Switches is declared
7605 in package Binder.
7606
76072003-12-01 Ed Schonberg <schonberg@gnat.com>
7608
7609 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
7610 actuals that are indexed components, reanalyze actual to ensure that
7611 packed array references are properly expanded.
7612
7613 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
7614 attempted assignment to a discriminant.
7615
76162003-12-01 Robert Dewar <dewar@gnat.com>
7617
7618 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
7619 reformatting.
7620
7621 * switch-c.adb: Minor reformatting of comments
7622
76232003-12-01 Arnaud Charlet <charlet@act-europe.fr>
7624
7625 * Makefile.in: Clean ups.
7626
76272003-12-01 GNAT Script <nobody@gnat.com>
7628
7629 * Make-lang.in: Makefile automatically updated
7630
c6135994
AC
76312003-12-01 Arnaud Charlet <charlet@act-europe.fr>
7632
7633 * 5wsystem.ads: Disable zero cost exception, not ready yet.
7634
51a30506
UW
76352003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
7636
7637 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
7638 to force serialization.
7639
81a5b587
AC
76402003-11-26 Thomas Quinot <quinot@act-europe.fr>
7641
fbf3e0dd 7642 * g-socket.ads, g-socket.adb:
81a5b587
AC
7643 Clarify documentation of function Stream. Introduce a Free procedure
7644 to release the returned Stream once it becomes unused.
7645
7646 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
7647
76482003-11-26 Arnaud Charlet <charlet@act-europe.fr>
7649
7650 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
7651 since NT 4 cannot handle timeout values that are too large,
7652 e.g. DWORD'Last - 1.
7653
76542003-11-26 Ed Schonberg <schonberg@gnat.com>
7655
fbf3e0dd 7656 * exp_ch4.adb:
81a5b587
AC
7657 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
7658 in procedure calls and whose expansion must be deferred.
7659
7660 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
7661 is in exp_ch4.
7662
fbf3e0dd 7663 * sem_ch3.adb:
81a5b587
AC
7664 (Build_Derived_Array_Type): Create operator for unconstrained type
7665 if ancestor is unconstrained.
7666
76672003-11-26 Vincent Celier <celier@gnat.com>
7668
7669 * make.adb (Project_Object_Directory): New global variable
7670 (Change_To_Object_Directory): New procedure
7671 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
7672 of Change_Dir directly. Do not change working directory to object
7673 directory of main project after each compilation.
7674 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
7675 directly.
7676 Change to object directory of main project before binding step.
7677 (Initialize): Initialize Project_Object_Directory to No_Project
7678
fbf3e0dd 7679 * mlib-prj.adb:
81a5b587
AC
7680 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
7681 binding a Stand-Alone Library.
7682
7683 * output.adb: Update Copyright notice
7684 (Write_Char): Output buffer when full
7685
76862003-11-26 Robert Dewar <dewar@gnat.com>
7687
7688 * sem_ch13.adb: (Check_Size): Reset size if size is too small
7689
fbf3e0dd 7690 * sem_ch13.ads:
81a5b587
AC
7691 (Check_Size): Fix documentation to include bit-packed array case
7692
7693 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
7694
7695 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
7696
7697 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
7698
d4c47b51
AC
76992003-11-24 Arnaud Charlet <charlet@act-europe.fr>
7700
7701 PR ada/13142
7702 * utils.c (init_gigi_decls): Change name of built-in setjmp to
7703 __builtin_setjmp, since this is apparently needed by recent
7704 non Ada changes.
7705
7677e9e0
RO
77062003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7707
d4c47b51 7708 * adadecode.c: Only include ctype.h if not IN_GCC.
7677e9e0
RO
7709 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
7710
6c1e24d3
AC
77112003-11-24 Jose Ruiz <ruiz@act-europe.fr>
7712
fbf3e0dd 7713 * Makefile.in:
6c1e24d3
AC
7714 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
7715 signals and interrupts.
7716
7717 * 5zintman.ads: New File.
7718
7719 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
7720 add exception signals to the set of unmasked signals.
7721
fbf3e0dd 7722 * 5ztaprop.adb:
6c1e24d3
AC
7723 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
7724 between signals and interrupts.
7725 Add to Unblocked_Signal_Mask the set of signals that are in
7726 Keep_Unmasked.
7727
fbf3e0dd 7728 * 7sinmaop.adb:
6c1e24d3
AC
7729 Adding a check to see whether the Interrupt_ID we want to unmask is in
7730 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
7731 reason is that the index type of the Keep_Unmasked array is not always
7732 Interrupt_ID; it may be a subtype of Interrupt_ID.
7733
77342003-11-24 Gary Dismukes <dismukes@gnat.com>
7735
fbf3e0dd 7736 * exp_util.adb:
6c1e24d3
AC
7737 (Remove_Side_Effects): Condition constantness of object created for a
7738 an unchecked type conversion on the constantness of the expression
7739 to ensure the correct value for 'Constrained when passing components
7740 of view-converted class-wide objects.
7741
77422003-11-24 Robert Dewar <dewar@gnat.com>
7743
7744 * par-load.adb (Load): Improve handling of misspelled and missing units
7745 Removes several cases of compilation abandoned messages
7746
7747 * lib.adb: (Remove_Unit): New procedure
7748
7749 * lib.ads: (Remove_Unit): New procedure
7750
7751 * lib-load.adb: Minor reformatting
7752
77532003-11-24 Vincent Celier <celier@gnat.com>
7754
fbf3e0dd 7755 * make.adb:
6c1e24d3
AC
7756 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
7757 (Marking_Label): Label to mark processed source files. Incremented for
7758 each executable.
7759 (Gnatmake): Increase Marking_Labet for each executable
7760 (Is_Marked): Compare against marking label
7761 (Mark): Mark with marking label
7762
77632003-11-24 Jerome Guitton <guitton@act-europe.fr>
7764
fbf3e0dd 7765 * s-thread.ads:
6c1e24d3
AC
7766 Move the declaration of the TSD for System.Threads to System.Soft_Links.
7767 Add some comments.
7768
7769 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
7770 (rts-cert): build a single relocatable object for the run-time lib.
7771 Fix perms.
7772
77732003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
7774
fbf3e0dd 7775 * Make-lang.in:
6c1e24d3
AC
7776 Use gnatls rather than gcc to obtain the location of GNAT RTL for
7777 crosstools build.
7778
77792003-11-24 Sergey Rybin <rybin@act-europe.fr>
7780
7781 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
7782 can not use it as before (that is, as a variable) when dumping it into
7783 the tree file. Add a local variable to store the result of this
7784 function and to be used as the string to be written into the tree.
7785
7786 * scn.adb (Initialize_Scanner): Add comments explaining the recent
7787 changes.
7788
7789 * sinput.adb (Source_First, Source_Last): In case of
7790 Internal_Source_File, replace returning attributes of
7791 Internal_Source_Ptr (which is wrong) with returning attributes of
7792 Internal_Source.
7793
77942003-11-24 Ed Schonberg <schonberg@gnat.com>
7795
fbf3e0dd 7796 * sem_ch3.adb:
6c1e24d3
AC
7797 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
7798 used for implicit concatenation operators.
7799 Code cleanup.
7800
fbf3e0dd 7801 * sem_elab.adb:
6c1e24d3
AC
7802 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
7803 task bodies that are in the scope of a Suppress pragma.
7804 (Check_A Call): Use the flag to prevent spurious elaboration checks.
7805
fbf3e0dd 7806 * sinfo.ads, sinfo.adb:
6c1e24d3
AC
7807 New flag No_Elaboration_Check on function/procedure calls, to properly
7808 suppress checks on calls in task bodies that are within a local suppress
7809 pragma.
7810
fbf3e0dd 7811 * exp_ch4.adb:
6c1e24d3
AC
7812 (Expand_Concatenate_Other): Use the proper integer type for the
7813 expression for the upper bound, to avoid universal_integer computations
7814 when possible.
7815
6f2aeb72
KC
78162003-11-21 Kelley Cook <kcook@gcc.gnu.org>
7817
7818 * .cvsignore: Delete.
7819
e9f85cd6
AS
78202003-11-21 Andreas Schwab <schwab@suse.de>
7821
7822 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
7823
4e074baf
VF
78242003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
7825
7826 * 5wsystem.ads: Enable zero cost exception.
7827
f1f9fe30
AC
78282003-11-21 Jerome Guitton <guitton@act-europe.fr>
7829
7830 * 5ztiitho.adb: Remove an unreferenced variable.
7831
78322003-11-21 Thomas Quinot <quinot@act-europe.fr>
7833
7834 * adaint.c: For FreeBSD, use mkstemp.
7835
78362003-11-21 Arnaud Charlet <charlet@act-europe.fr>
7837
7838 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
7839
78402003-11-21 Robert Dewar <dewar@gnat.com>
7841
7842 * bld.adb: Remove useless USE of gnatvsn
7843
7844 * gnatchop.adb: Minor reformatting
7845 Clean up version handling to be more consistent
7846
7847 * gnatxref.adb: Minor reformatting
7848
7849 * gprcmd.adb: Minor reformatting
7850 Fix output of copyright to be more consistent with other tools
7851
78522003-11-21 Vincent Celier <celier@gnat.com>
7853
7854 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
7855
78562003-11-21 Sergey Rybin <rybin@act-europe.fr>
7857
7858 * atree.adb (Initialize): Add initializations for global variables
7859 used in New_Copy_Tree.
7860
7861 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
7862 Internal_Source_File as the actual).
7863 Put the set of statements creating Any_Character before the set of
7864 statements creating Any_Array to have Any_Character fully initialized
7865 when it is used in creating Any_Array.
7866
7867 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
7868 not call Scan in case if the actual is Internal_Source_File
7869 Add 2003 to copyright note.
7870
7871 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
7872 processing Internal_Source_File.
7873
7874 * types.ads: Add the constant Internal_Source_File representing the
7875 source buffer for artificial source-code-like strings created within
7876 the compiler (the definition of Source_File_Index is changed).
7877
c5b2a8ae
AC
78782003-11-20 Arnaud Charlet <charlet@act-europe.fr>
7879
7880 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
7881 56system.ads: New file, FreeBSD version.
7882
a03ad584
JM
78832003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
7884
7885 * Make-lang.in (ada.extraclean): Delete.
7886
19f0526a
AC
78872003-11-19 Arnaud Charlet <charlet@act-europe.fr>
7888
7889 * gnatmem.adb: Clean up verbose output.
7890
7891 * gprcmd.adb: Change copyright to FSF.
7892
78932003-11-19 Vincent Celier <celier@gnat.com>
7894
7895 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
7896 and Version (ignored).
7897
7898 * symbols.ads: (Policy): New type
7899 (Initialize): New parameter Reference, Symbol_Policy and
7900 Library_Version.
7901 Remove parameter Force.
7902 Minor reformatting.
7903
7904 * snames.ads, snames.adbadb: New standard names
7905 Library_Reference_Symbol_File and Library_Symbol_Policy
7906
fbf3e0dd 7907 * mlib-prj.adb:
19f0526a
AC
7908 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
7909 project.
7910
fbf3e0dd 7911 * mlib-tgt.adb:
19f0526a
AC
7912 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
7913
7914 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
7915
7916 * prj.adb: (Project_Empty): New component Symbol_Data
7917
7918 * prj.ads: (Policy, Symbol_Record): New types
7919 (Project_Data): New component Symbol_Data
7920
fbf3e0dd 7921 * prj-attr.adb:
19f0526a
AC
7922 New attributes Library_Symbol_File, Library_Symbol_Policy and
7923 Library_Reference_Symbol_File.
7924
fbf3e0dd 7925 * prj-nmsc.adb:
19f0526a
AC
7926 (Ada_Check): When project is a Stand-Alone library project, process
7927 attribute Library_Symbol_File, Library_Symbol_Policy and
7928 Library_Reference_Symbol_File.
7929
7930 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
7931 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
7932 5sml-tgt.adb (Build_Dynamic_Library): New parameter
7933 Symbol_Data (ignored).
7934
7935 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
7936 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
7937 functions Option_File_Name and Version_String. Set new options of
7938 gnatsym related to symbol file, symbol policy and reference symbol
7939 file.
7940
fbf3e0dd 7941 * 5vsymbol.adb:
19f0526a
AC
7942 Extensive modifications to take into account the reference symbol file,
7943 the symbol policy, the library version and to put in the symbol file the
7944 minor and major IDs.
7945
7946 * bld.adb (Process_Declarative_Items): Put second argument of
7947 gprcmd to_absolute between single quotes, to avoid problems with
7948 Windows.
7949
7950 * bld-io.adb: Update Copyright notice.
7951 (Flush): Remove last character of a line, if it is a back slash, to
7952 avoid make problems.
7953
fbf3e0dd 7954 * gnatsym.adb:
19f0526a
AC
7955 Implement new scheme with reference symbol file and symbol policy.
7956
7957 * g-os_lib.ads: (Is_Directory): Clarify comment
7958
79592003-11-19 Robert Dewar <dewar@gnat.com>
7960
7961 * atree.adb: Move New_Copy_Tree global variables to head of package
7962
7963 * errout.adb: Minor reformatting
7964
79652003-11-19 Javier Miranda <miranda@gnat.com>
7966
7967 * sem_ch4.adb: (Diagnose_Call): Improve error message.
7968 Add reference to Ada0Y (AI-50217)
7969
7970 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
7971 sem_util.adb: Add reference to AI-50217
7972
7973 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
7974
7975 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
7976
7977 * sem_aggr.adb: Complete documentation of AI-287 changes
7978
7979 * par-ch4.adb: Document previous changes.
7980
7981 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
7982 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
7983 Ada0Y (AI-50217)
7984
7985 * exp_aggr.adb: Add references to AI-287 in previous changes
7986
79872003-11-19 Ed Schonberg <schonberg@gnat.com>
7988
fbf3e0dd 7989 * exp_ch6.adb:
19f0526a
AC
7990 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
7991 in the rewriting is the result of an inlined call.
7992
7993 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
7994 parameter is a type conversion, use original node to construct the
7995 post-call assignment, because expression may have been rewritten, e.g.
7996 if it is a packed array.
7997
fbf3e0dd 7998 * sem_attr.adb:
19f0526a
AC
7999 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
8000 body, just as it is in an instance.
8001 Categorization routines
8002
8003 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
8004 Instantiate_Object): Set proper sloc reference for message on missing
8005 actual.
8006
80072003-11-19 Thomas Quinot <quinot@act-europe.fr>
8008
8009 * Makefile.in: Add FreeBSD libgnat pairs.
8010
8011 * usage.adb: Fix typo in usage message.
8012
80132003-11-19 Jerome Guitton <guitton@act-europe.fr>
8014
8015 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
8016 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
8017 pragma Thread_Body.
8018 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
8019
8020 * s-thread.adb: This file is now a dummy implementation of
8021 System.Thread.
8022
80232003-11-19 Sergey Rybin <rybin@act-europe.fr>
8024
8025 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
8026
80272003-11-19 Emmanuel Briot <briot@act-europe.fr>
8028
8029 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
8030 instanciation references in the parent type description.
8031
0d77ab84
AC
80322003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8033
8034 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
8035
8036 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
8037 TYPE_PRECISION directly from esize.
8038
80392003-11-18 Thomas Quinot <quinot@act-europe.fr>
8040
fbf3e0dd 8041 * cstreams.c:
0d77ab84
AC
8042 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
8043
8044 * init.c: Initialization routines for FreeBSD
8045
8046 * link.c: Link info for FreeBSD
8047
8048 * sysdep.c: Add the case of FreeBSD
8049
cb7a5092
AC
80502003-11-17 Jerome Guitton <guitton@act-europe.fr>
8051
8052 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
8053 already called in System.Threads.
8054
8055 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
8056 environment task, as it has been moved to System.Threads.Initialization.
8057
80582003-11-17 Arnaud Charlet <charlet@act-europe.fr>
8059
8060 * adaint.c (__gnatlib_install_locks): Only reference
8061 __gnat_install_locks on VMS, since other platforms can avoid using
8062 --enable-threads=gnat
8063
80642003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8065
8066 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
8067
8068 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
8069 TYPE_PACKED_ARRAY_TYPE_P.
8070 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
8071
8072 Part of PR ada/12806
8073 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
8074 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
8075
80762003-11-17 Vincent Celier <celier@gnat.com>
8077
8078 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
8079 to False.
8080 Do not set exit status to Failure when Warning is True.
8081 (Gnatchop): Make errors "no compilation units found" and
8082 "no source files written" warnings only.
8083
8084 * make.adb (Gnatmake): When using a project file, set
8085 Look_In_Primary_Dir to False.
8086 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
8087 and Local_Configuration_Pragmas in the project where they are declared
8088 not an extending project which might have inherited them.
8089
8090 * osint.adb (Locate_File): If Name is already an absolute path, do not
8091 look for a directory.
8092
8093 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
8094 -gnats (Check_Syntax) is used, issue only a warning, not an error.
8095
8096 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
8097 in objects of type Variable_Value.
8098
8099 * prj.ads: (Variable_Value): New component Project
8100
8101 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
8102 is in a project extended by Project.
8103
8104 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
8105 Project of Variable_Values to this new parameter value.
8106 (Expression): Set component Project of Variable_Values.
8107 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
8108 Set the component Project in array elements.
8109
81102003-11-17 Sergey Rybin <rybin@act-europe.fr>
8111
8112 * errout.adb: (Initialize): Add initialization for error nodes.
8113
8114 * sem_ch12.adb (Initialize): Add missing initializations for
8115 Exchanged_Views and Hidden_Entities.
8116
81172003-11-17 Ed Schonberg <schonberg@gnat.com>
8118
8119 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
8120 already instantiated tree for use in subsequent inlining.
8121 (Analyze_Associations, Instantiate_Formal_Subprogram,
8122 Instantiate_Object): improve error message for mismatch in
8123 instantiations.
8124
8125 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
8126 instantiations of subprograms declared in instances.
8127
81282003-11-17 Javier Miranda <miranda@gnat.com>
8129
8130 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
8131 executed only under the Extensions_Allowed flag.
8132
81332003-11-17 Robert Dewar <dewar@gnat.com>
8134
8135 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
8136 zeroes suppressed.
8137 (Address_Image): Fix bug of returning 0x instead of 0x0
8138 Minor reformatting (function specs).
8139
8140 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
8141 (missed case of 33-63)
8142
8143 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
8144
8145 * s-thread.adb: Add comments for pragma Restriction
8146
8147 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
8148 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
8149
81502003-11-17 Ed Falis <falis@gnat.com>
8151
8152 * s-thread.adb: Added No_Tasking restriction for this implementation.
8153
81542003-11-17 Emmanuel Briot <briot@act-europe.fr>
8155
8156 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
8157 instanciation references in the parent type description.
8158
81592003-11-17 GNAT Script <nobody@gnat.com>
8160
8161 * Make-lang.in: Makefile automatically updated
8162
7d60db05
JM
81632003-11-16 Jason Merrill <jason@redhat.com>
8164
8165 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
8166 and TAGS files that include them for each front end.
8167
c0040397
AJ
81682003-11-14 Andreas Jaeger <aj@suse.de>
8169
a477ab83 8170 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
fbf3e0dd 8171 is the canonical version.
a477ab83
AJ
8172 * misc.c (gnat_handle_option): Likewise.
8173
c0040397
AJ
8174 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
8175
8176 * 5nsystem.ads: New file for x86_64-linux-gnu.
8177
95a6aaf9
AC
81782003-11-14 Arnaud Charlet <charlet@act-europe.fr>
8179
262cc585 8180 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
95a6aaf9 8181
4a4fe537
AC
8182 * comperr.adb: Fix logic in previous change.
8183
65356e64
AC
81842003-11-13 Vincent Celier <celier@gnat.com>
8185
8186 * 5bml-tgt.adb (Build_Dynamic_Library): Use
8187 Osint.Include_Dir_Default_Prefix instead of
8188 Sdefault.Include_Dir_Default_Name.
8189
8190 * gnatlbr.adb: Update Copyright notice
8191 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
8192 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
8193 instead of Sdefault.Object_Dir_Default_Name
8194
c0040397 8195 * gnatlink.adb:
65356e64
AC
8196 (Process_Binder_File): Never suppress the option following -Xlinker
8197
c0040397 8198 * mdll-utl.adb:
65356e64
AC
8199 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
8200 Sdefault.Object_Dir_Default_Name.
8201
c0040397 8202 * osint.ads, osint.adb:
65356e64
AC
8203 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
8204 Minor reformatting.
8205
8206 * vms_conv.ads: Minor reformating
8207 Remove GNAT STANDARD and GNAT PSTA
8208
c0040397 8209 * vms_conv.adb:
65356e64
AC
8210 Allow GNAT MAKE to have several files on the command line.
8211 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
8212 Sdefault.Object_Dir_Default_Name.
8213 Minor Reformating
8214 Remove data for GNAT STANDARD
8215
c0040397 8216 * vms_data.ads:
65356e64
AC
8217 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
8218 Remove data for GNAT STANDARD
8219 Remove options and documentation for -gnatwb/-gnatwB: these warning
8220 options no longer exist.
8221
82222003-11-13 Ed Falis <falis@gnat.com>
8223
8224 * 5zthrini.adb: (Init_RTS): Made visible
8225
c0040397 8226 * 5zthrini.adb:
65356e64
AC
8227 (Register): Removed unnecessary call to taskVarGet that checked whether
8228 an ATSD was already set as a task var for the argument thread.
8229
c0040397 8230 * s-thread.adb:
65356e64
AC
8231 Updated comment to reflect that this is a VxWorks version
8232 Added context clause for System.Threads.Initialization
8233 Added call to System.Threads.Initialization.Init_RTS
8234
82352003-11-13 Jerome Guitton <guitton@act-europe.fr>
8236
c0040397 8237 * 5zthrini.adb:
65356e64
AC
8238 (Init_RTS): New procedure, for the initialization of the run-time lib.
8239
c0040397 8240 * s-thread.adb:
65356e64
AC
8241 Remove dependancy on System.Init, so that this file can be used in the
8242 AE653 sequential run-time lib.
8243
82442003-11-13 Robert Dewar <dewar@gnat.com>
8245
8246 * bindgen.adb: Minor reformatting
8247
82482003-11-13 Ed Schonberg <schonberg@gnat.com>
8249
c0040397 8250 * checks.adb:
65356e64
AC
8251 (Apply_Discriminant_Check): Do no apply check if target type is derived
8252 from source type with no applicable constraint.
8253
c0040397 8254 * lib-writ.adb:
65356e64
AC
8255 (Ensure_System_Dependency): Do not apply the style checks that may have
8256 been specified for the main unit.
8257
c0040397 8258 * sem_ch8.adb:
65356e64
AC
8259 (Find_Selected_Component): Further improvement in error message, with
8260 RM reference.
8261
c0040397 8262 * sem_res.adb:
65356e64
AC
8263 (Resolve): Handle properly the case of an illegal overloaded protected
8264 procedure.
8265
82662003-11-13 Javier Miranda <miranda@gnat.com>
8267
c0040397 8268 * exp_aggr.adb:
65356e64
AC
8269 (Has_Default_Init_Comps): New function to check the presence of
8270 default initialization in an aggregate.
8271 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
8272 extension aggregate of a limited record. In addition, a new formal
8273 was added to do not initialize the record controller (if any) during
8274 this recursive expansion of ancestors.
8275 (Init_Controller): Add support for limited record components.
8276 (Expand_Record_Aggregate): In case of default initialized components
8277 convert the aggregate into a set of assignments.
8278
8279 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
8280 describing the new syntax.
8281 Nothing else needed to be done because this subprogram delegates part of
8282 its work to P_Precord_Or_Array_Component_Association.
8283 (P_Record_Or_Array_Component_Association): Give support to the new
8284 syntax for default initialization of components.
8285
c0040397 8286 * sem_aggr.adb:
65356e64
AC
8287 (Resolve_Aggregate): Relax the strictness of the frontend in case of
8288 limited aggregates.
8289 (Resolve_Record_Aggregate): Give support to default initialized
8290 components.
8291 (Get_Value): In case of default initialized components, duplicate
8292 the corresponding default expression (from the record type
8293 declaration). In case of default initialization in the *others*
8294 choice, do not check that all components have the same type.
8295 (Resolve_Extension_Aggregate): Give support to limited extension
8296 aggregates.
8297
c0040397 8298 * sem_ch3.adb:
65356e64
AC
8299 (Check_Initialization): Relax the strictness of the front-end in case
8300 of aggregate and extension aggregates. This test is now done in
8301 Get_Value in a per-component manner.
8302
8303 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
8304 expression corresponds to a limited aggregate. This test is now done
8305 in Get_Value.
8306
8307 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
8308 Box_Present flag.
8309
8310 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
8311 present in an N_Component_Association node
8312
83132003-11-13 Thomas Quinot <quinot@act-europe.fr>
8314
8315 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
8316 type-conformant entry only if they are homographs.
8317
83182003-11-13 GNAT Script <nobody@gnat.com>
8319
8320 * Make-lang.in: Makefile automatically updated
8321
49add53f
RO
83222003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8323
8324 * adadecode.c: Use <> form of include for ctype.h.
8325 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
8326
94bae1cc
RO
83272003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8328
8329 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
8330 Works around PR middle-end/6552.
8331
463f452c
AC
83322003-11-10 Ed Falis <falis@gnat.com>
8333
8334 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
8335
8336 * 5zinit.adb: (Install_Handler): Moved back to spec
8337 (Install_Signal_Handlers): Deleted
8338
8339 * 5zthrini.adb: Added context clause for System.Storage_Elements
8340 (Register): Only handles creation of taskVar; initialization moved to
8341 Thread_Body_Enter.
8342 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
8343 Added declaration of environment task secondary stack and
8344 initialization.
8345
8346 * s-thread.adb: Implement bodies for thread body processing
8347
c0040397 8348 * s-thread.ads:
463f452c
AC
8349 Added comment identifying supported targets for pragma Thread_Body.
8350
83512003-11-10 Pascal Obry <obry@gnat.com>
8352
8353 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
8354 GNAT_MAX_PATH_LEN.
8355
c0040397 8356 * s-fileio.adb:
463f452c
AC
8357 (Open): Properly check for string length before copying into the buffer.
8358 Raises Name_Error if buffer is too small. Note that this was a potential
8359 buffer overflow.
8360
83612003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
8362
8363 * bindgen.adb, comperr.adb: Code clean ups.
8364 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
8365
83662003-11-10 Sergey Rybin <rybin@act-europe.fr>
8367
8368 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
8369
83702003-11-10 Vincent Celier <celier@gnat.com>
8371
c0040397 8372 * gprcmd.adb:
463f452c
AC
8373 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
8374 installation.
8375
8376 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
8377
8378 * prj.adb: (Project_Empty): Add new boolean component Virtual
8379
8380 * prj.ads: (Virtual_Prefix): New constant string
8381 (Project_Data): New boolean component Virtual
8382
8383 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
8384 a library project is extended by a virtual extending project.
8385
c0040397 8386 * prj-part.adb:
463f452c
AC
8387 Modifications throughout to implement extending-all project, including:
8388 (Virtual_Hash, Processed_Hash): New hash tables
8389 (Create_Virtual_Extending_Project): New procedure
8390 (Look_For_Virtual_Projects_For): New procedure
8391
c0040397 8392 * prj-proc.adb:
463f452c
AC
8393 (Process): After checking the projects, if main project is an
8394 extending-all project, set the object directory of all virtual extending
8395 project to the object directory of the main project.
8396 Adjust error message when a virtual extending project has the same
8397 object directory as an project being extended.
8398 (Recursive_Process): If name starts with the virtual prefix, set Virtual
8399 to True in the project data.
8400
c0040397 8401 * prj-tree.adb:
463f452c
AC
8402 (Default_Project_Node): Add new boolean component Extending_All
8403 (Is_Extending_All): New function
8404 (Set_Is_Extending_All): New procedure
8405
8406 * prj-tree.ads: (Is_Extending_All): New function
8407 (Set_Is_Extending_All): New procedure
8408 (Project_Node_Record): New boolean component Extending_All
8409
8410 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
8411
c0040397 8412 * vms_data.ads:
463f452c
AC
8413 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
8414
8415 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
8416 "gprcmd prefix" to define it.
8417
84182003-11-10 Thomas Quinot <quinot@act-europe.fr>
8419
8420 * einfo.ads: Fix a typo and remove an extraneous word in comments.
8421
c0040397 8422 * lib-load.adb:
463f452c
AC
8423 (Create_Dummy_Package_Unit): Set the scope of the entity for the
8424 created dummy package to Standard_Standard, not to itself, to
8425 defend other parts of the front-end against encoutering a cycle in
8426 the scope chain.
8427
c0040397 8428 * sem_ch10.adb:
463f452c
AC
8429 (Analyze_With_Clause): When setting the entities for the successive
8430 N_Expanded_Names that constitute the name of a child unit, do not
8431 attempt to go further than Standard_Standard in the chain of scopes.
8432 This case arises from the placeholder units created by
8433 Create_Dummy_Package_Unit in the case of a with_clause for a
8434 nonexistent child unit.
8435
84362003-11-10 Ed Schonberg <schonberg@gnat.com>
8437
c0040397 8438 * exp_ch6.adb:
463f452c
AC
8439 (Expand_Thread_Body): Place subprogram on scope stack, so that new
8440 declarations are given the proper scope.
8441
c0040397 8442 * sem_ch13.adb:
463f452c
AC
8443 (Check_Expr_Constants): Reject an expression that contains a constant
8444 created during expansion, and that appears after the object to which
8445 the address clause applies.
8446
8447 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
8448 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
8449 that uses 'Range of a function call with controlled components, so
8450 that the function result can be finalized before starting the loop.
8451
c0040397 8452 * sem_ch8.adb:
463f452c
AC
8453 (Find_Selected_Component): Improve error message when prefix is
8454 an implicit dereference of an incomplete type.
8455
84562003-11-10 Robert Dewar <dewar@gnat.com>
8457
8458 * opt.ads: New Print_Standard flag for -gnatS switch
8459
8460 * sem_ch13.adb: Remove some additional checks for unaligned arrays
8461
8462 * cstand.adb (Create_Standard): Print out package standard if -gnatS
8463 switch set
8464
8465 * debug.adb: Update doc for -gnatds to discuss relationship with new
8466 -gnatS flag
8467
8468 * sinfo.adb: Add new field Entity_Or_Associated_Node
8469
8470 * sinfo.ads: Add new field Entity_Or_Associated_Node
8471 Update documentation for Associated_Node and Entity fields to clarify
8472 relationship and usage.
8473
c0040397 8474 * sprint.adb:
463f452c
AC
8475 (Write_Id): Properly process Associated_Node field in generic template
8476
c0040397 8477 * switch-c.adb:
463f452c
AC
8478 Recognize new -gnatS switch for printing package Standard
8479 This replaces gnatpsta
8480
c0040397 8481 * usage.adb:
463f452c
AC
8482 Add line for new -gnatS switch for printing package Standard
8483 This replaces gnatpsta
8484
c77c5f2e
AJ
84852003-11-10 Andreas Jaeger <aj@suse.de>
8486
8487 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
8488 integer.
8489
5c90f17f
AC
84902003-11-10 Arnaud Charlet <charlet@act-europe.fr>
8491
8492 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
8493 by gnat1.
8494
139f0d1e
AC
84952003-11-10 Arnaud Charlet <charlet@act-europe.fr>
8496
8497 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
8498 no longer needed.
8499
8500 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
8501
8502 * sysdep.c: Add handling of cygwin.
8503
f3e4c05c
GS
85042003-11-10 GNAT Script <nobody@gnat.com>
8505
8506 * Make-lang.in: Makefile automatically updated
8507
2cdc8909
AC
85082003-11-10 Arnaud Charlet <charlet@act-europe.fr>
8509
8510 PR 12950
8511 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
8512 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
8513 Replace GNAT_ROOT by GCC_ROOT.
8514
8515 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
8516
37783865
ZW
85172003-11-06 Zack Weinberg <zack@codesourcery.com>
8518
8519 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
8520 and update for changed meaning of GET_MODE_BITSIZE.
8521
6bc1c519
AC
85222003-11-04 Doug Rupp <rupp@gnat.com>
8523
8524 * sysdep.c: Problem discovered during IA64 VMS port.
8525 [VMS] #include <unixio.h> to get proper prototypes.
8526
37783865 8527 * adaint.c:
6bc1c519
AC
8528 Issues discovered/problems fixed during IA64 VMS port.
8529 [VMS] #define _POSIX_EXIT for proper semantics.
8530 [VMS] #include <unixio.h> for proper prototypes.
8531 [VMS] (fork): #define IA64 version.
8532 (__gnat_os_exit): Remove unnecessary VMS specific code.
8533
85342003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8535
8536 Part of PR ada/12806
8537
8538 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
8539 tree, not integer.
8540
37783865 8541 * decl.c:
6bc1c519
AC
8542 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
8543 not integer.
8544
8545 * targtyps.c, decl.c, misc.c,
8546 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
8547 routines to work around change in FP sizing semantics in GCC.
8548
37783865 8549 * utils.c:
6bc1c519
AC
8550 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
8551
8552 * gigi.h: (enumerate_modes): New function.
8553
8554 * Make-lang.in: (ada/misc.o): Add real.h.
8555
8556 * misc.c: (enumerate_modes): New function.
8557
85582003-11-04 Robert Dewar <dewar@gnat.com>
8559
8560 * 3vtrasym.adb: Minor reformatting
8561 Use terminology encoded/decoded name, rather than C++ specific notion
8562 of mangling (this is the terminology used throughout GNAT).
8563
8564 * einfo.h: Regenerated
8565
8566 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
8567
37783865 8568 * exp_ch6.adb:
6bc1c519
AC
8569 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
8570
8571 * par-prag.adb: Add dummy entry for Thread_Body pragma
8572
37783865 8573 * rtsfind.ads:
6bc1c519
AC
8574 Add entries for System.Threads entities for thread body processing
8575
37783865 8576 * sem_attr.adb:
6bc1c519
AC
8577 (Analyze_Pragma, Access attributes): Check these are not applied to a
8578 thread body, since this is not permitted
8579
8580 * sem_prag.adb: Add processing for Thread_Body pragma.
8581 Minor comment fix.
8582
37783865 8583 * sem_res.adb:
6bc1c519
AC
8584 (Resolve_Call): Check for incorrect attempt to call a thread body
8585 procedure with a direct call.
8586
8587 * snames.ads, snames.adb: Add entry for Thread_Body pragma
8588 Add names associated with thread body expansion
8589
8590 * snames.h: Add entry for Thread_Body pragma
8591
8592 * s-thread.adb: Add entries for thread body processing
8593 These are dummy bodies so far
8594
8595 * s-thread.ads: Add documentation on thread body handling.
8596 Add entries for thread body processing.
8597
85982003-11-04 Javier Miranda <miranda@gnat.com>
8599
37783865 8600 * sem_ch10.adb:
6bc1c519
AC
8601 (Build_Limited_Views): Return after posting an error in case of limited
8602 with_clause on subprograms, generics, instances or generic renamings
8603 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
8604 on subprograms, generics, instances or generic renamings
8605
86062003-11-04 Arnaud Charlet <charlet@act-europe.fr>
8607
8608 * raise.c (setup_to_install): Correct mistake in last revision; two
8609 arguments out of order.
8610
8611 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
8612 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
8613 notice, missed in previous change.
8614 Remove trailing blanks and other style errors introduced in previous
8615 change.
8616
86172003-11-04 Olivier Hainque <hainque@act-europe.fr>
8618
8619 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
8620 rid of the wrapper for a LJM type, ensuring we don't do that if the
8621 field is addressable. This avoids potential low level type view
8622 mismatches later on, for instance in a by-reference argument passing
8623 process.
8624
86252003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8626
8627 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
8628 aligned at byte boundary.
8629
86302003-11-04 Joel Brobecker <brobecker@gnat.com>
8631
8632 * decl.c (components_to_record): Do not delete the empty variants from
8633 the end of the union type.
8634
86352003-11-04 Ed Schonberg <schonberg@gnat.com>
8636
8637 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
8638 operation for a derived type, an explicit declaration may use a local
8639 subtype of Boolean.
8640
86412003-11-04 Vincent Celier <celier@gnat.com>
8642
8643 * make.adb (Gnatmake): Allow main sources on the command line with a
8644 library project when it is only for compilation (no binding or
8645 linking).
8646
487e9fff
RO
86472003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8648
8649 * Makefile.in: Remove many duplicate variables.
8650
63069342
KC
86512003-11-03 Kelley Cook <kcook@gcc.gnu.org>
8652
8653 * Make-lang.in (dvi): Move targets to $(docobjdir).
8654 (gnat_ug_vms.dvi): Simplify rule and adjust target.
8655 (gnat_ug_wnt.dvi): Likewise.
8656 (gnat_ug_unx.dvi): Likewise.
8657 (gnat_ug_vxw.dvi): Likewise.
8658 (gnat_rm.dvi): Likewise.
8659 (gnat-style.dvi): Likewise.
8660
c2edc52b
KC
86612003-10-31 Kelley Cook <kcook@gcc.gnu.org>
8662
8663 * gigi.h: Missed commit from update for C90.
8664
14df9585
KC
86652003-10-31 Kelley Cook <kcook@gcc.gnu.org>
8666
8667 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
8668
acd8e984
AS
86692003-10-31 Andreas Schwab <schwab@suse.de>
8670
8671 * raise.c (get_action_description_for): Fix typo in last change.
8672
b2c62c45
NN
86732003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
8674
8675 PR ada/12761
8676 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
8677 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
8678
9373164a
KC
86792003-10-30 Kelley Cook <kcook@gcc.gnu.org>
8680
8681 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
8682 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
8683 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
8684 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
8685 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
8686
bde58e32
AC
86872003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
8688
37783865 8689 * 3vtrasym.adb:
bde58e32
AC
8690 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
8691 numbers when symbol name is too long.
8692
86932003-10-30 Ed Falis <falis@gnat.com>
8694
8695 * g-signal.ads, g-signal.adb: New files
8696
8697 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
8698
8699 * Makefile.rtl: Introduce GNAT.Signals
8700
87012003-10-30 Robert Dewar <dewar@gnat.com>
8702
8703 * freeze.adb: Minor reformatting
8704
8705 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
8706
37783865
ZW
8707 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
8708 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
bde58e32
AC
8709 New handling of Id_Check parameter to improve recognition of keywords
8710 used as identifiers.
8711 Update copyright notice to include 2003
8712
657a9dd9
AC
87132003-10-29 Robert Dewar <dewar@gnat.com>
8714
8715 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
8716 sem_ch10.adb: Minor reformatting
8717
8718 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
8719 (Expand_Assign_Record): Test right hand side for bit unaligned as well
8720
87212003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
8722
37783865 8723 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
657a9dd9
AC
8724 Support for TBK$SYMBOLIZE-based symbolic traceback.
8725
87262003-10-29 Jose Ruiz <ruiz@act-europe.fr>
8727
37783865 8728 * exp_disp.adb:
657a9dd9
AC
8729 Revert previous change, that did not work well when pragma No_Run_Time
8730 was used in conjunction with a run-time other than ZFP.
8731
87322003-10-29 Vincent Celier <celier@gnat.com>
8733
37783865 8734 * make.adb:
657a9dd9
AC
8735 (Gnatmake): When there are no Ada mains in attribute Main, disable the
8736 bind and link steps only is switch -z is not used.
8737
87382003-10-29 Arnaud Charlet <charlet@act-europe.fr>
8739
8740 * Makefile.generic: Remove duplicated setting of CC.
8741
8742 * Makefile.prolog: Set CC to gcc by default, to override make's
8743 default (cc).
8744
8745 * einfo.h: Regenerated.
8746
87472003-10-29 Ed Schonberg <schonberg@gnat.com>
8748
8749 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
8750 current body, after compiling subunit.
8751
8752 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
8753 when in deleted code, because gigi needs properly ordered freeze
8754 actions to annotate types.
8755
8756 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
8757 prevent the premature freezing of record type that contains
8758 subcomponents with a private type that does not yet have a completion.
8759
87602003-10-29 Javier Miranda <miranda@gnat.com>
8761
37783865 8762 * sem_ch12.adb:
657a9dd9
AC
8763 (Analyze_Package_Instantiation): Check that instances can not be used in
8764 limited with_clauses.
8765
37783865 8766 * sem_ch8.adb:
657a9dd9
AC
8767 (Analyze_Package_Renaming): Check that limited withed packages cannot
8768 be renamed. Improve text on error messages related to limited
8769 with_clauses.
8770
8771 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
8772
8773 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
8774 Update copyright notice.
8775
8776 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
8777 (Install_Limited_Context_Clauses): New subprogram that isolates all the
8778 checks required for limited context_clauses and installs the limited
8779 view.
8780 (Install_Limited_Withed_Unit): Complete its documentation.
8781 (Analyze_Context): Check that limited with_clauses are only allowed in
8782 package specs.
8783 (Install_Context): Call Install_Limited_Context_Clauses after the
8784 parents have been installed.
8785 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
8786 package as 'From_With_Type'; this mark indicates that the limited view
8787 is installed. Used to check bad usages of limited with_clauses.
8788 (Build_Limited_Views): Do not add shadow entities to the scope's list
8789 of entities. Do not add real entities to the Non_Limited_Views chain.
8790 Improve error notification.
8791 (Remove_Context_Clauses): Remove context clauses in two phases:
8792 limited views first and regular views later (to maintain the
8793 stack model).
8794 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
8795 its visible entities.
8796
87972003-10-29 Thomas Quinot <quinot@act-europe.fr>
8798
8799 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
8800 with any type that Is_Fixed_Point_Type.
8801
8802 * sinfo.ads: Fix documentation for Associated_Node attribute.
8803
88042003-10-29 Sergey Rybin <rybin@act-europe.fr>
8805
8806 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
8807 both '-gnatc' and '-gnatt' are specified.
8808
8809 * atree.adb (Initialize): Add initialization for Node_Count (set to
8810 zero).
8811
88122003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8813
8814 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
8815 do not consider as Pure.
8816
8817 Part of implementation of function-at-a-time:
8818
8819 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
8820 (tree_transform): Add new argument to build_component_ref.
8821 (tree_transform, case N_Assignment_Statement): Make and return an
8822 EXPR_STMT.
8823 (tree_transform): If result IS_STMT, set flags and return it.
8824 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
8825
8826 * utils2.c (build_simple_component_ref, build_component_ref): Add new
8827 arg, NO_FOLD_P.
8828 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
8829 (build_allocator): Likewise.
8830
8831 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
8832 Add new arg to build_component_ref.
8833 (maybe_unconstrained_array, unchecked_convert): Likewise.
8834
8835 * ada-tree.def (EXPR_STMT): New code.
8836
8837 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
8838
8839 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
8840 build_component_ref calls.
8841
8842 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
8843
8844 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
8845 (build_component_ref): Add new argument, NO_FOLD_P.
8846
ecad994d
AC
88472003-10-27 Arnaud Charlet <charlet@act-europe.fr>
8848
8849 * Makefile.generic: Add missing substitution on object_deps handling.
8850
8851 PR ada/5909:
8852 * Make-lang.in (check-ada): Enable ACATS test suite.
8853
88542003-10-27 Robert Dewar <dewar@gnat.com>
8855
37783865 8856 * exp_ch3.adb:
ecad994d
AC
8857 (Freeze_Array_Type): We do not need an initialization routine for types
8858 derived from String or Wide_String. They should be treated the same
8859 as String and Wide_String themselves. This caused problems with the
8860 use of Initialize_Scalars.
8861
37783865 8862 * exp_ch5.adb:
ecad994d
AC
8863 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
8864 composites. This allows use of component clauses that are not byte
8865 aligned.
8866
37783865 8867 * sem_prag.adb:
ecad994d
AC
8868 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
8869 is an attempt to pack an array of atomic objects.
8870
8871 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
8872
88732003-10-27 Pascal Obry <obry@gnat.com>
8874
37783865 8875 * g-dirope.adb:
ecad994d
AC
8876 (Basename): Check for drive letters in a pathname only on DOS based OS.
8877
88782003-10-27 Vincent Celier <celier@gnat.com>
8879
37783865 8880 * make.adb:
ecad994d
AC
8881 (Gnatmake): When unable to change dir to the object dir, display the
8882 content of the parent dir of the obj dir, to try to understand why this
8883 happens.
8884
88852003-10-27 GNAT Script <nobody@gnat.com>
8886
8887 * Make-lang.in: Makefile automatically updated
8888
88892003-10-27 Ed Schonberg <schonberg@gnat.com>
8890
37783865 8891 * sem_ch12.adb:
ecad994d
AC
8892 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
8893 should not be done in Save/Restore_Scope_Stack, because it is performed
8894 locally.
8895
37783865 8896 * sem_ch8.adb:
ecad994d
AC
8897 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
8898 whether use clauses should be removed/restored.
8899
37783865 8900 * sem_ch8.ads:
ecad994d
AC
8901 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
8902 whether use clauses should be removed/restored.
8903
b6b3c138
AJ
89042003-10-26 Andreas Jaeger <aj@suse.de>
8905
8906 * Makefile.in: Remove duplicated lines.
8907
b6d83931
AC
89082003-10-24 Arnaud Charlet <charlet@act-europe.fr>
8909
8910 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
8911 minimize the differences with ACT tree.
8912
8913 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
8914 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
8915 Gnatvsn.Gnat_Static_Version_String to reduce differences between
8916 ACT and FSF trees.
8917
89182003-10-24 Pascal Obry <obry@gnat.com>
8919
8920 * adadecode.c (ostrcpy): New function.
8921 (__gnat_decode): Use ostrcpy of strcpy.
8922 (has_prefix): Set first parameter a const.
8923 (has_suffix): Set first parameter a const.
8924 Update copyright notice. Fix source name in header.
8925 Removes a trailing space.
8926 PR ada/12014.
8927
89282003-10-24 Jose Ruiz <ruiz@act-europe.fr>
8929
b6b3c138 8930 * exp_disp.adb:
b6d83931
AC
8931 Remove the test against being in No_Run_Time_Mode before generating a
8932 call to Register_Tag. It is redundant with the test against the
8933 availability of the function Register_Tag.
8934
89352003-10-24 Vincent Celier <celier@gnat.com>
8936
8937 * g-catiio.adb: (Month_Name): Correct spelling of February
8938
8939 * make.adb: (Mains): New package
8940 (Initialize): Call Mains.Delete
8941 (Gnatmake): Check that each main on the command line is a source of a
8942 project file and, if there are several mains, each of them is a source
8943 of the same project file.
8944 (Gnatmake): When a foreign language is specified in attribute Languages,
8945 no main is specified on the command line and attribute Mains is not
8946 empty, only build the Ada main. If there is no Ada main, just compile
8947 the Ada sources and their closure.
8948 (Gnatmake): If a main is specified on the command line with directory
8949 information, check that the source exists and, if it does, that the path
8950 is the actual path of a source of a project.
8951
b6b3c138 8952 * prj-env.adb:
b6d83931
AC
8953 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
8954 Full_Path is True, return the full path instead of the simple file name.
8955 (Project_Of): New function
8956
b6b3c138 8957 * prj-env.ads:
b6d83931
AC
8958 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
8959 defaulted to False.
8960 (Project_Of): New function
8961
89622003-10-24 Arnaud Charlet <charlet@act-europe.fr>
8963
b6b3c138 8964 * Makefile.generic:
b6d83931
AC
8965 Ensure objects of main project are always checked and rebuilt if needed.
8966 Set CC to gcc by default.
8967 Prepare new handling of link by creating a global archive (not activated
8968 yet).
8969
8970 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
8971 stringt.h: Update copyright notice. Remove trailing blanks.
8972 Fix source name in header.
8973
89742003-10-24 Robert Dewar <dewar@gnat.com>
8975
8976 * sem_ch12.adb: Minor reformatting
8977
b6b3c138 8978 * sem_ch3.adb:
b6d83931
AC
8979 Minor reformatting (including new function return style throughout)
8980
b6b3c138 8981 * sem_ch3.ads:
b6d83931
AC
8982 Minor reformatting (including new function return style throughout)
8983
89842003-10-24 Arnaud Charlet <charlet@act-europe.fr>
8985
8986 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
8987 stringt.h: Update copyright notice. Remove trailing blanks.
8988 Fix source name in header.
8989
89902003-10-24 GNAT Script <nobody@gnat.com>
8991
8992 * Make-lang.in: Makefile automatically updated
8993
b4e2d709
NN
89942003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
8995
8996 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
8997 stringt.h: Convert to ISO C90 declarations and definitions.
8998
9d7d51be
AC
89992003-10-23 Thomas Quinot <quinot@act-europe.fr>
9000
9001 PR ada/11978:
9002 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
9003 External_Tag attribute definition clauses.
9004
90052003-10-23 Ed Schonberg <schonberg@gnat.com>
9006
9007 PR ada/7613:
9008 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
9009 child unit, generate a fully qualified name to avoid spurious errors
9010 when the context contains renamings of different child units with
9011 the same simple name.
9012
9013 * exp_dbug.ads: Add documentation on name qualification for renamings
9014 of child units.
9015
90162003-10-23 Robert Dewar <dewar@gnat.com>
9017
9018 * g-regpat.ads, g-regpat.adb: Minor reformatting
9019
90202003-10-23 Jose Ruiz <ruiz@act-europe.fr>
9021
9022 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
9023
90242003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9025
9026 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
9027 Machine call.
9028
9029 * urealp.h: (Machine): Update to proper definition.
9030
6d244bbe
AC
90312003-10-23 Arnaud Charlet <charlet@act-europe.fr>
9032
9033 * init.c, adaint.c: Minor reformatting.
9034
8f4eb34b
DS
90352003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
9036
6d244bbe 9037 * adaint.c (w32_epoch_offset): Define static const at file level.
8f4eb34b
DS
9038 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
9039 rather than t_create, t_access in call to GetFileTime. Use union
9040 to convert between FILETIME and unsigned long long.
9041 (__gnat_file_time_name): Test for invalid file handle.
9042 (__gnat_set_filetime_name): Support win32 targets using
9043 w32api SetFileTime.
9044
25412599
DS
90452003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
9046
9047 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
9048
9049 * ctrl_c.c (__gnat_int_handler): Remove declaration.
9050
9051 * decl.c (creat_concat_name): Const-ify prefix.
9052
9053 * adaint.c: Include ctype.h if __MINGW32__.
9054 (__gnat_readlink): Mark arguments as possibly unused.
9055 (__gnat_symlink): Likewise.
9056 (__gnat_is_symbolic_link): Likewise.
9057 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
9058 declaration
b6b3c138 9059 (__gnat_file_time_name): Don't declare struct stat statbuf when
25412599
DS
9060 not needed.
9061 (__gnat_is_absolute_path): Add parenthesis around condition of
9062 'if' statement to avoid warning.
9063 (__gnat_plist_init): Specify void as parameter.
9064 (plist_enter): Likewise.
9065 (plist_leave): Likewise.
9066 (remove_handle): Make static. Initialize prev.
9067
698a5e79
AC
90682003-10-22 Arnaud Charlet <charlet@act-europe.fr>
9069
6d244bbe 9070 * Makefile.in: Disable build of gnatpsta. PR ada/10110.
698a5e79
AC
9071 * cstreams.c (__gnat_full_name): Minor improvements and clean up
9072 of previous change.
9073
e97c30aa
RO
90742003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9075
9076 * tracebak.c (MAX): Avoid redefinition warning.
9077
9078 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
9079 Change msg to const char *.
9080 (__gnat_install_handler): Remove ss, unused.
9081 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
9082 to const char *.
9083 * cstreams.c (__gnat_full_name): Declare p only when used.
9084 (__gnat_full_name) [sgi] Return buffer.
9085
65f1ebd1
AC
90862003-10-22 Arnaud Charlet <charlet@act-europe.fr>
9087
9088 * mingw32.h: New file.
0c644933
AC
9089 * gnat_wrapper.adb: New file.
9090
6d244bbe 90912003-10-22 Jerome Roussel <roussel@act-europe.fr>
0c644933
AC
9092
9093 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
9094 string match a pre compiled regular expression (the corresponding
9095 version of the function working on a raw regular expression)
9096 Fix typos in various comments
9097 Update copyright notice in spec
9098
6d244bbe 90992003-10-21 Gary Dismukes <dismukes@gnat.com>
0c644933 9100
b6b3c138 9101 * exp_ch3.adb:
0c644933
AC
9102 (Component_Needs_Simple_Initialization): Return False when the type is a
9103 packed bit array. Revise spec comments to document this case.
9104
b6b3c138 9105 * exp_prag.adb:
0c644933
AC
9106 (Expand_Pragma_Import): Set any expression on the imported object to
9107 empty to avoid initializing imported objects (in particular this
9108 covers the case of zero-initialization of bit arrays).
9109 Update copyright notice.
9110
6d244bbe 91112003-10-21 Ed Schonberg <schonberg@gnat.com>
0c644933 9112
b6b3c138 9113 * sem_ch12.adb:
0c644933
AC
9114 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
9115 a subunit is missing.
9116 (Instantiate_Subprogram_Body): If body of function is missing, set type
9117 of return expression explicitly in dummy body, to prevent cascaded
9118 errors when a subunit is missing.
9119 Fixes PR 5677.
9120
b6b3c138 9121 * sem_ch3.adb:
0c644933
AC
9122 (Access_Subprogram_Declaration): Verify that return type is valid.
9123 Fixes PR 8693.
9124
b6b3c138 9125 * sem_elab.adb:
0c644933
AC
9126 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
9127 generic.
9128 Fixes PR 12318.
9129
b6b3c138 9130 * sem_util.adb:
0c644933
AC
9131 (Corresponding_Discriminant): If the scope of the discriminant is a
9132 private type without discriminant, use its full view.
9133 Fixes PR 8247.
65f1ebd1 9134
fbf5a39b
AC
91352003-10-21 Arnaud Charlet <charlet@act-europe.fr>
9136
9137 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
9138 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
9139 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
9140 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
9141 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
9142 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
9143 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
9144 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
9145 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
9146 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
9147 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
9148 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
9149 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
9150 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
9151 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
9152 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
9153 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
9154 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
9155 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
9156 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
9157 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
9158 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
9159 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
9160 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
9161 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
9162 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
9163 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
9164 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
9165 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
9166 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
9167 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
9168 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
9169 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
9170 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
9171 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
9172 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
9173 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
9174 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
9175 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
9176 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
9177 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
9178 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
9179 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
9180 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
9181 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
9182 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
9183 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
9184 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
9185 vms_conv.ads, vms_conv.adb, vms_data.ads,
9186 vxaddr2line.adb: Files added. Merge with ACT tree.
9187
9188 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
9189 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
9190 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
9191 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
9192 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
9193 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
9194 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
9195 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
9196 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
9197 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
9198
9199 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
9200 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
9201 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
9202 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
9203 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
9204 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
9205 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
9206 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
9207 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
9208 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
9209 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
9210 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
9211 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
9212 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
9213 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
9214 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
9215 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
9216 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
9217 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
9218 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
9219 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
9220 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
9221 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
9222 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
9223 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
9224 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
9225 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
9226 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
9227 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
9228 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
9229 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
9230 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
9231 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
9232 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
9233 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
9234 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
9235 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
9236 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
9237 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
9238 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
9239 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
9240 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
9241 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
9242 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
9243 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
9244 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
9245 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
9246 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
9247 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
9248 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
9249 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
9250 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
9251 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
9252 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
9253 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
9254 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
9255 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
9256 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
9257 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
9258 checks.adb, checks.ads, cio.c, comperr.adb,
9259 comperr.ads, csets.adb, cstand.adb, cstreams.c,
9260 debug_a.adb, debug_a.ads, debug.adb, decl.c,
9261 einfo.adb, einfo.ads, errout.adb, errout.ads,
9262 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
9263 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
9264 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
9265 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
9266 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
9267 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
9268 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
9269 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
9270 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
9271 fe.h, fmap.adb, fmap.ads, fname.adb,
9272 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
9273 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
9274 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
9275 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
9276 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
9277 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
9278 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
9279 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
9280 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
9281 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
9282 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
9283 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
9284 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
9285 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
9286 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
9287 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
9288 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
9289 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
9290 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
9291 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
9292 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
9293 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
9294 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
9295 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
9296 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
9297 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
9298 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
9299 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
9300 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
9301 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
9302 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
9303 layout.adb, lib.adb, lib.ads, lib-list.adb,
9304 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
9305 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
9306 link.c, live.adb, make.adb, make.ads,
9307 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
9308 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
9309 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
9310 misc.c, mkdir.c, mlib.adb, mlib.ads,
9311 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
9312 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
9313 namet.adb, namet.ads, namet.h, nlists.ads,
9314 nlists.h, nmake.adt, opt.adb, opt.ads,
9315 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
9316 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
9317 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
9318 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
9319 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
9320 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
9321 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
9322 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
9323 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
9324 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
9325 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
9326 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
9327 prj-util.adb, prj-util.ads, raise.c, raise.h,
9328 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
9329 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
9330 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
9331 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
9332 scans.ads, scn.adb, scn.ads, s-crc32.adb,
9333 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
9334 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
9335 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
9336 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
9337 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
9338 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
9339 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
9340 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
9341 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
9342 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
9343 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
9344 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
9345 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
9346 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
9347 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
9348 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
9349 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
9350 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
9351 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
9352 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
9353 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
9354 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
9355 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
9356 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
9357 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
9358 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
9359 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
9360 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
9361 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
9362 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
9363 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
9364 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
9365 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
9366 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
9367 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
9368 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
9369 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
9370 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
9371 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
9372 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
9373 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
9374 stringt.adb, stringt.ads, stringt.h, style.ads,
9375 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
9376 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
9377 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
9378 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
9379 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
9380 table.adb, table.ads, targparm.adb, targparm.ads,
9381 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
9382 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
9383 ttypes.ads, types.ads, types.h, uintp.adb,
9384 uintp.ads, uintp.h, uname.adb, urealp.adb,
9385 urealp.ads, urealp.h, usage.adb, utils2.c,
9386 utils.c, validsw.adb, validsw.ads, widechar.adb,
9387 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
9388 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
9389 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
9390 gnatvsn.ads: Merge with ACT tree.
9391
9392 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
9393
97ae108d
MM
93942003-10-20 Mark Mitchell <mark@codesourcery.com>
9395
de696511
MM
9396 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
9397 (gnat_ug_vmx.info): Likewise.
9398 (gnat_ug_vxw.info): Likewise.
9399 (gnat_ug_wnt.info): Likewise.
9400 (gnat_rm.info): Likewise.
9401 (gnat-style.info): Likewise.
9402
97ae108d
MM
9403 * Make-lang.in (ada.install-info): Remove target.
9404 (info): New target.
9405 (install-info): Likewise.
9406 (gnat_ug_unx.info): Simplify rule.
9407 (gnat_ug_vmx.info): Likewise.
9408 (gnat_ug_vxw.info): Likewise.
9409 (gnat_ug_wnt.info): Likewise.
9410 (gnat_rm.info): Likewise.
9411 (gnat-style.info): Likewise.
9412
43aba518
NN
94132003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
9414
9415 * Make-lang.in: Replace uses of $(target_alias) with
9416 $(target_noncanonical).
9417 * ada/Makefile.in: Remove unused mention of $(target_alias).
9418
62b81e45
MM
94192003-10-06 Mark Mitchell <mark@codesourcery.com>
9420
9421 * Make-lang.in (ada.info): Replace with ...
9422 (info): ... this.
9423 (ada.dvi): Replace with ...
9424 (dvi): ... this.
9425
783be936
ZW
94262003-09-29 Zack Weinberg <zack@codesourcery.com>
9427
9428 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
9429 initialize dconstp5 and dconstmp5.
9430
177560b2
RH
94312003-09-28 Richard Henderson <rth@redhat.com>
9432
9433 * trans.c (tree_transform): Update call to expand_asm_operands.
9434
f31686a3
RH
94352003-09-21 Richard Henderson <rth@redhat.com>
9436
9437 * trans.c, utils.c: Revert.
9438
7e2af53a
RH
94392003-09-21 Richard Henderson <rth@redhat.com>
9440
9441 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
9442 change to const.
9443
5f1e32fa
MM
94442003-09-04 Michael Matz <matz@suse.de>
9445
9446 * misc.c: Include "target.h".
9447 * Make-lang.in (misc.o): Add dependency on target.h.
9448
61f71b34
DD
94492003-09-03 DJ Delorie <dj@redhat.com>
9450
9451 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
9452 hook.
9453
2ed26f6b
ZW
94542003-08-30 Zack Weinberg <zack@codesourcery.com>
9455
9456 * Makefile.in: Update substitutions to match changes to
9457 configure. Use include directives instead of @-insertions
9458 to read in host and target fragments. Add a rule to
9459 regenerate ada/Makefile.
9460
b2e608ca
NB
94612003-07-18 Neil Booth <neil@daikokuya.co.uk>
9462
9463 * lang-options.h: Remove.
9464 * lang.opt: Add help text.
9465
0cea056b
NS
94662003-07-07 Nathan Sidwell <nathan@codesourcery.com>
9467
9468 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
9469 calls.
9470
cb66e385
NB
94712003-07-06 Neil Booth <neil@daikokuya.co.uk>
9472
9473 * misc.c (gnat_handle_option): Don't handle filenames.
9474
8c90b13a
L
94752003-07-04 H.J. Lu <hongjiu.lu@intel.com>
9476
9477 * Make-lang.in: Replace PWD with PWD_COMMAND.
9478 * Makefile.adalib: Likewise.
9479 * Makefile.in: Likewise.
9480
9c286213
MK
94812003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
9482
9483 * misc.c (gnat_argv): Revert last change.
9484 (gnat_handle_option, gnat_init_options): Copy arguments.
9485
b9add449
NB
94862003-07-03 Neil Booth <neil@daikokuya.co.uk>
9487
9c286213 9488 * misc.c (gnat_argv): Make const.
b9add449 9489
836d77a9
NB
94902003-07-02 Neil Booth <neil@daikokuya.co.uk>
9491
9492 * misc.c (save_argc, save_argv): Keep non-static!
9493
b86f6cd9
NB
94942003-07-02 Neil Booth <neil@daikokuya.co.uk>
9495
9496 * misc.c (save_argc, save_argv): Make static.
9497 (gnat_init_options): New prototype.
9498 (gnat_init_options): Update.
9499
6344b1f1
MK
95002003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
9501
9502 * gnat_ug.texi: Remove unlikely characters from @vars.
9503 * gnat_ug_vms.texi: Regenerate.
9504
2e040219
NS
95052003-06-27 Nathan Sidwell <nathan@codesourcery.com>
9506
9507 * misc.c (record_code_position): Adjust emit_note call.
9508
9eee5e72
NB
95092003-06-26 Neil Booth <neil@daikokuya.co.uk>
9510
9511 * misc.c (gnat_handle_option): Don't check for missing arguments.
9512
1f9cc6db
NS
95132003-06-20 Nathan Sidwell <nathan@codesourcery.com>
9514
9515 * utils.c (end_subprog_body): Adjust expand_function_end call.
9516
23d6baa3
MK
95172003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
9518
9519 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
9520 Bind_Main_Program.
9521
be43ab4e
NB
95222003-06-15 Neil Booth <neil@daikokuya.co.uk>
9523
9524 * lang.opt: Declare Ada.
9525 * misc.c (gnat_init_options): Update.
9526
ee6b0296
NS
95272003-06-14 Nathan Sidwell <nathan@codesourcery.com>
9528
9529 * utils.c (begin_subprog_body): Adjust init_function_start call.
9530
d7b42618
NB
95312003-06-14 Neil Booth <neil@daikokuya.co.uk>
9532
9533 * Make-lang.in: Update to use options.c and options.h.
9534 * misc.c: Include options.h not aoptions.h.
9535 (gnat_handle_option): Abort on unrecognized switch.
9536 (gnat_init_options): Request Ada switches.
9537
57eb6503
NB
95382003-06-14 Neil Booth <neil@daikokuya.co.uk>
9539
9540 * lang.opt: Add -Wall.
9541 * misc.c (gnat_handle_option): Handle it.
9542
70fd6569
NB
95432003-06-12 Neil Booth <neil@daikokuya.co.uk>
9544
9545 * misc.c (gnat_handle_option): Fix warnings.
9546
8cdea5a1
MK
95472003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
9548
9549 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
9550
3c900cb5
NB
95512003-06-11 Neil Booth <neil@daikokuya.co.uk>
9552
9553 * Make-lang.in: Update to handle command-line options.
9554 * lang.opt: New file.
9555 * misc.c: Include aoptions.h.
9556 (cl_options_count, cl_options): Remove.
9557 (gnat_handle_option): New.
9558 (gnat_decode_option): Remove.
9559 (LANG_HOOKS_DECODE_OPTION): Remove.
9560 (LANG_HOOKS_HANDLE_OPTION): Override.
9561
e8face4c
NN
95622003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
9563
9564 * init.c, misc.c, trans.c, utils.c: Remove dead code.
9565
4665e56c
NN
95662003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
9567
9568 * Makefile.in: Replace "host_canonical" with "host" for autoconf
9569 substitution.
9570
a165c302
NB
95712003-06-08 Neil Booth <neil@daikokuya.co.uk>
9572
9573 * Make-lang.in: Update.
9574 * misc.c: Include opts.h. Define cl_options_count and cl_options.
9575
2772ef3e
NB
95762003-06-07 Neil Booth <neil@daikokuya.co.uk>
9577
9578 * misc.c (gnat_init_options): Update.
9579
d8277a55
MK
95802003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
9581
9582 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
9583 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
9584 __attribute__ ((__unused__)).
9585
602a82f3 95862003-06-05 Jan Hubicka <jh@suse.cz>
8f231b5d
JH
9587
9588 * Make-lang.in: Add support for stageprofile and stagefeedback
9589
3aa07c6d
MK
95902003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
9591
9592 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
9593 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
9594
f1093866
MK
95952003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
9596
9597 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
9598 Remove non-VMS directive.
9599 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
9600 alternatives.
9601 (Examples of gnatls Usage): Remove VMS alternative.
dee2df72
OH
9602
96032003-06-04 Olivier Hainque <hainque@act-europe.fr>
9604
2ed26f6b
ZW
9605 PR ada/9953:
9606 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
9607 and turn ZCX_By_Default back to False since the underlying support
9608 is not quite there yet.
dee2df72 9609
80eaf415
AJ
96102003-06-01 Andreas Jaeger <aj@suse.de>
9611
9612 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
9613 and ROUND_TYPE_SIZE_UNIT.
9614
36f9020c
GB
96152003-05-22 Geert Bosch <bosch@gnat.com>
9616
9617 * gnat_rm.texi : Remove reference to Ada Core Technologies.
9618
e7b5f0c9
NS
96192003-05-03 Nathan Sidwell <nathan@codesourcery.com>
9620
9621 * trans.c (tree_transform): Use location_t and input_location
9622 directly.
9623 (build_unit_elab): Likewise.
9624 * utils.c (create_label_decl): Likewise.
9625
d479d37f
NS
96262003-05-01 Nathan Sidwell <nathan@codesourcery.com>
9627
561712fe
NS
9628 * trans.c (tree_transform, build_unit_elab,
9629 set_lineno): Rename lineno to input_line.
d479d37f
NS
9630 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
9631 end_subprog_body): Likewise.
9632 * utils2.c (build_call_raise): Likewise.
9633
4f9335cd
LG
96342003-05-01 Laurent Guerby <guerby@acm.org>
9635
2ed26f6b
ZW
9636 PR ada/10546
9637 * 5iosinte.ads: Increase pthread_cond_t size to match recent
9638 LinuxThread and NPTL version, merge from ACT.
80eaf415 9639
0864034e
ZW
96402003-04-28 Zack Weinberg <zack@codesourcery.com>
9641
9642 * utils.c (convert): No need to clear TREE_CST_RTL.
9643
bcea76b6
GB
96442003-04-23 Geert Bosch <bosch@gnat.com>
9645
9646 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
9647 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
9648 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
9649 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
9650 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
9651 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
9652 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
9653 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
9654 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
9655 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
9656 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
9657 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
9658 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
9659 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
9660 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
9661 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
9662 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
9663 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
9664 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
9665 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
9666 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
9667 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
9668 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
9669 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
9670 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
9671 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
9672 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
9673 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
9674 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
9675 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
9676 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
9677 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
9678 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
9679 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
9680 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
9681 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
9682 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
9683 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
9684 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
9685 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
9686 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
9687 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
9688 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
9689 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
9690 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
9691 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
9692 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
9693 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
9694 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
9695 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
9696 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
9697 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
9698 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
9699 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
9700 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
9701 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
9702 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
9703 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
9704 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
9705 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
9706 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
9707 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
9708 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
9709 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
9710 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
9711 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
9712 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
9713 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
9714 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
9715 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
9716 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
9717 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
9718 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
9719 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
9720 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
9721 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
9722 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
9723 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
9724 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
9725 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
9726 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
9727 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
9728 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
9729 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
9730 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
9731 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
9732 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
9733 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
9734 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
9735 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
9736 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
9737 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
9738 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
9739 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
9740 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
9741 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
9742 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
9743 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
9744 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
9745 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
9746 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
9747 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
9748 ali.adb, ali.ads, alloc.ads, argv.c,
9749 atree.adb, atree.ads, atree.h, aux-io.c,
9750 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
9751 binde.adb, binde.ads, binderr.adb, binderr.ads,
9752 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
9753 butil.adb, butil.ads, cal.c, calendar.ads,
9754 casing.adb, casing.ads, ceinfo.adb, checks.adb,
9755 checks.ads, cio.c, comperr.adb, comperr.ads,
9756 config-lang.in, csets.adb, csets.ads, csinfo.adb,
9757 cstand.adb, cstand.ads, cuintp.c, debug.adb,
9758 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
9759 dec-io.ads, dec.ads, deftarg.c, directio.ads,
9760 einfo.adb, einfo.ads, elists.adb, elists.ads,
9761 elists.h, errno.c, errout.adb, errout.ads,
9762 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
9763 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
9764 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
9765 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
9766 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
9767 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
9768 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
9769 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
9770 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
9771 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
9772 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
9773 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
9774 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
9775 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
9776 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
9777 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
9778 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
9779 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
9780 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
9781 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
9782 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
9783 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
9784 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
9785 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
9786 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
9787 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
9788 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
9789 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
9790 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
9791 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
9792 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
9793 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
9794 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
9795 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
9796 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
9797 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
9798 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
9799 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
9800 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
9801 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
9802 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
9803 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
9804 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
9805 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
9806 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
9807 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
9808 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
9809 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
9810 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
9811 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
9812 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
9813 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
9814 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
9815 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
9816 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
9817 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
9818 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
9819 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
9820 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
9821 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
9822 lib.adb, lib.ads, live.adb, live.ads,
9823 machcode.ads, make.adb, make.ads, makeusg.adb,
9824 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
9825 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
9826 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
9827 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
9828 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
9829 mlib.ads, namet.adb, namet.ads, nlists.adb,
9830 nlists.ads, opt.adb, opt.ads, osint-b.adb,
9831 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
9832 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
9833 osint.ads, output.adb, output.ads, par-ch10.adb,
9834 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
9835 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
9836 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
9837 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
9838 par-tchk.adb, par-util.adb, par.adb, par.ads,
9839 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
9840 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
9841 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
9842 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
9843 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
9844 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
9845 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
9846 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
9847 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
9848 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
9849 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
9850 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
9851 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
9852 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
9853 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
9854 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
9855 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
9856 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
9857 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
9858 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
9859 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
9860 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
9861 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
9862 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
9863 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
9864 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
9865 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
9866 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
9867 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
9868 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
9869 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
9870 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
9871 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
9872 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
9873 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
9874 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
9875 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
9876 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
9877 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
9878 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
9879 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
9880 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
9881 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
9882 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
9883 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
9884 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
9885 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
9886 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
9887 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
9888 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
9889 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
9890 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
9891 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
9892 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
9893 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
9894 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
9895 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
9896 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
9897 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
9898 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
9899 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
9900 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
9901 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
9902 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
9903 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
9904 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
9905 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
9906 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
9907 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
9908 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
9909 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
9910 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
9911 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
9912 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
9913 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
9914 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
9915 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
9916 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
9917 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
9918 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
9919 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
9920 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
9921 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
9922 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
9923 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
9924 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
9925 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
9926 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
9927 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
9928 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
9929 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
9930 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
9931 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
9932 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
9933 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
9934 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
9935 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
9936 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
9937 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
9938 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
9939 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
9940 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
9941 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
9942 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
9943 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
9944 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
9945 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
9946 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
9947 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
9948 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
9949 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
9950 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
9951 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
9952 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
9953 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
9954 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
9955 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
9956 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
9957 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
9958 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
9959 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
9960 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
9961 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
9962 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
9963 snames.ads, sprint.adb, sprint.ads, stand.adb,
9964 stand.ads, stringt.adb, stringt.ads, style.adb,
9965 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
9966 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
9967 switch-m.ads, switch.adb, switch.ads, system.ads,
9968 table.adb, table.ads, targparm.adb, targparm.ads,
9969 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
9970 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
9971 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
9972 ttypef.ads, ttypes.ads, types.adb, types.ads,
9973 uintp.adb, uintp.ads, uname.adb, uname.ads,
9974 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
9975 usage.adb, usage.ads, validsw.adb, validsw.ads,
9976 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
9977 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
9978 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
9979 formatting and other trivial changes from ACT.
9980
dcf92453
ZW
99812003-04-12 Zack Weinberg <zack@codesourcery.com>
9982
9983 * gigi.h, utils2.c (build_constructor):
9984 Rename gnat_build_constructor. Use build_constructor.
9985 * decl.c (gnat_to_gnu_entity)
9986 * trans.c (tree_transform, pos_to_constructor, extract_values)
9987 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
9988 (unchecked_convert)
9989 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
9990 (fill_vms_descriptor):
9991 Update to match.
9992
d78e771d
ZW
99932003-04-06 Zack Weinberg <zack@codesourcery.com>
9994
9995 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
9996 * misc.c (gnat_tree_size): New function.
9997 (LANG_HOOKS_TREE_SIZE): Override.
9998
78d55cc8
JM
99992003-04-03 Jason Merrill <jason@redhat.com>
10000
10001 * misc.c (gnat_adjust_rli): #if 0.
10002
b174e2d4
GB
100032003-03-31 Geert Bosch <bosch@gnat.com>
10004
10005 PR ada/10020
10006 * link.c : Fix misspelled "const" keyword
10007
f29a2bd1
MM
100082003-03-23 Mark Mitchell <mark@codesourcery.com>
10009
10010 PR c++/7086
10011 * utils2.c: Adjust calls to put_var_into_stack.
10012
08e247b1
NN
100132003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
10014
10015 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
10016
4bfec483
NB
100172003-03-08 Neil Booth <neil@daikokuya.co.uk>
10018
10019 * misc.c (gnat_init): Update for new prototype.
10020
3d713bb8
GB
100212003-03-05 Olivier Hainque <hainque@gnat.com>
10022
10023 ada/9961
78d55cc8
JM
10024 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
10025 warning, and fix return type for the IN_RTS && !SJLJ case.
3d713bb8 10026
8b89fcdf
TT
100272003-03-04 Tom Tromey <tromey@redhat.com>
10028
10029 * Make-lang.in (ada.tags): New target.
10030
3d713bb8 100312003-03-04 Olivier Hainque <hainque@act-europe.fr>
23cae84f
OH
10032
10033 ada/9911
10034 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
10035 wrapper, which name remains constant whatever underlying GCC
10036 scheme.
10037
10038 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
10039 the stable interface needed for a-except.
10040
f4ae98be
AJ
100412003-03-02 Andreas Jaeger <aj@suse.de>
10042
10043 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
10044 gnat_ug_wnt.texi: Regenerate.
10045
5348742b
LG
100462003-03-02 Laurent Guerby <guerby@acm.org>
10047
f4ae98be 10048 * Makefile.in (install-gnatlib): Match previous change there
5348742b 10049 so it works.
f4ae98be 10050
8c108db2
AS
100512003-02-28 Andreas Schwab <schwab@suse.de>
10052
10053 * Make-lang.in (install-gnatlib): Change to ada directory before
10054 running make instead of using ada/Makefile directly.
10055
601d71bc
BE
100562003-02-18 Ben Elliston <bje@redhat.com>
10057
10058 Part of fix for PR ada/9406
10059 * gnat_ug.texi (Binder output file): Grammar fix.
10060
bf7c02dd
BE
100612003-02-18 Ben Elliston <bje@redhat.com>
10062
10063 PR other/7350
10064 * 5qtaprop.adb (Sleep): Fix typo in comment.
10065
b3a8389d
JM
100662003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
10067
10068 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
10069 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
10070 gnat_ug_wnt.texi: Regenerate.
10071
5da14cb5
CC
100722003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
10073
10074 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
10075 be created if necessary.
10076 (ada.install-common): Let $(DESTDIR)$(bindir) be created
10077 if necessary. Remove erroneous and redundant gnatchop
10078 installation commands. Test for gnatdll before attempting
10079 to install it.
10080 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
10081 and gnatdll from all plausible locations.
10082
271bd540
RS
100832003-02-01 Richard Sandiford <rsandifo@redhat.com>
10084
10085 * utils2.c (build_unary_op): Don't check flag_volatile.
10086 * gnat_ug.texi: Remove -fvolatile from example.
10087 * gnat_ug_vxw.texi: Likewise.
10088
c1cc6a51
LG
100892003-01-29 Laurent Guerby <guerby@acm.org>
10090
d78e771d
ZW
10091 PR ada/8344
10092 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
10093 * Makefile.in: match previous change.
10094 * Make-lang.in: match previous change.
c1cc6a51 10095
c4039eb0
JS
100962003-01-29 Joel Sherrill <joel@OARcorp.com>
10097
10098 * 5rosinte.ads: Add SIGXCPU.
10099 * 5rtpopsp.adb: New file.
10100 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
10101 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
10102 specific file 5rtpopsp.adb.
10103 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
10104 is likely needed for all newlib targets.
10105 * init.c: Add RTEMS specific version of __gnat_initialize().
10106
00d29f7d
RO
101072003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10108
10109 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
10110
437026ef
RO
101112003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10112
10113 * init.c (__gnat_error_handler): Make msg const.
10114
10115 * gmem.c (convert_addresses): Move declaration ...
10116 * adaint.h: ... here.
10117 * adaint.c (convert_addresses): Adapt addrs type to match
10118 prototype.
10119
10120 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
10121
e12825cd
AS
101222003-01-24 Andreas Schwab <schwab@suse.de>
10123
10124 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
10125 size_t to avoid warning.
10126
a8729406
ZW
101272003-01-21 Zack Weinberg <zack@codesourcery.com>
10128
b09b91b9 10129 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
a8729406 10130
17211ab5
GK
101312003-01-09 Geoffrey Keating <geoffk@apple.com>
10132
10133 * gnat_rm.texi: Remove RCS version number.
10134
10135 * ada-tree.h (union lang_tree_node): Add chain_next option.
10136
1d27195c
CC
101372003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
10138
10139 * Make-lang.in (ada.install-info, ada.install-common,
10140 ada.uninstall): Prepend $(DESTDIR) to the destination
10141 directory in all (un)installation commands.
10142 * Makefile.in (install-gnatlib, install-rts): Ditto.
10143
bdefb2ab
JM
101442002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
10145
10146 * gnat_rm.texi, gnat_ug.texi: Use @copying.
10147 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
10148 gnat_ug_wnt.texi: Regenerate.
10149
46d40353
JM
101502002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
10151
10152 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
10153 only.
10154 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
10155 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
10156 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
10157 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
10158 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
10159 $(srcdir)/doc/include/gcc-common.texi.
10160
d2f97d3e
GB
101612002-12-15 Geert Bosch <bosch@gnat.com>
10162
10163 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
10164
93a81b02
GB
101652002-12-14 Geert Bosch <bosch@gnat.com>
10166
4977bab6
ZW
10167 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
10168 case of a body created for a Renaming_As_Body, on which
10169 conformance checks are not performed. Fixes PR ada/5690.
10170
101712002-11-30 Zack Weinberg <zack@codesourcery.com>
10172
10173 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
10174 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
10175 not already included.
10176 * Make-lang.in: Update dependencies.
93a81b02 10177
dfc15546
NN
101782002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
10179 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
4977bab6 10180 solution to buffer overflow bug on GNU/Linux.
dfc15546 10181
8b54424d
NN
101822002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
10183 Closes PR ada/5856 and PR ada/6919 !
10184 * bindgen.adb: Remove all references to Public_Version.
10185 * comperr.adb: Remove all references to Public_Version and
10186 GNATPRO_Version; correct bug reporting instructions.
10187 * comperr.ads: Change to match bug box.
10188 * gnatvsn.ads: Remove all references to Public version and
10189 GNATPRO version.
10190
cc41268d 101912002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
1a083c0e
NN
10192 PR ada/6919
10193 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
10194 GNU/Linux.
10195
cc41268d
NN
10196 PR ada/6558
10197 * config-lang.in: Remove diff_excludes.
10198
1c7b0712
GS
101992002-11-05 Graham Stott <graham.stott@btinternet.com>
10200 PR ada/8358
10201 * trans.c (gnu_pending_elaboration_lists): New GC root.
4977bab6 10202 (build_unit_elab): Use..
1c7b0712 10203
1c4048ca
GB
102042002-10-30 Geert Bosch <bosch@gnat.com>
10205 PR ada/6558
10206 * misc.c : Include optabs.h
10207
10208 * Make-lang.in (misc.o): Add dependency on optabs.h
10209
f0d96f9c 102102002-10-29 Geert Bosch <bosch@gnat.com>
4977bab6 10211 PR ada/6558
f0d96f9c
GB
10212 * Make-lang.in (gnatbind): Depend on CONFIG_H
10213
a7512dec 102142002-10-29 Geert bosch <bosch@gnat.com>
4977bab6
ZW
10215 PR ada/6558
10216 * misc.c: Unrevert misc.c (1.13)
a7512dec 10217
c6362f4f
NN
102182002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
10219
10220 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
10221 maintainership comments.
10222
102232002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
91ed4b19 10224 PR ada/5904
4977bab6
ZW
10225 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
10226 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
10227 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
10228 7staprop.adb: Correct statements in comments about
91ed4b19
NN
10229 maintainership of GNAT.
10230
1f02b6af 10231 PR ada/5904
4977bab6
ZW
10232 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
10233 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
10234 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
10235 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
10236 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
10237 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
10238 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
1f02b6af
NN
10239 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
10240 comments about maintainership of GNAT.
10241
71ff80dc 10242 PR ada/6919 (forward port of patch for PR ada/5904)
4977bab6
ZW
10243 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
10244 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
10245 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
10246 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
10247 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
10248 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
10249 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
10250 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
10251 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
10252 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
10253 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
10254 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
10255 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
10256 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
10257 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
10258 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
10259 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
10260 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
10261 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
10262 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
10263 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
10264 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
10265 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
10266 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
10267 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
10268 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
10269 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
10270 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
10271 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
10272 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
10273 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
10274 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
10275 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
10276 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
10277 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
10278 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
10279 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
10280 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
10281 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
10282 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
10283 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
10284 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
10285 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
10286 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
10287 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
10288 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
10289 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
10290 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
10291 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
10292 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
10293 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
10294 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
10295 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
10296 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
10297 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
10298 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
10299 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
10300 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
10301 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
10302 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
10303 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
10304 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
10305 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
10306 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
10307 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
10308 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
10309 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
10310 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
10311 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
10312 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
10313 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
10314 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
10315 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
10316 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
10317 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
10318 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
10319 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
10320 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
10321 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
10322 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
10323 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
10324 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
10325 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
10326 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
10327 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
10328 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
10329 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
10330 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
10331 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
10332 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
10333 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
10334 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
10335 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
10336 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
10337 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
10338 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
10339 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
10340 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
10341 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
10342 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
10343 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
10344 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
10345 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
10346 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
10347 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
10348 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
10349 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
10350 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
10351 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
10352 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
10353 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
10354 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
10355 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
10356 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
10357 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
10358 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
10359 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
10360 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
10361 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
10362 par-endh.adb par-labl.adb par-load.adb par-prag.adb
10363 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
10364 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
10365 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
10366 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
10367 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
10368 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
10369 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
10370 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
10371 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
10372 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
10373 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
10374 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
10375 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
10376 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
10377 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
10378 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
10379 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
10380 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
10381 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
10382 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
10383 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
10384 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
10385 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
10386 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
10387 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
10388 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
10389 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
10390 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
10391 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
10392 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
10393 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
10394 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
10395 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
10396 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
10397 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
10398 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
10399 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
10400 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
10401 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
10402 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
10403 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
10404 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
10405 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
10406 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
10407 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
10408 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
10409 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
10410 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
10411 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
10412 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
10413 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
10414 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
10415 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
10416 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
10417 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
10418 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
10419 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
10420 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
10421 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
10422 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
10423 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
10424 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
10425 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
10426 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
10427 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
10428 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
10429 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
10430 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
10431 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
10432 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
10433 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
10434 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
10435 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
10436 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
10437 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
10438 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
10439 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
10440 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
10441 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
10442 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
10443 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
10444 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
10445 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
10446 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
10447 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
10448 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
10449 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
10450 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
10451 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
10452 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
10453 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
10454 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
10455 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
10456 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
10457 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
10458 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
10459 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
10460 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
10461 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
10462 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
10463 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
10464 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
10465 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
10466 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
10467 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
10468 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
10469 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
10470 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
10471 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
10472 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
10473 stringt.ads stringt.h style.adb style.ads stylesw.adb
10474 stylesw.ads switch.adb switch.ads sysdep.c system.ads
10475 table.adb table.ads targparm.adb targparm.ads targtyps.c
10476 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
10477 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
10478 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
10479 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
10480 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
10481 usage.ads utils.c utils2.c validsw.adb validsw.ads
10482 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
10483 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
71ff80dc
NN
10484 xtreeprs.adb: Correct statements in comments about maintainership
10485 of GNAT.
10486
b4f94ac1
ZW
104872002-09-23 Zack Weinberg <zack@codesourcery.com>
10488
10489 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
10490 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
10491 * gnatvsn.ads: Gnat_Version_String is now a function.
10492 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
10493 copy the C version_string into a String and return it.
10494 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
10495 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
10496 Remove pragma Ident (Gnat_Version_String). If this was the
10497 sole use of package Gnatvsn, remove the with statement too.
10498 * gnat1drv.adb: Tweak -gnatv output.
10499
eaff3bf8
RH
105002002-09-17 Richard Henderson <rth@redhat.com>
10501
10502 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
10503 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
10504 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
10505 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
10506 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
10507 and real_2expN instead of a loop.
10508 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
10509 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
10510
d241f75b 105112002-08-25 Andre Leis <a.leis@gmx.net>
f4ae98be 10512 David Billinghurst (David.Billinghurst@riotinto.com>
d241f75b 10513
f4ae98be 10514 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
d241f75b 10515
4320085a
RO
105162002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10517
10518 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
10519 Remove $(CONFIG_H) dependency.
10520
22aa533e
NS
105212002-08-08 Nathan Sidwell <nathan@codesourcery.com>
10522
10523 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
10524
1dcd444b
KG
105252002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10526
10527 * adadecode.c (ada_demangle): Use xstrdup in lieu of
10528 xmalloc/strcpy.
10529 * misc.c (gnat_decode_option): Likewise.
10530
7bc7d27b
FW
105312002-07-15 Florian Weimer <fw@deneb.enyo.de>
10532
10533 * make.adb (Add_Switch): Make Generic_Position a procedure. The
10534 function approach did not work well because of a side effect (the
10535 function call could reallocate the table which was being indexed
10536 using its result). Fixes ada/4851. [RESURRECTED]
10537
6a2dd09a
RS
105382002-07-01 Roger Sayle <roger@eyesopen.com>
10539
10540 * ada/utils.c (builtin_function): Accept an additional parameter.
10541
c168bbd7
AJ
105422002-06-28 Andreas Jaeger <aj@suse.de>
10543
10544 PR ada/7144
10545 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
10546 <adi@thur.de>.
10547
b41e09a7
KG
105482002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10549
10550 * Makefile.in (SHELL): Set to @SHELL@.
10551
62c71f4b
KG
105522002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10553
10554 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
10555 array size calculation.
10556
94213cff
AJ
105572002-06-04 Andreas Jaeger <aj@suse.de>
10558
10559 * Make-lang.in (gnatbind): Readd rule that has been lost in last
10560 patch.
10561
e2500fed
GK
105622002-06-03 Geoffrey Keating <geoffk@redhat.com>
10563
10564 Merge from pch-branch:
10565
10566 * config-lang.in (gtfiles): Add ada-tree.h.
10567 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
10568 (SET_TYPE_MODULUS): New.
10569 (SET_TYPE_INDEX): New.
10570 (SET_TYPE_DIGITS_VALUE): New.
10571 (SET_TYPE_RM_SIZE): New.
10572 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
10573 (SET_TYPE_ADA_SIZE): New.
10574 (SET_TYPE_ACTUAL_BOUNDS): New.
10575 (SET_DECL_CONST_CORRESPONDING_VAR): New.
10576 (SET_DECL_ORIGINAL_FIELD): New.
10577 (TREE_LOOP_ID): Correct typo.
10578 * decl.c: Use new macros.
10579 * utils.c: Include debug.h, use new macros.
94213cff 10580 * utils2.c: Use new macros.
e2500fed
GK
10581
10582 * ada-tree.h: Update all macros for new tree description.
10583 (struct tree_loop_id): New.
10584 (union lang_tree_node): New.
10585 (struct lang_decl): New.
10586 (struct lang_type): New.
10587 * misc.c (gnat_mark_tree): Delete.
10588 (LANG_HOOKS_MARK_TREE): Delete.
10589 * trans.c (tree_transform): No longer any need to cast
10590 for TREE_LOOP_ID.
10591
10592 * utils.c (struct language_function): New dummy structure.
10593
10594 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
10595 (misc.o): Likewise.
10596 (utils.o): Likewise; also gtype-ada.h.
10597 * Make-lang.in (gnat1): Add dependency on s-gtype.
10598 (gnatbind): Add dependency on $(CONFIG_H).
10599 * utils.c: Correct last #include.
10600 (stuct e_stack): Remove unnecessary 'static'.
10601 (mark_e_stack): Remove unused prototype.
10602
10603 * scn-nlit.adb: Remove whitespace after version number to
10604 keep lines under 80 chars.
10605 * snames.adb: Likewise.
10606 * treepr.ads: Likewise.
94213cff 10607
e2500fed
GK
10608 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
10609 (misc.o): Likewise.
10610 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
10611 * config-lang.in (gtfiles): New.
10612 * decl.c: Use gengtype for roots.
10613 * gigi.h: Use gengtype for roots.
10614 * trans.c: Use gengtype for roots.
10615 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
10616
27e511e0
GDR
106172002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
10618
10619 * misc.c (gnat_init): Adjust setting of internal_error_function.
10620
113dc143
JM
106212002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
10622
10623 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
10624 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
10625 gnat_ug_wnt.texi: Regenerate.
10626
5321fb3e
FW
106272002-05-31 Florian Weimer <fw@deneb.enyo.de>
10628
15e6136e
FW
10629 * 5ntaprop.adb (with System.OS_Primitives): Remove.
10630
019310ac
FW
10631 * cstreams.c (max_path_len): Move from here ...
10632 * adaint.c (__gnat_max_path_len): ... to here.
10633 * adaint.c (__gnat_max_path_len): Declare.
10634 * g-dirope.adb (Max_Path): Adjust.
10635 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
94213cff 10636 * i-cstrea.ads (max_path_len): Adjust.
019310ac
FW
10637 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
10638 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
10639
5321fb3e
FW
10640 * Makefile.in, Make-lang.in: Documentation is now built in
10641 Make-lang.in. Store Info and generated Texinfo files in the
10642 source directory.
10643 * gnat_ug.texi: Remove CVS keywords, correct version number.
10644 Set file name correctly.
10645
10646 * gnat_ug_*.texi: Add.
10647 * .cvsignore: Ignore generated Texinfo files.
10648
b1c12c4b
ZW
106492002-05-30 Zack Weinberg <zack@codesourcery.com>
10650
10651 * ada.h: Add MI guard macro.
10652 (SUBTYPE): Define constants with an anonymous enum, not static
10653 const variables.
10654 (IN): Cast constants to appropriate type before use.
10655
ead33da9
JM
106562002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
10657
10658 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
10659 (experimental)".
10660
7d600178
RO
106612002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10662
10663 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
10664 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
10665 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
10666 (ALL_ADA_CFLAGS): Likewise.
10667 (ADA_INCLUDES): Likewise.
10668 Adapt for new working dir.
10669 (GNATBIND): Use Makefile.in version.
10670 (.SUFFIXES): Copy from Makefile.in.
10671 (ada-warn): Define.
10672 (.adb.o, .ads.o): Copy from Makefile.in.
10673 Added $(OUTPUT_OPTION).
10674 (GNAT1_C_OBJS): Moved from Makefile.in.
10675 Prefix with ada subdir.
10676 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
10677 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
10678 Adapt for new working dir.
10679 (EXTRA_GNATBIND_OBJS): Likewise.
10680 (ADA_BACKEND): Moved from Makefile.in.
10681 Renamed to avoid conflict with global BACKEND.
10682 Use that one.
10683 (TARGET_ADA_SRCS): Moved from Makefile.in.
10684 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
10685 Use ADA_BACKEND.
10686 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
10687 (ada_extra_files): Moved from Makefile.in.
10688 Prefix with ada subdir.
10689 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
10690 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
10691 (ada/nmake.ads): Likewise.
10692 (update-sources): Moved from Makefile.in.
10693 Prefix with ada subdir.
10694 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
10695 (ADA_TREE_H): Likewise.
10696 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
10697 (ada/memtrack.o): Likewise.
10698 (ada/adadecode.o): Likewise.
10699 Update dependencies.
10700 (ada/adaint.o): New.
10701 (ada/argv.o): Moved from Makefile.in.
10702 Prefix with ada subdir.
94213cff 10703 Update dependencies.
7d600178
RO
10704 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
10705 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
10706 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
10707 Prefix with ada subdir.
10708 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
10709 (GNAT DEPENDENCIES): Regenerate.
10710 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
10711 toplevel Makefile.in.
10712 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
10713 (TARGET_ADA_SRCS): Removed.
10714 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
10715 (GNATBIND_OBJS): Likewise.
10716 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
10717 (BACKEND): Removed.
10718 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
10719 (TREE_H): Likewise.
10720 (ada_extra_files): Likewise.
10721 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
10722 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
10723 (update-sources): Likewise.
10724 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
10725 (ADA_TREE_H): Likewise.
10726 (adadecoce.o): Likewise.
10727 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
10728 (GNAT DEPENDENCIES): Likewise.
10729
1e6347d8
RO
107302002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10731
10732 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
10733 * Makefile.in: Likewise.
10734
db80834f
RO
107352002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10736
10737 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
10738 Restore $(CONFIG_H) and prefix.o dependencies.
10739 (ada.stage[1-4]): Depend on stage?-start.
10740
10741 * Makefile.in (b_gnatb.c): Depend on interfac.o.
10742
ac293f98
JW
107432002-05-02 Jim Wilson <wilson@redhat.com>
10744
10745 * utils.c (finish_record_type): Change record_size to record_type.
10746
b303008e
JDA
107472001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
10748
10749 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
10750 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
10751 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
94213cff 10752
ff45c01e
NB
107532002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
10754
10755 * misc.c (gnat_parse_file): Update.
10756
349ae713
NB
107572002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
10758
10759 * misc.c (gnat_init): Don't set lang_attribute_common.
10760
ace133aa
JM
107612002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
10762
10763 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
10764
5c558dd9
FW
107652002-04-21 Florian Weimer <fw@deneb.enyo.de>
10766
b4f94ac1 10767 * gnat_ug.texi: New file.
88e1739c 10768
5c558dd9
FW
10769 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
10770 instead of gfdl.texi
10771
10772 * xgnatug.adb, ug_words: New files.
10773
10774 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
b4f94ac1 10775 gnat_rm and gnat-style manuals.
5c558dd9 10776
7a228918
NB
107772002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
10778
10779 * gigi.h (incomplete_type_error): Remove.
10780 * utils.c (incomplete_type_error): Remove.
10781
b2123dc0
MM
107822002-04-16 Mark Mitchell <mark@codesourcery.com>
10783
10784 * trans.c (tree_transform): Add has_scope argument to
10785 expand_start_stmt_expr.
10786
78ef5b89
NB
107872002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
10788
10789 * gigi.h (truthvalue_conversion): Rename.
10790 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
10791 * trans.c (tree_transform): Update.
10792 * utils2.c (truthvalue_conversion): Rename, update.
10793 (build_binary_op, build_unary_op): Update.
10794
a71742a8
LG
107952002-04-04 Laurent Guerby <guerby@acm.org>
10796
10797 * make.adb: Implement -margs, remove restriction about file name placement.
10798 * makeusg.adb: Documentation update.
10799 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
10800 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
10801
82a4b025
NB
108022002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
10803
10804 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
10805 (builtin_function): Similarly.
10806
dffd7eb6
NB
108072002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
10808
10809 * decl.c (gnat_to_gnu_entity): Update.
10810 * gigi.h (mark_addressable): Rename.
10811 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
10812 * trans.c (tree_transform): Update.
10813 * utils.c (create_var_decl): Update.
10814 * util2.c (build_binary_op, build_unary_op,
10815 fill_vms_descriptor): Update.
10816 (mark_addressable): Rename, update.
10817
ceef8ce4
NB
108182002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
10819
10820 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
10821 Rename.
10822 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
10823 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
10824 * trans.c (tree_transform, convert_with_check): Update.
10825 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
10826 Rename.
10827
48a7a235
NB
108282002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
10829
10830 * gigi.h (finish_incomplete_decl): Rename.
10831 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
10832 * utils.c (gnat_init_decl_processing): Don't set hook.
10833 (finish_incomplete_decl): Rename.
10834
1d5af871
AS
108352002-03-29 Andreas Schwab <schwab@suse.de>
10836
10837 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
10838 directory.
10839
8cbb664e
MG
108402001-03-28 Robert Dewar <dewar@gnat.com>
10841
10842 * checks.ads:
10843 (Remove_Checks): New procedure
10844
10845 * checks.adb:
10846 (Remove_Checks): New procedure
10847
10848 * exp_util.adb:
10849 Use new Duplicate_Subexpr functions
10850 (Duplicate_Subexpr_No_Checks): New procedure
10851 (Duplicate_Subexpr_No_Checks_Orig): New procedure
10852 (Duplicate_Subexpr): Restore original form (checks duplicated)
10853 (Duplicate_Subexpr): Call Remove_Checks
10854
82a4b025 10855 * exp_util.ads:
8cbb664e
MG
10856 (Duplicate_Subexpr_No_Checks): New procedure
10857 (Duplicate_Subexpr_No_Checks_Orig): New procedure
10858 Add 2002 to copyright notice
10859
10860 * sem_util.adb: Use new Duplicate_Subexpr functions
10861
82a4b025 10862 * sem_eval.adb:
8cbb664e
MG
10863 (Eval_Indexed_Component): This is the place to call
10864 Constant_Array_Ref and to replace the value. We simply merge
10865 the code of this function in here, since it is now no longer
10866 used elsewhere. This fixes the problem of the back end not
10867 realizing we were clever enough to see that this was
10868 constant.
10869 (Expr_Val): Remove call to Constant_Array_Ref
10870 (Expr_Rep_Val): Remove call to Constant_Array_Ref
10871 Minor reformatting
10872 (Constant_Array_Ref): Deal with string literals (patch
10873 suggested by Zack Weinberg on the gcc list)
10874
108752001-03-28 Ed Schonberg <schonber@gnat.com>
10876
82a4b025 10877 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
8cbb664e
MG
10878 Duplicate_Subexpr_Move_Checks.
10879
82a4b025 10880 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
8cbb664e
MG
10881 Duplicate_Subexpr_Move_Checks.
10882
82a4b025
NB
10883 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
10884 value of array exists before retrieving it (it may a private
8cbb664e
MG
10885 protected component in a function).
10886
792c4e74
GB
108872002-03-28 Geert Bosch <bosch@gnat.com>
10888
10889 * prj-pp.adb : New file.
10890
10891 * prj-pp.ads : New file.
10892
915e8bad
AJ
108932002-03-28 Andreas Jaeger <aj@suse.de>
10894
10895 * Makefile.in (stamp-sdefault): Fix path for Makefile.
10896
0840811c
NB
108972002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
10898
10899 * misc.c (gnat_expand_expr): Move prototype.
10900
7ffb4fd2
NB
109012002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
10902
10903 * misc.c (insert_default_attributes): Remove.
10904
c9d892a8
NB
109052002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
10906
10907 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
10908 (gnat_init): Don't set hook.
10909 (gnat_expand_expr): Fix prototype.
10910
31c816cf
NB
109112002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
10912
10913 * misc.c (ggc_p): Remove.
10914
ef83161c
GB
109152002-03-27 Geert Bosch <bosch@gnat.com>
10916
10917 * prj-makr.ads, prj-makr.adb : New files.
10918
4f0ade92
NB
109192002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
10920
10921 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
10922 (lang_mark_tree): Make static, rename.
10923
c88770e9
NB
109242002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
10925
10926 * misc.c (maybe_build_cleanup): Remove.
10927
05671968
NB
109282002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
10929
10930 * gigi.h (yyparse): Remove.
10931
ad42149c
FW
109322002-03-23 Florian Weimer <fw@deneb.enyo.de>
10933
82a4b025 10934 * gnat_rm.texi: Sync with ACT version.
b4f94ac1 10935 (From Ben Brosgol <brosgol@gnat.com>)
ad42149c 10936
7afff7cf
NB
109372002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
10938
10939 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
10940 (gnat_init): Remove old hook.
10941
52dabb6c
NB
109422002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
10943
10944 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
10945 (yyparse): Rename gnat_parse_file.
10946
6cbcc541
GK
109472002-03-14 Geoffrey Keating <geoffk@redhat.com>
10948
10949 Delete all lines containing "$Revision:".
10950 * xeinfo.adb: Don't look for revision numbers.
10951 * xnmake.adb: Likewise.
10952 * xsinfo.adb: Likewise.
10953 * xsnames.adb: Likewise.
10954 * xtreeprs.adb: Likewise.
10955
2f9834e8
KG
109562002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10957
10958 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
10959 gnat_tree_code_name): Delete.
10960 (tree_code_type, tree_code_length, tree_code_name): Define.
10961 (gnat_init): Don't try to copy into the various tree_code
10962 arrays.
10963
63adb4ff
RH
109642002-03-11 Richard Henderson <rth@redhat.com>
10965
10966 * Makefile.in (.NOTPARALLEL): Add fake tag.
10967
43ff4547
GB
109682002-03-07 Geert Bosch <bosch@gnat.com>
10969
82a4b025
NB
10970 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
10971 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
10972 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
43ff4547
GB
10973 switch-m.adb, switch-m.ads : New files.
10974
07fc65c4
GB
109752002-03-07 Geert Bosch <bosch@gnat.com>
10976
10977 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
10978 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
10979 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
10980 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
10981 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
10982 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
10983 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
10984 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
10985 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
10986 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
10987 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
10988 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
10989 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
10990 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
10991 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
10992 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
10993 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
10994 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
10995 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
10996 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
10997 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
10998 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
10999 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
11000 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
11001 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
11002 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
11003 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
11004 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
11005 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
11006 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
11007 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
11008 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
11009 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
11010 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
11011 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
11012 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
11013 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
11014 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
11015 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
11016 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
11017 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
11018 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
11019 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
11020 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
11021 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
11022 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
11023 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
11024 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
11025 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
11026 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
11027 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
11028 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
11029 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
11030 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
11031 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
11032 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
11033 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
11034 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
11035 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
11036 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
11037 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
11038 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
11039 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
11040 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
11041 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
11042 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
11043 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
11044 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
11045 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
11046 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
11047 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
11048 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
11049 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
11050 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
11051 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
11052 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
11053 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
11054 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
11055 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
11056 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
11057 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
11058 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
11059 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
11060 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
11061 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
11062 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
11063 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
11064 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
11065 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
11066 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
11067 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
11068 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
11069 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
11070 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
11071 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
11072 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
11073 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
11074
11075 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
11076 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
11077 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
11078 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
11079
11080 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
11081 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
11082
11083 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
11084 to mdll-fil.ad[bs] and mdll-util.ad[bs]
11085
11086 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
11087 from mdllfile.ad[bs] and mdlltool.ad[bs]
11088
ca7558fc
KG
110892002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11090
11091 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
11092 lieu of explicit sizeof/sizeof.
11093
63e1b1c4
NB
110942002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
11095
11096 * misc.c (copy_lang_decl): Remove.
11097
f458d1d5
ZW
110982002-02-27 Zack Weinberg <zack@codesourcery.com>
11099
11100 * misc.c: Delete traditional-mode-related code copied from the
11101 C front end but not used, or used only to permit the compiler
11102 to link.
11103
21e09952
RH
111042002-02-07 Richard Henderson <rth@redhat.com>
11105
11106 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
11107 * adaint.h (__gnat_to_gm_time): Update prototype.
11108
ead39bdf 111092002-01-30 Richard Henderson <rth@redhat.com>
e803a64b
RH
11110
11111 * trans.c (tree_transform) [N_Loop_Statement]: Use
11112 expand_exit_loop_top_cond.
11113
72ac12bf
RH
111142001-12-23 Richard Henderson <rth@redhat.com>
11115
11116 * utils.c (end_subprog_body): Push GC context around
11117 rest_of_compilation for nested functions.
11118
14aacce7
RH
111192001-12-23 Richard Henderson <rth@redhat.com>
11120
11121 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
11122
b3d45d87
FW
111232001-12-23 Florian Weimer <fw@deneb.enyo.de>
11124
ece2d1b8
FW
11125 * gnat-style.texi (Declarations and Types): Remove ancient style
11126 rule which was mandated by code generation issues.
82a4b025 11127
b3d45d87
FW
11128 * gnat-style.texi (header): Add @dircategory, @direntry.
11129 (title page): Remove date.
11130 (general) Add @./@: where approriate, and two spaces after the
11131 full stop at the end of a sentence. Use @samp markup when
11132 referring concrete lexical entities (keywords, attribute names
11133 etc.), and @syntax for ARM grammar elements. Use @r for English
11134 text in comments. Use @emph for emphasis. Change "if-statements"
11135 etc. to "if statements" (without @samp). Break long lines. Make
11136 casing of section names consistent.
11137 (Identifiers): Use @samp markup for variable names.
11138 (Comments): Use @samp markup for comment characters. Line-end
11139 comments may follow any Ada code, not just statements. Fix
11140 misspelling of "Integer" as "integer".
11141 (Loop statements): Do not use variable name "I", use "J".
11142 (Subprogram Declarations): Document alignment.
11143 (Subprogram Bodies, Block statements): Document empty line before
11144 "begin".
11145
7a73ad55
FW
111462001-12-22 Florian Weimer <fw@deneb.enyo.de>
11147
11148 * make.adb (Add_Switch): Make Generic_Position a procedure. The
11149 function approach did not work well because of a side effect (the
11150 function call could reallocate the table which was being indexed
11151 using its result). Fixes ada/4851.
11152
17c5c8a5
GB
111532001-12-19 Robert Dewar <dewar@gnat.com>
11154
11155 * bindgen.adb: Minor reformatting
82a4b025 11156
17c5c8a5 11157 * cstand.adb: Minor reformatting
82a4b025 11158
17c5c8a5
GB
11159 * fmap.adb: Minor reformatting
11160 Change name from Add for Add_To_File_Map (Add is much too generic)
11161 Change Path_Name_Of to Mapped_Path_Name
11162 Change File_Name_Of to Mapped_File_Name
11163 Fix copyright dates in header
82a4b025 11164
17c5c8a5
GB
11165 * fmap.ads:
11166 Change name from Add for Add_To_File_Map (Add is much too generic)
11167 Change Path_Name_Of to Mapped_Path_Name
11168 Change File_Name_Of to Mapped_File_Name
11169 Fix copyright dates in header
82a4b025 11170
17c5c8a5
GB
11171 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
11172 Add use clause for Fmap.
82a4b025 11173
17c5c8a5 11174 * make.adb: Minor reformatting
82a4b025 11175
17c5c8a5
GB
11176 * osint.adb: Minor reformatting. Change of names in Fmap.
11177 Add use clause for Fmap.
82a4b025 11178
17c5c8a5 11179 * prj-env.adb: Minor reformatting
82a4b025 11180
17c5c8a5 11181 * prj-env.ads: Minor reformatting
82a4b025 11182
07fc65c4
GB
11183 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
11184 error found (there were odd exceptions to this general rule in
17c5c8a5 11185 -gnatec/-gnatem processing)
82a4b025 11186
17c5c8a5
GB
111872001-12-19 Olivier Hainque <hainque@gnat.com>
11188
07fc65c4
GB
11189 * raise.c (__gnat_eh_personality): Exception handling personality
11190 routine for Ada. Still in rough state, inspired from the C++ version
17c5c8a5 11191 and still containing a bunch of debugging artifacts.
07fc65c4 11192 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
17c5c8a5 11193 inspired from the C++ library.
82a4b025 11194
07fc65c4 11195 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
17c5c8a5 11196 exception handling integration.
82a4b025 11197
17c5c8a5
GB
111982001-12-19 Arnaud Charlet <charlet@gnat.com>
11199
11200 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
11201 (HIE_SOURCES): Add s-secsta.ad{s,b}.
11202 (HIE_OBJS): Add s-fat*.o
07fc65c4 11203 (RAVEN_SOURCES): Remove files that are no longer required. Add
17c5c8a5
GB
11204 interrupt handling files.
11205 (RAVEN_MOD): Removed, no longer needed.
82a4b025 11206
17c5c8a5
GB
112072001-12-19 Robert Dewar <dewar@gnat.com>
11208
11209 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
11210 Add 2001 to copyright date
82a4b025 11211
07fc65c4 11212 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
17c5c8a5 11213 need to force universal inlining for these cases.
82a4b025 11214
17c5c8a5
GB
112152001-12-19 Arnaud Charlet <charlet@gnat.com>
11216
07fc65c4 11217 * s-taprob.adb: Minor clean ups so that this unit can be used in
17c5c8a5 11218 Ravenscar HI.
82a4b025 11219
17c5c8a5
GB
11220 * exp_ch7.adb: Allow use of secondary stack in HI mode.
11221 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
82a4b025 11222
17c5c8a5
GB
112232001-12-19 Vincent Celier <celier@gnat.com>
11224
07fc65c4 11225 * prj-tree.ads (Project_Node_Record): Add comments for components
17c5c8a5 11226 Pkg_Id and Case_Insensitive.
82a4b025 11227
17c5c8a5
GB
112282001-12-19 Pascal Obry <obry@gnat.com>
11229
11230 * g-socket.adb: Minor reformatting. Found while reading code.
82a4b025 11231
17c5c8a5
GB
112322001-12-19 Robert Dewar <dewar@gnat.com>
11233
11234 * prj-tree.ads: Minor reformatting
11235
38be19f6
JM
112362001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
11237
11238 * config-lang.in (diff_excludes): Remove.
11239
6510f4c9
GB
112402001-12-17 Ed Schonberg <schonber@gnat.com>
11241
07fc65c4
GB
11242 * sem_res.adb (Resolve_Selected_Component): do not generate a
11243 discriminant check if the selected component is a component of
6510f4c9
GB
11244 the argument of an initialization procedure.
11245
07fc65c4
GB
11246 * trans.c (tree_transform, case of arithmetic operators): If result
11247 type is private, the gnu_type is the base type of the full view,
6510f4c9 11248 given that the full view itself may be a subtype.
82a4b025 11249
6510f4c9
GB
112502001-12-17 Robert Dewar <dewar@gnat.com>
11251
11252 * sem_res.adb: Minor reformatting
82a4b025 11253
07fc65c4
GB
11254 * trans.c (tree_transform, case N_Real_Literal): Add missing third
11255 parameter in call to Machine (unknown horrible effects from this
6510f4c9 11256 omission).
82a4b025 11257
6510f4c9
GB
11258 * urealp.h: Add definition of Round_Even for call to Machine
11259 Add third parameter for Machine
82a4b025 11260
6510f4c9
GB
112612001-12-17 Ed Schonberg <schonber@gnat.com>
11262
07fc65c4 11263 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
6510f4c9 11264 predefined units in No_Run_Time mode.
82a4b025 11265
6510f4c9
GB
112662001-12-17 Richard Kenner <kenner@gnat.com>
11267
11268 * misc.c (insn-codes.h): Now include.
82a4b025 11269
6510f4c9
GB
112702001-12-17 Olivier Hainque <hainque@gnat.com>
11271
07fc65c4 11272 * a-except.adb: Preparation work for future integration of the GCC 3
6510f4c9
GB
11273 exception handling mechanism
11274 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
11275 to factorize previous code sequences and make them externally callable,
11276 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
11277 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
11278 Use the new notification routines.
82a4b025 11279
6510f4c9
GB
112802001-12-17 Emmanuel Briot <briot@gnat.com>
11281
11282 * prj-tree.ads (First_Choice_Of): Document the when others case
82a4b025 11283
6510f4c9
GB
112842001-12-17 Arnaud Charlet <charlet@gnat.com>
11285
07fc65c4 11286 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
6510f4c9 11287 HI-E mode, in order to support Ravenscar profile properly.
82a4b025 11288
07fc65c4 11289 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
6510f4c9 11290 mode on 32 bits targets.
82a4b025 11291
6510f4c9
GB
112922001-12-17 Vincent Celier <celier@gnat.com>
11293
11294 * fmap.adb: Initial version.
82a4b025 11295
6510f4c9 11296 * fmap.ads: Initial version.
82a4b025 11297
6510f4c9
GB
11298 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
11299 If search is successfully done, add to mapping.
82a4b025 11300
6510f4c9 11301 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
82a4b025 11302
6510f4c9
GB
11303 * make.adb:
11304 (Gnatmake): Add new local variable Mapping_File_Name.
11305 Create mapping file when using project file(s).
11306 Delete mapping file before exiting.
82a4b025 11307
6510f4c9 11308 * opt.ads (Mapping_File_Name): New variable
82a4b025 11309
6510f4c9 11310 * osint.adb (Find_File): Use path name found in mapping, if any.
82a4b025 11311
6510f4c9 11312 * prj-env.adb (Create_Mapping_File): New procedure
82a4b025 11313
6510f4c9 11314 * prj-env.ads (Create_Mapping_File): New procedure.
82a4b025 11315
07fc65c4 11316 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
6510f4c9 11317 (Mapping_File)
82a4b025 11318
6510f4c9 11319 * usage.adb: Add entry for new switch -gnatem.
82a4b025 11320
6510f4c9 11321 * Makefile.in: Add dependencies for fmap.o.
82a4b025 11322
6510f4c9
GB
113232001-12-17 Ed Schonberg <schonber@gnat.com>
11324
07fc65c4 11325 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
6510f4c9
GB
11326 is a package instantiation rewritten as a package body.
11327 (Install_Withed_Unit): Undo previous change, now redundant.
82a4b025 11328
6510f4c9
GB
113292001-12-17 Gary Dismukes <dismukes@gnat.com>
11330
11331 * layout.adb:
11332 (Compute_Length): Move conversion to Unsigned to callers.
11333 (Get_Max_Size): Convert Len expression to Unsigned after calls to
11334 Compute_Length and Determine_Range.
11335 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
11336 Compute_Length and Determine_Range.
11337 Above changes fix problem with length computation for supernull arrays
07fc65c4 11338 where Max (Len, 0) wasn't getting applied due to the Unsigned
6510f4c9 11339 conversion used by Compute_Length.
82a4b025 11340
6510f4c9
GB
113412001-12-17 Arnaud Charlet <charlet@gnat.com>
11342
11343 * rtsfind.ads:
11344 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
11345 System.Secondary_Stack.
11346 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
11347 in HI-E mode.
11348 Remove unused entity RE_Exception_Data.
82a4b025 11349
6510f4c9 11350 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
82a4b025 11351
6510f4c9
GB
11352 * rident.ads (No_Secondary_Stack): New restriction.
11353
3a77b68d
GB
113542001-12-17 Joel Brobecker <brobecke@gnat.com>
11355
07fc65c4 11356 * gnat_rm.texi: Fix minor typos. Found while reading the section
3a77b68d
GB
11357 regarding "Bit_Order Clauses" that was sent to a customer.
11358 Very interesting documentation!
82a4b025 11359
3a77b68d
GB
113602001-12-17 Robert Dewar <dewar@gnat.com>
11361
07fc65c4
GB
11362 * sem_case.adb (Choice_Image): Avoid creating improper character
11363 literal names by using the routine Set_Character_Literal_Name. This
3a77b68d 11364 fixes bombs in certain error message cases.
82a4b025 11365
3a77b68d
GB
113662001-12-17 Arnaud Charlet <charlet@gnat.com>
11367
11368 * a-reatim.adb: Minor reformatting.
82a4b025 11369
3a77b68d
GB
113702001-12-17 Ed Schonberg <schonber@gnat.com>
11371
07fc65c4
GB
11372 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
11373 case where the formal is an extension of another formal in the current
3a77b68d 11374 unit or in a parent generic unit.
82a4b025 11375
3a77b68d
GB
113762001-12-17 Arnaud Charlet <charlet@gnat.com>
11377
07fc65c4 11378 * s-tposen.adb: Update comments. Minor reformatting.
3a77b68d 11379 Minor code clean up.
82a4b025 11380
3a77b68d 11381 * s-tarest.adb: Update comments. Minor code reorganization.
82a4b025 11382
3a77b68d
GB
113832001-12-17 Gary Dismukes <dismukes@gnat.com>
11384
07fc65c4 11385 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
3a77b68d 11386 when Java_VM.
82a4b025 11387
3a77b68d
GB
113882001-12-17 Robert Dewar <dewar@gnat.com>
11389
11390 * exp_attr.adb: Minor reformatting
82a4b025 11391
3a77b68d
GB
113922001-12-17 Ed Schonberg <schonber@gnat.com>
11393
07fc65c4 11394 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
3a77b68d
GB
11395 derivations nested within a child unit: verify that the parent
11396 type is declared in an outer scope.
82a4b025 11397
3a77b68d
GB
113982001-12-17 Robert Dewar <dewar@gnat.com>
11399
11400 * sem_ch12.adb: Minor reformatting
82a4b025 11401
3a77b68d
GB
114022001-12-17 Ed Schonberg <schonber@gnat.com>
11403
07fc65c4
GB
11404 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
11405 warning if current unit is a predefined one, from which bodies may
3a77b68d 11406 have been deleted.
82a4b025 11407
3a77b68d
GB
114082001-12-17 Robert Dewar <dewar@gnat.com>
11409
11410 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
11411 Fix header format. Add 2001 to copyright date.
82a4b025 11412
07fc65c4 11413 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
3a77b68d
GB
11414 which caused CE during compilation if checks were enabled.
11415
79503fdd
GB
114162001-12-17 Vincent Celier <celier@gnat.com>
11417
11418 * make.adb:
11419 (Switches_Of): New function
11420 (Test_If_Relative_Path): New procedure
11421 (Add_Switches): Use new function Switches_Of
11422 (Collect_Arguments_And_Compile): Use new function Switches_Of.
11423 When using a project file, test if there are any relative
11424 search path. Fail if there are any.
07fc65c4
GB
11425 (Gnatmake): Only add switches for the primary directory when not using
11426 a project file. When using a project file, change directory to the
11427 object directory of the main project file. When using a project file,
11428 test if there are any relative search path. Fail if there are any.
11429 When using a project file, fail if specified executable is relative
11430 path with directory information, and prepend executable, if not
11431 specified as an absolute path, with the exec directory. Make sure
79503fdd 11432 that only one -o switch is transmitted to the linker.
82a4b025 11433
79503fdd 11434 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
82a4b025 11435
79503fdd
GB
11436 * prj-nmsc.adb:
11437 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
11438 when using a non standard naming scheme.
11439 (Check_Ada_Naming_Scheme): Make sure that error messages
11440 do not raise exceptions.
11441 (Is_Illegal_Append): Return True if there is no dot in the suffix.
11442 (Language_Independent_Check): Check the exec directory.
82a4b025 11443
79503fdd 11444 * prj.adb (Project_Empty): Add new component Exec_Directory
82a4b025 11445
79503fdd
GB
11446 * prj.ads:
11447 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
11448 (Project_Data): Add component Exec_Directory
82a4b025 11449
79503fdd 11450 * snames.adb: Updated to match snames.ads revision 1.215
82a4b025 11451
79503fdd 11452 * snames.ads: Added Exec_Dir
82a4b025 11453
79503fdd
GB
114542001-12-17 Robert Dewar <dewar@gnat.com>
11455
11456 * make.adb: Minor reformatting
82a4b025 11457
79503fdd 11458 * prj-nmsc.adb: Minor reformatting
82a4b025 11459
79503fdd 11460 * snames.adb: Updated to match snames.ads
82a4b025 11461
79503fdd
GB
11462 * snames.ads: Alphebetize entries for project file
11463
114642001-12-17 Ed Schonberg <schonber@gnat.com>
11465
07fc65c4 11466 * trans.c (process_freeze_entity): Do nothing if the entity is a
79503fdd 11467 subprogram that was already elaborated.
82a4b025 11468
79503fdd 114692001-12-17 Richard Kenner <kenner@gnat.com>
82a4b025 11470
07fc65c4 11471 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
79503fdd
GB
11472 and Esize if object is referenced via pointer.
11473
855ff2e1
GB
114742001-12-17 Ed Schonberg <schonber@gnat.com>
11475
07fc65c4 11476 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
855ff2e1 11477 is discrete before analyzing choices.
82a4b025 11478
855ff2e1
GB
114792001-12-17 Joel Brobecker <brobecke@gnat.com>
11480
07fc65c4
GB
11481 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
11482 containing the name of the Ada Main Program. This string is mainly
855ff2e1
GB
11483 intended for the debugger.
11484 (Gen_Output_File_C): Do the equivalent change when generating a C file.
82a4b025 11485
855ff2e1
GB
114862001-12-17 Robert Dewar <dewar@gnat.com>
11487
11488 * ali.adb: Set new Dummy_Entry field in dependency entry
82a4b025 11489
855ff2e1 11490 * ali.ads: Add Dummy_Entry field to source dependency table
82a4b025 11491
855ff2e1 11492 * bcheck.adb (Check_Consistency): Ignore dummy D lines
82a4b025 11493
855ff2e1 11494 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
82a4b025 11495
855ff2e1 11496 * lib-writ.ads: Document dummy D lines for missing files.
82a4b025 11497
855ff2e1
GB
11498 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
11499
c1c22e7a
GB
115002001-12-17 Robert Dewar <dewar@gnat.com>
11501
11502 * ali.adb: Type reference does not reset current file.
82a4b025 11503
c1c22e7a 11504 * ali.adb: Recognize and scan renaming reference
82a4b025 11505
c1c22e7a 11506 * ali.ads: Add spec for storing renaming references.
82a4b025 11507
c1c22e7a 11508 * lib-xref.ads: Add documentation for handling of renaming references
82a4b025 11509
c1c22e7a 11510 * lib-xref.adb: Implement output of renaming reference.
82a4b025 11511
c1c22e7a
GB
11512 * checks.adb:
11513 (Determine_Range): Document local variables
11514 (Determine_Range): Make sure Hbound is initialized. It looks as though
11515 there could be a real problem here with an uninitialized reference
11516 to Hbound, but no actual example of failure has been found.
82a4b025 11517
c1c22e7a
GB
115182001-12-17 Laurent Pautet <pautet@gnat.com>
11519
11520 * g-socket.ads:
11521 Fix comment of Shutdown_Socket and Close_Socket. These functions
11522 should not fail silently because if they are called twice, this
11523 probably means that there is a race condition in the user program.
11524 Anyway, this behaviour is consistent with the rest of this unit.
11525 When an error occurs, an exception is raised with the error message
11526 as exception message.
11527
7eb7bb07
RD
115282001-12-17 Robert Dewar <dewar@gnat.com>
11529
07fc65c4 11530 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
7eb7bb07 11531 that it happens before modification of Sloc values for -gnatD.
82a4b025 11532
07fc65c4 11533 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
7eb7bb07 11534 so that it happens before modification of Sloc values for -gnatD.
82a4b025 11535
7eb7bb07
RD
11536 * switch.adb: Minor reformatting
11537
b6434700
RH
115382001-12-15 Richard Henderson <rth@redhat.com>
11539
11540 * sem_ch7.adb: Wrap comment.
11541
44d6a706
JM
115422001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
11543
11544 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
11545 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
11546 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
11547 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
11548 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
11549 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
11550 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
11551 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
11552 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
11553 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
11554 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
11555 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
11556 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
11557 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
11558 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
11559 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
11560 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
11561 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
11562 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
11563 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
11564 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
11565 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
11566 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
11567 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
11568 spelling errors.
11569
226ada7a
GB
115702001-12-14 Vincent Celier <celier@gnat.com>
11571
07fc65c4 11572 * osint.adb(Create_Debug_File): When an object file is specified,
226ada7a 11573 put the .dg file in the same directory as the object file.
82a4b025 11574
226ada7a
GB
115752001-12-14 Robert Dewar <dewar@gnat.com>
11576
11577 * osint.adb: Minor reformatting
82a4b025 11578
07fc65c4 11579 * lib-xref.adb (Output_Instantiation): New procedure to generate
226ada7a 11580 instantiation references.
82a4b025 11581
226ada7a 11582 * lib-xref.ads: Add documentation of handling of generic references.
82a4b025 11583
07fc65c4 11584 * ali.adb (Read_Instantiation_Ref): New procedure to read
226ada7a 11585 instantiation references
82a4b025 11586
226ada7a 11587 * ali.ads: Add spec for storing instantiation references
82a4b025 11588
226ada7a 11589 * bindusg.adb: Minor reformatting
82a4b025 11590
226ada7a 11591 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
82a4b025 11592
226ada7a 11593 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
82a4b025 11594
226ada7a 11595 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
82a4b025 11596
226ada7a 11597 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
82a4b025 11598
226ada7a
GB
11599 * csets.ads:
11600 Fix header format
11601 Add 2001 to copyright date
11602 Add entry for Latin-5 (Cyrillic ISO-8859-5)
82a4b025 11603
226ada7a
GB
116042001-12-14 Matt Gingell <gingell@gnat.com>
11605
07fc65c4 11606 * adaint.c: mktemp is a macro on Lynx and can not be used as an
226ada7a 11607 expression.
82a4b025 11608
226ada7a
GB
116092001-12-14 Richard Kenner <kenner@gnat.com>
11610
07fc65c4 11611 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
226ada7a 11612 if operand is CONSTRUCTOR.
82a4b025 11613
226ada7a
GB
116142001-12-14 Ed Schonberg <schonber@gnat.com>
11615
07fc65c4
GB
11616 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
11617 before emiting check on right-hand side, so that exception information
226ada7a
GB
11618 is correct.
11619
116202001-12-14 Richard Kenner <kenner@gnat.com>
82a4b025 11621
07fc65c4 11622 * utils.c (create_var_decl): Throw away initializing expression
226ada7a 11623 if just annotating types and non-constant.
82a4b025 11624
226ada7a
GB
116252001-12-14 Vincent Celier <celier@gnat.com>
11626
11627 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
11628 Default_Ada_...
82a4b025 11629
07fc65c4 11630 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
226ada7a
GB
11631 Remove functions.
11632 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
82a4b025 11633
07fc65c4 11634 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
226ada7a
GB
11635 Remove functions.
11636 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
11637
9b94bf9e
JM
116382001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
11639
11640 * ChangeLog: Remove piece of diff output.
11641
449d2be3
GB
116422001-12-14 Geert Bosch <bosch@gnat.com>
11643
11644 * config-lang.in: Update copyright notice
11645
11646 * layout.adb: Remove commented out code.
11647
11648 * mdllfile.ads: Update copyright notice. Fix header format.
11649
11650 * sem_case.ads: Likewise.
11651
11652 * sem_ch3.adb: Minor reformatting.
11653
e5bd5cb4
GB
116542001-12-12 Geert Bosch <bosch@gnat.com>
11655
11656 * freeze.ads: Update copyright date.
11657
11658 * g-comlin.ads: Minor reformatting.
11659
11660 * gnat-style.texi: Fix typo.
11661
b468d8ec
GB
116622001-12-12 Geert Bosch <bosch@gnat.com>
11663
11664 * einfo.h: Regenerate.
11665
ed7da216
GB
116662001-12-12 Ed Schonberg <schonber@gnat.com>
11667
07fc65c4 11668 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
ed7da216 11669 on known node types, rather than untyped fields. Further cleanups.
82a4b025 11670
ed7da216
GB
116712001-12-12 Robert Dewar <dewar@gnat.com>
11672
11673 * sem_ch12.adb:
11674 (Save_Entity_Descendant): Minor comment update.
11675 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
07fc65c4 11676 of an N_Attribute_Reference node. As per note below, this does not
ed7da216 11677 eliminate need for Associated_Node in attribute ref nodes.
07fc65c4 11678 (Associated_Node): Documentation explicitly mentions attribute
ed7da216 11679 reference nodes, since this field is used in such nodes.
82a4b025 11680
ed7da216
GB
11681 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
11682
de76a39c
GB
116832001-12-12 Robert Dewar <dewar@gnat.com>
11684
11685 * s-stalib.adb: Add more comments on with statements being needed
82a4b025 11686
de76a39c 11687 * par-ch12.adb: Minor reformatting
82a4b025 11688
de76a39c 11689 * prj-dect.ads: Fix copyright header
82a4b025 11690
07fc65c4 11691 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
de76a39c 11692 inputs fit in 32 bits, but the result still overflows.
82a4b025 11693
de76a39c 11694 * s-fatgen.ads: Minor comment improvement
82a4b025 11695
de76a39c
GB
116962001-12-12 Ed Schonberg <schonber@gnat.com>
11697
07fc65c4
GB
11698 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
11699 formal derived type, look for an inherited component from the full
de76a39c 11700 view of the parent, if any.
82a4b025 11701
de76a39c
GB
117022001-12-12 Robert Dewar <dewar@gnat.com>
11703
11704 * checks.ads (Apply_Alignment_Check): New procedure.
82a4b025 11705
07fc65c4
GB
11706 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
11707 ensure that the alignment of objects with address clauses is
de76a39c
GB
11708 appropriate, and raise PE if not.
11709
07fc65c4 11710 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
de76a39c 11711 Exp_Pakd.Known_Aligned_Enough
82a4b025 11712
de76a39c
GB
11713 * mdllfile.ads: Minor reformatting
11714
11715 * mlib-fil.ads: Minor reformatting
82a4b025 11716
de76a39c
GB
117172001-12-12 Ed Schonberg <schonber@gnat.com>
11718
07fc65c4
GB
11719 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
11720 fix to any component reference if enclosing record has non-standard
de76a39c 11721 representation.
82a4b025 11722
de76a39c
GB
117232001-12-12 Vincent Celier <celier@gnat.com>
11724
07fc65c4 11725 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
de76a39c 11726 Iteration
82a4b025 11727
de76a39c
GB
117282001-12-12 Ed Schonberg <schonber@gnat.com>
11729
07fc65c4 11730 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
de76a39c 11731 sem_attr.
82a4b025 11732
de76a39c
GB
117332001-12-12 Robert Dewar <dewar@gnat.com>
11734
11735 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
82a4b025 11736
de76a39c
GB
117372001-12-12 Emmanuel Briot <briot@gnat.com>
11738
11739 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
11740 and it adds dependencies to system.io.
82a4b025 11741
de76a39c
GB
117422001-12-12 Pascal Obry <obry@gnat.com>
11743
07fc65c4 11744 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
de76a39c
GB
11745 variable name.
11746
0b09835f
ES
117472001-12-11 Ed Schonberg <schonber@gnat.com>
11748
11749 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
07fc65c4
GB
11750 that is the parent of other generics, the instance body replaces the
11751 instance node. Retrieve the instance of the spec, which is the one
0b09835f
ES
11752 that is visible in clients and within the body.
11753
598c3446
GB
117542001-12-11 Vincent Celier <celier@gnat.com>
11755
11756 * gnatmain.adb: Initial version.
82a4b025 11757
598c3446 11758 * gnatmain.ads: Initial version.
82a4b025 11759
598c3446 11760 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
82a4b025 11761
598c3446 11762 * snames.adb: Updated to match snames.ads.
82a4b025 11763
598c3446 11764 * snames.ads: Added Gnatstub.
82a4b025 11765
598c3446
GB
117662001-12-11 Vincent Celier <celier@gnat.com>
11767
07fc65c4 11768 * prj-attr.adb (Initialization_Data): Change name from
598c3446 11769 Initialisation_Data.
82a4b025 11770
598c3446
GB
117712001-12-11 Emmanuel Briot <briot@gnat.com>
11772
11773 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
11774 + and * applied to backslashed expressions like \r.
82a4b025 11775
598c3446
GB
117762001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
11777
07fc65c4 11778 * g-os_lib.ads: String_List type added, Argument_List type is now
598c3446 11779 subtype of String_List.
82a4b025 11780
598c3446
GB
117812001-12-11 Robert Dewar <dewar@gnat.com>
11782
11783 * g-os_lib.ads: Change copyright to FSF
11784 Add comments for String_List type
82a4b025 11785
598c3446
GB
117862001-12-11 Vincent Celier <celier@gnat.com>
11787
07fc65c4 11788 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
598c3446
GB
11789 string to the buffer).
11790
7fb754a1
GB
117912001-12-11 Ed Schonberg <schonber@gnat.com>
11792
11793 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
11794 sem_attr.
82a4b025 11795
7fb754a1 11796 * sem_attr.adb: Simplify previous fix for Address.
07fc65c4
GB
11797 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
11798 to avoid anomalies where the bound of the type appears to raise
7fb754a1
GB
11799 constraint error.
11800
118012001-12-11 Robert Dewar <dewar@gnat.com>
11802
07fc65c4 11803 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
7fb754a1 11804 handled.
82a4b025 11805
7fb754a1
GB
118062001-12-11 Ed Schonberg <schonber@gnat.com>
11807
07fc65c4 11808 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
7fb754a1 11809 renamed unit before checking for recursive instantiations.
82a4b025 11810
7fb754a1
GB
118112001-12-11 Emmanuel Briot <briot@gnat.com>
11812
11813 * prj.ads: Add comments for some of the fields.
11814
0873bafc
GB
118152001-12-11 Robert Dewar <dewar@gnat.com>
11816
07fc65c4 11817 * lib-xref.adb (Output_Refs): Don't output type references outside
0873bafc 11818 the main unit if they are not otherwise referenced.
82a4b025 11819
0873bafc
GB
118202001-12-11 Ed Schonberg <schonber@gnat.com>
11821
07fc65c4 11822 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
0873bafc 11823 code and diagnose additional illegal uses
82a4b025 11824
07fc65c4 11825 * sem_util.adb (Is_Object_Reference): An indexed component is an
0873bafc 11826 object only if the prefix is.
82a4b025 11827
0873bafc
GB
118282001-12-11 Vincent Celier <celier@gnat.com>
11829
11830 * g-diopit.adb: Initial version.
82a4b025 11831
0873bafc 11832 * g-diopit.ads: Initial version.
82a4b025 11833
0873bafc
GB
11834 * g-dirope.adb:
11835 (Expand_Path): Avoid use of Unbounded_String
11836 (Find, Wildcard_Iterator): Moved to child package Iteration
82a4b025 11837
0873bafc 11838 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
82a4b025 11839
7fb754a1 118402001-12-11 Robert Dewar <dewar@gnat.com>
0873bafc
GB
11841
11842 * sem_attr.adb: Minor reformatting
11843
d087cd96
GB
118442001-12-11 Ed Schonberg <schonber@gnat.com>
11845
11846 * sem_ch3.adb: Clarify some ???.
82a4b025 11847
d087cd96
GB
118482001-12-11 Robert Dewar <dewar@gnat.com>
11849
07fc65c4 11850 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
d087cd96 11851 Exp_Pakd.Known_Aligned_Enough
82a4b025 11852
07fc65c4 11853 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
d087cd96
GB
11854 version is moved to Exp_Ch13.
11855
118562001-12-11 Robert Dewar <dewar@gnat.com>
11857
11858 * einfo.ads: Minor reformatting
82a4b025 11859
d087cd96 11860 * exp_ch5.adb: Add comment for previous.change
82a4b025 11861
d087cd96 11862 * ali.adb: New interface for extended typeref stuff.
82a4b025 11863
d087cd96 11864 * ali.ads: New interface for typeref stuff.
82a4b025 11865
d087cd96 11866 * checks.adb (Apply_Alignment_Check): New procedure.
82a4b025 11867
d087cd96 11868 * debug.adb: Add -gnatdM for modified ALI output
82a4b025 11869
d087cd96 11870 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
82a4b025 11871
07fc65c4
GB
11872 * lib-xref.adb: Extend generation of <..> notation to cover
11873 subtype/object types. Note that this is a complete rewrite,
11874 getting rid of the very nasty quadratic algorithm previously
d087cd96 11875 used for derived type output.
82a4b025 11876
07fc65c4
GB
11877 * lib-xref.ads: Extend description of <..> notation to cover
11878 subtype/object types. Uses {..} for these other cases.
d087cd96 11879 Also use (..) for pointer types.
82a4b025 11880
d087cd96 11881 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
82a4b025 11882
07fc65c4 11883 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
d087cd96
GB
11884 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
11885
290986ed
GB
118862001-12-11 Vincent Celier <celier@gnat.com>
11887
11888 * gnatcmd.adb:
11889 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
11890 Changed /BIND_ONLY to /ACTIONS=BIND
11891 Changed /LINK_ONLY to /ACTIONS=LINK
82a4b025 11892
290986ed
GB
118932001-12-11 Ed Schonberg <schonber@gnat.com>
11894
11895 * sem_ch8.adb (Find_Selected_Component): improved search for a
11896 candidate package in case of error.
82a4b025 11897
290986ed
GB
11898 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
11899 chain back on scope stack before reinstalling use clauses.
82a4b025 11900
290986ed
GB
11901 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
11902 is enabled, do not kill the code for the condition, to preserve
11903 warning.
11904
84157f51
GB
119052001-12-11 Robert Dewar <dewar@gnat.com>
11906
07fc65c4 11907 * checks.adb (Insert_Valid_Check): Apply validity check to expression
84157f51
GB
11908 of conversion, not to result of conversion.
11909
119102001-12-11 Ed Schonberg <schonber@gnat.com>
82a4b025 11911
07fc65c4
GB
11912 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
11913 before freezing parent. If the declarations are mutually recursive,
11914 an access to the current record type may be frozen before the
84157f51
GB
11915 derivation is complete.
11916
7ffa903f
VC
119172001-12-05 Vincent Celier <celier@gnat.com>
11918
07fc65c4 11919 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
7ffa903f 11920 -c /COMPILE_ONLY, -l /LINK_ONLY
82a4b025 11921
7ffa903f
VC
11922 * opt.ads:
11923 (Bind_Only): New Flag
11924 (Link_Only): New flag
82a4b025 11925
07fc65c4 11926 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
7ffa903f 11927 and -l (Link_Only)
82a4b025 11928
7ffa903f 11929 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
82a4b025 11930
7ffa903f
VC
11931 * make.adb:
11932 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
11933 (Gnatmake): Set the step flags. Only perform a step if the
11934 corresponding step flag is True.
11935 (Scan_Make_Arg): Reset the bind and link step flags when -u
11936 or -gnatc has been specified.
11937
f91b40db
GB
119382001-12-05 Ed Schonberg <schonber@gnat.com>
11939
07fc65c4 11940 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
f91b40db 11941 get bounds from right operand.
82a4b025 11942
f91b40db 11943 * sem_eval.adb: Minor reformatting
82a4b025 11944
07fc65c4 11945 * exp_util.adb (Make_Literal_Range): use bound of literal rather
f91b40db 11946 than Index'First, its lower bound may be different from 1.
82a4b025 11947
07fc65c4 11948 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
f91b40db 11949 and C48009J
82a4b025 11950
f91b40db
GB
119512001-12-05 Vincent Celier <celier@gnat.com>
11952
11953 * prj-nmsc.adb Minor reformatting
82a4b025 11954
07fc65c4 11955 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
f91b40db 11956 set and libraries are not supported.
82a4b025 11957
f91b40db
GB
119582001-12-05 Ed Schonberg <schonber@gnat.com>
11959
07fc65c4
GB
11960 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
11961 private view explicitly, so the back-end can treat as a global
f91b40db
GB
11962 when appropriate.
11963
45d04cbb
GB
119642001-12-05 Ed Schonberg <schonber@gnat.com>
11965
11966 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
11967 unit, always replace instance node with new body, for ASIS use.
11968
119692001-12-05 Vincent Celier <celier@gnat.com>
82a4b025 11970
07fc65c4
GB
11971 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
11972 libraries are not supported and both attributes Library_Name and
45d04cbb 11973 Library_Dir are specified.
82a4b025 11974
07fc65c4 11975 * prj-proc.adb (Expression): Set location of Result to location of
45d04cbb 11976 first term.
82a4b025 11977
45d04cbb
GB
11978 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
11979 (prj-nmsc is now importing MLib.Tgt)
82a4b025 11980
45d04cbb
GB
11981 * prj-proc.adb: Put the change indicated above that was forgotten.
11982
84436014
RD
119832001-12-05 Robert Dewar <dewar@gnat.com>
11984
11985 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
11986
7ae0dcd8
ES
119872001-12-05 Ed Schonberg <schonber@gnat.com>
11988
11989 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
11990 constraint, introduce explicit subtype declaration and derive from it.
82a4b025 11991
7ae0dcd8
ES
11992 * sem_ch3.adb: Minor reformatting
11993
c9a4817d
RD
119942001-12-05 Robert Dewar <dewar@gnat.com>
11995
07fc65c4 11996 * checks.adb (Determine_Range): Increase cache size for checks.
c9a4817d 11997 Minor reformatting
82a4b025 11998
c9a4817d
RD
11999 * exp_ch6.adb: Minor reformatting
12000 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
12001 a parameter whose root type is System.Address, since treating such
12002 subprograms as pure in the code generator is almost surely a mistake
12003 that will lead to unexpected results.
82a4b025 12004
07fc65c4 12005 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
c9a4817d 12006 change handling of conversions.
82a4b025 12007
c9a4817d
RD
12008 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
12009
2514b839
ES
120102001-12-05 Ed Schonberg <schonber@gnat.com>
12011
07fc65c4
GB
12012 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
12013 aggregate with static wrong size, attach generated Raise node to
2514b839
ES
12014 declaration.
12015
457b6274
RD
120162001-12-05 Robert Dewar <dewar@gnat.com>
12017
07fc65c4 12018 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
457b6274
RD
12019 Fixes compilation abandoned bomb in B24009B.
12020
19349925
ES
120212001-12-05 Ed Schonberg <schonber@gnat.com>
12022
12023 * sem_ch12.adb:
12024 Document use of Associated_Node on Selected_Components.
12025 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
12026 to clarify use of untyped descendant fields.
12027
6663c393
RD
120282001-12-05 Robert Dewar <dewar@gnat.com>
12029
12030 * prj-dect.ads: Add ??? comment
12031 Add 2001 to copyright notice (was not done in after all)
82a4b025 12032
6663c393 12033 * prj-part.adb: Minor reformatting. Reword one awkward error message.
82a4b025 12034
6663c393 12035 * prj.ads: Minor reformatting throughout, and add some ??? comments
82a4b025 12036
6663c393
RD
12037 * snames.ads: Minor reformatting
12038
d7b2a6af
GB
120392001-12-05 Geert Bosch <bosch@gnat.com>
12040
12041 * snames.adb: Autoupdate
12042
fbc9a404
VC
120432001-12-05 Vincent Celier <celier@gnat.com>
12044
12045 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
82a4b025 12046
fbc9a404 12047 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
82a4b025 12048
fbc9a404 12049 * prj-env.adb: Minor comment changes (modifying -> extends).
82a4b025 12050
fbc9a404 12051 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
82a4b025 12052
07fc65c4 12053 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
fbc9a404 12054 Tok_Extends.
82a4b025 12055
fbc9a404 12056 * prj.adb (Initialize): Change Modifying to Extends.
82a4b025 12057
fbc9a404 12058 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
82a4b025 12059
fbc9a404 12060 * prj.ads: Minor comment change (Modifying -> extending).
82a4b025 12061
fbc9a404
VC
12062 * snames.ads: Change modifying to extends.
12063
7cff0b1b
RD
120642001-12-05 Robert Dewar <dewar@gnat.com>
12065
07fc65c4 12066 * sem_warn.adb: Remove stuff for conditionals, we are not going to
7cff0b1b 12067 do this after all.
82a4b025 12068
07fc65c4 12069 * sem_warn.ads: Remove stuff for conditionals, we are not going to
7cff0b1b
RD
12070 do this after all. Add 2001 to copyright notice
12071
4f56ebb7
GB
120722001-12-04 Geert Bosch <bosch@gnat.com>
12073
12074 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
12075
053defdf
RD
120762001-12-04 Robert Dewar <dewar@gnat.com>
12077
07fc65c4
GB
12078 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
12079 location if we already have errors. Stops some cases of cascaded
053defdf 12080 errors.
82a4b025 12081
053defdf
RD
12082 * errout.adb: Improve comment.
12083
f311e166
RD
120842001-12-04 Robert Dewar <dewar@gnat.com>
12085
12086 * sem_ch12.adb:
12087 (Analyze_Formal_Type_Definition): Defend against Error.
12088 (Analyze_Formal_Subprogram): Defend against Error.
82a4b025 12089
07fc65c4 12090 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
f311e166
RD
12091 remove following semicolon if present. Removes cascaded error.
12092
d61bd65a
DR
120932001-12-04 Douglas B. Rupp <rupp@gnat.com>
12094
12095 * bindgen.adb:
12096 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
12097 exceptions equals 0.
12098 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
12099 Fixes PIWG E tests (which have to be run with -gnatL).
12100
4ba603e2
RD
121012001-12-04 Robert Dewar <dewar@gnat.com>
12102
12103 * einfo.ads: Minor reformatting
12104
57568d91
ES
121052001-12-04 Ed Schonberg <schonber@gnat.com>
12106
07fc65c4
GB
12107 * einfo.ads: Block_Node points to the identifier of the block, not to
12108 the block node itself, to preserve the link when the block is
12109 rewritten, e.g. within an if-statement with a static condition.
82a4b025 12110
07fc65c4 12111 * inline.adb (Cleanup_Scopes): recover block statement from block
57568d91 12112 entity using new meaning of Block_Node.
82a4b025 12113
07fc65c4 12114 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
57568d91
ES
12115 identifier of block node, rather than to node itself.
12116
0815d36a 121172001-12-04 Gary Dismukes <dismukes@gnat.com>
82a4b025 12118
0815d36a
GD
12119 * layout.adb:
12120 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
12121 (Discrimify): Go back to setting the Etypes of the selected component
07fc65c4 12122 because the Vname component does not exist at this point and will
0815d36a
GD
12123 fail name resolution. Also set Analyzed.
12124 Remove with and use of Sem_Res.
12125
edc0f304
AC
121262001-12-04 Arnaud Charlet <charlet@gnat.com>
12127
12128 * Makefile.in: (HIE_SOURCES): add s-fat*.
12129
32213142
RD
121302001-12-04 Robert Dewar <dewar@gnat.com>
12131
12132 * sem_attr.adb:
12133 (Compile_Time_Known_Attribute): New procedure.
12134 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
12135 proper range check.
12136
c0def2ad
ES
121372001-12-04 Ed Schonberg <schonber@gnat.com>
12138
07fc65c4 12139 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
c0def2ad
ES
12140 processing discriminants to diagnose illegal default values.
12141
ee0a48c5
ES
121422001-12-04 Ed Schonberg <schonber@gnat.com>
12143
07fc65c4
GB
12144 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
12145 access discriminant within a type extension that constrains its
ee0a48c5
ES
12146 parent discriminants.
12147
dd5875a6
ES
121482001-12-04 Ed Schonberg <schonber@gnat.com>
12149
07fc65c4 12150 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
dd5875a6 12151 is malformed, use instance of Any_Id to allow analysis to proceed.
82a4b025 12152
07fc65c4 12153 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
dd5875a6
ES
12154 type definition is illegal.
12155 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
12156 misplaced.
12157
c2a41e57
ES
121582001-12-04 Ed Schonberg <schonber@gnat.com>
12159
07fc65c4 12160 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
c2a41e57
ES
12161 constants.
12162
0ae84753
RD
121632001-12-04 Robert Dewar <dewar@gnat.com>
12164
12165 * errout.adb: Minor reformatting
12166
63db260e
RD
121672001-12-04 Robert Dewar <dewar@gnat.com>
12168
12169 * exp_util.adb: Minor reformatting from last change
82a4b025 12170
07fc65c4
GB
12171 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
12172 which is a rewriting of an expression, traverse the original
63db260e
RD
12173 expression to remove warnings that may have been posted on it.
12174
c6d289f4
ES
121752001-12-04 Ed Schonberg <schonber@gnat.com>
12176
07fc65c4 12177 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
c6d289f4
ES
12178 record that has other packed components.
12179
5917e80d
DR
121802001-12-04 Douglass B. Rupp <rupp@gnat.com>
12181
12182 * adaint.c: Minor cleanups.
12183
2c70f9dd
DR
121842001-12-04 Douglass B. Rupp <rupp@gnat.com>
12185
12186 * adaint.c: Do not use utime.h on vxworks.
12187
e59b3387
AC
121882001-12-04 Arnaud Charlet <charlet@gnat.com>
12189
07fc65c4 12190 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
e59b3387
AC
12191 more confusion than it solves.
12192
e288604a
GB
121932001-12-04 Geert bosch <bosch@gnat.com>
12194
12195 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
12196
5ac21013
GB
121972001-12-04 Geert Bosch <bosch@gnat.com>
12198
07fc65c4 12199 * Makefile.in (update-sources): New target.
5ac21013
GB
12200 For use by gcc_release script.
12201
7dd5bd5e
ES
122022001-12-04 Ed Schonberg <schonber@gnat.com>
12203
07fc65c4 12204 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
7dd5bd5e
ES
12205 a configuration pragma, it is now legal wherever a pragma can appear.
12206
a078a589
ZW
122072001-12-04 Zack Weinberg <zack@codesourcery.com>
12208
12209 * Makefile.in: Don't set ALL. Delete @cross_defines@,
12210 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
12211 is now @CROSS@ -DIN_GCC; update comment.
12212
0839863c
GB
122132001-12-04 Robert Dewar <dewar@gnat.com>
12214
12215 * einfo.adb (Has_Pragma_Pure_Function): New flag.
12216 Fix problem that stopped ceinfo from working
82a4b025 12217
0839863c 12218 * einfo.ads (Has_Pragma_Pure_Function): New flag.
82a4b025 12219
0839863c
GB
12220 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
12221
122222001-12-04 Douglas B. Rupp <rupp@gnat.com>
9678de49
DR
12223
12224 * gnatchop.adb:
12225 (File_Time_Stamp): New procedure.
12226 (Preserve_Mode): New boolean.
12227 (Write_Unit): Pass time stamp.
12228 Implement -p switch (preserve time stamps).
82a4b025 12229
9678de49 12230 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
82a4b025 12231
9678de49 12232 * gnatchop.adb: Do usage info for -p switch
82a4b025 12233
9678de49 12234 * adaint.h (__gnat_set_file_time_name): New function
82a4b025 12235
9678de49 12236 * adaint.c (__gnat_set_file_time_name): Implement
82a4b025 12237
9678de49
DR
12238 * adaint.h: Fix typo
12239
3b9a13c4
RD
122402001-12-03 Robert Dewar <dewar@gnat.com>
12241
667e5c5d 12242 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
b4f94ac1 12243 have Associated_Node.
3b9a13c4 12244
767b404e
RD
122452001-12-03 Robert Dewar <dewar@gnat.com>
12246
12247 * prj-proc.adb: Minor reformatting
667e5c5d 12248
767b404e
RD
12249 * make.adb: Minor reformatting
12250
11ac71ba
GB
122512001-12-03 Geert Bosch <bosch@gnat.com>
12252
667e5c5d 12253 * make.adb: Minor reformatting.
11ac71ba 12254
ef3d4d6e 122552001-12-03 Robert Dewar <dewar@gnat.com>
b1446533
RD
12256
12257 * sem_ch12.adb: Minor reformatting
12258
d6d32b24
ES
122592001-12-03 Ed Schonberg <schonber@gnat.com>
12260
667e5c5d
AJ
12261 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
12262 push Standard on the stack before analyzing the instance body,
d6d32b24 12263 in order to have a clean visibility environment.
667e5c5d
AJ
12264
12265 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
d6d32b24 12266
13f08f03
ES
122672001-12-03 Ed Schonberg <schonber@gnat.com>
12268
667e5c5d 12269 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
13f08f03
ES
12270 instantiation of a body that contains an inlined body.
12271
3bd6c100
ES
122722001-12-03 Ed Schonberg <schonber@gnat.com>
12273
12274 * sem_ch12.adb:
12275 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
12276 to prevent freezing within formal packages.
12277 (Freeze_Subprogram_Body): If body comes from another instance that
12278 appeared before its own body, place freeze node at end of current
12279 declarative part, to prevent a back-end crash.
12280 (Inline_Instance_Body): Handle properly a package instance within
12281 a subprogram instance that is a child unit.
12282
58d07d8f
GS
122832001-12-01 Graham Stott <grahams@redhat.com>
12284
12285 * Makefile.in (misc.o): Add missing $(srcdir) prefix
12286 and add optabs.h dependency.
12287
12288 * misc.c: Include optabs.h
12289 (gnat_tree_code_type): Make static and const.
12290 (gnat_tree_code_length): Likewise.
12291 (gnat_tree_code_name): Likewise.
12292 (update_setjmp_buf): Obtain operands mode from insn_data.
12293
c87222f0
RH
122942001-11-29 Richard Henderson <rth@redhat.com>
12295
12296 * init.c: Remove obsolete dwarf2 frame.h section.
12297
d3945f0a
JM
122982001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
12299
12300 * Make-lang.in (ada.generated-manpages): New dummy target.
12301
9f639397
ES
123022001-11-29 Ed Schonberg <schonber@gnat.com>
12303
667e5c5d
AJ
12304 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
12305 into Command, an array conversion is illegal here. Uncovered by
9f639397
ES
12306 ACATS B460005.
12307
c835e5c6
GB
123082001/11/28 Geert Bosch <bosch@gnat.com>
12309
12310 * init.c: Minor whitespace changes.
12311
49bb4548
DR
123122001-11-28 Doug Rupp <rupp@gnat.com>
12313
667e5c5d 12314 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
49bb4548
DR
12315 signal stack.
12316
ea2417e5
ZW
123172001-11-28 Zack Weinberg <zack@codesourcery.com>
12318
12319 * misc.c (gnat_expand_constant): Move declaration above
12320 definition of lang_hooks.
12321 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
12322 (gnat_init): lang_expand_constant no longer exists.
12323
12324 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
12325 always have vprintf.
12326 (gnat_init): Always call set_internal_error_function.
12327
f8e0aa73
AJ
123282001-11-27 Andreas Jaeger <aj@suse.de>
12329
12330 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
12331
d99b0e79
LG
123322001-11-27 Laurent Guerby <guerby@acm.org>
12333
12334 * Makefile.in: Regenerate Ada dependencies.
12335
3f0496e5
RH
123362001-11-26 Richard Henderson <rth@redhat.com>
12337
12338 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
12339 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
12340 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
12341
92fa4733
LG
123422001-11-25 Laurent Guerby <guerby@acm.org>
12343
12344 * sysdep.c (rts_get_*): Fix style.
12345
07626501
LG
123462001-11-19 Laurent Guerby <guerby@acm.org>
12347
12348 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
12349 since it is of no apparent use and cause warnings.
12350
22703ccc
NB
123512001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
12352
12353 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
12354 static too.
12355 (gnat_init): Don't return NULL.
12356 (finish_parse): Remove.
12357
b0df4321
LG
123582001-11-17 Laurent Guerby <guerby@acm.org>
12359
12360 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
12361 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
12362 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
12363 * lang-spec.h: Add missing struct field to silence warnings.
12364 * sysdep.c (rts_get_*): Provide K&R prototype.
12365 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
12366 * traceback.c (Unlock_Task, Lock_Task): Likewise.
12367 * tracebak.c (__gnat_backtrace): Remove unused variable.
12368 * utils.c (end_subprog_body): Move to K&R style.
12369
d215024f
RK
12370Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12371
12372 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
12373
f5e99456
NB
123742001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
12375
12376 * misc.c (gnat_init): Change prototype. Include the
12377 functionality of the old init_parse and init_decl_processing.
12378 (gnat_init_decl_processing): New prototype.
12379 (init_parse): Remove.
12380 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
12381
5d69f816
NB
123822001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
12383
12384 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
12385 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
12386 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
12387 set_yydebug): Remove.
12388
3ac88239
NB
123892001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
12390
12391 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
12392 (struct lang_hooks): Constify.
12393 (language_string, lang_identify): Remove.
12394 * utils.c (init_decl_processing): Update.
12395
d23c55c2
NB
123962001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
12397
12398 * misc.c: Include langhooks-def.h.
12399 * Makefile.in: Update.
12400
04a1b79c
RD
124012001-10-30 Robert Dewar <dewar@gnat.com>
12402
12403 * style.adb:
12404 (Check_Identifier): Rewrite circuit to be compatible with use of letters
12405 in the upper half of ASCII.
12406 (Check_Identifier): Minor reformatting
12407
81fa2d39
GB
124082001-10-30 Geert Bosch <bosch@gnat.com>
12409
f8e0aa73 12410 * (Associated_Node, Set_Associated_Node): Do not check for
81fa2d39
GB
12411 Freeze_Entity.
12412
ffc5527f
RD
124132001-10-30 Robert Dewar <dewar@gnat.com>
12414
12415 * a-reatim.ads: Minor reformatting
12416
865335eb
RD
124172001-10-30 Robert Dewar <dewar@gnat.com>
12418
f8e0aa73 12419 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
865335eb
RD
12420 undocumented declarations.
12421
5e257178
PO
124222001-10-30 Pascal Obry <obry@gnat.com>
12423
f8e0aa73 12424 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
5e257178
PO
12425 to the binder and linker.
12426 Minor style fix.
f8e0aa73 12427
5e257178
PO
12428 * mdll.ads: Fix layout. Update copyright notice.
12429
12430 * mdll.adb: Fix layout. Update copyright notice.
12431
1753e0ad
RD
124322001-10-30 Robert Dewar <dewar@gnat.com>
12433
12434 * usage.adb: Minor fix to output for -gnaty.
12435
84bfdde0
ES
124362001-10-30 Ed Schonberg <schonber@gnat.com>
12437
f8e0aa73
AJ
12438 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
12439 to accommodate all its possible values.
84bfdde0 12440
f8e0aa73 12441 * a-reatim.adb (Split): Special-case handling of Time_Span_First
84bfdde0
ES
12442 and of small absolute values of T.
12443
c296e5fc
RK
124442001-10-30 Richard Kenner <kenner@gnat.com>
12445
f8e0aa73
AJ
12446 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
12447 set_mem_attributes since not needed and wrong if RESULT if a REG;
c296e5fc
RK
12448 fixes ACATS failures.
12449
07c809df
GB
124502001-10-30 Geert Bosch <bosch@gnat.com>
12451
12452 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
12453 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
12454
54d22416 124552001-10-30 Robert Dewar <dewar@gnat.com>
f8e0aa73 12456
54d22416 12457 * bindusg.adb: Undocument -f switch.
f8e0aa73 12458
54d22416 12459 * gnatcmd.adb: Remove /FULL_ELABORATION.
f8e0aa73
AJ
12460
12461 * opt.ads (Force_RM_Elaboration_Order): Document that this is
54d22416 12462 obsolescent.
f8e0aa73 12463
54d22416 12464 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
f8e0aa73 12465
54d22416
RD
12466 * gnatbind.adb: Minor update of warning msg.
12467
af5cf6f8
VC
124682001-10-30 Vincent Celier <celier@gnat.com>
12469
f8e0aa73 12470 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
af5cf6f8 12471 for project file switches (-P (/PROJECT_FILE=),
f8e0aa73 12472 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
af5cf6f8
VC
12473 or MEDIUM or HIGH)
12474
984bc4c3
GB
124752001-10-30 Geert Bosch <bosch@gnat.com>
12476
12477 * decl.c: Minor whitespace fixes.
12478
5dece937
RK
124792001-10-30 Richard Kenner <kenner@gnat.com>
12480
12481 * utils2.c (build_allocator): Test for SIZE overflow in array case too
12482
de4bf6cb
GB
124832001-10-30 Geert Bosch <bosch@gnat.com>
12484
f8e0aa73 12485 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
de4bf6cb 12486 Found due to GCC 3.0 warning of using uninitialized value.
f8e0aa73 12487
de4bf6cb
GB
12488 * layout.adb:
12489 (Get_Max_Size): Use variant record for tracking value/expression.
12490 Makes logic clearer and prevents warnings for uninitialized variables.
12491 (Layout_Array_Type): Use variant record for tracking value/expression.
12492 Makes logic clearer and prevents warnings for uninitialized variables.
12493
f5e44987
RD
124942001-10-30 Robert Dewar <dewar@gnat.com>
12495
12496 * lib.adb: Minor reformatting
12497
12498 * s-taprop.ads: Minor reformatting
12499
45659035 125002001-10-29 Laurent Guerby <guerby@acm.org>
f8e0aa73 12501
45659035
GB
12502 * init.c:
12503 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
12504 const.
12505 (_gnat_error_handler): Make MSG const.
12506
125072001-10-29 Richard Kenner <kenner@gnat.com>
12508
12509 * sysdep.c: Fix localtime_r problem on LynxOS.
12510 Also remove #elif to avoid warnings.
f8e0aa73
AJ
12511
12512 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
45659035 12513 used by this.
f8e0aa73 12514
45659035
GB
12515 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
12516
638e383e
JM
125172001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
12518
12519 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
12520 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
12521 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
12522 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
12523 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
12524 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
12525 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
12526 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
12527 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
12528 types.ads, urealp.adb: Fix spelling errors.
12529
97f6baa0
LG
125302001-10-27 Laurent Guerby <guerby@acm.org>
12531
12532 * trans.c (gigi): Fix non determinism leading to bootstrap
12533 comparison failures for debugging information.
12534
46b58b8c
FW
125352001-10-26 Florian Weimer <fw@deneb.enyo.de>
12536
12537 * gnat_rm.texi: Use @./@: where appropriate.
12538
30151c7b
RD
125392001-10-26 Robert Dewar <dewar@gnat.com>
12540
12541 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
12542
c0b1738d
RK
125432001-10-26 Richard Kenner <kenner@gnat.com>
12544
12545 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
12546
5b09c153
RK
125472001-10-26 Richard Kenner <kenner@gnat.com>
12548
f8e0aa73 12549 * decl.c (validate_size): Modify message for bad size to avoid
5b09c153
RK
12550 implication that compiler is modifying the size.
12551
4d553668
RD
125522001-10-26 Robert Dewar <dewar@gnat.com>
12553
12554 * prj-util.adb: Minor reformatting. Fix bad header format.
12555
3e542a58
RD
125562001-10-26 Robert Dewar <dewar@gnat.com>
12557
12558 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
f8e0aa73 12559
3e542a58 12560 * sinfo.ads: Clarify use of Associated_Node (documentation only).
f8e0aa73
AJ
12561
12562 * sem_ch12.adb: Change Node4 to Associated_Node. Change
12563 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
3e542a58
RD
12564 much more narrowly in places where needed. These are cleanups.
12565
0bf08bfe
JB
125662001-10-26 Joel Brobecker <brobecke@gnat.com>
12567
12568 * 5zosinte.ads (null_pthread): new constant.
f8e0aa73 12569
0bf08bfe
JB
12570 * 5ztaprop.adb:
12571 (Initialize_TCB): Initialize thread ID to null, to be able to verify
12572 later that this field has been set.
12573 (Finalize_TCB): ditto.
12574 (Suspend_Task): Verify that the thread ID is not null before using it.
12575 (Resume_Task): ditto.
f8e0aa73 12576
0bf08bfe
JB
12577 * s-tasdeb.adb:
12578 (Resume_All_Tasks): Lock the tasks list before using it.
12579 (Suspend_All_Tasks): ditto.
12580
7a3a8c06
RK
125812001-10-26 Richard Kenner <kenner@gnat.com>
12582
f8e0aa73 12583 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
7a3a8c06
RK
12584 Make constant variant of designated type for Is_Access_Constant.
12585 Call update_pointer_to with main variant.
f8e0aa73
AJ
12586
12587 * trans.c (process_freeze_entity, process_type):
7a3a8c06 12588 Call update_pointer_to on main variant.
f8e0aa73 12589
7a3a8c06
RK
12590 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
12591 If main variant, update all other variants.
f8e0aa73
AJ
12592
12593 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
7a3a8c06
RK
12594 TREE_STATIC.
12595
a160babb
RD
125962001-10-26 Robert Dewar <dewar@gnat.com>
12597
12598 * prj-util.adb: Minor reformatting
12599
b403bd17
RD
126002001-10-26 Robert Dewar <dewar@gnat.com>
12601
12602 * prj-util.adb: Minor reformatting
12603
5fc3b4c7
RD
126042001-10-26 Robert Dewar <dewar@gnat.com>
12605
12606 * prj-attr.adb: Minor reformatting throughout
12607
8c736034
RD
126082001-10-26 Robert Dewar <dewar@gnat.com>
12609
12610 * prj-attr.ads: Minor reformatting
12611 Add ??? comment (this whole spec has almost no comments)
12612
47d5b6ed
VC
126132001-10-26 Vincent Celier <celier@gnat.com>
12614
f8e0aa73 12615 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
b4f94ac1 12616 ("//") that precede the drive letter on Interix.
47d5b6ed 12617
41af791f
GB
126182001-10-26 Geert Bosch <bosch@gnat.com>
12619
12620 * gnat_rm.texi: Add GNAT Reference Manual.
12621
ed4a1468
RD
126222001-10-25 Robert Dewar <dewar@gnat.com>
12623
f8e0aa73 12624 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
b4f94ac1 12625 is Error. Similar change for other renaming cases.
ed4a1468 12626
24377ae4
RD
126272001-10-25 Robert Dewar <dewar@gnat.com>
12628
12629 * s-atacco.ads: Add pragma Inline_Always for functions.
12630 Fix header format. Add copyright 2001
12631
fef3204e
ES
126322001-10-25 Ed Schonberg <schonber@gnat.com>
12633
f8e0aa73 12634 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
b4f94ac1 12635 return Error rather than Empty so that analysis can proceed.
fef3204e 12636
dfc69d80
ES
126372001-10-25 Ed Schonberg <schonber@gnat.com>
12638
f8e0aa73 12639 * sem_util.adb (Enter_Name): better handling of cascaded error
b4f94ac1 12640 messages when a unit appears in its own context.
dfc69d80 12641
5a15af62
ES
126422001-10-25 Ed Schonberg <schonber@gnat.com>
12643
f8e0aa73 12644 * sem_util.adb (Defining_Entity): in case of error, attach created
b4f94ac1 12645 entity to specification, so that semantic analysis can proceed.
5a15af62 12646
2b881d53
RD
126472001-10-25 Robert Dewar <dewar@gnat.com>
12648
f8e0aa73 12649 * sem_util.adb
b4f94ac1 12650 (Defining_Entity): Deal with Error.
2b881d53
RD
12651 (Process_End_Label): Deal with bad end label for.
12652
578053f2
ES
126532001-10-25 Ed Schonberg <schonber@gnat.com>
12654
f8e0aa73 12655 * sem_elab.adb (Check_A_Call): refine message when call is in an
578053f2
ES
12656 instance but callee is not declared in the generic unit.
12657
0597ce0b 126582001-10-25 Ed Schonberg <schonber@gnat.com>
f8e0aa73
AJ
12659
12660 * sem_elab.adb (Check_A_Call): check for renaming before finding the
0597ce0b
ES
12661 enclosing unit, which may already be different from the calling unit.
12662
3de6e6da
GB
126632001-10-25 Geert Bosch <bosch@gnat.com>
12664
12665 * 4gintnam.ads: fix header format.
12666
6f311316
ES
126672001-10-25 Ed Schonberg <schonber@gnat.com>
12668
f8e0aa73 12669 * sem_res.adb (Resolve_Call): if the call is actually an indexing
b4f94ac1
ZW
12670 operation on the result of a parameterless call, perform elaboration
12671 check after the node has been properly rewritten.
f8e0aa73
AJ
12672
12673 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
b4f94ac1
ZW
12674 inlined within the generic tree, the defining identifier is not a
12675 compilation_unit.
6f311316 12676
17be0cdf
ES
126772001-10-25 Ed Schonberg <schonber@gnat.com>
12678
f8e0aa73 12679 * sem_res.adb (Resolve): special-case resolution of Null in an
b4f94ac1 12680 instance or an inlined body to avoid view conflicts.
f8e0aa73
AJ
12681
12682 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
b4f94ac1 12683 compatibility by retrieving the access type of the generic copy.
17be0cdf 12684
ce9e9122
RD
126852001-10-25 Robert Dewar <dewar@gnat.com>
12686
12687 * sem_ch3.adb:
12688 (Analyze_Number_Declaration): Handle error expression.
12689 (Signed_Integer_Type_Declaration): Handle error bound.
12690 (Analyze_Subtype_Indication): Handle error range.
f8e0aa73 12691
ce9e9122
RD
12692 * sem_util.adb (Get_Index_Bounds): Check for Error.
12693
e12fbc9e
RD
126942001-10-25 Robert Dewar <dewar@gnat.com>
12695
f8e0aa73 12696 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
e12fbc9e
RD
12697 in no run time mode.
12698
52b80488
PO
126992001-10-25 Pascal Obry <obry@gnat.com>
12700
f8e0aa73 12701 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
b4f94ac1 12702 mode case for ALLOC case.
f8e0aa73
AJ
12703
12704 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
b4f94ac1 12705 all platforms. Improvement of last change.
52b80488 12706
316ad9c5
RD
127072001-10-25 Robert Dewar <dewar@gnat.com>
12708
12709 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
12710
1a7e4df4
GB
127112001-10-25 Geert Bosch <bosch@gnat.com>
12712
12713 * osint.adb (Is_Relative): Remove duplicate.
12714
90a9fff2
PO
127152001-10-25 Pascal Obry <obry@gnat.com>
12716
f8e0aa73 12717 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
b4f94ac1 12718 pathnames in UNIX and DOS style with drive letter.
90a9fff2 12719 (Is_Relative): new routine.
f8e0aa73 12720
90a9fff2 12721 * osint.adb: Minor reformatting
f8e0aa73
AJ
12722
12723 * osint.adb (Is_Relative): implementation using
b4f94ac1 12724 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
90a9fff2 12725
5c1ba4cc
PO
127262001-10-25 Pascal Obry <obry@gnat.com>
12727
f8e0aa73 12728 * g-dirope.adb (Basename): correctly compute offset between the
b4f94ac1 12729 original Path and the translated one.
f8e0aa73 12730
5c1ba4cc
PO
12731 * g-dirope.adb: (Base_Name): add some comments.
12732
a7fb206d
RD
127332001-10-25 Robert Dewar <dewar@gnat.com>
12734
f8e0aa73 12735 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
b4f94ac1 12736 in HIE mode, avoids compilation abandoned message
f8e0aa73 12737
a7fb206d 12738 * exp_imgv.adb: Correct typo in previous change
f8e0aa73 12739
a7fb206d
RD
12740 * exp_imgv.adb: Correct typo in previous change (not my day!)
12741
e6a7e62e
RD
127422001-10-25 Robert Dewar <dewar@gnat.com>
12743
12744 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
12745
0d2b8e0b 127462001-10-25 Pascal Obry <obry@gnat.com>
75c09e7d 12747
f8e0aa73 12748 * g-awk.ads: Move all pragma inlines next to the routine
0d2b8e0b 12749 declarations. This is more uniform with other GNAT spec.
75c09e7d 12750
0d2b8e0b 127512001-10-22 Geert Bosch <bosch@gnat.com>
d2740a69
GB
12752
12753 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
12754
0d2b8e0b 127552001-10-19 Geert Bosch <bosch@gnat.com>
d7ac9bdd
GB
12756
12757 * Makefile.in (tools, gnattools): Remove gnatmem.
12758
17ed6335
RH
127592001-10-17 Richard Henderson <rth@redhat.com>
12760
12761 * Makefile.in (misc.o): Depend on langhooks.h.
12762 * misc.c: Include it.
12763 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
12764 (LANG_HOOKS_DECODE_OPTION): New.
12765 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
12766
f2436274
FW
127672001-10-16 Florian Weimer <fw@deneb.enyo.de>
12768
12769 * trans.c (tree_transform): Adjust to recent change in
12770 expand_asm_operands to implement named asm operands.
12771
b14127e6
ES
127722001-10-11 Ed Schonberg <schonber@gnat.com>
12773
f8e0aa73 12774 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
b14127e6
ES
12775 renaming of discriminant for mutable record type.
12776
e70ee92a
RD
127772001-10-11 Robert Dewar <dewar@gnat.com>
12778
12779 * validsw.adb: Properly save -gnatVn status.
12780
9a5621d7 127812001-10-11 Robert Dewar <dewar@gnat.com>
f8e0aa73 12782
9a5621d7
RD
12783 * usage.adb: Add lines for V switch.
12784
f8e0aa73 12785 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
9a5621d7
RD
12786 (/VALIDITY_CHECKING).
12787
45667f04
ES
127882001-10-11 Ed Schonberg <schonber@gnat.com>
12789
f8e0aa73 12790 * sem_type.adb (Add_One_Interp): an operator for a type declared in
45667f04
ES
12791 an extension of System is known to be visible.
12792
c3de5c4c
ES
127932001-10-11 Ed Schonberg <schonber@gnat.com>
12794
f8e0aa73 12795 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
c3de5c4c
ES
12796 properly. Fixes regression on ACATS C34005G.
12797
4fa964a6
RD
127982001-10-11 Robert Dewar <dewar@gnat.com>
12799
f8e0aa73 12800 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
4fa964a6
RD
12801 loop in generic instance, since this is likely not very useful.
12802
0868e09c
RD
128032001-10-11 Robert Dewar <dewar@gnat.com>
12804
f8e0aa73 12805 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
0868e09c 12806 the error message for high integrity mode.
f8e0aa73
AJ
12807
12808 * rtsfind.adb (RTE): Give message if we try to find an entity that
0868e09c 12809 is not available in high integrity mode.
f8e0aa73 12810
0868e09c
RD
12811 * rtsfind.ads:
12812 (OK_To_Use_In_HIE_Mode): New array.
12813 (RTE): May return Empty in high integrity mode.
f8e0aa73
AJ
12814
12815 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
12816 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
12817
12818 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
12819 unit if not inlined always and in no runtime mode. Fixes problem
0868e09c 12820 caused by new Rtsfind changes.
f8e0aa73
AJ
12821
12822 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
0868e09c 12823 body is deleted.
f8e0aa73
AJ
12824
12825 * rtsfind.adb (RTE): Make sure we do not try to load unit after
0868e09c
RD
12826 giving message for entity not available in high integrity mode.
12827
934abf9c 128282001-10-11 Pascal Obry <obry@gnat.com>
f8e0aa73 12829
934abf9c
PO
12830 * impunit.adb: Add GNAT.CRC32.
12831
3c72bea4
ES
128322001-10-11 Ed Schonberg <schonber@gnat.com>
12833
f8e0aa73
AJ
12834 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
12835 properly the case where one universal operand in a non-static
3c72bea4
ES
12836 exponentiation of a real literal.
12837
44d8d2bb
ES
128382001-10-11 Ed Schonberg <schonber@gnat.com>
12839
f8e0aa73
AJ
12840 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
12841 clause, return the gobal finalization list, for lack of anthing else.
44d8d2bb 12842
9e2b9627
ES
128432001-10-11 Ed Schonberg <schonber@gnat.com>
12844
f8e0aa73
AJ
12845 * exp_ch7.adb (Make_Transient_Block): if statement is within
12846 exception handler, always use new transient scope to place Clean
9e2b9627
ES
12847 procedure.
12848
cfac6e9f
PO
128492001-10-11 Pascal Obry <obry@gnat.com>
12850
12851 * Makefile.in:
12852 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
12853 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
12854 (GNATLS_RTL_OBJS): add g-crc32.o
12855 (GNATMAKE_RTL_OBJS): add g-crc32.o
f8e0aa73 12856
cfac6e9f
PO
12857 * ali-util.adb:
12858 (CRC_Match): new function.
f8e0aa73 12859 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
cfac6e9f
PO
12860 instead of the previous simple checksum algorithm.
12861 (Time_Stamp_Mismatch): use CRC_Match for comparison.
12862 (Set_Source_Table): idem.
f8e0aa73 12863
cfac6e9f 12864 * ali-util.ads:
f8e0aa73 12865 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
cfac6e9f
PO
12866 instead of simple checksum.
12867 (CRC_Match): new function.
12868 (CRC_Error): new constant.
f8e0aa73
AJ
12869
12870 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
12871 a CRC now and not a simple checksum. A CRC uses lower-case hex
cfac6e9f 12872 letters, fixes ambiguity in parsing.
f8e0aa73
AJ
12873
12874 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
cfac6e9f 12875 is what this variable will store.
f8e0aa73 12876
cfac6e9f 12877 * bcheck.adb: Change reference to chechsum in comments by CRC.
f8e0aa73
AJ
12878 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
12879 rename All_Checksum_Match to All_CRC_Match. Change due to API
12880 renaming since now GNAT does not use a simple checksum but a
cfac6e9f 12881 CRC using GNAT.CRC32.
f8e0aa73
AJ
12882
12883 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
cfac6e9f 12884 now and not anymore a simple checksum.
f8e0aa73
AJ
12885
12886 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
cfac6e9f 12887 places.
f8e0aa73 12888
cfac6e9f 12889 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
f8e0aa73 12890
cfac6e9f
PO
12891 * scans.adb:
12892 (Restore_Scan_State): rename Checksum to CRC.
12893 (Save_Scan_State): idem.
f8e0aa73 12894
cfac6e9f
PO
12895 * scans.ads:
12896 With GNAT.CRC32.
12897 (Checksum): rename to CRC.
12898 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
f8e0aa73
AJ
12899
12900 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
cfac6e9f 12901 GNAT.CRC32). Update copyright notice.
f8e0aa73
AJ
12902
12903 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
cfac6e9f 12904 GNAT.CRC32). Update copyright notice.
f8e0aa73 12905
cfac6e9f
PO
12906 * scn.adb:
12907 (Accumulate_Checksum): removed.
12908 (Update): new procedure. Add a wide-character into the CRC.
f8e0aa73 12909
cfac6e9f
PO
12910 * sinput-l.adb:
12911 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
f8e0aa73 12912 (Load_File): fix initialization of S (change Source_Checksum to
cfac6e9f 12913 Source_CRC)
f8e0aa73
AJ
12914
12915 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
cfac6e9f 12916 Source_CRC in S initialization.
f8e0aa73 12917
cfac6e9f 12918 * sinput.adb (Source_Checksum): renamed to Source_CRC.
f8e0aa73 12919
cfac6e9f
PO
12920 * sinput.ads (Source_Checksum): renamed to Source_CRC.
12921 Update comments for the CRC.
f8e0aa73 12922
cfac6e9f 12923 * types.adb (Hex): Use lowercase for the letter part.
f8e0aa73
AJ
12924
12925 * types.ads (Get_Hex_String): Returns the hexadecimal representation
12926 for a word. This is currently used only for CRC. In previous version,
12927 the checksum was using a representation with all letter being
12928 upper-case. With the new implementation (using CRC) we do not remove
12929 the 32th bit of the CRC, so we can have an upper-case starting letter
12930 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
12931 It is ambigous since the CRC was optional and could be followed by
12932 options like EB, EE. So now this routines uses lower-case letter for
12933 the hexadecimal representation. Strange enough only lower case letters
cfac6e9f 12934 where checked in Scan_ALI (even if this was not a possible case).
f8e0aa73 12935
cfac6e9f 12936 * gnatvsn.ads (Library_Version): changed to 3.15a.
f8e0aa73
AJ
12937
12938 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
cfac6e9f 12939 for the compiler.
f8e0aa73
AJ
12940
12941 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
cfac6e9f 12942 for the compiler.
f8e0aa73 12943
cfac6e9f
PO
12944 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
12945 Add 2001 to copyright notice
12946 (Accumulate_Checksum): Modify to use System.CRC32.
f8e0aa73
AJ
12947
12948 * ali-util.ads: Redo changes of previous revision to continue to use
cfac6e9f 12949 the word Checksum. Add 2001 to copyright notice.
f8e0aa73 12950
cfac6e9f
PO
12951 * ali.adb: Undo some of previous changes, not needed.
12952 Keep the change for lower case letters in the checksum.
f8e0aa73 12953
cfac6e9f
PO
12954 * ali.ads: Undo previous change not needed.
12955
12956 * bcheck.adb: Undo most of previous change, not needed.
12957 But do use Checksums_Match for checksum comparison.
f8e0aa73 12958
cfac6e9f
PO
12959 * gnatls.adb: Undo most of previous change, not needed.
12960 But do use Checksums_Match for comparing checksums.
f8e0aa73 12961
cfac6e9f 12962 * lib-load.adb: Undo previous change, not needed.
f8e0aa73 12963
cfac6e9f 12964 * lib-writ.adb: Undo previous change, not needed.
f8e0aa73
AJ
12965
12966 * lib-writ.ads: Document that checksums use lower case,
cfac6e9f 12967 not upper case letters.
f8e0aa73 12968
cfac6e9f 12969 * scans.adb: Undo previous change, not needed
f8e0aa73 12970
cfac6e9f 12971 * scans.ads: Undo previous change, not needed.
f8e0aa73 12972
cfac6e9f 12973 * scn-nlit.adb: Undo previous changes, not needed.
f8e0aa73 12974
cfac6e9f 12975 * scn-slit.adb: Undo previous change, not needed. Fix header format.
f8e0aa73 12976
cfac6e9f
PO
12977 * scn.adb:
12978 (Accumulate_Checksum): Use System.CRC32.
12979 (Initialize_Checksum): New procedure.
12980 Remove other changes of previous revision.
f8e0aa73 12981
cfac6e9f 12982 * sinput-p.adb: Undo previous change, not needed.
f8e0aa73 12983
cfac6e9f
PO
12984 * sinput.adb: Undo previous change, not needed.
12985
12986 * sinput-l.adb: Undo previous change, not needed.
f8e0aa73
AJ
12987
12988 * sinput.ads: Undo previous change, not needed. Keep only comment
cfac6e9f 12989 on new checksum algorithm
f8e0aa73 12990
cfac6e9f
PO
12991 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
12992 Also remove a-tags and a-stream from GNAT sources.
f8e0aa73 12993
cfac6e9f 12994 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
f8e0aa73 12995
cfac6e9f
PO
12996 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
12997
4d6d06a5
GB
129982001-10-11 Geert Bosch <bosch@gnat.com>
12999
13000 * einfo.h: Regenerate.
13001
13002 * nmake.ads: Regenerate.
13003
13004 * nmake.adb: Regenerate.
13005
13006 * sinfo.h: Regenerate.
13007
13008 * treeprs.adb: Regenerate.
13009
c97412e2
GB
130102001-10-10 Geert Bosch <bosch@gnat.com>
13011
13012 * gnat-style.texi: New file describing coding guidelines for Ada.
f8e0aa73 13013
b83018ca
ES
130142001-10-10 Ed Schonberg <schonber@gnat.com>
13015
f8e0aa73 13016 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
b83018ca
ES
13017 is Flag174.
13018
e834fe1f
GB
130192001-10-10 Geert Bosch <bosch@gnat.com>
13020
13021 * snames.ads: Add new names for project facility.
13022
13023 * snames.adb: Update to reflect snames.ads changes.
13024
13025 * snames.h: Update to reflect snames.ads changes.
13026
b30668b7
VC
130272001-10-10 Vincent Celier <celier@gnat.com>
13028
13029 * make.adb:
13030 (Add_Switches): reflect the changes for the switches attributes
13031 Default_Switches indexed by the programming language,
13032 Switches indexed by the file name.
13033 (Collect_Arguments_And_Compile): Idem.
13034 Reflect the attribute name changes.
f8e0aa73 13035
b30668b7
VC
13036 * prj-attr.adb:
13037 (Initialisation_Data): Change the names of some packages and
13038 attributes.
13039 (Initialize): process case insensitive associative arrays.
f8e0aa73 13040
b30668b7
VC
13041 * prj-attr.ads:
13042 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
f8e0aa73 13043
b30668b7
VC
13044 * prj-dect.adb:
13045 (Parse_Attribute_Declaration): For case insensitive associative
13046 arrays, set the index string to lower case.
f8e0aa73 13047
b30668b7
VC
13048 * prj-env.adb:
13049 Reflect the changes of the project attributes.
f8e0aa73 13050
b30668b7
VC
13051 * prj-nmsc.adb:
13052 Replace Check_Naming_Scheme by Ada_Check and
13053 Language_Independent_Check.
f8e0aa73 13054
b30668b7
VC
13055 * prj-nmsc.ads:
13056 Replaced Check_Naming_Scheme by 2 procedures:
13057 Ada_Check and Language_Independent_Check.
f8e0aa73 13058
b30668b7
VC
13059 * prj-proc.adb:
13060 (Process_Declarative_Items): For case-insensitive associative
13061 arrays, set the index string to lower case.
13062 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
13063 Prj.Nmsc.Check_Naming_Scheme.
f8e0aa73 13064
b30668b7
VC
13065 * prj-tree.adb:
13066 (Case_Insensitive): New function
13067 (Set_Case_Insensitive): New procedure
f8e0aa73 13068
b30668b7
VC
13069 * prj-tree.ads:
13070 (Case_Insensitive): New function
13071 (Set_Case_Insensitive): New procedure
13072 (Project_Node_Record): New flag Case_Insensitive.
f8e0aa73 13073
b30668b7
VC
13074 * prj-util.adb:
13075 (Value_Of): new function to get the string value of a single
13076 string variable or attribute.
f8e0aa73 13077
b30668b7
VC
13078 * prj-util.ads:
13079 (Value_Of): new function to get the string value of a single
13080 string variable or attribute.
f8e0aa73 13081
b30668b7
VC
13082 * prj.adb:
13083 (Ada_Default_Spec_Suffix): New function
13084 (Ada_Default_Impl_Suffix): New function
13085 Change definitions of several constants to reflect
13086 new components of record types.
f8e0aa73 13087
b30668b7
VC
13088 * prj.ads:
13089 (Naming_Data): Change several components to reflect new
13090 elements of naming schemes.
13091 (Project_Data): New flags Sources_Present and
13092 Language_Independent_Checked.
13093 (Ada_Default_Spec_Suffix): New function.
13094 (Ada_Default_Impl_Suffix): New function.
f8e0aa73 13095
b30668b7
VC
13096 * snames.ads:
13097 Modification of predefined names for project manager: added
13098 Implementation, Specification_Exceptions, Implementation_Exceptions,
13099 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
13100 Default_Switches, _Languages, Builder, Cross_Reference,
13101 Finder. Removed Body_Part, Specification_Append, Body_Append,
13102 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
13103 Gnatlink.
f8e0aa73 13104
b30668b7
VC
13105 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
13106 Add comments.
f8e0aa73 13107
b30668b7
VC
13108 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
13109 not that it is Nil_Variable_Value.
f8e0aa73 13110
b30668b7
VC
13111 * prj.ads: Add ??? for uncommented declarations
13112
662e57b4
ES
131132001-10-10 Ed Schonberg <schonber@gnat.com>
13114
f8e0aa73
AJ
13115 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
13116 constant, do not indicate possible modification, so that gigi can
662e57b4
ES
13117 treat it as a bona fide constant.
13118
72e4357f
RD
131192001-10-10 Robert Dewar <dewar@gnat.com>
13120
13121 * sem_prag.adb: Add processing for pragma External.
f8e0aa73 13122
72e4357f 13123 * snames.ads: Add entry for pragma External.
f8e0aa73 13124
72e4357f 13125 * par-prag.adb: Add pragma External.
f8e0aa73 13126
72e4357f
RD
13127 * snames.adb: Updated to match snames.ads.
13128
7bc1c7df
ES
131292001-10-10 Ed Schonberg <schonber@gnat.com>
13130
13131 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
13132 a dynamic task if the allocator appears in an indexed assignment
13133 or selected component assignment.
f8e0aa73
AJ
13134
13135 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
13136 For a dynamic task in an assignment statement, use target of
7bc1c7df
ES
13137 assignment to generate meaningful name.
13138
c84700e7
ES
131392001-10-10 Ed Schonberg <schonber@gnat.com>
13140
f8e0aa73 13141 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
c84700e7
ES
13142 a generic package.
13143
13144 * einfo.ads: Body_Entity is also defined for generic package.
13145 Documentation change only
f8e0aa73
AJ
13146
13147 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
13148 others_choice for a discriminated component initialization,
13149 convert discriminant references into the corresponding discriminals.
13150
13151 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
13152 only if original type is private and expression has to be wrapped
c84700e7 13153 in a conversion.
f8e0aa73
AJ
13154
13155 * checks.adb:
13156 (Apply_Constraint_Check): Do not perform length check
c84700e7 13157 if expression is an aggregate with only an others_choice.
f8e0aa73 13158 (Length_N_Cond): two references to the same in_parameter
c84700e7
ES
13159 (typically the discriminal in an init_proc) denote the same value.
13160 Two useful optimization uncovered by bugfixes above.
13161
d8d80dcd
RD
131622001-10-10 Robert Dewar <dewar@gnat.com>
13163
f8e0aa73 13164 * xeinfo.adb: Change int to char in translation of enumeration types.
d8d80dcd
RD
13165 This fixes a problem in the C representation of component alignment.
13166 Add 2001 to copyright notice
13167
a8fee948
RK
131682001-10-10 Richard Kenner <kenner@gnat.com>
13169
f8e0aa73 13170 * decl.c: (validate_size): Do check size of object of integral type
a8fee948
RK
13171 if it is a packed array type.
13172
c2d7fe59
RK
131732001-10-10 Richard Kenner <kenner@gnat.com>
13174
f8e0aa73 13175 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
c2d7fe59
RK
13176 VAR_DECL for constant if not Is_Public but -O0.
13177
fb75e100
RK
131782001-10-10 Richard Kenner <kenner@gnat.com>
13179
13180 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
13181
1724557a
GB
131822001-10-10 Geert Bosch <bosch@gnat.com>
13183
f8e0aa73 13184 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
1724557a
GB
13185 use '/' as switch character, allowing for absolute file names.
13186
9f2f9eb6
JM
131872001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
13188
13189 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
13190 FSF address.
13191
8fecf41d
GB
131922001-10-08 Geert Bosch <bosch@gnat.com>
13193
13194 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
13195 Automatically build utilities when files need to be regenerated.
13196
589f1edf
GB
131972001-10-08 Geert Bosch <bosch@gnat.com>
13198
13199 * xsnames.adb: New utility for updating snames.ads and snames.adb
13200
67f28219
ZW
132012001-10-08 Zack Weinberg <zack@codesourcery.com>
13202
13203 * Make-lang.in (ADAFLAGS): Add -W -Wall.
13204 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
13205 (gnat1): Also depend on attribs.o.
13206 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
13207 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
13208 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
13209 (ADAFLAGS): Add -W -Wall.
13210 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
13211 take out CFLAGS.
13212
13213 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
13214 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
13215 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
13216 Use $(ADAC), not $(CC), as compilation command.
13217
13218 (gnattools): Depend directly on tools to build, don't use
13219 recursive make.
13220 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
13221
13222 * einfo.h, sinfo.h: New files (autogenerated).
13223
295ef2bb
RH
132242001-10-08 Richard Henderson <rth@redhat.com>
13225
13226 * comperr.adb (Abort_In_Progress): New.
13227 (Compiler_Abort): Use it to prevent recursion.
13228
5c736541
RD
132292001-10-08 Robert Dewar <dewar@gnat.com>
13230
13231 * atree.adb: Set Error_Posted in Error node, helps error recovery.
67f28219
ZW
13232
13233 * par-endh.adb (Output_End_Expected): We should also not test
5c736541 13234 Error_Posted on the Error node, since now it is always set.
67f28219
ZW
13235
13236 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
5c736541 13237 to help error recovery. Part of general work on 9407-004.
67f28219 13238
5c736541 13239 * par.adb: Add ??? for misuse of error
67f28219 13240
5c736541
RD
13241 * sem_res.adb:
13242 (Resolve): Defend against Error, fixes 9407-003.
13243 (Resolve_Discrete_Subtype_Indication): Defend against Error.
67f28219
ZW
13244
13245 * sinfo.ads (N_Error): Now has Etype field (which will be set
5c736541
RD
13246 to Any_Type to help error recovery).
13247
a153ae15
RK
132482001-10-08 Richard Kenner (kenner@gnat.com)
13249
13250 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
13251 Consistently set MEM attributes from expression; fixes
13252 bootstrap failure on x86.
13253
743f3c7b
GB
132542001-10-08 Geert Bosch (bosch@gnat.com)
13255
13256 * 5oosinte.adb: Add 2001 to copyright notice.
13257
210c4ef4
GB
132582001-10-08 Geert Bosch (bosch@gnat.com)
13259
13260 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
13261
13262 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
13263
cc712abf
JM
132642001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
13265
13266 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
13267
4c4abc0f
GB
132682001-10-05 Geert Bosch (bosch@gnat.com)
13269
13270 * adaint.h: Small formatting fix.
13271
7f50e2e3
GB
132722001-10-04 Geert Bosch <bosch@gnat.com>
13273
13274 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
13275 Arg is int, not FILE *, in dummy version of functions.
67f28219 13276
7f50e2e3
GB
13277 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
13278 Arg is int, not FILE *.
13279
5d1a9698
GB
132802001-10-04 Geert Bosch <bosch@gnat.com>
13281
13282 * 3lsoccon.ads: Added file, missed with initial check ins.
67f28219 13283
5d1a9698
GB
13284 * 4lintnam.ads: Fix header format.
13285 Change Linux to GNU/Linux.
67f28219 13286
5d1a9698
GB
13287 * 5iosinte.adb: Change Linux to GNU/Linux.
13288
13289 * 5iosinte.ads: Change Linux to GNU/Linux.
67f28219 13290
5d1a9698 13291 * 5itaprop.adb: Change Linux to GNU/Linux.
67f28219 13292
5d1a9698
GB
13293 * 5itaspri.ads: Change Linux to GNU/Linux.
13294 Update copyright notice.
67f28219 13295
5d1a9698 13296 * 5lintman.adb: Change Linux to GNU/Linux.
67f28219 13297
5d1a9698 13298 * 5lml-tgt.adb: Change Linux to GNU/Linux.
67f28219 13299
5d1a9698 13300 * 5losinte.ads: Change Linux to GNU/Linux.
67f28219 13301
5d1a9698 13302 * 5lsystem.ads: Change Linux to GNU/Linux.
67f28219 13303
5d1a9698 13304 * 5qosinte.adb: Change Linux to GNU/Linux.
67f28219 13305
5d1a9698 13306 * 5qosinte.ads: Change Linux to GNU/Linux.
67f28219 13307
5d1a9698 13308 * 5qparame.ads: Change Linux to GNU/Linux.
67f28219 13309
5d1a9698 13310 * 5qtaprop.adb: Change Linux to GNU/Linux.
67f28219 13311
5d1a9698
GB
13312 * 5qtaspri.ads: Change Linux to GNU/Linux.
13313 Add 2001 to copyright notice.
67f28219 13314
5d1a9698
GB
13315 * 5vintman.ads: Change Linux to GNU/Linux.
13316 Fix header format. Add 2001 to copyright notice.
67f28219 13317
5d1a9698 13318 * g-soccon.ads: Change Linux to GNU/Linux.
67f28219 13319
5d1a9698
GB
13320 * g-trasym.ads: Change Linux to GNU/Linux.
13321 Add 2001 to copyright notice.
67f28219 13322
5d1a9698 13323 * memtrack.adb: Change Linux to GNU/Linux.
67f28219 13324
5d1a9698
GB
13325 * s-intman.ads: Change Linux to GNU/Linux.
13326 Add 2001 to copyright notice. Fix header format.
67f28219 13327
5d1a9698 13328 * s-stache.adb: Change Linux to GNU/Linux.
67f28219 13329
5d1a9698 13330 * adaint.c: Change Linux to GNU/Linux.
67f28219 13331
5d1a9698 13332 * cio.c: Change Linux to GNU/Linux.
67f28219 13333
5d1a9698 13334 * cstreams.c: Change Linux to GNU/Linux.
67f28219 13335
5d1a9698 13336 * init.c: Change Linux to GNU/Linux.
67f28219 13337
5d1a9698 13338 * gmem.c: Change Linux to GNU/Linux.
67f28219 13339
5d1a9698
GB
13340 * tracebak.c: Change Linux to GNU/Linux.
13341
13342
c25ca2d7
GB
133432001-10-02 Geert Bosch <bosch@gnat.com>
13344
13345 * misc.c (insert_default_attributes): Add dummy version.