]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ada/ChangeLog
* gdbinit.in (pbb, pbm): New macros.
[thirdparty/gcc.git] / gcc / ada / ChangeLog
CommitLineData
0506cb1c
RO
12004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2
3 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
4
426e7d28
AS
52004-11-07 Andreas Schwab <schwab@suse.de>
6
7 * Makefile.in (install-gnatlib): Remove spurious hyphen.
8
8785609e 92004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
bb342a77
AP
10
11 PR ada/18228
12 * Makefile.in (darwin): Set soext to .dylib.
13
0ca5fab2
AC
142004-10-26 Vincent Celier <celier@gnat.com>
15 Thomas Quinot <quinot@act-europe.fr>
16
17 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
18 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
19 there is no use of GNAT.Sockets.Constants.
20 Remove remaining pragma Import for C_Write
21 Remove C_Read and C_Write from internal implementation unit
22 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
23 the read and write functions from the system runtime library is fine
24 on UNIX but won't work under Windows).
25
26 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
27 (Check_Selector): Use C_Recv instead of C_Read.
28 Selectors are the GNAT.Sockets abstraction to perform a select()
29 call on a set of descriptors. To allow abortion of an ongoing
30 select operation, some data is written to a dedicated socket that
31 is always monitored.
32 Under Windows, the write and read library functions cannot operate
33 on sockets, so we need to use send and recv instead, which is portable
34 across all supported platforms.
35
36 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
37 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
38 (using the read and write functions from the system runtime library is
39 fine on UNIX but won't work under Windows).
40
412004-10-26 Nicolas Setton <setton@act-europe.fr>
42
43 * mlib-tgt-darwin.adb: New file.
44
45 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
46 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
47 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
48 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
49 subprogram body.
50
51 * Makefile.in: Add support for building shared libraries under Darwin.
52 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
53 the low level EH init subprogram to be called from __gnat_initialize.
54
55 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
56 indicates which options to pass to the archive indexer.
57
58 * mlib-utl.adb: Add support for calling ranlib with additional
59 options. This is needed for instance under Mac OS X.
60 (Ranlib_Options): New global variable, used to store the potential
61 options to pass to ranlib.
62 (Ar): Use Ranlib_Options when spawning ranlib.
63 (Initialize): Set the value of ranlib option.
64
652004-10-26 Olivier Hainque <hainque@act-europe.fr>
66
67 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
68 instead of 8K, to reflect the real potential needs for stack-checking
69 in the ZCX case.
70
712004-10-26 Pascal Obry <obry@gnat.com>
72
73 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
74
75 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
76 Windows only the initial thread stack size can be set so it is good to
77 start we a low stack size.
78 The OS will adjust the size as needed.
79
802004-10-26 Olivier Hainque <hainque@act-europe.fr>
81 Nicolas Setton <setton@act-europe.fr>
82
83 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
84 "__unix__" instead of "unix".
85 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
86 sections were just mistakenly ignored. The former is
87 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
88 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
89 of hpux. This prevents an unwanted definition of the symbol
90 convert_addresses in adaint.o.
91
922004-10-26 Gary Dismukes <dismukes@gnat.com>
93
94 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
95 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
96
972004-10-26 Cyrille Comar <comar@act-europe.fr>
98
99 * a-filico.ads, a-filico.adb: fix incorrect header.
100
1012004-10-26 Javier Miranda <miranda@gnat.com>
102
103 * a-ststio.ads: Fix typo in identifier
104
1052004-10-26 Thomas Quinot <quinot@act-europe.fr>
106
107 * sem_ch4.adb: Minor reformatting.
108
1092004-10-26 Ed Schonberg <schonberg@gnat.com>
110
111 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
112 enabled, check the result of unary and binary operations when the
113 expression is the right-hand side of an assignment.
114
1152004-10-26 Vincent Celier <celier@gnat.com>
116
117 * clean.adb (Delete): Do not output warnings when in quiet output and
118 not in verbose mode.
119 (Force_Deletions): New Boolean flag, defaulted to False
120 (Delete): Only delete a file if it is writable, and when
121 Force_Deletions is True.
122 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
123 (Usage): Line for new switch -f
124 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
125 own.
126
1272004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
128
129 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
130 JM type only if its size matches that of the wrapper. When a size is
131 prescribed and the field is not aliased, remove the wrapper of a JM
132 type only if the size is not greater than that of the packed array.
133 (gnat_to_gnu_entity): Change the extension of packed array wrappers
134 from LJM to JM.
135
1362004-10-26 Geert Bosch <bosch@gnat.com>
137
138 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
139 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
140 (Pred): Implement in terms of Succ.
141
1422004-10-26 Ed Schonberg <schonberg@gnat.com>
143
144 * exp_aggr.adb (Safe_Component): An aggregate component that is an
145 unchecked conversion is safe for in-place use if the expression of the
146 conversion is safe.
147 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
148 be expandable in place even if the aggregate does not come from source.
149 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
150 designated object of an allocator in place, rather than building it
151 first on the stack. The previous scheme forces a full copy of the array,
152 and may be altogether unsusable if the size of the array is too large
153 for stack allocation.
154
1552004-10-26 Robert Dewar <dewar@gnat.com>
156
157 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
158 compares if the component is atomic.
159
160 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
161 array assignment if the component type is atomic.
162
1632004-10-26 Ed Schonberg <schonberg@gnat.com>
164 Eric Botcazou <ebotcazou@act-europe.fr>
165
166 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
167 is aliased and is a by_reference type, do not pass by copy.
168 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
169 detect whether the call is in the right side of an assignment or
170 the expression of an object declaration. Recurse on component
171 association within aggregates.
172 Call it in the condition that determines whether the temporary is
173 necessary for correct stack-checking.
174
1752004-10-26 Thomas Quinot <quinot@act-europe.fr>
176
177 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
178 RACW_Type, used in the PolyORB version.
179 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
180 version and the GARLIC version.
181
182 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
183 Rename RCI_Info to RCI_Locator for better consistency between the
184 GARLIC and PolyORB versions of the distributed systems annex.
185 (DSA_Implementation_Name): This enumeration lists the possible
186 implementations of the Partition Communication Subsystem for the
187 Distributed Systems Annex (DSA). The three available implementations
188 are the dummy stub implementation (No_DSA), and two versions based on
189 two different distribution runtime libraries: GARLIC and PolyORB. Both
190 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
191 technology.
192 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
193 that organization.
194
195 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
196 between the GARLIC and PolyORB versions of the distributed systems
197 annex.
198 Remove RE_Unbounded_Reclaim_Pool since it is unused.
199
2002004-10-26 Gary Dismukes <dismukes@gnat.com>
201
202 * gnat1drv.adb: Suppress calling the back end when
203 Frontend_Layout_On_Target is true.
204
2052004-10-26 Thomas Quinot <quinot@act-europe.fr>
206
207 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
208 Set_Read_Only): New subprograms.
209 These new routines allow the user to set or unset the Owner execute
210 and Owner write permission flags on a file.
211
212 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
213 GNAT.OS_Lib.Set_Executable instead of rolling our own.
214
2152004-10-26 Matthew Gingell <gingell@gnat.com>
216
217 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
218
2192004-10-26 Pascal Obry <obry@gnat.com>
220
221 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
222 memory before the faulting page we properly test the process read
223 access for this address using appropriate Win32 routine.
224 (HPUX sections): guard with "__hpux__" instead of "hpux".
225
2262004-10-26 Robert Dewar <dewar@gnat.com>
227
228 * lib-xref.adb (Generate_Reference): Don't complain about reference to
229 entry parameter if pragma Unreferenced set, since we do not properly
230 handle the case of multiple parameters.
231
2322004-10-26 Vincent Celier <celier@gnat.com>
233
234 * prj-env.adb: (Contains_ALI_Files): New Boolean function
235 (Ada_Objects_Path.Add): For a library project, add to the object path
236 the library directory only if there is no object directory or if the
237 library directory contains ALI files.
238 (Set_Ada_Paths.Add.Recursive_Add): Ditto
239
2402004-10-26 Vincent Celier <celier@gnat.com>
241
242 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
243 extension of library projects.
244
245 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
246 path defaults to ".:<prefix>/lib/gnat".
247 (Parse): For an extending all project, allow direct import of a project
248 that is virtually extended.
249
250 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
251 the specified name is directly imported, return its ID. Otherwise, if
252 an extension of this project is imported, return the ID of the
253 extension.
254
2552004-10-26 Robert Dewar <dewar@gnat.com>
256
257 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
258 (Sub3): New procedure, used by Scaled_Divide
259 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
260 correct more than one instance of failure to propagate carries
261 correctly.
262 (Double_Divide): Handle overflow case of largest negative number
263 divided by minus one.
264
265 * s-arit64.ads (Double_Divide): Document that overflow can occur in
266 the case of a quotient value out of range.
267 Fix comments.
268
2692004-10-26 Robert Dewar <dewar@gnat.com>
270
271 * s-bitops.adb (Bit_Eq): Remove redundant check.
272
273 * s-bitops.ads: Minor comment updates
274 Change some occurrences of Address to System.Address
275
276 * s-carsi8.ads: Fix minor cut-and-paste error in comments
277
2782004-10-26 Ed Schonberg <schonberg@gnat.com>
279
280 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
281 accessibility check to prefix that is a protected operation.
282
2832004-10-26 Ed Schonberg <schonberg@gnat.com>
284
285 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
286 empty, post message on stub.
287
2882004-10-26 Ed Schonberg <schonberg@gnat.com>
289 Javier Miranda <miranda@gnat.com>
290
291 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
292 current instance appears within a unit that is directly in the context
293 of the main unit.
294 Used to determine whether the body of the instance should be analyzed
295 immediately after its spec, to make its subprogram bodies available
296 for front-end inlining.
297 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
298 constraint is not allowed on the component type (AARM 12.5.3(3))
299
3002004-10-26 Cyrille Comar <comar@act-europe.fr>
301
302 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
303 'Storage_Pool): enhance, document & limit detection of non-sharable
304 internal pools.
305
306 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
307
308 * s-pooglo.ads: Add more documentation now that this pool is properly
309 documented.
310
3112004-10-26 Ed Schonberg <schonberg@gnat.com>
312
313 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
314 or protected type with discriminants, do not constrain the
315 corresponding record type if the subtype declaration has no
316 discriminant constraints. This can be the case in source code, or in
317 the subtype declaration created to rename an actual type within an
318 instantiation.
319
3202004-10-26 Ed Schonberg <schonberg@gnat.com>
321
322 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
323 different kind of stub (possibly wrong name for file), do not check
324 for conformance.
325 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
326 includes call to some function that returns an unconstrained type, do
327 not inline.
328
3292004-10-26 Ed Schonberg <schonberg@gnat.com>
330
331 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
332 appear in the code for the main unit. Dependencies among units in the
333 context of the main unit are established when those other units are
334 compiled. Otherwise spurious elaboration constraints can generate
335 incorrect elaboration circularities.
336
3372004-10-26 Thomas Quinot <quinot@act-europe.fr>
338 Ed Schonberg <schonberg@gnat.com>
339
340 * sem_util.adb (Is_Aliased_View): Defend against the case where this
341 subprogram is called with a parameter that is not an object name. This
342 situation arises for some cases of illegal code, which is diagnosed
343 later, and in this case it is wrong to call Is_Aliased, as that might
344 cause a compiler crash.
345 (Explain_Limited_Type): Refine previous fix to include
346 inherited components of derived types, to provide complete information.
347
348 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
349 is the prival for a protected object.
350 It is necessary to mark this entity as a variable, in addition to
351 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
352 modified to avoid checking the Aliased flag on entities that are not
353 objects. (Checking that flag for non-objects is erroneous and could
354 lead to a compiler crash).
355
3562004-10-26 Robert Dewar <dewar@gnat.com>
357
358 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
359 X_Frac = 0.5, then we know that the number X must be positive.
360 (Succ): Remove the same redundant test, and also fix the primary test
361 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
362 Minor reformatting
363 (Decompose): Add fuller comments to spec
364
3652004-10-26 Pascal Obry <obry@gnat.com>
366
367 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
368 validity (process must have read access). Set to 0 in all other cases.
369 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
370 violation on Win32.
371 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
372 segmentation violation.
373
3742004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
375
376 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
377 whose type is a constructed subtype of an aliased object with an
378 unconstrained nominal subtype, convert the actual to the constructed
379 subtype before taking its address.
380
3812004-10-26 Vincent Celier <celier@gnat.com>
382
383 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
384 (Is_Path_Name_Case_Sensitive): New function
385
386 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
387 (Base_Name, Simple_Name, Current_Directory, Compose,
388 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
389 the result.
390
3912004-10-26 Cyrille Comar <comar@act-europe.fr>
392 Vasiliy Fofanov <fofanov@act-europe.fr>
393 Vincent Celier <celier@gnat.com>
394
395 * gnat_ugn.texi: Generalize "finding memory problems" section into a
396 "memory management issues" section and document some of the useful
397 memory pools provided as part of the GNAT library.
398 Remove "virtual" from declaration of A::method2 in
399 the simple example of Ada/C++ mixed system.
400 Library Projects may be virtually extended: their virtual extensions
401 are not Library Projects.
402 Added section on extending project hierarchies.
403
d65c6710 4042004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
aa75e737
AL
405
406 * adaint.c (__gnat_get_libraries_from_registry): Cast value
407 to LPBYTE.
408 (__gnat_portable_spawn): Remove const.
409
410 * mingw32.h (MAXPATHLEN): Check for previous definition.
411
95e19580
MK
4122004-10-17 Matthias Klose <doko@debian.org>
413
414 * gnatvsn.ads: Set gnat library version to 4.0.
415
88a6ecb6
VC
4162004-10-05 Vincent Celier <celier@gnat.com>
417
418 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
419
110aba14
LG
4202004-10-04 Laurent GUERBY <laurent@guerby.net>
421
422 PR ada/15156
423 * Makefile.in: Define and use RANLIB_FLAGS.
88a6ecb6 424
09552763
PO
4252004-10-04 Pascal Obry <obry@gnat.com>
426
427 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
428 other x86 platforms).
429
a8e490b7
OH
4302004-10-04 Olivier Hainque <hainque@act-europe.fr>
431
432 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
433 in general and triggers stack alignment adjustment for thread entry
434 points on targets where this is necessary.
435
71c10a83
BB
4362004-10-04 Bernard Banner <banner@gnat.com>
437
438 PR ada/13897
439
440 * Makefile.in: Add section for powerpc linux
441 Add variant i-vxwork-x86.ads
442
443 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
444
9a03df55
OH
4452004-10-04 Olivier Hainque <hainque@act-europe.fr>
446
447 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
448 table registration calls when need be. Ensures no reference to the crt
449 ctors symbol are issued in the SJLJ case, which avoids possible
450 undefined symbol errors in the case of modules to be statically linked
451 with the kernel.
452
28d6470f
JM
4532004-10-04 Javier Miranda <miranda@gnat.com>
454
455 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
456 in-line the code corresponding to subprogram Analyze_Actuals. In
457 addition, analyze the actuals only in case of subprogram call.
458
06237875
EF
4592004-10-04 Ed Falis <falis@gnat.com>
460
461 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
462
259d6c3a
SR
4632004-10-04 Sergey Rybin <rybin@act-europe.fr>
464
465 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
466 in the documentation.
467
6f21ed26
RD
4682004-10-04 Robert Dewar <dewar@gnat.com>
469
470 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
471 IF and CASE.
472 (Analyze_Block_Statement): Add circuitry to detect following dead code
473 (Check_Unreachable_Code): Handle case of block exit
474
4cded177
RD
4752004-10-04 Robert Dewar <dewar@gnat.com>
476
477 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
478 (XMatchD): Avoid warning for Logic_Error call
479
c6a60aa1
RD
4802004-10-04 Robert Dewar <dewar@gnat.com>
481
482 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
483 consider expressions buried within a procedure actual to be an actual.
484 This caused some blowups with uses of packed slices within a procedure
485 actual.
486
1fdebfe5
RD
4872004-10-04 Robert Dewar <dewar@gnat.com>
488
489 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
490 longer need to be initialized to zero.
491 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
492 initialized to zero.
493
494 * checks.adb (Expr_Known_Valid): Packed arrays are now always
495 considered valid, even if the representation is modular. That's correct
496 now that we no longer initialize packed modular arrays to zero.
497
498 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
499 suffixes. These are now documented as the only cases in which the
500 debugger ignores outer records.
501 Previously, the spec allowed arbitrary suffixes for this purpose.
502 Change name of LJM to JM for packed array pad records
503 Create separate section on packed array handling, and add a whole new
504 set of comments to this section describing the situation with packed
505 modular types and justification requirements depending on endianness.
506
cd91501c
RD
5072004-10-04 Robert Dewar <dewar@gnat.com>
508
509 * a-except.adb: Add a comment for last change
510
511 * einfo.ads: Minor spelling correction in comment
512
513 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
514
515 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
516 messages.
517
518 * sem_util.ads: Minor comment update
519
c71c53a8
ES
5202004-10-04 Ed Schonberg <schonberg@gnat.com>
521
522 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
523 Inline_Always when in Configurable_Run_Time mode.
524
525 * sem_prag.adb (Process_Convention): If entity is an inherited
526 subprogram, apply convention to parent subprogram if in same scope.
527 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
528 when in Configurable_Run_Time mode.
529
71d9e9f2
ES
5302004-10-04 Ed Schonberg <schonberg@gnat.com>
531
532 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
533 class_wide type after component list has been inherited.
534
0b525bee
ES
5352004-10-04 Ed Schonberg <schonberg@gnat.com>
536
537 * sem_ch12.adb (Check_Generic_Actuals): New predicate
538 Denotes_Previous_Actual, to handle properly the case of a private
539 actual that is also the component type of a subsequent array actual.
540 The visibility status of the first actual is not affected when the
541 second is installed.
542 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
543 make fully recursive the treatment of formals of packages declared
544 with a box.
545 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
546 the above on exit from an instantiation.
547 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
548 current instantiation which is now complete.
549 (Analyze_Package_Instantiation): No instantiated body is needed if the
550 main unit is generic. Efficient, and avoid anomalies when a instance
551 appears in a package accessed through rtsfind.
552
27ad9660
ES
5532004-10-04 Ed Schonberg <schonberg@gnat.com>
554
555 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
556 do not generate a declaration for a temporary if the call is part of a
557 library-level instantiation.
558
1c6c6771
ES
5592004-10-04 Ed Schonberg <schonberg@gnat.com>
560
561 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
562 searching for a limited component to flag.
563
564 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
565 expansion of Input, to account for the fact that the implicit call
566 generated by the attribute reference must freeze the user-defined
567 stream subprogram. This is only relevant to 'Input, because it can
568 appear in an object declaration, prior to the body of the subprogram.
569
570 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
571 expansion can proceed and further errors uncovered.
572 (Minor clean up): Fix cases of using | instead of \ for continuation
573 messages.
574
8005f3e5
RK
5752004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
576
577 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
578
579 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
580 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
581 Use gcc_assert and gcc_unreachable.
582
583 * decl.c (gnat_to_gnu_entity, case object): Check and process a
584 specified alignment before validating size.
585 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
586 stripped-down declaration for the type of the inner field when making
587 a JM type.
588
589 * utils.c (finish_record_type): Do not compute the size in units
590 incrementally. Instead compute it once for the rep clause case.
591 Use gcc_assert and gcc_unreachable.
592
6a294a29
VC
5932004-10-04 Vincent Celier <celier@gnat.com>
594
595 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
596 in file name.
597 (Is_Valid_Path_Name): Take '/' as a directory separator.
598
9a080ea3
VC
5992004-10-04 Vincent Celier <celier@gnat.com>
600
601 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
602 (Extended_Project) only if Extended_Project is defined, to avoid
603 assertion error.
604 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
605 resolved path.
606 (Parse_Single_Project): Ditto.
607
608 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
609 Add_To_Project_Path for virtual projects.
610
51004cb5
VC
6112004-10-04 Vincent Celier <celier@gnat.com>
612
613 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
614 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
615 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
616 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
617 parameter Options_2.
618
619 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
620 Build_Dynamic_Library with an empty Options_2.
621
622 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
623 default anymore.
624
625 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
626 directory separator, if any.
627 (Gprmake): Do not allow mains on the command line for library projects.
628 Do not attempt to link when the project is a library project.
629 (Library_Opts): New table to store Library_Options.
630 (Build_Library): If Library_Options is specified, pass these options
631 when building a shared library.
632
3b37ffbf
JR
6332004-10-04 Jose Ruiz <ruiz@act-europe.fr>
634
635 * s-tposen.adb (Service_Entry): The object must be always unlocked at
636 the end of this procedure now that the unlock operation was inserted
637 by the expander.
638
b23e28d5
JR
6392004-10-04 Jose Ruiz <ruiz@act-europe.fr>
640
641 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
642 corresponding to the Preallocated_Stacks flags in System.
643 (Get_Target_Parameters): Including the processing for
644 Preallocated_Stacks.
645
646 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
647 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
648 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
649 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
650 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
651 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
652 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
653 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
654 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
655 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
656 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
657 used to signal whether the compiler creates the required stacks and
658 descriptors for the different tasks (when True) or it is done by the
659 underlying operating system at run time (when False).
660 It is initially set to False in all targets.
661
662 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
663 if it is supported by the target.
664 (Make_Task_Create_Call): Pass the stack address if it has been
665 previously created. Otherwise pass a Null_Address.
666
667 * snames.adb: Add _stack.
668
669 * snames.ads: Add Name_uStack. Required to allow the expander to
670 statically allocated task stacks.
671
672 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
673 Stack_Address argument.
674 Check that its value is equal to Null_Address because this target does
675 not support the static stack allocation.
676
6fd459bb
TQ
6772004-10-04 Thomas Quinot <quinot@act-europe.fr>
678
679 * usage.adb: Change "pragma inline" to "pragma Inline" in information
680 and error messages
681
5885facb
TQ
6822004-10-04 Thomas Quinot <quinot@act-europe.fr>
683
684 * exp_dist.adb: Split declaration of asynchronous flag out of
685 Add_RACW_Read_Attribute.
686 Minor reformatting for better alignment with PolyORB version.
687 Store the entity for the asynchronous flag of an RACW, rather than the
688 expression, in the asynchronous flags table. This will allow this flag
689 to be used in other subprograms beside Add_RACW_Read_Attribute.
690
d6c7ed50
TQ
6912004-10-04 Thomas Quinot <quinot@act-europe.fr>
692
693 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
694 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
695 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
696 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
697 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
698 sockets constant MSG_NOSIGNAL (Linux-specific).
699 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
700 all Send operations.
701 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
702 from trigerring SIGPIPE.
703 Rename components to avoid clash with Ada 2005 possible reserved
704 word 'interface'.
705 (Check_Selector): When the select system call returns with an error
706 condition, propagate Socket_Error to the caller.
707
0f0377f6
JH
7082004-10-01 Jan Hubicka <jh@suse.cz>
709
710 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
711
2c9beb8a
RD
7122004-09-23 Robert Dewar <dewar@gnat.com>
713
714 PR ada/17540
715
716 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
717 instead do this at freeze time (we won't do it if there is an address
718 clause).
719 Change "pragma inline" to "pragma Inline" in information and error
720 messages.
721 Minor reformatting.
722
723 * freeze.adb (Check_Address_Clause): Remove previous change, not the
724 right way of doing things after all.
725 (Freeze_Entity): For object, set Is_Public for imported entities
726 unless there is an address clause present.
727
2494e673
OH
7282004-09-21 Olivier Hainque <hainque@act-europe.fr>
729
730 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
731 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
732 ensures proper handling of types with rep clauses, which might have
733 their TYPE_SIZE set already.
734
910d20fc
RD
7352004-09-21 Robert Dewar <dewar@gnat.com>
736
737 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
738 packed array types in both little- and big-endian cases. This change
739 ensures that we no longer count on the unused bits being initialized
740 for such types (and in particular ensures that equality testing will
741 only read the relevant bits).
742 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
743 These changes mean that we no longer need to initialize small packed
744 arrays.
745 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
746 optimization to an LJM field as to its parent field.
747
748 * ada-tree.h, trans.c, utils.c, utils2.c:
749 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
750
8f235343
JH
7512004-09-20 Jan Hubicka <jh@suse.cz>
752
753 * utils.c (gnat_finalize): Remove.
754 (end_subprog_body): Directly call cgraph_finalize_function;
755 do not lower the nested functions.
756
bb9be5eb
RD
7572004-09-20 Robert Dewar <dewar@gnat.com>
758
759 PR ada/17540
760
761 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
762 if an address clause is present, since that means that the Import
763 should be ignored.
764
796ef2e2
AC
7652004-09-20 Arnaud Charlet <charlet@act-europe.fr>
766
767 * 5tsystem.ads: Removed, no longer used.
768
6615c446
JO
7692004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
770 Zack Weinberg <zack@codesourcery.com>
771
772 * ada-tree.def: Use tree_code_class enumeration constants
773 instead of code letters.
774 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
775 Update for new tree-class enumeration constants.
776
93ed8a01
VC
7772004-09-17 Vincent Celier <celier@gnat.com>
778
779 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
780 capabilities of the general project manager.
781
c885d7a1
AC
7822004-09-09 Vincent Celier <celier@gnat.com>
783
784 * a-direct.ads: Add pragma Ada_05
785 (Directory_Entry_Type): Give default value to component Kind to avoid
786 not initialized warnings.
787
788 * a-direct.adb (Current_Directory): Remove directory separator at the
789 end.
790 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
791 an existing directory.
792 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
793 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
794 Convert the result to File_Size.
795
796 * prj.ads: (Project_Error): New exception
797
798 * prj-attr.adb: Except in procedure Initialize, Fail comes from
799 Prj.Com, not from Osint.
800 (Attrs, Package_Attributes): Tables moved to private part of spec
801 (Add_Attribute, Add_Unknown_Package): Moved to new child package
802 Prj.Attr.PM.
803 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
804 Prj.Project_Error after call to Fail.
805 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
806 Fail. Check that package name is not already in use.
807
808 * prj-attr.ads: Comment updates to indicate that all subprograms may be
809 used by tools, not only by the project manager, and to indicate that
810 exception Prj.Prj_Error may be raised in case of problem.
811 (Add_Unknown_Package, Add_Attribute): Moved to new child package
812 Prj.Attr.PM.
813 (Attrs, Package_Attributes): Table instantiations moved from the body to
814 the private part to be accessible from Prj.Attr.PM body.
815
816 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
817 from new package Prj.Attr.PM.
818 (Parse_Attribute_Declaration): Call Add_Attribute from new package
819 Prj.Attr.PM.
820
821 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
822
823 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
824 instead of Elaboration_Checks).
825
826 * a-calend.adb: Minor reformatting
827
8282004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
829
830 * gigi.h (maybe_pad_type): New declaration.
831 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
832
833 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
834
835 * cuintp.c: Convert to use buildN.
836
837 * decl.c (maybe_pad_type): No longer static.
838 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
839 target pointer.
840 Convert to use buildN.
841
842 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
843 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
844 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
845 RHS.
846 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
847 (gnat_gimplify_expr, case ADDR_EXPR): New case.
848 Convert to use buildN.
849
850 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
851 TREE_READONLY for const.
852 Convert to use buildN.
853
854 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
855 (create_var_decl): Refine when TREE_STATIC is set.
856 Convert to use buildN.
857
8582004-09-09 Gary Dismukes <dismukes@gnat.com>
859
860 * gnat_ugn.texi: Delete text relating to checking of ali and object
861 consistency.
862
863 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
864 routines.
865
8662004-09-09 Jose Ruiz <ruiz@act-europe.fr>
867
868 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
869 pragmas recognized by GNAT.
870
871 * gnat_rm.texi: Document pragma Detect_Blocking.
872
873 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
874 raise Program_Error if called from a protected operation.
875
876 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
877 the protected action nesting level.
878 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
879 protected action nesting level.
880 (Unlock): When pragma Detect_Blocking is active decrease the protected
881 action nesting level.
882
883 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
884 Protected_Action_Nesting.
885
886 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
887 Common_ATCB record. It contains the dynamic level of protected action
888 nesting for each task. It is needed for checking whether potentially
889 blocking operations are called from protected operations.
890 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
891 Detect_Blocking is active or not in the partition.
892
893 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
894 raise Program_Error if called from a protected operation.
895 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
896 Program_Error if called from a protected operation.
897 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
898 Program_Error if called from a protected operation.
899
900 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
901 raise Program_Error if called from a protected operation.
902
903 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
904 raise Program_Error if called from a protected operation, and increase
905 the protected action nesting level.
906 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
907 Program_Error if called from a protected operation, and increase the
908 protected action nesting level.
909 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
910 protected action nesting level.
911
912 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
913 raise Program_Error if called from a protected operation, and increase
914 the protected action nesting level.
915 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
916 Program_Error if called from a protected operation, and increase the
917 protected action nesting level.
918 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
919 raise Program_Error if called from a protected operation.
920 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
921 active, raise Program_Error if called from a protected operation.
922 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
923 protected action nesting level.
924
925 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
926 insertion of the statement raising Program_Error. The run time
927 contains the required machinery for handling that.
928
929 * sem_util.ads: Change comment associated to procedure
930 Check_Potentially_Blocking_Operation.
931 This procedure does not insert a call for raising the exception because
932 that is currently done by the run time.
933
934 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
935
936 * init.c: Add the global variable __gl_detect_blocking that indicates
937 whether pragma Detect_Blocking is active (1) or not (0). Needed for
938 making the pragma available at run time.
939 (__gnat_set_globals): Pass and update the detect_blocking parameter.
940
941 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
942 pragma Detect_Blocking is active.
943
944 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
945
946 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
947 DB is found in the ali file. Any unit compiled with pragma
948 Detect_Blocking active forces its effect in the whole partition.
949
950 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
951 Detect_Blocking is active and delay is called from a protected
952 operation.
953
954 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
955 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
956 Detect_Blocking is active (0 otherwise).
957 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
958 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
959 otherwise).
960
9612004-09-09 Thomas Quinot <quinot@act-europe.fr>
962
963 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
964 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
965 package.
966
967 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
968 (Register_Receiving_Stub): Add Subp_Info formal parameter.
969 Update API in placeholder implemetation of s-parint to reflect changes
970 in distribution runtime library.
971
972 * sem_ch3.adb (Expand_Derived_Record): Rename to
973 Expand_Record_Extension.
974
975 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
976 primitive operations of potentially distributed object types that have
977 non-controlling anonymous access formals.
978
979 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
980 subprogram.
981 New implementation of expansion for remote access-to-subprogram types,
982 based on the RACW infrastructure.
983 This version of sem_dist is compatible with PolyORB/DSA as well as
984 GLADE.
985
986 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
987 Asynchrronous that applies to a remote access-to-subprogram type, mark
988 the underlying RACW type as asynchronous.
989
990 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
991 __gnat_using_gnu_linker to 1.
992
993 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
994 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
995 GNAT.Perfect_Hash_Generators, and remove the empty
996 GNAT.Perfect_Hash package.
997
998 * atree.adb: Minor reformatting
999
1000 * exp_ch3.adb (Expand_Derived_Record): Rename to
1001 Expand_Record_Extension.
1002 (Build_Record_Init_Proc.Build_Assignment): The default expression in
1003 a component declaration must remain attached at that point in the
1004 tree so New_Copy_Tree copies it if the enclosing record type is derived.
1005 It is therefore necessary to take a copy of the expression when building
1006 the corresponding assignment statement in the init proc.
1007 As a side effect, in the case of a derived record type, we now see the
1008 original expression, without any rewriting that could have occurred
1009 during expansion of the ancestor type's init proc, and we do not need
1010 to go back to Original_Node.
1011
1012 * exp_ch3.ads (Expand_Derived_Record): Rename to
1013 Expand_Record_Extension.
1014
1015 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
1016 Returns the RACW type used to implement a remote access-to-subprogram
1017 type.
1018 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
1019 New subprograms. Used to create a proxy tagged object for a remote
1020 subprogram. The proxy object is used as the designated object
1021 for RAS values on the same partition (unless All_Calls_Remote applies).
1022 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
1023 System.Partition_Interface.Get_Unique_Remote_Pointer.
1024 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
1025 Renamed from Add_RAS_*_Attribute.
1026 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
1027 subprograms.
1028 New implementation of expansion for remote access-to-subprogram types,
1029 based on the RACW infrastructure.
1030
1031 * exp_dist.ads (Copy_Specification): Update comment to note that this
1032 function can copy the specification from either a subprogram
1033 specification or an access-to-subprogram type definition.
1034
10352004-09-09 Ed Schonberg <schonberg@gnat.com>
1036
1037 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
1038 in an instance, between an explicit subprogram an one inherited from a
1039 type derived from an actual.
1040
1041 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
1042 add a polling call if the subprogram is to be inlined by the back-end,
1043 to avoid repeated calls with multiple inlinings.
1044
1045 * checks.adb (Apply_Alignment_Check): If the expression in the address
1046 clause is a call whose name is not a static entity (e.g. a dispatching
1047 call), treat as dynamic.
1048
10492004-09-09 Robert Dewar <dewar@gnat.com>
1050
1051 * g-trasym.ads: Minor reformatting
1052
1053 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
1054 packed arrays, since unused bits are expected to be zero for a
1055 comparison.
1056
10572004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
1058
1059 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
1060 comment.
1061
10622004-09-09 Pascal Obry <obry@gnat.com>
1063
1064 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
1065 enable map file generation. Add the right option to generate the map
1066 file if Map_File is set to True.
1067
1068 * gnatdll.adb (Gen_Map_File): New variable.
1069 (Syntax): Add info about new -m (Map_File) option.
1070 (Parse_Command_Line): Add support for -m option.
1071 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
1072 Minor reformatting.
1073
10742004-09-09 Laurent Pautet <pautet@act-europe.fr>
1075
1076 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
1077 new gnatdist implementation.
1078 Define a subpackage isolating the output routines specific to this
1079 verbose mode.
1080
10812004-09-09 Joel Brobecker <brobecker@gnat.com>
1082
1083 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
1084
1085 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
1086
10872004-09-09 Cyrille Comar <comar@act-europe.fr>
1088
1089 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
1090 internal unit.
1091
1092 * opt.ads: Add Ada_Version_Runtime constant used to decide which
1093 version of the language is used to compile the run time.
1094
10952004-09-09 Arnaud Charlet <charlet@act-europe.fr>
1096
1097 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
1098 of variable length temporaries for function return now that the
1099 back-end and gigi support it.
1100
23c7b149 11012004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6cdb2c6e
AC
1102
1103 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
1104
1105 * trans.c (struct stmt_group): Delete field GLOBAL.
1106 (gnat_init_stmt_group): Do not initialize it.
1107 (call_to_gnu): Use save_expr, not protect_multiple_eval.
1108 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
1109 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
1110 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
1111 (start_stmt_group): Likewise.
1112 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
1113
1114 * utils2.c (ggc.h): Include.
1115 (build_call_raise): Call build_int_cst, not build_int_2.
1116
1117 * utils.c (gnat_init_decl_processing): Fix arg to
1118 build_common_tree_nodes.
1119 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
1120 (gnat_define_builtin): Set built_in_decls.
1121 (init_gigi_decls): Call build_int_cst, not build_int_2.
1122
1123 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
1124 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
1125 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
1126 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
1127 SET_TYPE_MODULE): Use them.
1128 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
1129 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
1130 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
1131 SET_TYPE_ADA_SIZE): Likewise.
1132 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
1133 (DECL_CONST_CORRESPONDING_VAR,
1134 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
1135 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
1136 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
1137 (TYPE_RM_SIZE_NUM): New macro.
1138 (TYPE_RM_SIZE): Modified to use above.
1139
1140 * cuintp.c: (build_cst_from_int): New function.
1141 (UI_To_gnu): Use it.
1142
1143 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
1144 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
1145 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
1146 MIN_EXPR for the size, copy it into new.
1147
23c7b149 11482004-09-01 Robert Dewar <dewar@gnat.com>
6cdb2c6e
AC
1149
1150 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
1151 packed indexed component where array is an IN OUT formal. This
1152 generated garbage code previously.
1153
1154 * gnat_ugn.texi: Document -fverbose-asm
1155
1156 * gnat-style.texi: Minor updates (note that boolean constants and
1157 variables are joined with AND/OR rather than short circuit forms).
1158
23c7b149 11592004-09-01 Ed Schonberg <schonberg@gnat.com>
6cdb2c6e
AC
1160
1161 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
1162 it is an upward conversion of an untagged type with no representation
1163 change.
1164
23c7b149 11652004-09-01 Thomas Quinot <quinot@act-europe.fr>
6cdb2c6e
AC
1166
1167 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
1168 System.Partition_Interface.
1169
1170 * checks.adb (Apply_Access_Checks): Do not generate checks when
1171 expander is not active (but check for unset reference to prefix of
1172 dereference).
1173
1174 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
1175 pragma Debug as an if statement with a constant condition, for
1176 consistent treatment of entity references contained within the
1177 enclosed procedure call.
1178
23c7b149 11792004-09-01 Vincent Celier <celier@gnat.com>
6cdb2c6e
AC
1180
1181 * bindgen.adb: (Set_EA_Last): New procedure
1182 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
1183 Set_EA_Last.
1184 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
1185 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
1186 linked without errors.
1187 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
1188 ST and EA.
1189 (Gen_Exception_Table_C): Correct same bugs
1190
1191 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
1192
1193 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
1194 on Windows, make sure that the drive letter is in upper case.
1195
1196 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
1197 Windows, when the drive letter is added and Case_Sensitive is True, the
1198 drive letter is forced to upper case.
1199
1200 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
1201 to Options_2 for the call to MLib.Utl.Gcc.
1202
1203 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
1204 directory separator when defining BASE_DIR.
1205
23c7b149 12062004-09-01 Pascal Obry <obry@gnat.com>
6cdb2c6e
AC
1207
1208 * gprcmd.adb (Extend): Do not output trailing directory separator. This
1209 is not needed and it confuses Windows GNU/make which does not report
1210 directory terminated by a slash as a directory.
1211 (gprcmd): Idem for "pwd" internal command.
1212
1213 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
1214 target names rewrite to fix regressions with recent version of
1215 GNU/make. Starting with GNU/make 3.80 the pipe character was not
1216 handled properly anymore.
1217
4eb104c1
AS
12182004-09-01 Andreas Schwab <schwab@suse.de>
1219
1220 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
1221 * raise.c [!IN_RTS]: Undef abort.
1222
6a6bfc8e
NS
12232004-08-27 Nathan Sidwell <nathan@codesourcery.com>
1224
ce552f75
NS
1225 * utils2.c (build_allocator): Use ssize_int.
1226
6a6bfc8e
NS
1227 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
1228
f8b7bf58
AS
12292004-08-27 Andreas Schwab <schwab@suse.de>
1230
1231 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
1232
15793d0c
NS
12332004-08-25 Nathan Sidwell <nathan@codesourcery.com>
1234 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6615c446 1235
15793d0c
NS
1236 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
1237
7d60be94
NS
12382004-08-25 Nathan Sidwell <nathan@codesourcery.com>
1239
1240 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
1241 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
1242 * utils.c (init_gigi_decls): Likewise.
1243 * utils2.c (build_call_raise, build_allocator): Likewise.
6615c446 1244
8c1d6d62
NS
12452004-08-24 Nathan Sidwell <nathan@codesourcery.com>
1246
7d60be94 1247 * utils.c (gnat_init_decl_processing): Adjust
8c1d6d62
NS
1248 build_common_tree_nodes call.
1249
3224bead
NS
12502004-08-20 Nathan Sidwell <nathan@codesourcery.com>
1251
1252 * utils2.c (build_allocator): Use build_int_cst for negative
1253 size types.
1254
4766261d
RH
12552004-08-18 Richard Henderson <rth@redhat.com>
1256
1257 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
1258
1f6c00df
NS
12592004-08-16 Nathan Sidwell <nathan@codesourcery.com>
1260
1261 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
1262 call.s
1263 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
1264 (gnat_to_gnu): Likewise.
1265
4c46b835
AC
12662004-08-16 Pascal Obry <obry@gnat.com>
1267
1268 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
1269 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
1270 option and not mdll anymore. Update comment.
1271
12722004-08-16 Pascal Obry <obry@gnat.com>
1273
1274 * bld.adb (Put_Include_Project): Properly handle directory separators
1275 on Windows.
1276
12772004-08-16 Ed Schonberg <schonberg@gnat.com>
1278
1279 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
1280 decreasing the number of allocated junk nodes while searching for the
1281 appropriate subprogram.
1282
4a90aeeb
NS
12832004-08-15 Nathan Sidwell <nathan@codesourcery.com>
1284
1285 * cuintp.c (UI_To_gnu): Use build_int_cst..
1286 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
1287 * utils.c (init_gigi_decls): Likewise.
1288 * utils2.c (build_call_raise): Likewise.
1289
244e5a2c
AC
12902004-08-13 Olivier Hainque <hainque@act-europe.fr>
1291
1292 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
1293 for a global aliased object with a variable size and an unconstrained
1294 nominal subtype, pretend there is no initializer if the one we have is
1295 incomplete, and avoid referencing an inexistant component in there. The
1296 part we have will be rebuilt anyway and the reference may confuse
1297 further operations.
1298
12992004-08-13 Thomas Quinot <quinot@act-europe.fr>
1300
1301 * einfo.ads: Minor reformatting
1302
1303 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
1304 restrictions in the ALI if we only want to warn about violations.
1305
13062004-08-13 Vincent Celier <celier@gnat.com>
1307
1308 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
1309 when creating a new Unit_Record in table Units.
1310
1311 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
1312 that are violated, if any.
1313
1314 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
1315 add directory separator if path already ends with a directory separator.
1316
13172004-08-13 Ed Schonberg <schonberg@gnat.com>
1318
1319 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
1320 unit, this is an attempt to inline a construct that is not available in
1321 the current restricted mode, so abort rather than trying to continue.
1322
1323 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
1324 discriminants that rename those of the parent, recover names of
1325 original discriminants for the constraint on the full view of the
1326 parent.
1327 (Complete_Private_Subtype): Do not create a subtype declaration if the
1328 subtype is an itype.
1329
1330 * gnat_rm.texi: Added section on implementation of discriminated
1331 records with default values for discriminants.
1332
13332004-08-13 Ed Schonberg <schonberg@gnat.com>
1334
1335 PR ada/15601
1336 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
1337 the second operand is overloaded.
1338
1a186ec5
RH
13392004-08-10 Richard Henderson <rth@redhat.com>
1340
1341 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
1342 add __builtin_alloca.
1343
89f1a702
RH
13442004-08-10 Richard Henderson <rth@redhat.com>
1345
1346 * config-lang.in (boot_language): Yes.
1347
5d09245e
AC
13482004-08-09 Thomas Quinot <quinot@act-europe.fr>
1349
1350 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
1351 from complaining on potential uninitialized reference.
1352 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
1353 new specification and test explicitly for non-zero return value.
1354
1355 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
1356 returning C.int, to avoid using a derived boolean type.
1357
1358 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
1359 Duplicate_Subexpr_No_Checks in preference to direct use of
1360 Remove_Side_Effects and New_Copy_Tree.
1361 Clear Comes_From_Source on prefix of 'Size attribute reference.
1362
1363 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
1364 g-socthi-vxworks.adb: Change calls to
1365 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
1366 and test explicitly for non-zero return value.
1367
6615c446 1368 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
5d09245e
AC
1369 (Is_Socket_In_Set): Declare imported function as returning C.int, to
1370 avoid using a derived boolean type.
1371
13722004-08-09 Albert Lee <lee@gnat.com>
1373
1374 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
1375
13762004-08-09 Pascal Obry <obry@gnat.com>
1377
1378 * gnat_ugn.texi: Document new way to build DLLs on Windows using
1379 GCC's -shared option.
1380
1381 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
1382 Options_2 parameter (options put after object files).
1383
13842004-08-09 Olivier Hainque <hainque@act-europe.fr>
1385
1386 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
1387 ignore overflows on low and high bounds of an index to also account for
1388 differences in signedness between sizetype and gnu_index_subtype.
1389 These are as legitimate as the ones caused by a lower TYPE_PRECISION
1390 on sizetype.
1391
13922004-08-09 Robert Dewar <dewar@gnat.com>
1393
1394 * s-solita.ads, s-solita.adb: Minor reformatting
1395
1396 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
1397 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
1398 obsolescent section
1399 Add note that No_Implicit_Conditionals does not suppress
1400 run time constraint checks.
1401
1402 * vms_conv.ads: Minor reformatting
1403
1404 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
1405 and necessary for following change).
1406 (Mark): Return new format Mark_Id containing sec stack address
1407 (Release): Use sec stack address from Mark_Id avoiding Self call
1408
1409 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
1410 pointer (cleanup and necessary for following change).
1411 Define Mark_Id as record containing address of secondary stack, that way
1412 Release does not need to find the stack again, decreasing the number of
1413 calls to Self and improving efficiency.
1414
1415 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
1416
1417 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
1418 case variable into the individual case branches when possible.
1419
1420 * sem_ch11.adb: Minor reformatting
1421
1422 * prj.ads: Correct spelling of suffixs
1423
1424 * prj-nmsc.adb: Minor reformatting
1425 Correct spelling suffixs throughout (also in identifiers)
1426
1427 * freeze.adb: Minor spelling correction
1428
1429 * exp_ch2.adb: Cleanups to handling of Current_Value
1430 (no functional effect).
1431
1432 * bld.adb: Correct spelling of suffixs
1433
1434 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
1435
14362004-08-09 Ed Schonberg <schonberg@gnat.com>
1437
1438 PR ada/15408
1439
1440 * sem_ch7.adb (Install_Private_Declarations): In the body of the
1441 package or of a child, private entities are both immediately_visible
1442 and not hidden.
1443
14442004-08-09 Ed Schonberg <schonberg@gnat.com>
1445
1446 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
1447 there are no range checks on the value of the literal.
1448
1449 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
1450 wrapped is the triggering alternative of an asynchronous select, action
1451 statements mustbe inserted before the select itself.
1452
1453 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
1454 case where the prefix is a protected function call.
1455 (Resolve_Attribute, case 'Access): The attribute reference on a
1456 subprogram is legal in a generic body if the subprogram is declared
1457 elsewhere.
1458
14592004-08-09 Vincent Celier <celier@gnat.com>
1460
1461 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
1462 languages, otherwise building the library may fail with unresolved
1463 symbols.
1464 (Compile_Sources): Do not build libraries if -c switch is used
1465
1466 * gnatlink.adb (Process_Args): New switches -M and -Mmap
1467 (Write_Usage): If map file creation is supported, output new switches
1468 -M and -Mmap.
1469 (Gnatlink): When -M is specified, add the necessary switch(es) to the
1470 gcc call, when supported.
1471
1472 * Makefile.in: Added indepsw.o to the object list for gnatlink
1473 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
1474
1475 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
1476 indepsw.adb, indepsw.ads: New files.
1477
14782004-08-09 Bernard Banner <banner@gnat.com>
1479
1480 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
1481
1482 * Makefile.in: add section for vxworks x86
1483
14842004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
1485
1486 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
1487 per-object constrained components where the discriminant is of an
1488 Access type.
1489 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
1490 the parent initialization procedure for derived Unchecked_Unions.
1491 Instead, derived Unchecked_Unions build their own initialization
1492 procedure.
1493 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
1494 Check the body of the subprogram for details.
1495 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
1496 functions for derived Unchecked_Union types by introducing a condition.
1497 Allow the creation of TSS equality functions for Unchecked_Unions.
1498 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
1499 Add formal parameter Discr to function signature. Discr is used to
1500 control the generated case statement for Unchecked_Union types.
1501 (Make_Eq_If): Rename formal parameter Node to E in function signature.
1502
1503 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
1504 Unchecked_Unions.
1505 Check the body of the subprogram for details.
1506 (Expand_Composite_Equality): Augment composite type equality to include
1507 correct handling of Unchecked_Union components.
1508 (Expand_N_In): Add condition to detect illegal membership tests when the
1509 subtype mark is a constrained Unchecked_Union and the expression lacks
1510 inferable discriminants, and build a Raise_Program_Error node.
1511 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
1512 to detect types that contain components of unconstrained Unchecked_Union
1513 subtype. Add condition to detect equality between types that have an
1514 unconstrained Unchecked_Union component, and build a Raise_Program_Error
1515 node. Add condition to detect equality between Unchecked_Union types
1516 that lack inferable discriminants, and build a Raise_Program_Error node.
1517 Otherwise build a TSS equality function call.
1518 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
1519 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
1520 with the operand lacking inferable discriminants, and build a Raise_
1521 Program_Error node.
1522 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
1523 composite equality.
1524 (Has_Inferable_Discriminants): Implement new predicate for objects and
1525 expressions of Unchecked_Union type. Check the body of subprogram for
1526 details.
1527 (Has_Unconstrained_UU_Components): Add function
1528 Component_Is_Unconstrained_UU. It is used to detect whether a single
1529 component is of an unconstrained Unchecked_Union subtype. Add function
1530 Variant_Is_Unconstrained_UU. It is used to detect whether a single
1531 component inside a variant is of an unconstrained Unchecked_Union type.
1532
1533 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
1534 inferred discriminant values. Add condition to generate a case
1535 statement with an inferred discriminant as the switch.
1536 (Make_Component_List_Assign): Introduce a Boolean flag that determines
1537 the behaviour of the subprogram in the presence of an Unchecked_Union.
1538 Add condition to trigger the usage of the inferred discriminant value
1539 as the generated case statement switch.
1540 (Make_Field_Assign): Introduce a Boolean flag that determines the
1541 behaviour of the subprogram in the presence of an Unchecked_Union. Add
1542 condition to trigger the usage of the inferred discriminant value as
1543 the right-hand side of the generated assignment.
1544
1545 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
1546 parameter generation when dealing with Unchecked_Unions.
1547
1548 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
1549 checks for Unchecked_Unions.
1550
1551 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
1552
1553 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
1554 Raise_Program_Error nodes for the execution of Read and Write
1555 attributes of Unchecked_Union types and the execution of Input and
1556 Output attributes of Unchecked_Union types that lack default
1557 discriminant values.
1558
1559 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
1560 Unchecked_Union. Add procedure Check_Component. It is used to inspect
1561 per-object constrained components of Unchecked_Unions for being
1562 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
1563 check individual components withing a variant.
1564
1565 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
1566 comparison of Unchecked_Unions.
1567 (Resolve_Equality_OP): Remove guard that prevents equality between
1568 Unchecked_Unions.
1569
1570 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
1571 of component subtypes for Unchecked_Union components.
1572 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
1573 since it is the actual subtype.
1574
1575 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
1576 pass of Unchecked_Union subtypes as generic actuals to formal types
1577 that lack known_discriminant_parts or that are derived Unchecked_Union
1578 types, and do nothing. In any other case, produce an error message.
1579
1580 * sem_ch3.adb (Analyze_Component_Declaration): Add function
1581 Contains_POC. It determines whether a constraint uses the discriminant
1582 of an enclosing record type.
1583 Add condition to detect per-object constrained component and set the
1584 appropriate flag.
1585 (Derived_Type_Declaration): Remove guard that prevents derivation from
1586 Unchecked_Union types.
1587 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
1588 Union subtypes.
1589
1590 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
1591 references to Unchecked_Union discriminants.
1592
1593 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
1594 formal generation when dealing with Unchecked_Unions.
1595 (Set_Actual_Subtypes): Add condition to prevent generation of actual
1596 subtypes for Unchecked_Unions.
1597
1598 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
1599 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
1600 completions of discriminated partial views by Unchecked_Unions and
1601 produce an error message.
1602
16032004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1604
1605 * trans.c (struct stmt_group): New field, GLOBAL.
1606 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
1607 (struct elab_info): New struct.
1608 (elab_info_list, gnu_elab_proc_stack): New variables.
1609 (Compilation_Unit_to_gnu): New procedure.
1610 (gigi): Call it and also handle elaboration procs we've saved.
1611 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
1612 global field from parent.
1613 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
1614 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
1615 (start_stmt_group): Initialize global field from parent.
1616 (add_decl_expr): Set to global for current statement group.
1617 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
1618 post.
1619
1620 * utils.c (global_bindings_p): True when no current_function_decl; no
1621 longer check current_binding_level.
1622
16232004-08-09 Ben Brosgol <brosgol@gnat.com>
1624
1625 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
1626 choice.
1627
1628 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
1629
160ff372
AS
16302004-08-06 Andreas Schwab <schwab@suse.de>
1631
1632 * utils.c (gnat_define_builtin): Remove second parameter of
1633 make_decl_rtl.
1634 (begin_subprog_body): Likewise.
1635
615cbd95
AC
16362004-07-26 Arnaud Charlet <charlet@act-europe.fr>
1637
1638 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
1639 optimization, not supported by the tree-ssa back-end.
1640
16412004-07-26 Olivier Hainque <hainque@act-europe.fr>
1642
1643 * s-mastop-irix.adb: Update comments.
1644
1645 * a-except.adb (Exception_Information): Raise Constraint_Error if
1646 exception Id is Null_Id.
1647 This is required behavior, which is more reliably and clearly checked
1648 at the top level interface level.
1649
16502004-07-26 Javier Miranda <miranda@gnat.com>
1651
1652 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
1653 call if a component has no default_expression and the box is used.
1654
1655 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
1656 default_expression and you use box, it behaves as if you had declared a
1657 stand-alone object.
1658 (Resolve_Record_Aggregate): If a component has no default_expression and
1659 you use box, it behaves as if you had declared a stand-alone object.
1660
1661 * sem_ch10.adb (Install_Siblings): Do not make visible the private
1662 entities of private-with siblings.
1663
16642004-07-26 Ed Schonberg <schonberg@gnat.com>
1665
1666 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
1667 for a component of an itype, set the parent pointer for analysis,
1668 there is no list in which to insert it.
1669
1670 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
1671 bona-fide renamings, not for inherited operations.
1672
1673 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
1674 actual for a formal that is an access parameter, create local
1675 finalization list even if the expression is not an aggregate.
1676
16772004-07-26 Ed Schonberg <schonberg@gnat.com>
1678
1679 PR ada/16213
1680 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
1681 Diagnose properly illegal subprogram renamings that are library units.
1682
16832004-07-26 Ed Schonberg <schonberg@gnat.com>
1684
1685 PR ada/15588
1686 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
1687 conversion rewritten as an unchecked conversion, check that original
1688 expression is a variable.
1689
1690 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
1691 unchecked_conversion, create new node rather than rewriting in place,
1692 to preserve original construct.
1693
16942004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1695
1696 * gigi.h (gnat_expand_body): Deleted.
1697
1698 * Make-lang.in: (trans.o): Depends on function.h.
1699
1700 * misc.c: (gnat_expand_body): Moved to here.
1701
1702 * trans.c (gnat_expand_body_1): Deleted.
1703 (gnat_expand_body): Moved from here.
1704 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
1705 (add_stmt): Check for marked visited with global_bindings_p.
1706 (gnat_gimplify_expr, case COMPONENT_REF): New case.
1707 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
1708
1709 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
1710 VIEW_CONVERT_EXPR if not operation type.
1711
1712 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
1713 fat pointer.
1714
1715 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
1716 changes: reformatting of negation operators, removing unneeded
1717 inequality comparison with zero, converting equality comparisons with
1718 zero to negations, changing int/0/1 to bool/false/true, replace calls
1719 to gigi_abort with abort, and various other similar changes.
1720
17212004-07-26 Vincent Celier <celier@gnat.com>
1722
1723 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
1724 "setup".
1725
1726 * make.adb (Gnatmake): Fail when a library is not present and there is
1727 no object directory.
1728
1729 * mlib-prj.adb (Check_Library): No need to check if the library needs
1730 to be rebuilt if there is no object directory, hence no object files
1731 to build the library.
1732
1733 * opt.ads (Setup_Projects): New Boolean flag.
1734
1735 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
1736 Location.
1737 Create directory when Kind /= "" and in "gnat setup". Report error if
1738 directory cannot be created.
1739 (Ada_Check): Create library interface copy dir if it does not exist
1740 and we are in "gnat setup".
1741 (Find_Sources): No error if in "gnat setup" and no Ada sources were
1742 found.
1743 (Language_Independent_Check): Create object directory, exec directory
1744 and/or library directory if they do not exist and we are in
1745 "gnat setup".
1746
1747 * vms_conv.ads: (Command_Type): New command Setup.
1748
1749 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
1750
1751 * vms_data.ads: Add qualifiers/switches for new built-in command
1752 "setup".
1753
b785f485
RH
17542004-07-25 Richard Henderson <rth@redhat.com>
1755
1756 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
1757 DECL_IGNORED_P on RESULT_DECL.
1758
35ae2ed8
AC
17592004-07-20 Olivier Hainque <hainque@act-europe.fr>
1760
1761 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
1762 allocation and potentially overflowing update with
1763 Tailored_Exception_Information. Use the sec-stack free procedural
1764 interface to output Exception_Information instead.
1765
1766 * a-except.adb (To_Stderr): New subprogram for character, and string
1767 version moved from a-exextr to be visible from other separate units.
1768 (Tailored_Exception_Information): Remove the procedural version,
1769 previously used by the default Last_Chance_Handler and not any more.
1770 Adjust various comments.
1771
1772 * a-exexda.adb: Generalize the exception information procedural
1773 interface, to minimize the use of secondary stack and the need for
1774 local buffers when the info is to be output to stderr:
1775 (Address_Image): Removed.
1776 (Append_Info_Character): New subprogram, checking for overflows and
1777 outputing to stderr if buffer to fill is of length 0.
1778 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
1779 (Append_Info_Address, Append_Info_Exception_Name,
1780 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
1781 Append_Info_Basic_Exception_Traceback,
1782 Append_Info_Exception_Information): New subprograms.
1783 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
1784 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
1785 Exception_Info_Maxlength, Exception_Name_Length,
1786 Exception_Message_Length): New subprograms.
1787 (Exception_Information): Use Append_Info_Exception_Information.
1788 (Tailored_Exception_Information): Use
1789 Append_Info_Basic_Exception_Information.
1790 Export services for the default Last_Chance_Handler.
1791
1792 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
1793 other separate units.
1794
17952004-07-20 Vincent Celier <celier@gnat.com>
1796
1797 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
1798
17992004-07-20 Ed Schonberg <schonberg@gnat.com>
1800
1801 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
1802 emit itype references for the designated types of component types that
1803 are declared outside of the full record declaration, and that may
1804 denote a partial view of that record type.
1805
18062004-07-20 Ed Schonberg <schonberg@gnat.com>
1807
1808 PR ada/15607
1809 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
1810 which is the designated type in an access component declaration, to the
1811 list of incomplete dependents of the parent type, to avoid elaboration
1812 issues with out-of-scope subtypes.
1813 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
1814 full view of the parent.
1815
18162004-07-20 Ed Schonberg <schonberg@gnat.com>
1817
1818 PR ada/15610
1819 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
1820 entities that are hidden, such as references to generic actuals
1821 outside an instance.
1822
18232004-07-20 Javier Miranda <miranda@gnat.com>
1824
1825 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
1826 support to the new notation.
1827 (Analyze_Selected_Component): Add call to Try_Object_Operation.
1828
18292004-07-20 Jose Ruiz <ruiz@act-europe.fr>
1830
1831 * s-taprob.adb: Adding the elaboration code required for initializing
1832 the tasking soft links that are common to the full and the restricted
1833 run times.
1834
1835 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
1836 restricted run time has been moved to the package
1837 System.Soft_Links.Tasking.
1838
1839 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
1840 restricted run time has been moved to the package
1841 System.Soft_Links.Tasking.
1842
1843 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
1844
1845 * s-solita.ads, s-solita.adb: New files.
1846
18472004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1848
1849 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
1850 Case_Statement_to_gnu): Split off from gnat_to_gnu.
1851 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
1852 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
1853 Exception_Handler_to_gnu_zcx): Likewise.
1854
6e34d3a3
JM
18552004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
1856
1857 * gigi.h (builtin_function): Declare.
1858
523456db
AC
18592004-07-15 Robert Dewar <dewar@gnat.com>
1860
1861 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
1862 reformatting
1863
1864 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
1865 access values as an example of a warning.
1866
1867 * gnat_rm.texi: Document new attribute Has_Access_Values
1868
1869 * gnat-style.texi: Document that box comments belong on nested
1870 subprograms
1871
1872 * sem_util.ads (Has_Access_Values): Improved documentation
1873
1874 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
1875
1876 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
1877 (Process_Interface_Name): Call to this new procedure
1878 (Set_Extended_Import_Export_External_Name): Call to this new procedure
1879
1880 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
1881
1882 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
1883
1884 * einfo.ads: Minor comment typo fixed
1885
18862004-07-15 Jose Ruiz <ruiz@act-europe.fr>
1887
1888 * snames.adb: Add _atcb.
1889
1890 * snames.ads: Add Name_uATCB.
1891
1892 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
1893 (in the expanded code) when using the restricted run time.
1894
1895 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
1896 a in parameter in order to allow ATCBs to be preallocated (in the
1897 expanded code).
1898
1899 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
1900 order to allow ATCBs to be preallocated. In case of error, the ATCB is
1901 deallocated in System.Tasking.Stages.
1902
1903 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
1904 order to allow ATCBs to be preallocated.
1905
1906 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
1907 here. It was previously done in Initialize_ATCB.
1908
1909 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
1910
1911 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
1912 Restricted run time.
1913
1914 * exp_ch3.adb: When using the Restricted run time, pass the
1915 preallocated Ada_Task_Control_Block when creating a task.
1916
19172004-07-15 Ed Schonberg <schonberg@gnat.com>
1918
1919 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
1920 function call that is itself an actual in an enclosing call, diagnose
1921 problem here rather than assuming that resolution will catch it.
1922
1923 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
1924 the local copy of a generic unit for a formal package, and the generic
1925 is a child unit, install private part of ancestors before compiling
1926 private part of spec.
1927
1928 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
1929 use scope entities rather than tree structures, to handle properly
1930 parent units that are instances rewritten as bodies for inlining
1931 purposes.
1932
1933 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
1934 Remove_Parents): Handle properly a parent unit that is an
1935 instantiation, when the unit has been rewritten as a body for inlining
1936 purposes.
1937
1938 * par.adb (Goto_List): Global variable to collect goto statements in a
1939 given unit, for use in detecting natural loops.
1940
1941 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
1942 use in detecting natural loops.
1943
1944 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
1945 backwards goto's, and rewrite as a infinite loop, to improve locality
1946 of temporaries.
1947
1948 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
1949 subcomponent that includes an indexed reference, to prevent the
1950 generation of copies that would miscompile the desired assignment
1951 statement.
1952 (Build_Task_Image_Decls): Add a numeric suffix to
1953 generated name for string variable, to avoid spurious conflicts with
1954 the name of the type of a single protected object.
1955
1956 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
1957 loop with an explicit exit statement, to avoid generating an
1958 out-of-range value with 'Succ leading to spurious constraint_errors
1959 when compiling with -gnatVo.
1960
19612004-07-15 Thomas Quinot <quinot@act-europe.fr>
1962
1963 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
1964 might not be analyzed yet, even if its Etype is already set (case of an
1965 unchecked conversion built using Unchecked_Convert_To, for example).
1966 If the prefix has already been analyzed, this will be a nop anyway.
1967
1968 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
1969 controller type, or an assignment of a record type with controlled
1970 components, copy only user data, and leave the finalization chain
1971 pointers untouched.
1972
19732004-07-15 Vincent Celier <celier@gnat.com>
1974
1975 * make.adb (Collect_Arguments): Improve error message when attempting
1976 to compile a source not part of any project, when -x is not used.
1977
1978 * prj.ads: (Defined_Variable_Kind): New subtype
1979
1980 * prj-attr.adb (Register_New_Package): Two new procedures to register
1981 a package with or without its attributes.
1982 (Register_New_Attribute): Mew procedure to register a new attribute in a
1983 package.
1984 New attribute oriented subprograms: Attribute_Node_Id_Of,
1985 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
1986 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
1987 Next_Attribute.
1988 New package oriented subprograms: Package_Node_Id_Of,
1989 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
1990
1991 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
1992 type.
1993 (Package_Node_Id): Now a private, self initialized type
1994 (Register_New_Package): New procedure to register a package with its
1995 attributes.
1996 New attribute oriented subprograms: Attribute_Node_Id_Of,
1997 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
1998 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
1999 Next_Attribute.
2000 New package oriented subprograms: Package_Node_Id_Of,
2001 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
2002
2003 * prj-dect.adb (Parse_Attribute_Declaration,
2004 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
2005
2006 * prj-makr.adb (Make): Parse existing project file before creating
2007 other files. Fail if there was an error during parsing.
2008
2009 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
2010 new spec of Prj.Attr.
2011
2012 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
2013 to new spec of Prj.Attr.
2014
20152004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2016
2017 * utils2.c: Fix typo in comment.
2018
20192004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
54805e13
RK
2020
2021 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
2022 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
2023
a1c7af89
AS
20242004-07-14 Andreas Schwab <schwab@suse.de>
2025
2026 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
2027
a5cb3b30
AC
20282004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2029
2030 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
2031 object type.
2032 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
2033 TYPE_STUB_DECL.
2034
2035 * misc.c (gnat_types_compatible_p): New function.
2036 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
2037 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
2038
2039 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
2040 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
2041 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
2042 (mark_visited): Don't mark dummy type.
6615c446 2043 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
a5cb3b30
AC
2044 parameter, we must remove any LJM building from GNU_NAME.
2045 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
2046 (pos_to_constructor): Use int_const_binop.
2047 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
2048 PARM_DECL.
2049
2050 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
2051 (gnat_pushlevel): Set TREE_USE on BLOCK node.
2052 (gnat_install_builtins): Add __builtin_memset.
2053
20542004-07-13 Olivier Hainque <hainque@act-europe.fr>
2055
2056 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
2057 for a renaming, stabilize the initialization expression if we are at a
2058 local level. At the local level, uses of the renaming may be performed
2059 by a direct dereference of the initializing expression, and we don't
2060 want possible variables there to be evaluated for every use.
2061
2062 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
2063 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
2064 them on the way. Account for the fact that we may introduce side
2065 effects in the process.
2066
0976078c
RH
20672004-07-13 Richard Henderson <rth@redhat.com>
2068
2069 * misc.c (default_pass_by_ref): Use pass_by_reference.
2070
9dcf6e73
JM
20712004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
2072
2073 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
2074 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
2075
ac45df5d
RH
20762004-07-08 Richard Henderson <rth@redhat.com>
2077
2078 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
2079 commentary.
2080
15ce9ca2
AC
20812004-07-06 Vincent Celier <celier@gnat.com>
2082
2083 * vms_conv.ads: Minor reformatting.
2084 Alphabetical order for enumerated values of type Command_Type, to have
2085 the command in alphabetical order for the usage.
2086
2087 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
2088 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
2089
2090 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
2091
2092 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
2093 (Add_Archive_Path): Only add the global archive if there is one.
2094 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
2095 or not any object file to put in the global archive, and don't build
2096 a global archive if there is none.
2097 (X_Switches): New table
2098 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
2099 in the X_Switches table, if any.
2100 (Initialize): Make sure the X_Switches table is empty
2101 (Scan_Arg): Record -X switches in table X_Switches
2102
2103 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
2104
2105 * make.adb: Minor comment fix
2106
2107 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
2108 invoked with directory information, add the directory in front of the
2109 path.
2110
2111 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
2112 invoked with directory information, add the directory in front of the
2113 path.
2114
2115 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
2116 when Keep_Temporary_Files is False.
2117 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
2118 directory information, add the directory in front of the path.
2119 When not on VMS, handle new switch -dn before the command to set
2120 Keep_Temporary_Files to True.
2121 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
2122 everywhere.
2123
2124 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
2125 invoked with directory information, add the directory in front of the
2126 path.
2127
21282004-07-06 Thomas Quinot <quinot@act-europe.fr>
2129
2130 * snames.ads, snames.adb (Name_Stub): New name for the distributed
2131 systems annex.
2132
2133 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
2134 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
2135
2136 * g-socket.adb (To_Timeval): Fix incorrect conversion of
2137 Selector_Duration to Timeval for the case of 0.0.
2138
2139 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
2140 documentation from Evolve_And_Then.
2141
21422004-07-06 Jose Ruiz <ruiz@act-europe.fr>
2143
2144 * s-taprop-tru64.adb, s-taprop-os2.adb,
2145 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
2146
21472004-07-06 Robert Dewar <dewar@gnat.com>
2148
2149 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
2150 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
2151 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
2152 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
2153 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
2154 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
2155 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
2156 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
2157 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
2158 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
2159 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
2160 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
2161 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
2162 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
2163 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
2164 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
2165 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
2166 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
2167 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
2168 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
2169 vms_data.ads: Minor reformatting,
2170 Fix bad box comment format.
2171
2172 * gnat_rm.texi: Fix minor grammatical error
2173
2174 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
2175
2176 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
2177 more cases of discriminated records to be recognized as not needing a
2178 secondary stack.
2179 (Has_Access_Values): New function.
2180
2181 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
2182
2183 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
2184 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
2185 with LRM terminology).
2186 Change terminology in comments primitive type => elementary type.
2187
21882004-07-06 Ed Schonberg <schonberg@gnat.com>
2189
2190 PR ada/15602
2191 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
2192 parameters do not impose any requirements on the presence of a body.
2193
21942004-07-06 Ed Schonberg <schonberg@gnat.com>
2195
2196 PR ada/15593
2197 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
2198 compilation unit and is in an open scope at the point of instantiation,
2199 assume that a body may be present later.
2200
22012004-07-06 Ed Schonberg <schonberg@gnat.com>
2202
2203 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
2204 Improve error message when specified size is not supported.
2205
2206 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
2207 is never a primitive operation.
2208
cb42deba
AS
22092004-07-05 Andreas Schwab <schwab@suse.de>
2210
2211 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
2212 RECORD_OR_UNION_CHECK.
2213 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
2214
98877933
KC
22152004-07-04 Kelley Cook <kcook@gcc.gnu.org>
2216
2217 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
2218 dependency on xgnatugn, instead build it via a submake.
2219 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
2220
8fff4fc1
RH
22212004-07-04 Richard Henderson <rth@redhat.com>
2222
2223 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
2224
4dfa0342
RH
22252004-07-01 Richard Henderson <rth@redhat.com>
2226
2227 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
2228 * utils.c (max_size): Likewise.
2229
909f21b3
RK
22302004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2231
2232 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
2233 and rest_of_type_compilation; add arg to create_*_decl.
2234 (annotate_decl_with_node): Deleted.
2235 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
2236 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
2237 (get_current_block_context, gnat_pushdecl): New declarations.
2238 (gnat_init_stmt_group): Likewise.
2239 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
2240 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
2241 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
2242 (gnat_init): Call gnat_init_stmt_group.
2243 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
2244 (gnu_pending_elaboration_list): Deleted.
2245 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
2246 (gigi): Rearrange initialization calls and move some to last above.
2247 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
2248 Delete calls to add_decl_expr; add arg to create_*_decl.
2249 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
6615c446 2250 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
909f21b3
RK
2251 begin_subprog_body and call it.
2252 Don't push and pop ggc context.
2253 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
2254 (add_stmt): Remove handling of DECL_EXPR from here.
2255 If not in function, mark visited.
2256 (add_decl_expr): Put global at top level.
2257 Check for cases of DECL_INITIAL we have to handle here.
2258 (process_type): Add extra arg to create_type_decl.
2259 (build_unit_elab): Rework to just gimplify.
2260 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
2261 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
2262 (get_pending_elaborations, pending_elaborations_p): Likewise.
2263 (push_pending_elaborations, pop_pending_elaborations): Likewise.
2264 (get_elaboration_location, insert_elaboration_list): Likewise.
2265 (gnat_binding_level): Renamed from ada_binding_level.
2266 (init_gnat_to_gnu): Don't clear pending_elaborations.
2267 (global_bindings_p): Treat as global if no current_binding_level.
2268 (set_current_block_context): New function.
2269 (gnat_pushdecl): Renamed from pushdecl; major rework.
2270 All callers changed.
2271 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
2272 (finish_record_type): Call call pushdecl for stub decl.
2273 (function_nesting_depth): Deleted.
2274 (begin_subprog_body): Delete obsolete code.
2275 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
6615c446 2276
246d2ceb
AC
22772004-06-28 Robert Dewar <dewar@gnat.com>
2278
2279 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
2280 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
2281 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
2282 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
2283 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
2284
2285 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
2286 deal with problem of inefficient slices on machines with strict
2287 alignment, when the slice is a component of a composite.
2288
2289 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
2290 machines, we need the check there as well.
2291
22922004-06-28 Ed Schonberg <schonberg@gnat.com>
2293
2294 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
2295 determine safe copying direction for overlapping slice assignments
2296 when component is controlled.
2297
2298 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
2299 formal derived type in the actual for a formal package are visible in
2300 the enclosing instance.
2301
23022004-06-28 Ed Schonberg <schonberg@gnat.com>
2303
2304 PR ada/15600
2305 * sem_util.adb (Trace_Components): Diagnose properly an illegal
2306 circularity involving a private type whose completion includes a
2307 self-referential component.
2308 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
2309 renaming or an instantiation from an implicit derived operation.
2310
23112004-06-28 Pascal Obry <obry@gnat.com>
2312
2313 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
2314 DLL.
2315 (Library_File_Name_For): Idem.
2316
23172004-06-28 Matthew Gingell <gingell@gnat.com>
2318
2319 * g-traceb.ads: Add explanatory note on the format of addresses
2320 expected by addr2line.
2321
23222004-06-28 Jerome Guitton <guitton@act-europe.fr>
2323
2324 * Makefile.in: Force debugging information on s-tasdeb.adb,
2325 a-except.adb and s-assert.adb needed by the debugger.
2326
23272004-06-28 Vincent Celier <celier@gnat.com>
2328
2329 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
2330 Need_To_Build_Lib.
2331 (Gnatmake): Ditto.
2332
2333 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
2334
2335 * prj.adb: Minor reformatting
2336 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
2337
2338 * prj.ads: Comment updates
2339 Minor reformatting
2340 (Project_Data): Change Flag1 to Need_To_Build_Lib.
2341 Remove Flag2: not used.
2342
2343 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
2344 declaration.
2345
2346 * gnat_ugn.texi: Put a "null;" declaration in one project file example
2347
2348 * gnat_rm.texi: Document Empty declarations "null;".
2349
2350 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
2351 front of the linker options.
2352 (Link_Foreign): Put the global archives and the libraries in front of
2353 the linker options.
2354
23552004-06-28 Javier Miranda <miranda@gnat.com>
2356
2357 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
2358 (RTU_Loaded): Code cleanup
2359 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
2360 withed predefined units.
2361
2362 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
2363 explicitly withed predefined units.
2364 Fix typo in comment
2365
2366 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
2367 explicitly withed predefined units.
2368
bce3da32
RK
23692004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2370
2371 * ada-tree.def (DECL_STMT): Deleted.
2372 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
2373 (DECL_STMT_VAR): Deleted.
2374 * decl.c: add_decl_stmt now add_decl_expr.
2375 * gigi.h: Likewise.
2376 * trans.c: Likewise.
2377 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
2378 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
2379 (add_stmt): Only handle padded type here.
2380 (add_stmt_with_node): Allow gnat_node to not be present.
2381 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
2382 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
2383 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
2384 make a SAVE_EXPR for the entire fat pointer.
2385 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
2386 (create_index_type): Make a DECL_EXPR.
2387 (end_subprog_body): Don't call allocate_struct_function here but
2388 do clear cfun.
2389
0da2c8ac
AC
23902004-06-25 Pascal Obry <obry@gnat.com>
2391
2392 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
2393 Relocatable from Build_Dynamic_Library call.
2394
2395 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
2396 Relocatable are now synonym.
2397
2398 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
2399
2400 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
2401 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
2402 call.
2403
2404 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
2405 Lib_Address and Relocatable.
2406 (Default_DLL_Address): Removed.
2407
6615c446
JO
2408 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
2409 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
0da2c8ac
AC
2410 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
2411 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
2412 (Default_DLL_Address): Removed.
2413
2414 * mlib-tgt-mingw.adb: Ditto.
2415 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
2416
2417 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
2418 the initial thread stack size.
2419
2420 * a-strmap.ads: Move package L to private part as it is not used in
2421 the spec. Found while reading code.
2422
24232004-06-25 Olivier Hainque <hainque@act-europe.fr>
2424
2425 * tracebak.c: Introduce support for a GCC infrastructure based
2426 implementation of __gnat_backtrace.
2427
2428 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
2429 any more. Use accessors instead. This eases maintenance and relaxes
2430 some alignment constraints.
2431 (_GNAT_Exception structure): Remove the Ada specific fields
2432 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
2433 a-exexpr.adb.
2434 (is_handled_by, __gnat_eh_personality): Replace component references to
2435 exception structure by use of the new accessors.
2436
2437 * init.c (__gnat_initialize): Adjust comments to match the just
2438 reverted meaning of the -static link-time option.
2439
2440 * adaint.c (convert_addresses): Arrange not to define a stub for
2441 mips-irix any more, as we now want to rely on a real version from a
2442 recent libaddr2line.
2443
2444 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
2445 the personality routine can use them and not have to rely on a C
2446 counterpart of the record anymore. This simplifies maintenance and
2447 relaxes the constraint of having Standard'Maximum_Alignment match
2448 BIGGEST_ALIGNMENT.
2449 Update comments, and add a section on the common header alignment issue.
2450
24512004-06-25 Geert Bosch <bosch@gnat.com>
2452
2453 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
2454 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
2455
24562004-06-25 Robert Dewar <dewar@gnat.com>
2457
2458 * gnat_rm.texi: Fix section on component clauses to indicate that the
2459 restriction on byte boundary placement still applies for bit packed
2460 arrays.
2461 Add comment on stack usage from Initialize_Scalars
2462
2463 * gnat_ugn.texi: Add documentation for -gnatyLnnn
2464
2465 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
2466 limiting nesting level.
2467
2468 * usage.adb: Add line for -gnatyLnnn switch
2469
2470 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
2471 sem_ch13.adb, exp_aggr.adb: Minor reformatting
2472
2473 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
2474 type as well as on the subtype. This corrects a problem in freeze in
2475 setting alignments of atomic types.
2476
2477 * sem_eval.ads: Minor comment typo fixed
2478
2479 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
2480 level. Minor reformatting.
2481
2482 * fname.adb (Is_Predefined_File_Name): Require a letter after the
2483 minus sign. This means that file names like a--b.adb will not be
2484 considered predefined.
2485
2486 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
2487 record Test new flag and give diagnostic for bad component clause.
2488 (Freeze_Entity): Set alignment of array from component alignment in
2489 cases where this is safe to do.
2490
2491 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
2492 arrays.
2493
2494 * cstand.adb: (Create_Standard): Set alignment of String to 1
2495
2496 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
2497
2498 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
2499 code in the common constrained array cases.
2500
2501 * a-storio.adb: Change implementation to avoid possible alignment
2502 problems on machines requiring strict alignment (data should be moved
2503 as type Buffer, not type Elmt).
2504
2505 * checks.adb (Apply_Array_Size_Check): Improve these checks by
2506 killing the overflow checks which we really do not need (64-bits is
2507 enough).
2508
25092004-06-25 Vincent Celier <celier@gnat.com>
2510
2511 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
2512 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
2513 inconditionally for the main project.
2514 (Recursive_Add_Archives.Add_Archive_Path): New procedure
2515 (Link_Executables.Check_Time_Stamps): New procedure
2516 (Link_Executables.Link_Foreign): New procedure
2517 Changes made to reduce nesting level of this package
2518 (Check): New procedure
2519 (Add_Switches): When not in quiet output, check that a switch is not
2520 the concatenation of several valid switches. If it is, issue a warning.
2521 (Build_Global_Archive): If the global archive is rebuilt, linking need
2522 to be done.
2523 (Compile_Sources): Rebuilding a library archive does not imply
2524 rebuilding the global archive.
2525 (Build_Global_Archive): New procedure
2526 (Build_Library): New name for Build_Archive, now only for library
2527 project
2528 (Check_Archive_Builder): New procedure
2529 (Create_Global_Archive_Dependency_File): New procedure
2530 (Gprmake): Call Build_Global_Archive before linking
2531 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
2532 throughout.
2533 (Scan_Arg): Display the Copyright notice when -v is used
2534
2535 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
2536 for gnatls.
2537
2538 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
2539 COMPILE.
2540 Add new GNAT LIST qualifier /FILES=
2541 Added qualifier /DIRECTORY= to GNAT METRIC
2542 Added qualifier /FILES= to GNAT METRIC
2543 Added qualifier /FILES to GNAT PRETTY
2544
2545 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
2546 to take into account both versions of the switch.
2547
2548 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
2549 always be the last switch to the gcc driver. Disable switch storing so
2550 that switches automatically added by the gcc driver are not put in the
2551 ALI file.
2552
2553 * prj.adb (Project_Empty): Take into account changes in components of
2554 Project_Data.
2555
2556 * prj.ads (Languages_Processed): New enumaration value All_Languages.
2557
2558 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
2559 used. Split Boolean component Ada_Sources_Present in two Boolean
2560 components Ada_Sources_Present and Other_Sources_Present.
2561 Minor reformatting
2562
2563 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
2564 instead of Sources_Present.
2565 (Set_Ada_Paths.Add.Recursive_Add): Ditto
2566
2567 * prj-nmsc.adb: Minor reformatting
2568 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
2569 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
2570 Check_Ada_Naming_Scheme.
2571 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
2572 throughout.
2573
2574 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
2575 In_Limited.
2576 Make sure that all cycles where there is at least one "limited with"
2577 are detected.
2578 (Parse_Single_Project): New Boolean parameter In_Limited
2579
2580 * prj-proc.adb (Recursive_Check): When Process_Languages is
2581 All_Languages, call first Prj.Nmsc.Ada_Check, then
2582 Prj.Nmsc.Other_Languages_Check.
2583
2584 * prj-proc.adb (Process): Use Ada_Sources_Present or
2585 Other_Sources_Present (instead of Sources_Present) depending on
2586 Process_Languages.
2587
2588 * lang-specs.h: Keep -g and -m switches in the same order, and as the
2589 last switches.
2590
2591 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
2592 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
2593 False.
2594 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
2595 False.
2596
2597 * lib.ads (Disable_Switch_Storing): New procedure.
2598
2599 * make.adb: Modifications to reduce nesting level of this package.
2600 (Check_Standard_Library): New procedure
2601 (Gnatmake.Check_Mains): New procedure
2602 (Gnatmake.Create_Binder_Mapping_File): New procedure
2603 (Compile_Sources.Compile): Add switch -gnatez as the last option
2604 (Display): Never display -gnatez
2605
6615c446 2606 * Makefile.generic:
0da2c8ac
AC
2607 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
2608
2609 * gnatcmd.adb (Check_Project): New function
2610 (Process_Link): New procedure to reduce nesting depth
2611 (Check_Files): New procedure to reduce the nesting depth.
2612 For GNAT METRIC, include the inherited sources in extending projects.
2613 (GNATCmd): When GNAT LS is invoked with a project file and no files,
2614 add the list of files from the sources of the project file. If this list
2615 is too long, put it in a temp text files and use switch -files=
2616 (Delete_Temp_Config_Files): Delete the temp text file that contains
2617 a list of source for gnatpp or gnatmetric, if one has been created.
2618 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
2619 in the project file is too large, create a temporary text file that
2620 list them and pass it to the tool with "-files=<temp text file>".
2621 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
2622
2623 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
2624 generated file is in not in Ada.
2625
2626 * gnatls.adb: Remove all parameters And_Save that are no longer used.
2627 (Scan_Ls_Arg): Add processing for -files=
2628 (Usage): Add line for -files=
2629
2630 * g-os_lib.adb (On_Windows): New global constant Boolean flag
2631 (Normalize_Pathname): When on Windows and the path starts with a
2632 directory separator, make sure that the resulting path will start with
2633 a drive letter.
2634
2635 * clean.adb (Clean_Archive): New procedure
2636 (Clean_Project): When there is non-Ada code, delete the global archive,
2637 the archive dependency files, the object files and their dependency
2638 files, if they exist.
2639 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
2640
26412004-06-25 Thomas Quinot <quinot@act-europe.fr>
2642
2643 * sinfo.ads: Fix typo in comment.
2644
2645 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
2646 the TSS for remote access-to-subprogram types, since these TSS are
2647 always present once the type has been analyzed.
2648 (RAS_E_Dereference): Same.
2649
2650 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
2651 reference raises Bad_Attribute, mark the reference as analyzed so the
2652 node (and any children resulting from rewrites that could have occurred
2653 during the analysis that ultimately failed) is not analyzed again.
2654
2655 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
2656
2657 * exp_dist.adb: Minor comment fix.
2658
2659 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
2660 type is an anonymous access type, no unchecked deallocation of the
2661 allocated object can occur. If the object is controlled, attach it with
2662 a count of 1. This allows attachment to the Global_Final_List, if
2663 no other relevant list is available.
2664 (Get_Allocator_Final_List): For an anonymous access type that is
2665 the type of a discriminant or record component, the corresponding
2666 finalisation list is the one of the scope of the type.
2667
26682004-06-25 Ed Schonberg <schonberg@gnat.com>
2669
2670 * sem_ch3.adb (Replace_Type): When computing the signature of an
2671 inherited subprogram, use the first subtype if the derived type
2672 declaration has no constraint.
2673
2674 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
2675 before applying previous optimization. Minor code cleanup.
2676
2677 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
2678 placed at the beginning of an unpacked record without explicit
2679 alignment, a slice of it will be aligned and does not need a copy when
2680 used as an actual.
2681
26822004-06-25 Ed Schonberg <schonberg@gnat.com>
2683
2684 PR ada/15591
2685 PR ada/15592
2686 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
2687 reference is written with expressions mimicking parameters.
2688
26892004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
2690
2691 PR ada/15589
2692 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
2693 STEP 2a. The constraints of a full type declaration of a derived record
2694 type are checked for conformance with those declared in the
2695 corresponding private extension declaration. The message
2696 "not conformant with previous declaration" is emitted if an error is
2697 detected.
2698
26992004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
2700
2701 * g-traceb.ads: Document the need for -E binder switch in the spec.
2702
2703 * g-trasym.ads: Document the need for -E binder switch in the spec.
2704
27052004-06-25 Jose Ruiz <ruiz@act-europe.fr>
2706
2707 * sem_prag.adb: Add handling of pragma Detect_Blocking.
2708
2709 * snames.h, snames.ads, snames.adb: Add entry for pragma
2710 Detect_Blocking.
2711
2712 * s-rident.ads: Change reference to pragma Detect_Blocking.
2713
2714 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
2715 system.ads.
2716
2717 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
2718 to indicate whether pragma Detect_Blocking is active.
2719
2720 * par-prag.adb: Add entry for pragma Detect_Blocking.
2721
2722 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
2723 of not handling WITH.
2724 Note that this replaces the previous update which was incorrect.
2725
27262004-06-25 Javier Miranda <miranda@gnat.com>
2727
2728 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
2729 use-clauses to have a clean environment.
2730
2731 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
2732 the installation of the use-clauses to stablish a clean environment in
2733 case of compilation of a separate unit; otherwise the call to
2734 use_one_package is protected by the barrier Applicable_Use.
2735
2736 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
2737 the installation of the use-clauses to stablish a clean environment in
2738 case of compilation of a separate unit.
2739 (End_Use_Clauses): Minor comment cleanup.
2740
27412004-06-25 Sergey Rybin <rybin@act-europe.fr>
2742
2743 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
2744
65355d53
RH
27452004-06-23 Richard Henderson <rth@redhat.com>
2746
2747 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
2748
c0e3aa48
RK
27492004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2750
2751 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
2752 now bool instead of int.
2753 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
2754 * trans.c (gnu_switch_label_stack): New function.
2755 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
2756 elaboration of renamed entity returns.
2757 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
2758 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
2759 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
2760 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
2761 DECL_SIZE_UNIT and simplify variable-sized case.
2762 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
2763 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
2764 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
2765 (build_unit_elab): Disable for now.
2766 * utils.c (mark_visited): New function.
2767 (pushdecl): Walk tree to call it for global decl.
2768 (update_pointer_to): Update all variants of pointer and ref types.
2769 Add arg to COMPONENT_REF.
2770 (convert): Likewise.
2771 Move check for converting between variants lower down.
2772 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
2773 (build_allocator): Don't force type of MODIFY_EXPR.
2774 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
2775 put_var_into_stack.
2776
966389ee
RK
27772004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2778
2779 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
2780 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
2781 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
2782 subprograms.
2783 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
2784 all callers changed.
2785 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
2786 the way that EXIT_STMT finds the loop label.
2787 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
2788 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
2789 (add_stmt): Use annotate_with_locus insted of setting directly.
2790 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
2791 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
2792 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
2793 (build_vms_descriptor): Add extra args to ARRAY_REF.
2794 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
2795 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
2796 New cases.
2797 (build_binary_op): Don't make explicit CONVERT_EXPR.
2798 Add extra rgs to ARRAY_REF.
2799
cc335f43
AC
28002004-06-14 Pascal Obry <obry@gnat.com>
2801
2802 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
2803 Windows. Fix minor typo.
2804
2805 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
2806 which is now supported on Windows. With this implementation using the
2807 Library Project feature is no different on Windows than on UNIX.
2808
28092004-06-14 Vincent Celier <celier@gnat.com>
2810
2811 * makegpr.adb (Compile_Sources): Nothing to do when there are no
2812 non-Ada sources.
2813
2814 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
2815
2816 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
2817 found, show the project name and the path of the previously parsed
2818 project file.
2819
28202004-06-14 Ed Schonberg <schonberg@gnat.com>
2821
2822 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
2823 array, avoid copying the actual before the call.
2824
28252004-06-14 Thomas Quinot <quinot@act-europe.fr>
2826
2827 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
2828 Instead, allocate memory on worst-case alignment assumptions, and then
2829 return an aligned address within the allocated zone.
2830
28312004-06-14 Robert Dewar <dewar@gnat.com>
2832
2833 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
2834 elab entities in predefined units in No_Run_Time_Mode.
2835 (Gen_Adainit_C): Same fix
2836 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
2837 units in No_Run_Time_Mode
2838 (Gen_Elab_Calls_C): Same fix
2839
2840 * symbols-vms-alpha.adb: Minor reformatting
2841
2842 * g-debpoo.ads: Minor reformatting
2843
2844 * lib.adb (In_Same_Extended_Unit): Version working on node id's
2845
2846 * lib.ads (In_Same_Extended_Unit): Version working on node id's
2847
2848 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
2849 working on nodes.
2850
2851 * make.adb: Minor reformatting
2852
2853 * par-ch12.adb: Minor reformatting
2854
2855 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
2856
2857 * prj-strt.adb: Minor reformatting
2858
2859 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
2860 be more general.
2861
2862 * sem_attr.adb: Minor reformatting
2863
2864 * sem_ch7.adb: Minor reformatting
2865
2866 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
2867 for type in the same unit as the object declaration.
2868
2869 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
2870 static string expressions and not just string literals.
2871 Minor reformatting
2872 (Set_Warning): Reset restriction warning flag for restriction pragma
2873 Implement pragma Profile_Warnings
2874 Implement pragma Profile (Restricted)
2875 Give obolescent messages for old restrictions and pragmas
2876
2877 * snames.h, snames.ads, snames.adb: Add new entry for pragma
2878 Profile_Warnings.
2879
2880 * s-rident.ads: Add declarations for restrictions required by profile
2881 Restricted and profile Ravenscar.
2882
2883 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
2884
2885 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
2886 configuration pragmas.
2887
5453d5bd
AC
28882004-06-11 Vincent Celier <celier@gnat.com>
2889
2890 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
2891 gnatsym, when symbol policy is Restricted.
2892
2893 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
2894 gnatsym, when symbol policy is Restricted.
2895
2896 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
2897 read the symbol file.
2898 (Finalize): Fail in symbol policy Restricted if a symbol in the original
2899 symbol file is not in the object files. Do not create a new symbol file
2900 when symbol policy is Restricted.
2901
2902 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
2903 in Scng.
2904
2905 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
2906 Restricted.
2907 (Usage): Line for new switch -R
2908
2909 * make.adb (Initialize): When the platform is not VMS, add the
2910 directory where gnatmake is invoked in the front of the path, if
2911 gnatmake is invoked with directory information. Change the Scan_Args
2912 while loop to a for loop.
2913 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
2914 if Depth is equal or greater than the proposed depth, there is nothing
2915 to do.
2916 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
2917 instead of 0.
2918
2919 * prj.ads: Add new symbol policy Restricted.
2920
2921 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
2922 with the new parameters Check_All_Labels and Case_Location.
2923
2924 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
2925 (Library_Symbol_File needs to be defined).
2926
2927 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
2928 and Case_Location If Check_All_Labels is True, check that all values of
2929 the string type are used, and output warning(s) if they are not.
2930
2931 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
2932 and Case_Location.
2933
2934 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
2935
2936 * gnat_ugn.texi: Update documentation about the library directory in
2937 Library Projects.
2938
2939 * makegpr.adb (Display_Command): In verbose mode, also display the
2940 value of the CPATH env var, when the compiler is gcc.
2941 (Initialize): Change the Scan_Args while loop to a for loop
2942 (Compile_Individual_Sources): Change directory to object directory
2943 before compilations.
2944
2945 * symbols.ads: New symbol policy Restricted.
2946
29472004-06-11 Olivier Hainque <hainque@act-europe.fr>
2948
2949 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
2950 is now taken care of internally in the Exception_Propagation package
2951 and does not require clients assistance any more.
2952
2953 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
2954 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
2955 functions. Helpers to maintain a predicate required in the handling of
2956 occurrence transfer between tasks.
2957 This is now handled internally and does not require clients assistance
2958 for the setup/propagate separation anymore.
2959 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
2960 allocation strategy, handle the Setup_And_Not_Propagated predicate and
2961 document.
2962
2963 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
2964 raise_after_setup, now that everything is handled internally within the
2965 setup/propagation engine.
2966
29672004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
2968
2969 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
2970 Add additional conditions for the case of an actual being a simple
2971 name or literal. Improve inlining by preventing the generation
2972 of temporaries with a short lifetime (one use).
2973
29742004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
2975
2976 PR ada/15587
2977
2978 * einfo.ads: Minor comment updates for Has_Completion and
2979 E_Constant list of flags.
2980
2981 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
2982 and constant redeclarations now set the Has_Completion flag of their
2983 defining identifiers.
2984
2985 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
2986 Inspect_Deferred_Constant_Completion.
2987 Used to detect private deferred constants that have not been completed
2988 either by a constant redeclaration or pragma Import. Emits error message
2989 "constant declaration requires initialization expression".
2990
2991 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
2992 completes a deferred constant.
2993
29942004-06-11 Geert Bosch <bosch@gnat.com>
2995
2996 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
2997
2998 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
2999 calculating exponent for scaling denormal numbers.
3000 (Leading_Part): Properly raise Constraint_Error for zero or negative
3001 Adjustment.
3002 (Remainder): Properly raise Constraint_Error for zero divisor.
3003
30042004-06-11 Thomas Quinot <quinot@act-europe.fr>
3005
3006 * sem_util.adb: Minor reformatting.
3007
3008 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
3009 dereference when accessing the entry parameter record.
3010 (Check_Array_Type): Always check for possible implicit dereference.
3011 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
3012 Abort if a pointer is still present (denoting that an implicit
3013 dereference was left in the tree by the front-end).
3014
3015 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
3016 dereference when accessing the entry parameter record.
3017 (Check_Array_Type): Always check for possible implicit dereference.
3018 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
3019 Abort if a pointer is still present (denoting that an implicit
3020 dereference was left in the tree by the front-end).
3021
30222004-06-11 Emmanuel Briot <briot@act-europe.fr>
3023
3024 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
3025 message, like the compiler itself does. Easier to parse the output.
3026
3027 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
3028
3029 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
3030 be base names, and not includes directories.
3031
30322004-06-11 Arnaud Charlet <charlet@act-europe.fr>
3033
3034 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
3035 so that dependencies are properly taken into account by make.
3036
30372004-06-11 Arnaud Charlet <charlet@act-europe.fr>
3038
3039 PR ada/15622
3040 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
3041 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
3042
30432004-06-11 Jerome Guitton <guitton@act-europe.fr>
3044
3045 * Makefile.in (install-gnatlib): install target-specific run-time files.
3046
3047 * Make-lang.in: Remove obsolete targets.
3048
30492004-06-11 Ed Schonberg <schonberg@gnat.com>
3050
3051 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
3052 specification, to catch misuses of program unit names.
3053
3054 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
3055 superfluous conversions in an instance.
3056
30572004-06-11 Ed Schonberg <schonberg@gnat.com>
3058
3059 PR ada/15403
3060
3061 * sem_ch12.adb (Save_References): If operator node has been folded to
3062 enumeration literal, associated_node must be discarded.
3063
30642004-06-11 Jose Ruiz <ruiz@act-europe.fr>
3065
3066 * s-stchop-vxworks.adb: Add required pragma Convention to
3067 Task_Descriptor because it is updated by a C function.
3068
a98f59be
AC
30692004-06-08 Arnaud Charlet <charlet@act-europe.fr>
3070
3071 PR ada/15568
3072
3073 * Makefile.in: Remove target specific SO_OPT on IRIX
3074
821e1ea1
RK
30752004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3076
3077 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
3078 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
3079 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
3080 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
3081 (STMT_STMT, USE_STMT): New statement codes.
3082 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
3083 * ada-tree.h: Reflect above changes.
3084 (struct tree_loop_id): Deleted.
3085 (union lang_tree_node, struct lang_decl, struct lang_type):
3086 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
3087 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
3088 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
3089 (IS_ADA_STMT): New macro.
3090 * decl.c (annotate_decl_with_node): New function.
3091 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
3092 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
3093 Call add_stmt_with_node to do needed assignments.
3094 Add call to update setjmp buffer directly, not via EXPR_STMT.
3095 (maybe_variable): Argment GNAT_NODE deleted.
3096 * gigi.h (maybe_variable): Likewise.
3097 (make_transform, add_stmt_with_node, set_block_for_group): New.
3098 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
3099 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
3100 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
3101 (set_lineno, set_lineno_from_sloc): Likewise.
3102 (record_code_position, insert_code_for): Likewise.
3103 (gnat_poplevel): Now returns void.
3104 (end_subprog_body): Now takes argument.
3105 * misc.c (cgraph.h, tree-inline.h): New includes.
3106 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
3107 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
3108 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
3109 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
3110 (gnat_parse_file): Don't set immediate_size_expand.
3111 Call cgraph functions.
3112 (gnat_expand_expr): Remove most cases.
3113 (record_code_position, insert_code_for): Remove from here.
3114 * trans.c (toplev.h, tree-gimple.h): Now included.
3115 (discard_file_names): Deleted.
3116 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
3117 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
3118 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
3119 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
3120 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
3121 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
3122 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
3123 (set_block_for_group, add_stmt_list): Likewise.
3124 (start_stmt_group): Renamed from start_block_stmt.
3125 (end_stmt_group): Likewise, from end_block_stmt.
3126 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
3127 (gigi): Don't set discard_file_names or call set_lineno.
3128 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
3129 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
3130 Numerous changes throughout to reflect new names and complete
3131 function-at-a-time implementation.
3132 (gnat_expand_stmt): Delete or comment out all cases.
3133 (process_inlined_subprograms): Use add_stmt.
3134 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
3135 call set_lineno; also remove unneeded block handling.
3136 (process_type): Remove unneeded block handling.
3137 (build_unit_elab): Remove calls to deleted functions.
3138 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
3139 (tree-dump.h): Likewise.
3140 (struct ada_binding_level): Add field jmpbuf_decl.
3141 (gnat_define_builtin, gnat_install_builtins): New.
3142 (gnat_gimplify_function, gnat_finalize): Likewise.
3143 (gnat_poplevel): No longer return BLOCK, set it instead.
3144 Remove code dealing with nested functions.
3145 (gnat_init_decl_processing): Also set size_type_node.
3146 Call gnat_install_builtins.
3147 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
3148 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
3149 Remove special-case for "main".
3150 (end_subprog_body): Add arg and rework for tree-ssa.
3151 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
3152 Add case for BOOLEAN_TYPE.
3153 * utils2.c (rtl.h): Now include.
3154 (build_call_raise): Test Debug_Flag_NN directly.
3155 (build_call_alloc_dealloc): Don't use local stack allocation for now.
3156 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
3157 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
3158
0ab80019
AC
31592004-06-07 Robert Dewar <dewar@gnat.com>
3160
3161 * a-direct.ads, einfo.ads: Minor comment updates
3162
3163 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
3164 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
3165 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
3166 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
3167 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
3168
3169 * s-interr-sigaction.adb: Remove unreferenced variable
3170 (Attached_Interrupts). Minor reformatting.
3171 Avoid use of variable I (replace by J).
3172
3173 * par-ch10.adb: Fix text of one error message
3174
3175 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
3176 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
3177 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
3178 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
3179 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
3180 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
6615c446 3181 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
0ab80019
AC
3182 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
3183 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
3184 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
3185 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
3186 2005 support.
3187
31882004-06-07 Doug Rupp <rupp@gnat.com>
3189
3190 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
3191
3192 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
3193
3194 * mlib-tgt-vms-ia64.adb: New file.
3195
3196 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
3197 Add mlib-tgt-vms-ia64.adb
3198 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
3199 Move to alpha specific ifeq section.
3200 Add VMS specific versions of symbols.adb
3201 Renaming of 5q vms files.
3202
3203 * 5qsystem.ads renamed to system-vms_64.ads.
3204
32052004-06-07 Vincent Celier <celier@gnat.com>
3206
3207 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
3208 explain that when a time of day corresponding to the non existing hour
3209 on the day switching to DST is specified, Split may return a different
3210 value for Seconds.
3211
3212 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
3213 to GNAT PRETTY.
3214
3215 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
3216 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
3217
3218 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
3219 to False.
3220 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
3221 the linking options.
3222 (Build_Library.Check_Libs): On VMS, if there is a dependency on
3223 g-trasym.ads, set Gtrasymobj_Needed to True.
3224
3225 * prj-attr.adb: Add new package Metrics for gnatmetric
3226
3227 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
3228 canonical case to take into account files with upper case characters on
3229 Windows.
3230 (Ada_Check): Load the reference symbol file name in the name buffer to
3231 check it, not the symbol file name.
3232
3233 * snames.ads, snames.adb: Add standard name Metrics (name of project
3234 file package for gnatmetric).
3235
3236 * vms_conv.ads: Add Metric to Comment_Type
3237
3238 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
3239
3240 * vms_data.ads: Add qualifiers for GNAT METRIC
3241
3242 * makegpr.adb (Link_Executables): Take into account the switches
3243 specified in package Linker of the main project.
3244
32452004-06-07 Thomas Quinot <quinot@act-europe.fr>
3246
3247 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
3248 the index of the last element is Units.Last, not Units.Table'Last
3249 (which is usually not a valid index within the actually allocated
3250 storage for the table).
3251
3252 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
3253 determines whether to generate a call to a checked storage pool
3254 Dereference action.
3255 Generate such a call only for a dereference that either comes from
3256 source, or is the result of rewriting a dereference that comes from
3257 source.
3258
32592004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
3260
3261 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
3262
32632004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
3264
3265 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
3266 file level, elaborate the stride for inner dimensions in alignment
3267 units, not bytes.
3268
3269 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
3270 in a comment.
3271
32722004-06-07 Javier Miranda <miranda@gnat.com>
3273
3274 * exp_ch6.adb: Correct wrong modification in previous patch
3275
32762004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
3277
3278 * g-trasym.ads: Corrected comment to properly reflect level of support
3279 on VMS.
3280
32812004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
3282
3283 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
3284 includes case of a variable referenced on the left hand side of an
3285 assignment, therefore remove redundant code. Variables and prefixes of
3286 indexed or selected components are now marked as referenced on left
3287 hand side. Warnings are now properly emitted when variables or prefixes
3288 are assigned but not read.
3289
3290 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
3291 left hand side referenced variables. Private access types do not
3292 produce the warning "variable ... is assigned but never read".
3293 Add also additional checks to left hand side referenced variables.
3294 Aliased, renamed objects and access types do not produce the warning
3295 "variable ... is assigned but never read" since other entities may read
3296 the memory location.
3297
32982004-06-07 Jerome Guitton <guitton@act-europe.fr>
3299
3300 * Makefile.in: In the powerpc/vxworks-specific section, restore
3301 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
3302 by mistake).
3303
33042004-06-07 Ed Schonberg <schonberg@gnat.com>
3305
3306 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
3307 predefined operators.
3308 Removes spurious type errors from g-trasym-vms.adb.
3309
3310 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
3311 distinct from the operator appearing in the source, call appropriate
3312 routine to insert conversions when needed, and complete resolution of
3313 node.
3314 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
3315 interpretations for rewritten right operand.
3316 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
3317 the other operand is overloaded and the context is a type conversion.
3318
33192004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3320
3321 * ada-tree.def (BLOCK_STMT): Now has two operands.
3322 (BREAK_STMT): New.
3323
3324 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
3325
3326 * gigi.h: (gnat_poplevel): Now returns a tree.
3327
3328 * trans.c (end_block_stmt): Add arg; all callers changed.
3329 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
3330 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
3331 (add_stmt): Set TREE_TYPE.
3332 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
3333 (gnat_expand_stmt, case BREAK_STMT): New case.
3334
3335 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
3336
33372004-06-07 Jose Ruiz <ruiz@act-europe.fr>
3338
3339 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
3340 procedure Set_Stack_Size that is not needed.
3341
33422004-06-07 Sergey Rybin <rybin@act-europe.fr>
3343
3344 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
3345 used for gnatpp input file and for the files upon which it depends
3346
33472004-06-07 Ben Brosgol <brosgol@gnat.com>
3348
3349 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
3350
33512004-06-07 Arnaud Charlet <charlet@act-europe.fr>
3352
3353 * gnatvsn.ads: Bump version numbers appropriately.
3354 Add new build type.
3355
33562004-06-07 Pascal Obry <obry@gnat.com>
3357
3358 * gnat_ugn.texi: Improve comments about imported names and link names
3359 on Windows. Add a note about the requirement to use -k gnatdll's option
3360 when working with a DLL which has stripped stdcall symbols (no @nn
3361 suffix).
3362
8a36a0cc
AC
33632004-05-27 Vincent Celier <celier@gnat.com>
3364
3365 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
3366 COMMENTS_LAYOUT=UNTOUCHED
3367
3368 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
3369 symbols-vms-alpha.adb
3370
33712004-05-27 Thomas Quinot <quinot@act-europe.fr>
3372
3373 * sem.ads: Clarify documentation on checks suppression.
3374
3375 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
3376
33772004-05-27 Ed Schonberg <schonberg@gnat.com>
3378
3379 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
3380 the case of multiple derivations.
3381 (Is_Object_Reference): For a selected component, verify that the prefix
3382 is itself an object and not a value.
3383
3384 * sem_ch12.adb (Same_Instantiated_Constant): New name for
3385 Same_Instantiated_Entity.
3386 (Same_Instantiated_Variable): Subsidiary to
3387 Check_Formal_Package_Instance, to recognize actuals for in-out generic
3388 formals that are obtained from a previous formal package.
3389 (Instantiate_Subprogram_Body): Emit proper error when
3390 generating code and the proper body of a stub is missing.
3391
3392 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
3393 has a universal interpretation, do the disambiguation here.
3394
3395 * exp_ch4.adb (Expand_N_Type_Conversion,
3396 Expand_N_Unchecked_Type_Conversion): Special handling when target type
3397 is Address, to avoid typing anomalies when Address is a visible integer
3398 type.
3399
3400 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
3401 to determine whether a subprogram should not be marked Pure, even when
3402 declared in a pure package.
3403
34042004-05-27 Jose Ruiz <ruiz@act-europe.fr>
3405
3406 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
3407
3408 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
3409 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
3410 Update the documentation about the Ravenscar profile, following the
3411 definition found in AI-249.
3412
3413 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
3414 setting the Profile (Ravenscar). This must be done in addition to
3415 setting the required restrictions.
3416
3417 * rtsfind.ads: Add the set of operations defined in package
3418 Ada.Interrupts.
3419
3420 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
3421 restriction.
3422
34232004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
3424
3425 lang-specs.h: Always require -c or -S and always redirect to /dev/null
3426 if -gnatc or -gnats is passed.
3427
34282004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
3429
3430 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
3431 a significant reference. Warnings are now properly emitted when a
3432 discriminated type is not referenced.
3433
3434 * lib-xref.adb (Generate_Reference): A deferred constant completion,
3435 record representation clause or record type discriminant does not
3436 produce a reference to its corresponding entity. Warnings are now
3437 properly emitted when deferred constants and record types are not
3438 referenced.
3439
34402004-05-27 Geert Bosch <bosch@gnat.com>
3441
3442 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
3443 Fixes ACATS Annex G tests.
3444
34452004-05-27 Robert Dewar <dewar@gnat.com>
3446
3447 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
3448 handling WITH
3449
34502004-05-27 Arnaud Charlet <charlet@act-europe.fr>
3451
3452 * s-interr.adb (Server_Task): Take into account case of early return
3453 from sigwait under e.g. linux.
3454
34552004-05-27 Sergey Rybin <rybin@act-europe.fr>
3456
3457 * gnat_ugn.texi: Add description for the new gnatpp options:
3458 -rnb - replace the original source without creating its backup copy
3459 -c0 - do not format comments
3460
0fb2ea01
AC
34612004-05-24 Geert Bosch <bosch@gnat.com>
3462
3463 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
3464 with 192 bits of precision, sufficient to reduce a double-extended
3465 arguments X with a maximum relative error of T'Machine_Epsilon, for X
3466 in -2.0**32 .. 2.0**32.
3467 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
3468 reduction by the processor, which only uses a 68-bit approximation of
3469 Pi.
3470 (Tan): Always reduce arguments and compute function either using
3471 the processor's fptan instruction, or by dividing sin and cos as needed.
3472
34732004-05-24 Doug Rupp <rupp@gnat.com>
3474
3475 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
3476 gcc error on 32/64 bit VMS.
3477
34782004-05-24 Olivier Hainque <hainque@act-europe.fr>
3479
3480 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
3481 since this is what we get for stack overflows although not documented
3482 as such.
3483 Document the issues which may require adjustments to our signal
3484 handlers.
3485
34862004-05-24 Ed Schonberg <schonberg@gnat.com>
3487
3488 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
3489 enclosing dynamic scope if the instantiation is within a generic unit.
3490
34912004-05-24 Arnaud Charlet <charlet@act-europe.fr>
3492
3493 * exp_dbug.ads: Fix typo.
3494
3495 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
3496 Rename it to its proper name: system-linux-ia64.ads
3497 (stamp-gnatlib1): Remove extra target specific run time files when
3498 setting up the rts directory.
3499
35002004-05-24 Javier Miranda <miranda@gnat.com>
3501
3502 * einfo.ads, einfo.adb (Limited_Views): Removed.
3503 (Limited_View): New attribute that replaces the previous one. It is
3504 now a bona fide package with the limited-view list through the
3505 first_entity and first_private attributes.
3506
3507 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
3508 limited-private-with clause.
3509 (Install_Limited_Withed_Unit): Install the private declarations of a
3510 limited-private-withed package. Update the installation of the shadow
3511 entities according to the new structure (see Build_Limited_Views)
3512 (Build_Limited_Views): Replace the previous implementation of the
3513 limited view by a package entity that references the first shadow
3514 entity plus the first shadow private entity (required for limited-
3515 private-with clause)
3516 (New_Internal_Shadow_Entity): Code cleanup.
3517 (Remove_Limited_With_Clause): Update the implementation to undo the
3518 new work carried out by Build_Limited_Views.
3519 (Build_Chain): Complete documentation.
3520 Replace Ada0Y by Ada 0Y in comments
3521 Minor reformating
3522
3523 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
3524 types the level of accessibility depends on the enclosing type
3525 declaration.
3526
3527 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
3528 entities. Complete documentation of previous change.
3529
35302004-05-24 Robert Dewar <dewar@gnat.com>
3531
3532 * namet.adb: Minor reformatting
3533 Avoid use of name I (replace by J)
3534 Minor code restructuring
3535
3536 * sem_ch6.adb: Minor reformatting
3537
3538 * lib-writ.adb: Do not set restriction as active if this is a
3539 Restriction_Warning case.
3540
3541 * sem_prag.adb: Reset restriction warning flag if real pragma
3542 restriction encountered.
3543
3544 * s-htable.adb: Minor reformatting
3545 Change rotate count to 3 in Hash (improves hash for small strings)
3546
3547 * 5qsystem.ads: Add comments for type Address (no literals allowed).
3548
3549 * gnat_ugn.texi: Add new section of documentation "Code Generation
3550 Control", which describes the use of -m switches.
3551
35522004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
3553
a1db9d9c
AC
3554 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
3555 through the DECL_INITIAL for renamed variables.
0fb2ea01 3556
7599f1b0
AC
35572004-05-24 Arnaud Charlet <charlet@act-europe.fr>
3558
3559 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
3560
c37bb106
AC
35612004-05-19 Joel Brobecker <brobecker@gnat.com>
3562
3563 * exp_dbug.ads: Correct comments concerning handling of overloading,
3564 since we no longer use $ anymore.
3565
35662004-05-19 Sergey Rybin <rybin@act-europe.fr>
3567
3568 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
3569 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
3570 with illegal subunits.
3571
35722004-05-19 Ed Schonberg <schonberg@gnat.com>
3573
3574 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
3575 body with front-end inlining enabled, check whether an inline pragma
3576 appears immediately after the body and applies to it.
3577
3578 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
3579 enabled and the pragma appears after the body of the subprogram.
3580
b5e792e2
AC
35812004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3582
3583 Part of function-at-a-time conversion
3584
3585 * misc.c (adjust_decl_rtl): Deleted.
3586 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
3587 Define.
3588
3589 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
3590 (add_decl_stmt, add_stmt, block_has_vars): New functions.
3591 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
3592
3593 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
3594 when making a decl.
3595 (gnat_to_gnu_entity): Likewise.
3596 Use add_stmt to update setjmp buffer.
3597 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
3598 flush_addressof.
3599 No longer call adjust_decl_rtl.
3600 (DECL_INIT_BY_ASSIGN_P): New macro.
3601 (DECL_STMT_VAR): Likewise.
3602
3603 * trans.c (gigi): Call start_block_stmt to make the outermost
3604 BLOCK_STMT.
3605 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
3606 Call start_block_stmt and end_block_stmt temporarily.
3607 Use gnat_expand_stmt instead of expand_expr_stmt.
3608 (add_decl_stmt): New function.
3609 (tree_transform): Call it.
3610 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
3611 (end_block_stmt): Set type and NULL_STMT.
3612 (gnat_expand_stmt): Make recursize call instead of calling
3613 expand_expr_stmt.
3614 (gnat_expand_stmt, case DECL_STMT): New case.
3615 (set_lineno_from_sloc): Do nothing if global.
3616 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
3617 (start_block_stmt, add_stmt, end_block_stmt): New functions.
3618 (build_block_stmt): Call them.
3619 (gnat_to_code): Don't expand NULL_STMT.
3620 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
3621 args.
3622 (tree_transform): Likewise.
3623 (tree_transform, case N_Null_Statement): Return NULL_STMT.
3624 (gnat_expand_stmt, case NULL_STMT): New case.
3625 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
3626 IF_STMT_TRUE.
3627
3628 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
3629 TREE_ADDRESSABLE.
3630
3631 * utils.c (create_var_decl): Do not call expand_decl or
3632 expand_decl_init.
3633 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
3634 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
3635 here.
3636 (struct e_stack): Add chain_next to GTY.
3637 (struct binding_level): Deleted.
3638 (struct ada_binding_level): New struct.
3639 (free_block_chain): New.
3640 (global_binding_level, clear_binding_level): Deleted.
3641 (global_bindings_p): Rework to see if no chain.
3642 (kept_level_p, set_block): Deleted.
3643 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
3644 new data structure and work directly on BLOCK node.
3645 (gnat_poplevel): Similarly.
3646 (get_decls): Look at BLOCK_VARS.
3647 (insert_block): Work directly on BLOCK node.
3648 (block_has_var): New function.
3649 (pushdecl): Rework for new binding structures.
3650 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
3651 poplevel.
3652 (build_subprog_body): Likewise.
3653 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
3654
3655 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
3656
3657 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
3658 (DECL_STMT_VAR): Likewise.
3659
36602004-05-17 Robert Dewar <dewar@gnat.com>
3661
3662 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
3663 procedure
3664
3665 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
3666 of restriction synonyums by using
3667 Restrict.Process_Restriction_Synonyms.
3668
3669 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
3670
3671 * s-restri.ads (Tasking_Allowed): Correct missing comment
3672
3673 * s-rident.ads: Add entries for restriction synonyms
3674
3675 * ali.adb: Fix some problems with badly formatted ALI files that can
3676 result in infinite loops.
3677
3678 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
3679 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
3680 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
3681 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
3682 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
3683 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
3684 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
3685 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
3686 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
3687 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
3688 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
3689 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
3690 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
3691 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
3692 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
3693 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
3694 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
3695 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
3696 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
3697 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
3698 to Task_Id (minor cleanup).
3699
37002004-05-17 Vincent Celier <celier@gnat.com>
3701
3702 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
3703 directory separator.
3704
3705 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
3706 project being extended, if Languages is not declared in extending
3707 project.
3708
37092004-05-17 Javier Miranda <miranda@gnat.com>
3710
3711 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
3712 limited view of a visible sibling.
3713
9bc856dd
AC
37142004-05-14 Robert Dewar <dewar@gnat.com>
3715
3716 * gnat_ugn.texi: Minor change to -gnatS documentation
3717
3718 * sprint.adb: Remove some instances of Assert (False) and for this
3719 purpose replace them by output of a ??? string.
3720
3721 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
3722 Assert (False).
3723
3724 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
3725 flag processing. This was suppressing required dependencies in
3726 No_Run_Time mode and is not needed since the binder does not generate
3727 references for things in libgnat anyway.
3728
3729 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
3730 warning.
3731
37322004-05-14 Thomas Quinot <quinot@act-europe.fr>
3733
3734 * gnat_ugn.texi: Document AIX-specific issue with initialization of
3735 resolver library.
3736
3737 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
3738 action for the case of an actual parameter in an init proc call.
3739
37402004-05-14 Ed Schonberg <schonberg@gnat.com>
3741
3742 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
3743 subtype, check visible entities in base type.
3744
3745 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
3746 actions if the object is a renaming.
3747
3748 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
3749 Check_Formal_Package_Instance, to determine more precisely when the
3750 formal and the actual denote the same entity.
3751
37522004-05-14 Javier Miranda <miranda@gnat.com>
3753
3754 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
3755
3756 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
3757 corresponding to a private_with must be removed from visibility; it
3758 will be made visible later, just before we analyze the private part of
3759 the package.
3760 (Check_Private_Child_Unit): Allow private_with clauses in public
3761 siblings.
3762 (Install_Siblings): Make visible the private entities of private-withed
3763 siblings.
3764 (Install_Withed_Unit): Do not install the private withed unit if we
3765 are compiling a package declaration and the Private_With_OK flag was
3766 not set by the caller. These declarations will be installed later,
3767 just before we analyze the private part of the package.
3768
3769 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
3770 during the evaluation of the expression that initializes the object,
3771 decorate it with the expected type to avoid cascade errors.
3772 Code cleanup.
3773
3774 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
3775 subprogram we have to install the private_with clauses after its
3776 specification has been analyzed (as documented in AI-262.TXT).
3777
3778 * sem_ch8.adb (Has_Private_With): New function. Determines if the
3779 current compilation unit has a private with on a given entity.
3780 (Find_Direct_Name): Detect the Beaujolais problem described in
3781 AI-262.TXT
3782
3783 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
3784 provides the functionality of the function Is_Ancestor that was
3785 previously available in sem_ch10. It has been renamed to avoid
3786 overloading.
3787
3788 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
3789
37902004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3791
3792 * utils.c (build_vms_descriptor): Use SImode pointers.
3793
37942004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
3795
3796 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
3797
37982004-05-14 GNAT Script <nobody@gnat.com>
3799
3800 * Make-lang.in: Makefile automatically updated
3801
084c663c
AC
38022004-05-14 Arnaud Charlet <charlet@act-europe.fr>
3803
3804 Renaming of target specific files for clarity
3805
6615c446 3806 * Makefile.in: Rename GNAT target specific files.
084c663c
AC
3807
3808 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
3809 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
3810 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
3811 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
3812 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
3813 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
3814 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
3815 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
3816 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
3817 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
3818 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
3819 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
3820 51osinte.adb, 51osinte.ads, 51system.ads,
3821 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
3822 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
3823 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
3824 56tpopsp.adb, 57system.ads, 58system.ads,
3825 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
3826 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
3827 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
3828 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
3829 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
3830 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
3831 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
3832 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
3833 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
3834 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
3835 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
3836 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
3837 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
3838 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
3839 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
3840 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
3841 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
3842 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
3843 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
3844 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
3845 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
3846 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
3847 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
3848 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
3849 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
3850 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
3851 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
3852 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
3853 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
3854 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
3855 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
3856 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
3857 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
3858 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
3859 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
3860 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
3861 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
3862 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
3863 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
3864 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
3865
3866 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
3867 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
3868 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
3869 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
3870 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
3871 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
3872 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
3873 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
3874 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
3875 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
3876 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
3877 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
3878 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
3879 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
3880 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
3881 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
3882 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
3883 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
3884 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
3885 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
3886 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
3887 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
3888 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
3889 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
3890 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
3891 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
3892 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
3893 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
3894 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
3895 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
3896 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
3897 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
3898 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
3899 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
3900 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
3901 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
3902 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
3903 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
3904 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
3905 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
3906 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
3907 s-osinte-vms.ads, s-osinte-vxworks.adb,
3908 s-osinte-vxworks.ads, s-osprim-mingw.adb,
3909 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
3910 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
3911 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
3912 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
3913 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
3914 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
3915 s-stchop-vxworks.adb, s-taprop-dummy.adb,
3916 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
3917 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
3918 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
3919 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
3920 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
3921 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
3922 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
3923 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
3924 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
3925 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
3926 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
3927 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
3928 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
3929 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
3930 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
3931 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
3932 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
3933 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
3934 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
3935 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
3936 system-irix-o32.ads, system-linux-x86_64.ads,
3937 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
3938 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
3939 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
3940 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
3941 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
3942 system-vxworks-mips.ads, system-vxworks-ppc.ads,
3943 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
3944 above.
3945
90afe2c9
ZW
39462004-05-13 Zack Weinberg <zack@codesourcery.com>
3947
3948 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
3949
6de9cd9a
DN
39502004-05-13 Diego Novillo <dnovillo@redhat.com>
3951
3952 Merge from tree-ssa-20020619-branch.
3953
3954 * config-lang.in (boot_language, build_by_default): Set
3955 to no.
3956 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
3957 (max_size): Add static chain op for call_expr.
3958
f5657d67
RS
39592004-05-12 Richard Sandiford <rsandifo@redhat.com>
3960
3961 PR target/15331
3962 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
3963
4413b636
RS
39642004-05-11 Roger Sayle <roger@eyesopen.com>
3965
3966 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
3967 COND_EXPR.
3968
5950a3ac
AC
39692004-05-10 Doug Rupp <rupp@gnat.com>
3970
3971 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
3972 system.aux_dec.
3973
3974 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
3975
3976 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
3977
3978 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
3979 Fixes undefined symbols in IA64 gnatlib.
3980
3981 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
3982
3983 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
3984 Short_Address). This will be moved to system.auxdec.
3985
39862004-05-10 Thomas Quinot <quinot@act-europe.fr>
3987
3988 * sem_util.adb: Replace test for presence of a node that is always
3989 present with a call to Discard_Node.
3990
3991 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
3992 Analyze on the library unit node after generation of distribution stub
3993 constructs. The call was a no-op because Unit_Node has already been
3994 Analyzed, and the tree fragments for the distribution stubs are
3995 analyzed as they are inserted in Exp_Dist.
3996 Update comment regarding to distribution stubs to reflect that we
3997 do not generate stub in separate files anymore.
3998
3999 * einfo.ads: Clarify the fact that a tagged private type has the
4000 E_Record_Type_With_Private Ekind.
4001
4002 * erroutc.adb: Minor reformatting
4003
4004 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
4005 values if line length is increased using -gnatyM (noticed during code
4006 reading).
4007
4008 * eval_fat.adb: Minor reformatting
4009 Put spaces around exponentiation operator
4010
40112004-05-10 Ed Schonberg <schonberg@gnat.com>
4012
4013 PR ada/15005
4014 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
4015 has been rewritten as an explicit dereference, retrieve type of
4016 original node to check for possibly unconstrained record type.
4017
40182004-05-10 Ed Schonberg <schonberg@gnat.com>
4019
4020 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
4021 overriding, use the operation of the parent unconditionally.
4022
4023 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
4024 operation when either operand is a literal, to avoid further
4025 ambiguities.
4026
4027 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
4028 overridden by a previous explicit declaration, mark the previous entity
4029 as overriding.
4030
4031 * sem_disp.adb (Check_Dispatching_Operation): New predicate
4032 Is_Visibly_Controlled, to determine whether a declaration of a
4033 primitive control operation for a derived type overrides an inherited
4034 one. Add warning if the explicit declaration does not override.
4035
40362004-05-10 Vincent Celier <celier@gnat.com>
4037
4038 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
4039 some cases when the sources are no longer present.
4040
4041 * make.adb (Collect_Arguments): Fail if an external source, not part
4042 of any project need to be compiled, when switch -x has not been
4043 specified.
4044
4045 * makeusg.adb: Document new switch -x
4046
4047 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
4048 defaulted to False.
4049
4050 * switch-m.adb (Scan_Make_Switches): New switch -x
4051
4052 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
4053 gnatmake switch -x.
4054
4055 * gnat_ugn.texi: Document new gnatmake switch -x
4056
40572004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
4058
4059 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
4060
4061 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
4062 (process_attributes): Likewise.
4063
40642004-05-10 Joel Brobecker <brobecker@gnat.com>
4065
4066 * s-inmaop.ads: Fix spelling mistake in one of the comments.
4067
40682004-05-10 Robert Dewar <dewar@gnat.com>
4069
4070 * gnat_ugn.texi: Document that for config pragma files, the maximum
4071 line length is always 32767.
4072
4073 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
4074 literals is now allowed.
4075
4076 * gnat-style.texi: Remove statement about splitting long lines before
4077 an operator rather than after, since we do not follow this rule at all.
4078 Clarify rule (really lack of rule) for spaces around exponentiation
4079
4080 * sem_elim.adb: Allow concatenation of string literals as well as a
4081 single string literal for pragma arguments.
4082
4083 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
4084
4085 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
4086 written for append case.
4087
4088 * frontend.adb: Changes to avoid checking max line length in config
4089 pragma files.
4090
4091 * g-os_lib.ads: Minor reformatting
4092
4093 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
4094 wrong in any case. Instead use standard value. Noticed during code
4095 reading.
4096
4097 * opt.ads (Max_Line_Length): New field, used to implement removal of
4098 limitation on length of lines when scanning config pragma files.
4099
4100 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
4101 makeutl.ads, makeutl.adb: Minor reformatting
4102
4103 * scn.adb: Do not check line length while scanning config pragma files
4104 Do not check line length while scanning out license information
4105
4106 * scng.adb: Changes to avoid line length checks while parsing config
4107 pragma files.
4108
41092004-05-10 GNAT Script <nobody@gnat.com>
4110
4111 * Make-lang.in: Makefile automatically updated
4112
48664302
AC
41132004-05-05 Arnaud Charlet <charlet@act-europe.fr>
4114
4115 * osint.adb (Find_Program_Name): Fix handling of VMS version
4116 number.
4117
aa720a54
AC
41182004-05-05 Emmanuel Briot <briot@act-europe.fr>
4119
4120 * g-os_lib.ads (Invalid_Time): New constant
4121
4122 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
4123 return OS_Time instead of time_t to match what is imported by Ada.
4124 Now return -1 if the file doesn't exist, instead of a random value
4125
41262004-05-05 Robert Dewar <dewar@gnat.com>
4127
4128 * usage.adb: Add line for -gnatR?s switch
4129
4130 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
4131
4132 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
4133 and for Match (Data_First, Data_last)
4134
4135 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
4136 written when we are dealing with multi-unit files.
4137
41382004-05-05 Jerome Guitton <guitton@act-europe.fr>
4139
4140 * Makefile.in: Remove unused targets and variables.
4141
41422004-05-05 Vincent Celier <celier@gnat.com>
4143
4144 * switch-m.adb: New gnatmake switch -eI
4145
4146 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
4147 of new gnatmake switch -eInnn.
4148
4149 * makegpr.adb: Take into account new parameters Index and Src_Index in
4150 Prj.Util.
4151
4152 * clean.adb: Implement support for multi-unit sources, including new
4153 switch -i.
4154
4155 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
4156 Src_Index.
4157
4158 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
4159 (Extract_From_Q): New out parameter Index
4160 (Mark, Is_Marked): Subprograms moved to Makeutl
4161 (Switches_Of): New parameter Source_Index
4162 (Add_Switch): New parameter Index
4163 (Check): New parameter Source_Index
4164 (Collect_Arguments): New parameter Source_Index
4165 (Collect_Arguments_And_Compile): New parameter Source_Index
4166 (Compile): New parameter Source_Index
4167 Put subprograms in alphabetical order
4168 Add support for multi-source sources, including in project files.
4169
4170 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
4171 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
4172 Make.
4173
4174 * makeusg.adb: New gnatmake switch -eInnn
4175
4176 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
4177 Prj.Util.Value_Of.
4178
4179 * opt.ads (Main_Index): New variable, defaulted to 0.
4180
4181 * osint.ads, osinte.adb (Add_File): New parameter Index
4182 (Current_Source_Index): New function
4183
4184 * prj.adb: Take into account new components Index and Src_Index
4185
4186 * prj.ads (String_Element): New component Index
4187 (Variable_Value): New component Index
4188 (Array_Element): New component Src_Index
4189
4190 * prj-attr.adb: Indicate that optional index may be specified for
4191 attributes Main, Executable, Spec, Body and some of Switches.
4192
4193 * prj-attr.ads (Attribute_Kind): New values for optional indexes
4194 (Attribute_Record): New component Optional_Index
4195
4196 * prj-com.ads (File_Name_Data): New component Index
4197
4198 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
4199
4200 * prj-env.adb (Put): Output optional index
4201
4202 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
4203 attributes Spec and Body.
4204
4205 * prj-nmsc.adb: Process optional indexes
4206
4207 * prj-pp.adb: Ouput "at" for optional indexes
4208
4209 * prj-proc.adb: Take into account optional indexes
4210
4211 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
4212 Optional_Index. For string literal,
4213 process optional index when Optional_Index is True.
4214 (Parse_Expresion): New Boolean parameter Optional_Index
4215
4216 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
4217 (Set_Source_Index_Of): New procedure
4218
4219 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
4220 index.
4221
4222 * prj-util.ads (Executable_Of): New parameter Index
4223 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
4224 New parameter Src_Index, defaulted to 0.
4225
42262004-05-05 Ed Schonberg <schonberg@gnat.com>
4227
4228 PR ada/15257
4229 * sem_ch3.adb (Access_Definition): If this is an access parameter
4230 whose designated type is imported through a limited_with clause, do
4231 not add the enclosing subprogram to the list of private dependents of
4232 the type.
4233
42342004-05-05 Ed Schonberg <schonberg@gnat.com>
4235
4236 PR ada/15258
4237 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
4238 a limited_with clause, and the other is its non-limited view.
4239
42402004-05-05 Thomas Quinot <quinot@act-europe.fr>
4241
4242 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
4243
90afe2c9 4244 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
aa720a54
AC
4245 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
4246 Stand.Boolean_Literals to produce references to entities
4247 Standard_False and Standard_True from compile-time computed boolean
4248 values.
4249
4250 * stand.ads (Boolean_Literals): New variable, provides the entity
4251 values for False and True, for use by the expander.
4252
42532004-05-05 Doug Rupp <rupp@gnat.com>
4254
4255 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
4256 5vinmaop.adb: Unchecked convert Short_Address vice Address
4257
4258 * adaint.c, raise.c: Caste CRTL function return value
4259 to avoid gcc error on 32/64 bit IVMS.
4260
4261 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
4262 target = IA64/VMS.
4263
4264 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
4265
4266 * 5qsystem.ads (Address): Declare as Long_Integer
4267 (Short_Address): Declare as 32 bit subtype of Address
4268 Declare abstract address operations to avoid gratuitous ambiguities.
4269
42702004-05-05 Jose Ruiz <ruiz@act-europe.fr>
4271
4272 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
4273 instead of the old Boolean_Entry_Barriers.
4274 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
4275
42762004-05-05 GNAT Script <nobody@gnat.com>
4277
4278 * Make-lang.in: Makefile automatically updated
4279
1ab2888d
AC
42802004-05-03 Arnaud Charlet <charlet@act-europe.fr>
4281
4282 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
4283
9f4fd324
AC
42842004-05-03 Olivier Hainque <hainque@act-europe.fr>
4285
4286 PR ada/15152
4287
4288 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
4289 alone. Replacing object references by literals is inappropriate in a
4290 so low level context.
4291
42922004-05-03 Arnaud Charlet <charlet@act-europe.fr>
4293
4294 * a-exexpr.adb: Add comments
4295
42962004-05-03 Joel Brobecker <brobecker@gnat.com>
4297
4298 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
4299 declare the Ancestor_Tags array in Type_Specific_Data with a small size
4300 without risking a bounds check error when accessing one of its
4301 components.
4302 (Type_Specific_Data): Define Ancestor_Tags as a small array.
4303 This prevents us from hitting a limitation during the debug info
4304 generation when using stabs.
4305
4306 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
4307 small array.
4308 This prevents us from hitting a limitation during the debug info
4309 generation when using stabs.
4310
43112004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
4312
4313 lang-specs.h: Remove -gnatz* from specs.
4314
43152004-05-03 Vincent Celier <celier@gnat.com>
4316
4317 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
4318
4319 * Make-lang.in, Makefile.in: Add gprmake
4320
43212004-05-03 Thomas Quinot <quinot@act-europe.fr>
4322
4323 * sem_aggr.adb: Fix typo in comment.
4324
43252004-05-03 Robert Dewar <dewar@gnat.com>
4326
4327 * make.adb: Minor reformatting
4328
4329 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
4330
4331 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
4332 so that it works when address is not a private type.
4333
4334 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
4335 properly with rewritten unchecked conversions. This prevents
4336 order-of-elaboration issues that can otherwise arise.
4337 (Minimum_Size): Don't check size of access types under VMS
4338
4339 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
4340 interpretations of integer literals as type System.Address.
4341
4342 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
4343 (Is_Descendent_Of): New function
4344
43452004-05-03 Jose Ruiz <ruiz@act-europe.fr>
4346
4347 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
4348 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
4349 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
4350
4351 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
4352 of the old Max_Entry_Queue_Depth.
4353
4354 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
4355 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
4356 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
4357
4358 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
4359 New entry for proper handling of Max_Entry_Queue_Depth.
4360 New entry for proper handling of No_Dynamic_Interrupts.
4361
4362 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
4363 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
4364 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
4365 the GNAT specific restriction Max_Entry_Queue_Depth.
4366 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
4367 the GNAT specific restriction No_Dynamic_Interrupts.
4368
4369 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
4370 instead of the old Boolean_Entry_Barriers.
4371 Use the new restriction No_Dynamic_Attachment instead of the old
4372 No_Dynamic_Interrupts.
4373
4374 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
4375 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
4376
4377 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
4378 of the old Max_Entry_Queue_Depth.
4379
43802004-05-03 GNAT Script <nobody@gnat.com>
4381
4382 * Make-lang.in: Makefile automatically updated
4383
d935a36e
AC
43842004-04-29 Ed Schonberg <schonberg@gnat.com>
4385
4386 * checks.adb (Enable_Range_Check): If the prefix of an index component
4387 is an access to an unconstrained array, perform check unconditionally.
4388
43892004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4390
4391 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
4392 Component_Clause.
4393
43942004-04-29 Olivier Hainque <hainque@act-europe.fr>
4395
4396 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
4397 alternate stack setting. There was no support for the tasking cases
4398 and the changes eventually caused a number of side-effect failures in
4399 the non-tasking case too.
4400
44012004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
4402
4403 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
4404 -gnats is passed.
4405
44062004-04-29 Vincent Celier <celier@gnat.com>
4407
4408 * make.adb (Gnatmake): Increase max size of argument array for
4409 gnatbind for the potential addition of -F.
4410 If there are Stand-Alone Library projects, invoke gnatbind with -F to
4411 be sure that elaboration flags will be checked.
4412
4413 * switch-c.adb: Correct call to Scan_Pos for -gnateI
4414
44152004-04-29 Thomas Quinot <quinot@act-europe.fr>
4416
4417 * sem_warn.adb (Check_References): Move '<access-variable> may be
4418 null' warning out of under Warn_On_No_Value_Assigned.
4419
44202004-04-29 Ed Falis <falis@gnat.com>
4421
4422 * gnat_ugn.texi: Fixed texi error
4423
44242004-04-29 Robert Dewar <dewar@gnat.com>
4425
4426 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
4427 abstract operations if they come from predefined files.
4428
4429 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
4430 Dynamic, not RM).
4431
4432 * s-addope.adb: Correct obvious error in mod function
4433
44342004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
4435
4436 * Makefile.in: Add target pairs for powerpc darwin*
4437 tasking support.
4438
4439 * a-intnam-darwin.ads, s-osinte-darwin.adb,
4440 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
4441
ea16c81b
UW
44422004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
4443
4444 * Makefile.in: Add target macro definitions for s390*-linux*.
4445 * system-linux-s390.ads: New file.
4446 * system-linux-s390x.ads: New file.
4447
f0e6f845
JM
44482004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
4449
4450 * gnat_ugn.texi: Correct argument to @setfilename.
4451
e8c2eedc
UW
44522004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
4453
4454 * a-exexpr.adb (Unwind_Word): New data type.
4455 (Unwind_Exception): Use it as type of Private1 and Private2.
4456
4457 * raise.c (db_action_for): Fix debug printf.
4458
f2c9e65a
AC
44592004-04-27 Ed Schonberg <schonberg@gnat.com>
4460
4461 * a-wtmoio.ads: Formal type must be a modular type, not a signed
4462 integer type.
4463
44642004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4465
4466 * decl.c (gnat_to_gnu_entity, case object): Call
4467 __builtin_update_setjmp_buf.
4468
4469 * gigi.h (update_setjmp_buf): Deleted.
4470 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
4471
4472 * misc.c: (update_setjmp_buf): Deleted.
4473
4474 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
4475 around block of RTL.
4476
4477 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
4478
35b7fa6a
AC
44792004-04-26 Thomas Quinot <quinot@act-europe.fr>
4480
4481 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
4482 subprogram for which no pragma All_Calls_Remote applies, store the
4483 address of the real subprogram in the underlying record type, so local
4484 dereferences do not go through the PCS.
4485
44862004-04-26 Robert Dewar <dewar@gnat.com>
4487
4488 * i-c.ads: Add some type qualifications to avoid ambiguities when
4489 compiling with s-auxdec.ads and a non-private address type.
4490
44912004-04-26 Arnaud Charlet <charlet@act-europe.fr>
4492
4493 * Makefile.rtl: Fix error in previous check-in:
4494 Add s-addope.o to non tasking object list (rather than tasking object
4495 list).
4496
44972004-04-26 Javier Miranda <miranda@gnat.com>
4498
4499 * sem_aggr.adb: Fix typo in comments
4500 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
4501 Required to check the null-exclusion attribute.
4502
4503 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
4504 case of anonymous access types in record and array components. For a
4505 component definition the level is the same of the enclosing composite
4506 type.
4507
4508 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
4509 that are anonymous access types the level of accessibility depends on
4510 the enclosing type declaration. In order to have this information, set
4511 the scope of the anonymous access type to the enclosing record type
4512 declaration.
4513 (Array_Type_Declaration): In case of components that are anonymous
4514 access types the level of accessibility depends on the enclosing type
4515 declaration. In order to have this information, set the scope of the
4516 anonymous access type to the enclosing array type declaration.
4517
4518 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
4519 access type.
4520
4521 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
4522 renaming of anonymous access-to-constant types allowed if and only if
4523 the renamed object is access-to-constant.
4524
4525 * sem_util.adb (Type_Access_Level): In case of anonymous access types
4526 that are component_definition or discriminants of a nonlimited type,
4527 the level is the same as that of the enclosing component type.
4528
45292004-04-26 Sergey Rybin <rybin@act-europe.fr>
4530
4531 * sem_elim.adb: Some minor code reorganization from code reading. Fix
4532 misprint in the function name (File_Name_Match).
4533
5a944040
LG
45342004-04-23 Laurent GUERBY <laurent@guerby.net>
4535
90afe2c9 4536 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
5a944040 4537 install.
90afe2c9 4538
d0fd1344
RO
45392004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4540
4541 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
4542
cc4f0de1
AC
45432004-04-23 Emmanuel Briot <briot@act-europe.fr>
4544
4545 * adaint.c (__gnat_try_lock): No longer requires that the parent
4546 directory be writable, the directory itself is enough.
4547 (gnat_is_absolute_path): Change profile, so that the call from
4548 GNAT.OS_Lib can be made more efficient.
4549
4550 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
4551 from GNAT.OS_Lib can be made more efficient.
4552
4553 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
4554 one copy of the file name. Found by code reading.
4555
45562004-04-23 Vincent Celier <celier@gnat.com>
4557
4558 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
4559 Correct documentation on gnatmake switches transmitted to the compiler
4560
4561 * ali.ads: Minor comment fix
4562
45632004-04-23 Javier Miranda <miranda@gnat.com>
4564
4565 * sem_ch6.adb: (Confirming Types): Code cleanup
4566
4567 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
4568 subprogram types: E_Anonymous_Access_Subprogram_Type and
4569 E_Anonymous_Access_Protected_Subprogram_Type.
4570
45712004-04-23 Thomas Quinot <quinot@act-europe.fr>
4572
4573 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
4574 whether a pragma All_Calls_Remote applies to the subprogram on which
4575 'Access is taken.
4576 No functional change is introduced by this revision; the new parameter
4577 will be used to allow calls to local RCI subprograms to be optimized
4578 to not use the PCS in the case where no pragma All_Calls_Remote applies,
4579 as is already done in the PolyORB implementation of the DSA.
4580
4581 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
4582 whether a pragma All_Calls_Remote applies to the subprogram on which
4583 'Access is taken.
4584 No functional change is introduced by this revision; the new parameter
4585 will be used to allow calls to local RCI subprograms to be optimized
4586 to not use the PCS in the case where no pragma All_Calls_Remote applies,
4587 as is already done in the PolyORB implementation of the DSA.
4588
45892004-04-23 Robert Dewar <dewar@gnat.com>
4590
4591 * Makefile.rtl: Add entry for s-addope.o in run time library list
4592 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
4593 * s-addope.ads, s-addope.adb: New files.
4594
90afe2c9
ZW
4595 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
4596 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
cc4f0de1
AC
4597 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
4598 System.Address to be non-private and signed.
4599
4600 * sem_elim.adb: Minor reformatting (fairly extensive)
4601 Some minor code reorganization from code reading
4602 Add a couple of ??? comments
4603
46042004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4605
4606 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
90afe2c9 4607 (tree_transform, case N_If_Statement): Remove non-determinism.
cc4f0de1
AC
4608
4609 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
4610
46112004-04-23 Sergey Rybin <rybin@act-europe.fr>
4612
4613 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
4614 Eliminate' section.
4615
4616 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
4617 no longer used as a parameter name for Eliminate pragma).
4618
78bad775
LG
46192004-04-22 Laurent GUERBY <laurent@guerby.net>
4620
4621 PR optimization/14984
4622 PR optimization/14985
4623 * trans.c (gigi): Fix non determinism leading to bootstrap
4624 comparison failures.
4625
af4b9434
AC
46262004-04-21 Pascal Obry <obry@gnat.com>
4627
4628 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
4629 passed to spawnvp() to properly handle program pathname with spaces on
4630 Win32.
4631
46322004-04-21 Emmanuel Briot <briot@act-europe.fr>
4633
4634 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
4635 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
4636 unlocked in case of exceptions.
4637
46382004-04-21 Joel Brobecker <brobecker@gnat.com>
4639
4640 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
4641 This function does not exist anymore.
4642
46432004-04-21 Thomas Quinot <quinot@act-europe.fr>
4644
4645 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
4646
4647 * link.c: Move variables to the __gnat name space.
4648
4649 * Makefile.in: list link.o explicitly when needed.
4650
4651 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
4652
46532004-04-21 Javier Miranda <miranda@gnat.com>
4654
4655 * einfo.adb (Original_Access_Type): New subprogram
4656 (Set_Original_Access_Type): New subprogram
4657 (Write_Field21_Name): Write the name of the new field
4658
4659 * einfo.ads (Original_Access_Type): New field present in access to
4660 subprogram types.
4661 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
4662 E_Anonymous_Access_Protected_Subprogram_Type.
4663
4664 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
4665 subprogram types.
4666
4667 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
4668 to anonymous access to subprogram types.
4669
4670 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
4671 to subprogram types.
4672
4673 * sem_ch3.adb (Access_Definition): Complete decoration of entities
4674 corresponding to anonymous access to subprogram types.
4675 (Analyze_Component_Declaration): Add new actual to the call to
4676 subprogram replace_anonymous_access_to_protected_subprogram.
4677 (Array_Type_Declaration): Add new actual to the call to subprogram
4678 replace_anonymous_access_to_protected_subprogram.
4679 (Process_Discriminants): Add new actual to the call to subprogram
4680 replace_anonymous_access_to_protected_subprogram.
4681 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
4682
4683 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
4684 formal.
4685
4686 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
4687 access to subprogram types.
4688
4689 * sem_util.adb (Has_Declarations): Addition of package_specification
4690 nodes.
4691
46922004-04-21 Ed Schonberg <schonberg@gnat.com>
4693
4694 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
4695 inlined flags to renamed entity only if in current unit.
4696
46972004-04-21 Thomas Quinot <quinot@act-europe.fr>
4698
4699 * s-parint.ads: Add DSA implementation marker.
4700
4701 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
4702 value of System.Partition_Interface.DSA_Implementation to determine
4703 what version of the distributed systems annex is available (no
4704 implementation, GLADE, or PolyORB).
4705
47062004-04-21 Joel Brobecker <brobecker@gnat.com>
4707
4708 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
4709
47102004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4711
4712 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
4713 with new type if alias sets differ.
4714 Fixes ACATS c41103b.
4715
47162004-04-21 Vincent Celier <celier@gnat.com>
4717
4718 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
4719 Add array Lang_Args for the language specific compiling argument
4720 switches.
4721
4722 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
4723
47242004-04-21 Sergey Rybin <rybin@act-europe.fr>
4725
4726 * gnat_rm.texi: Update the descripton of the Eliminate pragma
4727 according to the recent changes in the format of the parameters of the
4728 pragma (replacing Homonym_Number with Source_Location).
4729
7324bf49
AC
47302004-04-19 Arnaud Charlet <charlet@act-europe.fr>
4731
4732 * 5isystem.ads: Removed, unused.
4733
4734 * gnat_rm.texi: Redo 1.13 change.
4735
47362004-04-19 Robert Dewar <dewar@gnat.com>
4737
4738 * s-stoele.ads: Clean up definition of Storage_Offset (the new
4739 definition is cleaner, avoids the kludge of explicit Standard operator
4740 references, and also is consistent with a visible System.Address with
4741 no visible operations.
4742
4743 * s-geveop.adb: Add declarations to avoid assumption of visible
4744 operations on type System.Address (since these might not be available
4745 if Address is a non-private type for which the operations
4746 are made abstract).
4747
4748 * sem_eval.adb: Minor reformatting
4749
4750 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
4751 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
4752 reformatting (new function spec format).
4753
4754 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
4755 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
4756 s-caun64.adb: Add declarations to avoid assumption of visible
4757 operations on type System.Address (since these might not be available
4758 if Address is a non-private type for which the operations are made
4759 abstract).
4760
4761 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
4762
4763 * exp_intr.adb: Minor comment update
4764
4765 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
4766
4767 * 5omastop.adb: Add declarations to avoid assumption of visible
4768 operations on type System.Address (since these might not be available
4769 if Address is a non-private type for which the operations
4770 are made abstract).
4771
47722004-04-19 Vincent Celier <celier@gnat.com>
4773
4774 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
4775
4776 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
4777 defaulted to Ada.
4778
4779 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
4780 defaulted to Ada.
4781 Call Check with Process_Languages.
4782 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
4783 with Process_Languages.
4784 (Recursive_Check): New Boolean parameter Process_Languages. Call
4785 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
4786 Process_Languages.
4787
4788 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
4789
4790 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
4791 parameter Ada_Main, defaulted to True.
4792 Check for Ada specific characteristics only when Ada_Main is True.
4793
4794 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
4795
4796 * prj.adb: (Project_Empty): Add new Project_Data components.
4797
4798 * prj.ads: New types and tables for non Ada languages.
4799 (Project_Data): New components Languages, Impl_Suffixes,
4800 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
4801 Include_Path, Include_Data_Set.
4802
4803 * prj-env.ads, prj-env.adb: Minor reformatting
4804
4805 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
4806 Put subprograms in alphabetical order
4807
4808 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
4809 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
4810 Opt.Follow_Links.
4811
4812 * mlib-prj.adb: Back out modification in last version, as they are
4813 incorrect.
4814 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
4815
4816 * make.adb: (Mains): Moved to package Makeutl
4817 (Linker_Opts): Moved to package Makeutl
4818 (Is_External_Assignment): Moved to package Makeutl
4819 (Test_If_Relative_Path): Moved to package Makeutl
4820 (Gnatmake): Move sorting of linker options to function
4821 Makeutl.Linker_Options_Switches.
4822
8f9df7d8
VC
4823 * makeutl.ads, makeutl.adb: New files.
4824
7324bf49
AC
4825 * Makefile.in: Add makeutl.o to the object files for gnatmake
4826
4827 * makeusg.adb: Add line for new switch -eL.
4828
4829 * gnatls.adb (Image): New function.
4830 (Output_Unit): If in verbose mode, output the list of restrictions
4831 specified by pragmas Restrictions.
4832
4833 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
4834 Text_IO.
4835
4836 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
4837 needed, to put it in the range 1970 (included) - 2026 (excluded).
4838 (Time_Of): Do not shift Unix_Min_Year (1970).
4839 Shift the date by multiple of 56 years, if needed, to put it in the
4840 range 1970 (included) - 2026 (excluded).
4841
4842 * adaint.h, adaint.c (__gnat_set_executable): New function.
4843
48442004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4845
4846 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
4847 and pop GC context.
4848 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
4849 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
4850 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
4851 (tree_transform, case N_Code_Statement): Likewise.
4852 (gnat_expand_stmt, case LABEL_STMT): Don't look at
4853 LABEL_STMT_FIRST_IN_EH.
4854 (gnat_expand_stmt, case ASM_STMT): New case.
4855
4856 * utils2.c (build_unary_op): Properly set TREE_READONLY of
4857 UNCONSTRAINED_ARRAY_REF.
4858
4859 * utils.c (poplevel): Temporarily push/pop GC context around inline
4860 function expansion.
4861
4862 * decl.c (maybe_variable): Properly set TREE_READONLY of
4863 UNCONSTRAINED_ARRAY_REF.
4864 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
4865
4866 * ada-tree.def: (ASM_STMT): New.
4867
4868 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
4869 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
4870 ASM_STMT_INPUT): New.
4871 (ASM_STMT_CLOBBER): Likewise.
4872
48732004-04-19 Thomas Quinot <quinot@act-europe.fr>
4874
4875 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
4876 general rcheck mechanism to raise Program_Error for E.4(18), instead
4877 of a custom raiser in System.Partition_Interface.
4878 Part of general cleanup work before PolyORB integration.
4879
4880 * snames.ads, snames.adb: Add new runtime library entities and names
4881 for PolyORB DSA.
4882
4883 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
4884 exp_dist.
4885 (Build_Subprogram_Id): New subprogram provided by exp_dist
4886 Code reorganisation in preparation for PolyORB integration.
4887
4888 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
4889 exp_dist.
4890 (Build_Subprogram_Id): New subprogram provided by exp_dist
4891
4892 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
4893 actual parameter types for call to dereference of an
4894 access-to-subprogram type.
4895
4896 * rtsfind.ads: Add new runtime library entities and names for PolyORB
4897 DSA.
4898
4899 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
4900 instead, which has the same behaviour here since we never pass it a
4901 NULL pointer.
4902
4903 * link.c (run_path_option, Solaris case): Use -Wl, as for other
4904 platforms.
4905
4906 * Makefile.in: adjust object file lists for gnatlink and gnatmake
4907 to account for new dependency upon Interfaces.C.Strings + link.o
4908 For x86 FreeBSD, use 86numaux.
4909
4910 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
4911 from Mlib.Tgt to Mlib.
4912
4913 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
4914 target-independent.
4915
4916 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
4917 target-specific versions of this subprogram, now implemented as a
4918 target-independent function in Mlib.
4919
4920 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
4921 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
4922 (Linker_Library_Path_Option): Remove target-specific versions of this
4923 subprogram, now implemented as a target-independent function in Mlib.
4924
4925 * atree.adb: (Allocate_Initialize_Node): New subprogram.
4926 Factors out node table slots allocation.
4927 (Fix_Parents): New subprogram.
4928 Encapsulate the pattern of fixing up parent pointers for syntactic
4929 children of a rewritten node.
4930 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
4931 (Rewrite): Use New_Copy when creating saved copy of original node.
4932 (Replace): Use Copy_Node to copy nodes.
4933
49342004-04-19 Javier Miranda <miranda@gnat.com>
4935
4936 * sprint.adb (Sprint_Node_Actual): Give support to the new
4937 Access_To_Subprogram node available in Access_Definition nodes. In
4938 addition, give support to the AI-231 node fields: null-exclusion,
4939 all-present, constant-present.
4940
4941 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
4942
90afe2c9 4943 * sinfo.ads, sinfo.adb:
7324bf49
AC
4944 New field Access_To_Subprogram_Definition in Access_Definition nodes
4945
4946 * sem_ch6.adb (Process_Formals): Move here the code that creates and
4947 decorates internal subtype declaration corresponding to the
4948 null-excluding formal. This code was previously in Set_Actual_Subtypes.
4949 In addition, carry out some code cleanup on this code. In case of
4950 access to protected subprogram call
4951 Replace_Anonymous_Access_To_Protected_Subprogram.
4952 (Set_Actual_Subtypes): Code cleanup.
4953
4954 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
4955 Find_Type in case of anonymous access renamings. Add warning in case of
4956 null-excluding attribute used in anonymous access renaming.
4957
4958 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
4959 subprogram
4960
4961 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
4962 subprogram.
4963 (Access_Definition): In case of anonymous access to subprograms call
4964 the corresponding semantic routine to decorate the node.
4965 (Access_Subprogram_Declaration): Addition of some comments indicating
4966 some code that probably should be added here. Detected by comparison
4967 with the access_definition subprogram.
4968 (Analyze_Component_Declaration): In case of access to protected
4969 subprogram call Replace_Anonymous_Access_To_Protected.
4970 (Array_Type_Declaration): In case of access to protected subprogram call
4971 Replace_Anonymous_Access_To_Protected_Subprogram.
4972 (Process_Discriminants): In case of access to protected subprogram call
4973 Replace_Anonymous_Access_To_Protected_Subprogram.
4974
4975 * par.adb (P_Access_Definition): New formal that indicates if the
4976 null-exclusion part was present.
4977 (P_Access_Type_Definition): New formal that indicates if the caller has
4978 already parsed the null-excluding part.
4979
4980 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
4981 (P_Identifier_Declarations): Code cleanup and give support to renamings
4982 of anonymous access to subprogram types.
4983 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
4984 (P_Array_Type_Definition): Give support to AI-254.
4985 (P_Component_Items): Give support to AI-254.
4986 (P_Access_Definition): New formal that indicates if the header was
4987 already parsed by the caller.
4988 (P_Access_Type_Definition): New formal that indicates if the caller has
4989 already parsed the null-excluding part.
4990
4991 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
4992 call to P_Access_Definition.
4993
49942004-04-19 Geert Bosch <bosch@gnat.com>
4995
4996 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
4997 the delicate semantics of floating-point to integer conversion.
4998 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
4999
5000 * eval_fat.adb (Machine_Mantissa): Moved to spec.
5001 (Machine_Radix): New function.
5002
5003 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
5004 conversion checks.
5005 (Machine_Radix): New function also for use in conversion checks.
5006
50072004-04-19 Ed Schonberg <schonberg@gnat.com>
5008
5009 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
5010
5011 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
5012 to decorate the access-to-protected subprogram and the equivalent type.
5013
5014 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
5015 to anonymous access to subprogram types.
5016
5017 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
5018 constant-folding, for legality checks in contexts that require an RM
5019 static expression.
5020
5021 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
5022 temporary but stack checking is not enabled, increment serial number
5023 to so that symbol generation is consistent with and without stack
5024 checking.
5025
5026 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
5027 independent on whether stack checking is enabled, caller must check
5028 the corresponding flag.
5029
5030 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
5031 range checks.
5032 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
5033 parent if it has discriminants.
5034 (Build_Derived_Private_Type): Constructed full view does
5035 not come from source.
5036 (Process_Discriminants): Default discriminants on a tagged type are
5037 legal if this is the internal completion of a private untagged
5038 derivation.
5039
5040 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
5041 no constraint checks, because it corresponds to an existing object.
5042
5043 * sem_prag.adb (Process_Convention): Pragma applies
5044 only to subprograms in the same declarative part, i.e. the same unit,
5045 not the same scope.
5046
5047 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
5048 ignore type mismatch on a numeric conversion if expression comes from
5049 expansion.
5050
50512004-04-19 Sergey Rybin <rybin@act-europe.fr>
5052
5053 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
5054 Homonym_Number parameter, add processing for Source_Location parameter
5055 corresponding.
5056 (Check_Eliminated): Remove the check for homonym numbers, add the check
5057 for source location traces.
5058
5059 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
5060 with Arg_Source_Location corresponding to the changes in the format of
5061 the pragma.
5062
5063 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
5064 Eliminate pragma corresponding to the changes in the format of the
5065 pragma: Homonym_Number is replaced with Source_Location, two ways of
5066 distinguishing homonyms are mutially-exclusive.
5067
50682004-04-19 Joel Brobecker <brobecker@gnat.com>
5069
5070 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
5071
5072 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
5073 No_Dollar_In_Label, no longer necessary, as it is always True.
5074 (Strip_Suffixes): Likewise.
5075
50762004-04-19 Gary Dismukes <dismukes@gnat.com>
5077
5078 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
5079 modulus for compatibility with size clause on targets with 16-bit
5080 Integer.
5081
5082 * layout.adb (Discrimify): In the case of private types, set Vtyp to
5083 full type to fix type mismatches on calls to size functions for
5084 discriminant-dependent array components.
5085
50862004-04-19 Jerome Guitton <guitton@act-europe.fr>
5087
5088 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
5089 lib.
5090
50912004-04-19 Pascal Obry <obry@gnat.com>
5092
5093 * mdll-utl.adb (Locate): New version is idempotent.
5094
50952004-04-17 Laurent Guerby <laurent@guerby.net>
fa795c69
LG
5096
5097 PR ada/14988 (partial)
5098 * impunit.adb: Fix typo.
90afe2c9 5099
cce0244b
NN
51002004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
5101
5102 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
5103 and install-rts-cert targets. Remove all gnatlib and gnattools
5104 targets and all other rts-* targets (moved to libada). Remove (now)
5105 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
5106 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
5107
af152989
AC
51082004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5109
5110 * trans.c (tree_transform): Shortcut returning error_mark_node for
5111 statements in annotate_only_mode.
5112 (tree_transform, case N_Label, case N_Return_Statement,
5113 N_Goto_Statement): Make statement tree instead of generating code.
5114 (tree_transform, case N_Assignment_Statement): No longer check
5115 type_annotate_only.
5116 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
5117 RETURN_STMT): New.
5118 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
5119 New fcns.
5120 (gnat_to_gnu): Collect any RTL generated and deal with it.
5121 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
5122 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
5123 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
5124
5125 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
5126
5127 * ada-tree.def (EXPR_STMT): Fix typo in name.
5128 (BLOCK_STMT, IF_STMT): New nodes.
5129
5130 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
5131 LABEL_STMT_FIRST_IN_EH): New macros.
5132 (RETURN_STMT_EXPR): Likewise.
5133
5134 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
5135 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
5136
51372004-04-08 Thomas Quinot <quinot@act-europe.fr>
5138
5139 * atree.ads: Correct documentation on extended nodes.
5140
5141 * link.c: Set run_path_option for FreeBSD.
5142
51432004-04-08 Vincent Celier <celier@gnat.com>
5144
5145 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
5146 one of the ALI file, do not link with DEC lib.
5147
5148 * par.adb Remove the last two characters ("%s" or "%b") when checking
5149 if a language defined unit may be recompiled.
5150
51512004-04-08 Ed Schonberg <schonberg@gnat.com>
5152
5153 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
5154 removal of abstract operation leaves no possible interpretation for
5155 expression.
5156
5157 * sem_eval.adb (Eval_Qualified_Expression): Use
5158 Set_Raises_Constraint_Error on node when needed, so that it does not
5159 get optimized away by subsequent optimizations.
5160
5161 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
5162 operands even when they are not wrapped in a type conversion.
5163
51642004-04-08 Olivier Hainque <hainque@act-europe.fr>
5165
5166 * sem_prag.adb (Set_Exported): Warn about making static as result of
5167 export only when the export is coming from source. This may be not
5168 be true e.g. on VMS where we expand export pragmas for exception codes
5169 together with imported or exported exceptions, and we don't want the
5170 user to be warned about something he didn't write.
5171
51722004-04-08 Thomas Quinot <quinot@act-europe.fr>
5173
5174 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
5175 duplication between normal entities and those declared as renamings.
5176 No functional change.
5177
90afe2c9 5178 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
af152989
AC
5179 inline functions returning an unconstrained result.
5180
51812004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
5182
5183 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
5184 conform to what other front-ends do.
5185
51862004-04-08 Doug Rupp <rupp@gnat.com>
5187
5188 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
5189 libraries.
5190
3984e89a
AC
51912004-04-06 Pascal Obry <obry@gnat.com>
5192
5193 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
5194
5195 * osint.adb (Program_Name): Do not look past a directory separator.
5196
51972004-04-06 Thomas Quinot <quinot@act-europe.fr>
5198
5199 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
5200
5201 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
5202 requirement for preserving a copy of the original assignment node.
5203
5204 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
5205
52062004-04-06 Olivier Hainque <hainque@act-europe.fr>
5207
5208 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
5209 when supported.
5210
52112004-04-06 Ed Schonberg <schonberg@gnat.com>
5212
5213 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
5214 operator calls in functional notation, and apply
5215 Universal_Interpretation to operands, not to their type.
5216
52172004-04-06 Robert Dewar <dewar@gnat.com>
5218
5219 * 5wdirval.adb: Minor reformatting
5220
52212004-04-06 Ed Falis <falis@gnat.com>
5222
5223 * gnat_rm.texi: Improve a reference to the GCC manual
5224
30c20106
AC
52252004-04-05 Vincent Celier <celier@gnat.com>
5226
5227 * adaint.h, adaint.c: Add function __gnat_named_file_length
5228
5229 * impunit.adb: Add Ada.Directories to the list
5230
5231 * Makefile.in: Add VMS and Windows versions of
5232 Ada.Directories.Validity package body.
5233
5234 * Makefile.rtl: Add a-direct and a-dirval
5235
5236 * mlib-tgt.ads: Minor comment update.
5237
5238 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
5239 a-direct.ads, a-direct.adb: New files.
5240
52412004-04-05 Vincent Celier <celier@gnat.com>
5242
5243 PR ada/13620
5244 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
5245 just to the compiler.
5246
52472004-04-05 Robert Dewar <dewar@gnat.com>
5248
5249 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
5250 returned string is 1.
5251
5252 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
5253
5254 * eval_fat.ads: Minor reformatting
5255
5256 * g-curexc.ads: Document that lower bound of returned string values
5257 is always one.
5258
5259 * gnatlink.adb: Add ??? comment for previous change
5260 (need to document why this is VMS specific)
5261
5262 * s-stoele.ads: Minor reformatting
5263
5264 * tbuild.ads: Minor reformatting throughout (new function specs)
5265
5266 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
5267 after WITH.
5268
5269 * scng.adb: Minor reformatting
5270
52712004-04-05 Geert Bosch <bosch@gnat.com>
5272
5273 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
5274 (Leading_Part): Still perform truncation to machine number if the
5275 specified radix_digits is greater or equal to machine_mantissa.
5276
52772004-04-05 Javier Miranda <miranda@gnat.com>
5278
5279 * par-ch3.adb: Complete documentation of previous change
5280 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
5281 (aliased must appear before constant).
5282
5283 * par-ch4.adb: Complete documentation of previous change.
5284
5285 * par-ch6.adb: Complete documentation of previous change.
5286
5287 * sinfo.ads: Fix typo in commment.
5288
52892004-04-05 Ed Schonberg <schonberg@gnat.com>
5290
5291 * sem_ch3.adb (Inherit_Components): If derived type is private and has
5292 stored discriminants, use its discriminants to constrain parent type,
5293 as is done for non-private derived record types.
5294
5295 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
5296 Ada 2005 AI-310: an abstract non-dispatching operation is not a
5297 candidate interpretation in an overloaded call.
5298
5299 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
5300 expression is Null and target type is not an access type (e.g. a
5301 non-private address type).
5302
53032004-04-05 Thomas Quinot <quinot@act-europe.fr>
5304
5305 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
5306 statement whose right-hand side is an inlined call, save a copy of the
5307 original assignment subtree to preserve enough consistency for
5308 Analyze_Assignment to proceed.
5309
5310 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
5311 complete assignment subtree which is now unnecessary, as the expansion
5312 of inlined call has been improved to preserve a consistent assignment
5313 tree. Note_Possible_Modification must be called only
5314 after checks have been applied, or else unnecessary checks will
5315 be generated.
5316
5317 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
5318 of explicit dereferences that do not Come_From_Source:
5319 - be selective on cases where we must go back to the dereferenced
5320 pointer (an assignment to an implicit dereference must not be
5321 recorded as modifying the pointer);
5322 - do not rely on Original_Node being present (Analyze_Assignment
5323 calls Note_Possible_Modification on a copied tree).
5324
5325 * sem_warn.adb (Check_References): When an unset reference to a pointer
5326 that is never assigned is encountered, prefer '<pointer> may be null'
5327 warning over '<pointer> is never assigned a value'.
5328
53292004-04-05 Ramon Fernandez <fernandez@gnat.com>
5330
5331 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
5332 the ABI.
5333
53342004-04-05 Olivier Hainque <hainque@act-europe.fr>
5335
5336 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
5337 libexc. We currently don't reference anything in this library and
5338 linking it in triggers linker warnings we don't want to see.
5339
5340 * init.c: Update comments.
5341
4f976745
RK
53422004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5343
5344 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
5345 * utils.c (create_field_decl): Likewise.
5346 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
5347
6da7d579
AC
53482004-04-02 Arnaud Charlet <charlet@act-europe.fr>
5349
5350 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
5351 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
5352 Add info directory entry and category.
5353
18c6ada9
JH
53542004-04-02 Jan Hubicka <jh@suse.cz>
5355
5356 * utils.c: Include function.h
5357 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
5358
7cd4527e
AC
53592004-04-01 Arnaud Charlet <charlet@act-europe.fr>
5360
5361 PR ada/14150
5362 * Make-lang.in: Clean up generation of documentation
5363
5364 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
5365
5366 * xgnatug.adb: Removed, replaced by xgnatugn.adb
5367
5368 * xgnatugn.adb: Replaces xgnatug.adb
5369
5370 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
5371
5372 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
5373
5374 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
5375 gnat_ug_wnt.texi: Removed.
5376
0c250f07
AC
53772004-04-01 Arnaud Charlet <charlet@act-europe.fr>
5378
5379 * utils2.c: Update copyright notice.
5380
6b6fcd3e
AC
53812004-04-01 Robert Dewar <dewar@gnat.com>
5382
5383 * checks.adb: Minor reformatting throughout
5384 Note that prev checkin added RM reference to alignment warning
5385
53862004-04-01 Ed Schonberg <schonberg@gnat.com>
5387
5388 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
5389 non-static when building aggregate for bit-packed array.
5390
5391 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
5392 function call that is itself the actual in a procedure call, build
5393 temporary for it.
5394
5395 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
5396 a string literal, create a temporary for it, constant folding only
5397 handles scalars here.
5398
53992004-04-01 Vincent Celier <celier@gnat.com>
5400
5401 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
5402 Error_Msg_SP): New empty procedures to instantiate the Scanner.
5403 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
5404 tokens.
5405 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
5406 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
5407 and get the checksum.
5408
5409 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
5410 already in the Q.
5411 Increase the Marking_Label at the end of the Multiple_Main_Loop,
5412 instead of at the beginning.
5413
5414 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
5415 directly.
5416 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
5417 on VMS.
5418
5419 * osint.ads (Multi_Unit_Index_Character): New Character global variable
5420
5421 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
5422 not '~' directly.
5423
5424 * par.adb: Remove test on file name to detect language defined units.
5425 Add test on unit name, after parsing, to detect language defined units
5426 that are not compiled with -gnatg (except System.RPC and its children)
5427
5428 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
5429 following units without style checking.
5430
5431 * switch-c.adb: Change -gnatC to -gnateI
5432
5433 * usage.adb: Document new switch -gnateInnn
5434
5435 * scng.adb (Accumulate_Token_Checksum): New procedure
5436 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
5437 word or literal number.
5438 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
5439 numbers.
5440
54412004-04-01 Thomas Quinot <quinot@act-europe.fr>
5442
5443 * a-tasatt.adb,
5444 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
5445 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
5446 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
5447 5vtpopde.adb: Add missing 'constant' keywords.
5448
54492004-04-01 Javier Miranda <miranda@gnat.com>
5450
5451 * par-ch4.adb: (P_Allocator): Code cleanup
5452
5453 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
5454 attribute.
5455
5456 * sinfo.ads: Complete documentation of previous change
5457
54582004-04-01 Pascal Obry <obry@gnat.com>
5459
5460 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
5461 only on VMS. This special handling was done because an old GNU/ld bug
5462 on Windows which has been fixed.
5463
54642004-04-01 GNAT Script <nobody@gnat.com>
5465
5466 * Make-lang.in: Makefile automatically updated
5467
8df83eae
RK
54682004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5469
5470 * decl.c (gnat_to_gnu_entity, make_type_from_size):
5471 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
5472 * trans.c (tree_transform, convert_with_check): Likewise.
5473 * utils.c (gnat_signed_or_unsigned_type): Likewise.
5474 (build_vms_descriptor, unchecked_convert): Likewise.
5475 * utils2.c (nonbinary_modular_operation): Likewise.
5476
2820d220
AC
54772004-03-29 Javier Miranda <miranda@gnat.com>
5478
5479 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
5480 (Install_Null_Excluding_Check): Local subprogram that determines whether
5481 an access node requires a runtime access check and if so inserts the
5482 appropriate run-time check.
5483 (Apply_Access_Check): Call Install_Null_Excluding check if required
5484 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
5485
5486 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
5487
5488 * einfo.ads: Fix typo in comment
5489
5490 * exp_ch3.adb (Build_Assignment): Generate conversion to the
5491 null-excluding type to force the corresponding run-time check.
5492 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
5493 type to force the corresponding run-time check.
5494
5495 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
5496 the null-excluding type to force the corresponding run-time check.
5497
5498 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
5499 case of access types unless they have the null-excluding attribute.
5500
5501 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
5502 part.
5503
5504 * exp_util.ads: Fix typo in comment
5505
5506 * par.adb (P_Null_Exclusion): New subprogram
5507 (P_Subtype_Indication): New formal that indicates if the null-excluding
5508 part has been scanned-out and it was present
5509
5510 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
5511
5512 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
5513 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
5514 type to force the corresponding run-time check
5515 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
5516 components
5517 (Resolve_Array_Aggregate): Carry out some static checks
5518 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
5519
5520 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
5521 attribute must be set only if specified by means of the null-excluding
5522 part. In addition, we must also propagate the access-constant attribute
5523 if present.
5524 (Access_Subprogram_Declaration, Access_Type_Declaration,
5525 Analyze_Component_Declaration, Analyze_Object_Declaration,
5526 Array_Type_Declaration, Process_Discriminants,
5527 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
5528 and carry out some static checks.
5529 (Build_Derived_Access_Type): Set the null-excluding attribute
5530 (Derived_Type_Declaration, Process_Subtype): Carry out some static
5531 checks.
5532
5533 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
5534
5535 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
5536
5537 * sem_ch6.adb (Process_Formals): Carry out some static checks.
5538 (Set_Actual_Subtypes): Generate null-excluding subtype if the
5539 null-excluding part was present; it is not required to be done here in
5540 case of anonymous access types.
5541 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
5542 value.
5543
5544 * sem_res.adb (Resolve_Actuals): Carry out some static check
5545 (Resolve_Null): Allow null in anonymous access
5546
5547 * sinfo.adb: New subprogram Null_Exclusion_Present
5548 All_Present and Constant_Present available on access_definition nodes
5549
5550 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
5551 object_declaration, derived_type_definition, component_definition,
5552 discriminant_specification, access_to_object_definition,
5553 access_function_definition, allocator, access_procedure_definition,
5554 access_definition, parameter_specification, All_Present and
5555 Constant_Present flags available on access_definition nodes.
5556
55572004-03-29 Robert Dewar <dewar@gnat.com>
5558
5559 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
5560 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
5561 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
5562 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
5563 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
5564 sem_prag.adb: Updates to handle multiple units/file
5565
5566 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
5567
5568 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
5569 sem_util.adb: Minor reformatting
5570
5571 * sem_ch12.adb: Add comment for previous change
5572
55732004-03-29 Laurent Pautet <pautet@act-europe.fr>
5574
5575 * osint.adb (Executable_Prefix): Set Exec_Name to the current
5576 executable name when not initialized. Otherwise, use its current value.
5577
5578 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
5579 initialize it to another executable name than the current one. This
5580 allows to configure paths for an executable name (gnatmake) different
5581 from the current one (gnatdist).
5582
55832004-03-29 Ed Schonberg <schonberg@gnat.com>
5584
5585 * exp_ch6.adb (Expand_Call): A call to a function declared in the
5586 current unit cannot be inlined if it appears in the body of a withed
5587 unit, to avoid order of elaboration problems in gigi.
5588
5589 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
5590 information for protected (wrapper) operation as well, to simplify gdb
5591 use.
5592
5593 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
5594 protected body, indicate that the entity for the generated spec comes
5595 from source, to ensure that references are properly generated for it.
5596 (Build_Body_To_Inline): Do not inline a function that returns a
5597 controlled type.
5598
5599 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
5600 apply convention to homonyms that are declared explicitly.
5601
5602 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
5603 that renames an equality operator and the operands are overloaded,
5604 resolve them with the declared formal types, before rewriting as an
5605 operator.
5606
56072004-03-29 GNAT Script <nobody@gnat.com>
5608
5609 * Make-lang.in: Makefile automatically updated
5610
6d11af89
AC
56112004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
5612
5613 * memtrack.adb: Log realloc calls, which are treated as free followed
5614 by alloc.
5615
56162004-03-25 Vincent Celier <celier@gnat.com>
5617
5618 * prj-makr.adb (Process_Directories): Detect when a file contains
5619 several units. Do not include such files in the config pragmas or
5620 in the naming scheme.
5621
5622 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
5623 Resolve links only when not in Trusted_Mode.
5624 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
5625 Do not resolve links for the display names.
5626
5627 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
5628 resolve links when computing the display names.
5629
56302004-03-25 Thomas Quinot <quinot@act-europe.fr>
5631
5632 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
5633 attribute reference does not denote a subtype, it can be any
5634 expression that has a classwide type, potentially after an implicit
5635 dereference. In particular, the prefix can be a view conversion for
5636 a classwide type (for which Is_Object_Reference holds), but it can
5637 also be a value conversion for an access-to-classwide type. In the
5638 latter case, there is an implicit dereference, and the original node
5639 for the prefix does not verify Is_Object_Reference.
5640
5641 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
5642 conversion of a discriminant-dependent component of a mutable object
5643 is one itself.
5644
56452004-03-25 Ed Schonberg <schonberg@gnat.com>
5646
5647 * freeze.adb (Freeze_Entity): When an inherited subprogram is
5648 inherited, has convention C, and has unconstrained array parameters,
5649 place the corresponding warning on the derived type declaration rather
5650 than the original subprogram.
5651
5652 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
5653 indication on renaming declaration, if formal has a box and actual
5654 is absent.
5655
5656 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
5657 determine whether to generate an implicit or explicit reference to
5658 the renamed entity.
5659
5660 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
5661 subprogram renaming comes from a defaulted formal subprogram in an
5662 instance.
5663
56642004-03-25 Gary Dismukes <dismukes@gnat.com>
5665
5666 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
5667 value expressions to ensure that calls within a component definition
5668 will be checked (since those are evaluated during the record type's
5669 elaboration).
5670
56712004-03-25 Arnaud Charlet <charlet@act-europe.fr>
5672
5673 * s-tpobop.adb: Code clean up:
5674 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
5675 code.
5676 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
5677
56782004-03-25 Jose Ruiz <ruiz@act-europe.fr>
5679
5680 * Makefile.in: Clean up in the ravenscar run time.
5681
22421b79
RK
56822004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5683
5684 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
5685 of No_Strict_Aliasing to build_pointer_type_for_mode.
5686 * utils.c (update_pointer_to): Walk pointer and ref chains.
5687
24105bab
AC
56882004-03-22 Cyrille Comar <comar@act-europe.fr>
5689
5690 * ali.ads: Fix Comment about Dynamic_Elab.
5691
5692 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
5693 Has_RACW, Is_Generic, etc.)
5694 (Output_Object, Gnatls): Take into account ALI files not attached to
5695 an object.
5696
56972004-03-22 Vincent Celier <celier@gnat.com>
5698
5699 * gprep.adb: Change all String_Access to Name_Id
5700 (Is_ASCII_Letter): new function
5701 (Double_File_Name_Buffer): New procedure
5702 (Preprocess_Infile_Name): New procedure
5703 (Process_Files): New procedure
5704 (Gnatprep): Check if output and input are existing directories.
5705 Call Process_Files to do the real job.
5706
57072004-03-22 Robert Dewar <dewar@gnat.com>
5708
5709 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
5710 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
5711
57122004-03-22 Sergey Rybin <rybin@act-europe.fr>
5713
5714 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
5715 case when the source contains only comments.
5716
57172004-03-22 Ed Schonberg <schonberg@gnat.com>
5718
5719 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
5720 declaration for a child subprogram body that acts as a spec, indicate
5721 that the entity in the declaration needs debugging information.
5722
5723 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
5724 full view if the subtype is created for a constrained record component;
5725 gigi has enough information to construct the record, and there is no
5726 place in the tree for the declaration.
5727
5728 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
5729 serial number for the dummy body that is built for analysis, to avoid
5730 inconsistencies in the generation of internal names when compiling
5731 with -gnatN.
5732
57332004-03-22 Thomas Quinot <quinot@act-europe.fr>
5734
5735 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
5736 object.
5737
57382004-03-22 GNAT Script <nobody@gnat.com>
5739
5740 * Make-lang.in: Makefile automatically updated
5741
6fce44af
RK
57422004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5743
5744 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
5745 * trans.c (tree_transform, emit_index_check): Likewise.
5746 * utils.c (build_template): Likewise.
5747 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
5748 (maybe_unconstrained_array, unchecked_convert): Likewise.
5749 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
5750 (build_unary_op): Likewise.
5751 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
5752 (fill_vms_descriptor): Likewise.
5753 (build_call_alloc_dealloc): Likewise.
5754 ALIGN is unsigned.
5755 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
5756
802f6d4b
JM
57572004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
5758
5759 PR other/14630
5760 * gnat_ug.texi: Add info directory category and entry.
5761 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
5762 gnat_ug_wnt.texi: Regenerate.
5763
30f3b32b
AC
57642004-03-19 Arnaud Charlet <charlet@act-europe.fr>
5765
5766 * ada-tree.h: Update copyright notice.
5767 Minor reformatting.
5768
57692004-03-19 Olivier Hainque <hainque@act-europe.fr>
5770
5771 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
5772 as regular exception objects and not as mere integers representing the
5773 condition code. The latter approach required some dynamics to mask off
5774 severity bits, which did not fit well into the GCC table based model.
5775 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
5776 exception data objects. We don't it and it would conflict with the other
5777 external symbol we have to generate for such exceptions.
5778
5779 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
5780 the special code for VMS exceptions, since these are now represented
5781 as regular exceptions objects.
5782
7548281d
RK
57832004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5784
5785 * decl.c (debug_no_type_hash): Remove.
5786 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
5787 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
5788
7324bf49 57892004-03-19 Laurent Guerby <laurent@guerby.net>
dbee7ab9 5790
90afe2c9 5791 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
dbee7ab9 5792 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
90afe2c9 5793
eb34af89
RK
57942004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5795
5796 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
5797 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
5798 (TYPE_RM_SIZE_INT): Directly use type.values.
5799 (TREE_LOOP_ID): Clean up check.
5800 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
5801 TYPE_VALUES, not TYPE_FIELDS.
5802 * trans.c (convert_with_check): Delay access of bounds of basetype
5803 until sure is numeric.
5804
a336eaca
AC
58052004-03-18 Arnaud Charlet <charlet@act-europe.fr>
5806
5807 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
5808
5809 Code clean up:
5810 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
5811 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
5812 Specific.Set instead of direct call to e.g pthread_setspecific.
5813
58142004-03-18 Thomas Quinot <quinot@act-europe.fr>
5815
5816 * adaint.c: Update comments.
5817
5818 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
5819 GNATLIB_SHARED for FreeBSD.
5820
58212004-03-18 Jose Ruiz <ruiz@act-europe.fr>
5822
5823 * init.c [VxWorks]: Do not fix the stack size for the environment task.
5824 When needed (stack checking) the stack size is retrieved
5825 from the VxWorks kernel.
5826
5827 * Makefile.in: Flag -nostdinc is required when building the run time
5828 for avoiding looking for files in the base compiler.
5829 Add the VxWorks specific version of the package body for
5830 System.Stack_checking.Operations (5zstchop.adb).
5831
5832 * Make-lang.in: Add the object file for
5833 System.Stack_Checking.Operations.
5834
5835 * Makefile.rtl: Add object file for the package
5836 System.Stack_Checking.Operations.
5837
5838 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
5839
5840 * s-stache.ads, s-stache.adb: Move the operations related to stack
5841 checking from this package to package System.Stack_Checking.Operations.
5842 This way, stack checking operations are only linked in the final
5843 executable when using the -fstack-check flag.
5844
58452004-03-18 Doug Rupp <rupp@gnat.com>
5846
5847 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
5848 Reorganize ifeq's.
5849
5850 * 5qsystem.ads, 5xcrtl.ads: New files.
5851
58522004-03-18 Vincent Celier <celier@gnat.com>
5853
5854 * prj.adb (Reset): Reset hash table Files_Htable
5855
5856 * prj-env.adb (Source_Paths, Object_Paths): New tables.
5857 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
5858 the procedures Add_To_Path_File.
5859 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
5860 making sure that each directory is present only once and, for object
5861 dirs, when a directory already present is added, the duplicate is
5862 removed and the directory is always put as the last in the table.
5863 Write the path files at the end of these accumulations.
5864
5865 * prj-nmsc.adb (Record_Source): Add source file name in hash table
5866 Files_Htable for all sources.
5867
5868 * prj-proc.adb (Process): Remove restrictions between not directly
5869 related extending projects.
5870
58712004-03-18 Emmanuel Briot <briot@act-europe.fr>
5872
5873 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
5874 (Find_Sources): Minor speed optimization.
5875
5876 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
5877 parameter Trusted_Mode.
5878
58792004-03-18 Sergey Rybin <rybin@act-europe.fr>
5880
5881 * scn.adb (Determine_License): Take into account a degenerated case
5882 when the source contains only comments.
5883
58842004-03-18 Ed Schonberg <schonberg@gnat.com>
5885
5886 * sem_warn.adb (Check_References): For a warning on a selected
5887 component that does not come from source, locate an uninitialized
5888 component of the record type to produce a more precise error message.
5889
e6f69614
AC
58902004-03-15 Jerome Guitton <guitton@act-europe.fr>
5891
5892 * 3zsoccon.ads: Fix multicast options.
5893
5894 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
5895 in the spec.
5896
58972004-03-15 Robert Dewar <dewar@gnat.com>
5898
5899 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
5900 pragma used for a private type.
5901
5902 * lib-xref.adb (Generate_Reference): Do not generate warning if
5903 reference is in a different unit from the pragma Unreferenced.
5904
5905 * 5vtpopde.adb: Minor reformatting
5906 Fix casing of To_Task_ID
5907
5908 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
5909 flag if we have an unchecked conversion to an access type in the same
5910 unit.
5911
59122004-03-15 Geert Bosch <bosch@gnat.com>
5913
5914 * a-ngcoty.adb (Modulus): In alternate formula for large real or
5915 imaginary parts, use Double precision throughout.
5916
5917 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
5918 we want to be able to compile run-time with -gnata for testing, but
5919 this may also be instantiated in user code that is compiled with -gnata.
5920
59212004-03-15 Olivier Hainque <hainque@act-europe.fr>
5922
5923 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
5924 codes. Having a separate type for this is useful to enforce consistency
5925 throughout the various run-time units.
5926 (Exception_Data): Use Exception_Code for Import_Code.
5927
5928 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
5929 Natural and Integer in various places.
5930 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
5931 with the severity bits masked off.
5932 (Register_VMS_Exception): Handle the additional exception data pointer
5933 argument.
5934
5935 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
5936 component, now reflected by an exported accessor.
5937 (is_handled_by): New routine to compute whether the propagated
5938 occurrence matches some handler choice specification. Extracted out of
5939 get_action_description_for, and expanded to take care of the VMS
5940 specifities.
5941 (get_action_description_for): Use is_handled_by instead of an explicit
5942 complex condition to decide if the current choice at hand catches the
5943 propagated occurrence.
5944
5945 * raise.h (Exception_Code): New type for C.
5946
5947 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
5948 System.Standard_Library.Exception_Code, to allow references from the
5949 pragma import/export expander.
5950
5951 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
5952 New accessors to allow easy access to GNAT exception data
5953 characteristics.
5954 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
5955 redundant Handled_By_Others component, helper for the personality
5956 routine which will now be able to call the appropriate exception data
5957 accessor instead.
5958
5959 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
5960 component of Standard_Exception_Type to be the closest possible to
5961 Exception_Code in System.Standard_Library, that we cannot get at this
5962 point. Expand a ??? comment to notify that this type node should
5963 probably be rewritten later on.
5964
5965 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
5966 registration call to include a pointer to the exception object in the
5967 arguments.
5968
5969 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
5970 instead of int and explicit bitmasks.
5971
59722004-03-15 Vincent Celier <celier@gnat.com>
5973
5974 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
5975 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
5976
5977 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
5978 longer needed now that it is in the spec of
5979 System.Tasking.Task_Attributes.
5980
5981 * adaint.h, adaint.c: (__gnat_create_output_file): New function
5982
5983 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
5984
5985 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
5986
5987 * make.adb (Gnatmake): Do not check the executable suffix; it is being
5988 taken care of in Scan_Make_Arg.
5989 (Scan_Make_Arg): Add the executable suffix only if the argument
5990 following -o, in canonical case, does not end with the executable
5991 suffix. When in verbose mode and executable file name does not end
5992 with executable suffix, output the executable name, in canonical case.
5993
5994 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
5995 to avoid warnings when instantiating Ada.Task_Attributes.
5996 Minor reformating.
5997
5998 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
5999 in the correct order.
6000
6001 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
6002 redirect standard output and error to a file for the invocation of the
6003 compiler, then read the file.
6004
6005 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
6006 directory, instead of the Value.
6007 (Find_Source_Dirs): Remove useless code & comments.
6008
60092004-03-15 Ed Schonberg <schonberg@gnat.com>
6010
6011 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
6012 tagged type is inherited, and the parent operation is not frozen yet,
6013 force generation of a freeze node for the inherited operation, so the
6014 corresponding dispatch entry is properly initialized.
6015 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
6016 when looking for user-defined equality operation.
6017
6018 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
6019 boolean when locating primitive equality of tagged component.
6020
6021 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
6022 bit-aligned field and the right-hand side a string literal, introduce
6023 a temporary before expanding assignment into a loop.
6024
6025 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
6026 priority in full, to ensure that any expanded subepxressions of it are
6027 elaborated in the scope of the init_proc.
6028
6029 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
6030 after object declaration, skipping over code that may have been
6031 generated for validity checks.
6032
6033 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
6034 discriminants, ignore the known discriminants of its full view, if
6035 any, to check legality.
6036
6037 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
6038 component if type has unknown discriminants.
6039 (Analyze_Private_Extension_Declaration): Discriminant constraint is
6040 null if type has unknown discriminants.
6041
6042 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
6043 for end label when present.
6044
6045 * s-fileio.adb (Open): When called with a C_Stream, use given name for
6046 temporary file, rather than an empty string.
6047
60482004-03-15 Ed Falis <falis@gnat.com>
6049
6050 * s-thread.adb: Removed, no longer used.
6051
60522004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6053
6054 * decl.c (target.h): Now include.
6055 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
6056 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
6057 (validate_size): For POINTER_TYPE, get smallest size permitted on
6058 machine.
6059
6060 * fe.h: Sort Einfo decls and add Set_Mechanism.
6061
6062 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
6063 (ada/decl.o): Depends on target.h.
6064
6065 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
6066 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
6067
60682004-03-15 Thomas Quinot <quinot@act-europe.fr>
6069
6070 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
6071
6072 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
6073 Insert_Dereference_Action when rewriting an implicit dereference into
6074 an explicit one, this will be taken care of during expansion of the
6075 explicit dereference.
6076 (Expand_N_Slice): Same. Always do the rewriting, even for the case
6077 of non-packed slices, since the dereference action generated by
6078 expansion of the explicit dereference is needed in any case.
6079 (Expand_N_Selected_Component): When rewriting an implicit dereference,
6080 analyze and resolve the rewritten explicit dereference so it is seen
6081 by the expander.
6082 (Insert_Dereference_Action): This procedure is now called only for the
6083 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
6084 dereferences that do not come from source (including explicit
6085 dereferences resulting from rewriting implicit ones), but do not
6086 recursively insert a check for the dereference nodes contained within
6087 the check.
6088 (Insert_Dereference_Action): Clarify and correct comment.
6089
e4c9c075
PB
60902004-03-08 Paolo Bonzini <bonzini@gnu.org>
6091
6092 PR ada/14131
6093 Move language detection to the top level.
6094 * config-lang.in: Build by default.
6095
8a6a52dc
AC
60962004-03-05 Robert Dewar <dewar@gnat.com>
6097
6098 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
6099
6100 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
6101 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
90afe2c9 6102 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
8a6a52dc
AC
6103 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
6104 unchecked conversion to spec to avoid warnings.
6105
6106 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
6107 to Task_ID
6108
6109 * 7stpopsp.adb: Correct casing in To_Task_ID call
6110
6111 * a-strsea.ads, a-strsea.adb: Minor reformatting
6112
6113 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
6114
6115 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
6116 Adjust Max_Msg_Length to be clearly large enough.
6117
6118 * fe.h: Define In_Same_Source_Unit
6119
6120 * osint.adb: Add pragma Warnings Off to suppress warnings
6121 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
6122 aliasing warnings.
6123
6124 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
6125
6126 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
6127
6128 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
6129
6130 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
6131
6132 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
6133
6134 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
6135 node. We now do generate them for gcc back end.
6136
6137 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
6138 warning.
6139
6140 * sinput-c.adb: Fix bad name in header.
6141 Add pragma Warnings Off to suppress aliasing warning.
6142
6143 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
6144
6145 * snames.h, snames.ads, snames.adb: Add entry for pragma
6146 No_Strict_Aliasing.
6147
61482004-03-05 Vincent Celier <celier@gnat.com>
6149
6150 * prj-com.ads: Add hash table Files_Htable to check when a file name
6151 is already a source of another project.
6152
6153 * prj-nmsc.adb (Record_Source): Before recording a new source, check
6154 if its file name is not already a source of another project. Report an
6155 error if it is.
6156
6157 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
6158 source file name, call gnatpp with all the sources of the main project.
6159
6160 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
6161 of file names.
6162
6163 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
6164 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
6165 /RUNTIME_SYSTEM=, converted to --RTS=
6166 /NOTABS, converted to -notabs
6167
61682004-03-05 Pascal Obry <obry@gnat.com>
6169
6170 * make.adb: Minor reformatting.
6171
61722004-03-05 Ed Schonberg <schonberg@gnat.com>
6173
6174 Part of implemention of AI-262.
6175 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
6176
6177 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
6178 procedure.
6179
6180 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
6181 when component type is a partially constrained class-wide subtype.
6182 (Constrain_Discriminated_Type): If parent type has unknown
6183 discriminants, a constraint is illegal, even if full view has
6184 discriminants.
6185 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
6186 with unknown discriminants whose full view is a discriminated record.
6187
6188 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
6189 flag, to handle properly derivations of tagged types with unknown
6190 discriminants.
6191 (Analyze_Package_Spec, Analyze_Package_Body): Install
6192 Private_With_Clauses before analyzing private part or body.
6193
6194 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
6195 Has_Discriminants can be true for a given type (documentation).
6196
61972004-03-05 Arnaud Charlet <charlet@act-europe.fr>
6198
6199 * s-restri.ads: Fix license (GPL->GMGPL).
6200
6201 * s-tassta.adb: Minor reformatting.
6202
6203 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
6204 by calls to Exit_One_ATC_Level, since additional clean up is performed
6205 by this function.
6206
6207 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
6208 by calls to Exit_One_ATC_Level, since additional clean up is performed
6209 by this function.
6210
62112004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6212
6213 * trans.c: Reflect GCC changes to fix bootstrap problem.
6214 Add warning for suspicious aliasing unchecked conversion.
6215
62162004-03-05 GNAT Script <nobody@gnat.com>
6217
6218 * Make-lang.in: Makefile automatically updated
6219
555360a5
AC
62202004-03-02 Emmanuel Briot <briot@act-europe.fr>
6221
6222 * ali.adb (Read_Instantiation_Instance): Do not modify the
6223 current_file_num when reading information about instantiations, since
6224 this corrupts files in later references.
6225
62262004-03-02 Vincent Celier <celier@gnat.com>
6227
6228 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
6229 before checking if it is read-only.
6230
6231 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
6232 of SRC_DIRS and eliminate duplicates.
6233
6234 * gprcmd.adb: Replace command "path" with command "path_sep" to return
6235 the path separator.
6236 (Usage): Document path_sep
6237
6238 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
6239 C++ compiler. No need for a script.
6240 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
6241 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
6242 subst.
6243
6244 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
6245 where there are Ada sources.
6246 (Set_Ada_Paths): Only add to the include path the source dirs of project
6247 with Ada sources.
6248 (Add_To_Path): Add the Display_Values of the directories, not their
6249 Values.
6250
6251 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
6252 data.
6253
6254 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
6255 is not No_Name.
6256 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
6257 Value is canonicalized.
6258 (Language_Independent_Check): Do not copy Value to Display_Value when
6259 canonicalizing Value.
6260
6261 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
6262 path to find limited with cycles.
6263 (Parse_Single_Project): Use canonical cased path to find the end of a
6264 with cycle.
6265
62662004-03-02 Ed Schonberg <schonberg@gnat.com>
6267
6268 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
6269 and not a child unit.
6270
6271 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
6272 appear in a with_clause.
6273
6274 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
6275 only happen in type_annotate mode, do not try to elaborate it.
6276
6277 * exp_util.adb (Force_Evaluation): If expression is a selected
6278 component on the left of an assignment, use a renaming rather than a
6279 temporary to remove side effects.
6280
6281 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
6282 inlined instance body, which is analyzed before the end of the
6283 enclosing scope.
6284
62852004-03-02 Robert Dewar <dewar@gnat.com>
6286
6287 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
6288 sem_ch4.adb: Use new feature for substitution of keywords in VMS
6289
6290 * errout.ads, errout.adb: Implement new circuit for substitution of
6291 keywords in VMS.
6292
6293 * sem_case.adb (Analyze_Choices): Place message properly when case is
6294 a subtype reference rather than an explicit range.
6295
6296 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
6297
62982004-03-02 Doug Rupp <rupp@gnat.com>
6299
6300 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
6301
63022004-03-02 Thomas Quinot <quinot@act-europe.fr>
6303
6304 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
6305
63062004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6307
6308 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
6309 BLKmode bitfield.
6310
8a7988f5
AC
63112004-02-25 Robert Dewar <dewar@gnat.com>
6312
6313 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
6314 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
6315 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
6316 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
6317 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
6318 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
6319 the defining instance of the type to avoid aliasing problems.
6320 Fix copyright header. Fix bad comments in package header.
6321
6322 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
6323
63242004-02-25 Ed Schonberg <schonberg@gnat.com>
6325
6326 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
6327 rewritten as references when aliased through an address clause.
6328
6329 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
6330 whether call can be interpreted as an indirect call to the result of a
6331 parameterless function call returning an access subprogram.
6332
63332004-02-25 Arnaud Charlet <charlet@act-europe.fr>
6334
6335 Code clean up:
6336 * exp_ch7.adb (Make_Clean): Remove generation of calls to
6337 Unlock[_Entries], since this is now done by Service_Entries directly.
6338
6339 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
6340
6341 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
6342 Requeue_Call for better code readability. Change spec and update calls:
6343 PO_Service_Entries now unlock the PO on exit.
6344 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
6345 PO_Service_Entries.
6346
6347 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
6348
6349 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
6350
63512004-02-25 Sergey Rybin <rybin@act-europe.fr>
6352
6353 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
6354 protected subprogram call and analyzing the result of such expanding
6355 in case when the called protected subprogram is eliminated.
6356
6357 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
6358 names.
6359
63602004-02-25 Jerome Guitton <guitton@act-europe.fr>
6361
6362 * Makefile.in: Clean ups.
6363
6871ba5f
AC
63642004-02-23 Ed Schonberg <schonberg@gnat.com>
6365
6366 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
6367 protected operations if original subprogram is flagged as eliminated.
6368 (Expand_N_Subprogram_Body): For a protected operation, create
6369 discriminals for next operation before checking whether the operation
6370 is eliminated.
6371
6372 * exp_ch9.adb (Expand_N_Protected_Body,
6373 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
6374 for internal protected operations if the original subprogram is
6375 eliminated.
6376
6377 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
6378 declared in a single protected object.
6379
63802004-02-23 Vincent Celier <celier@gnat.com>
6381
6382 * prj-attr.adb: Make attribute Builder'Executable an associative array,
6383 case insensitive if file names are case insensitive, instead of a
6384 standard associative array.
6385
6386 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
6387 them as case insensitive on platforms where the file names are case
6388 sensitive.
6389
6390 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
6391 project file has already been parsed that canonical path are compared.
6392
63932004-02-23 Robert Dewar <dewar@gnat.com>
6394
6395 * sinput-c.ads: Correct bad unit title in header
6396
6397 * freeze.adb: Minor reformatting
6398
63992004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6400
6401 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
6402 nonaddressable COMPONENT_REF that is removing padding that we are
6403 taking the address of, take the address of the padded record instead
6404 if item is variable size.
6405
6e059adb
AC
64062004-02-20 Robert Dewar <dewar@gnat.com>
6407
6408 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
6409
64102004-02-20 Ed Schonberg <schonberg@gnat.com>
6411
6412 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
6413 itype references for the constrained designated type of a component
6414 whose base type is already frozen.
6415
64162004-02-20 Arnaud Charlet <charlet@act-europe.fr>
6417
6418 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
6419 avoid GCC warnings.
6420
64212004-02-20 Sergey Rybin <rybin@act-europe.fr>
6422
6423 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
6424 identifier for a phantom package that rewrites the formal package
6425 declaration with a box. The Add semantic decorations for the defining
6426 identifier from the original node (that represents the formal package).
6427
88e3a2a3
MK
64282004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
6429
6430 * Make-lang.in (ada/stamp-sdefault): Use the top level
6431 move-if-change.
6432
4221057e
RH
64332004-02-19 Richard Henderson <rth@redhat.com>
6434
6435 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
6436
5c1c8a03
AC
64372004-02-18 Emmanuel Briot <briot@act-europe.fr>
6438
6439 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
6440 Scan_ALI can be used for multiple ALI files without reinitializing
6441 between calls.
6442
64432004-02-18 Robert Dewar <dewar@gnat.com>
6444
6445 * debug.adb: Minor reformatting.
6446
64472004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6448
6449 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
6450 to zero if there is an address clause.
6451
64522004-02-18 Thomas Quinot <quinot@act-europe.fr>
6453
6454 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
6455
64562004-02-18 Gary Dismukes <dismukes@gnat.com>
6457
6458 * layout.adb (Layout_Component_List): Revise generation of call to
6459 discriminant-checking function to pass selections of all of the type's
6460 discriminants rather than just the variant-controlling discriminant.
6461
64622004-02-18 Olivier Hainque <hainque@act-europe.fr>
6463
6464 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
6465 fail in the current setup and triggers spurious system error messages.
6466 Pretend it occurred and failed instead.
6467
64682004-02-18 Vincent Celier <celier@gnat.com>
6469
6470 * bld.adb: Mark FLDFLAGS as saved
6471 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
6472 it is not the root project. Put each directory to be
6473 extended between double quotes to prevent it to be expanded on Windows.
6474 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
6475 the project file. Set them back to their initial values if they have not
6476 been set in the project file.
6477
6478 * gprcmd.adb: (Gprdebug, Debug): New global variables
6479 (Display_Command): New procedure
6480 (Usage): Document new command "linkopts"
6481 Call Display_Command when env var GPRDEBUG has the value "TRUE"
6482 Implement new command "linkopts"
6483 Remove quotes that may be around arguments for "extend"
6484 Always call Normalize_Pathname with arguments formatted for the platform
6485
6486 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
6487 Change @echo to @$(display) in target clean to be able to clean silently
6488
6489 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
6490
6491 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
6492 canonical case.
6493
6494 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
6495 = Extending_All when current project is an extending all project.
6496
6497 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
6498 set to True only for LINK command, after Unix switch -o.
6499 (Process_Arguments): Set Output_File_Expected to True for LINK command
6500 after Unix switch -o. When Output_File_Expected is True, never add an
6501 extension to a file name.
6502
6503 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
6504 option file name, only to the --for-linker= switch.
6505 (Option_File_Name): If option file name do not end with ".opt", append
6506 "/OPTIONS".
6507
65082004-02-18 GNAT Script <nobody@gnat.com>
6509
6510 * Make-lang.in: Makefile automatically updated
6511
80bcb4d2
MK
65122004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
6513
6514 * Make-lang.in (stamp-sdefault): Do not depend on
6515 move-if-change.
6516
1daa84b6
ZW
65172004-02-12 Zack Weinberg <zack@codesourcery.com>
6518
6519 * config-lang.in: Disable Ada by default until probe logic for
6520 a bootstrap Ada compiler can be moved to the top level configure
6521 script.
6522
18c0ecbe
AC
65232004-02-12 Olivier Hainque <hainque@act-europe.fr>
6524
6525 * decl.c (components_to_record): Don't claim that the internal fields
6526 we make to hold the variant parts are semantically addressable, because
6527 they are not.
6528
6529 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
6530 adjust the comment describing the modular type form when we can use it.
6531 (Install_PAT): Account for the Esiz renaming.
6532
6533 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
6534 sc_onstack context indication before raising the exception to which
6535 the signal is mapped. Allows better handling of later signals possibly
6536 triggered by the resumed user code if the exception is handled.
6537
65382004-02-12 Arnaud Charlet <charlet@act-europe.fr>
6539
6540 * 5zinit.adb: Removed, no longer used.
6541
65422004-02-12 Robert Dewar <dewar@gnat.com>
6543
6544 * ali.adb: Remove separating space between parameters on R line. Makes
6545 format consistent with format used by the binder for Set_Globals call.
6546
6547 * atree.ads, atree.adb: Minor reformatting (new function header format)
6548
6549 * bindgen.adb: Add Run-Time Globals documentation section containing
6550 detailed documentation of the globals passed from the binder file to
6551 the run time.
6552
6553 * gnatls.adb: Minor reformatting
6554
6555 * init.c (__gnat_set_globals): Add note pointing to documentation in
6556 bindgen.
6557
6558 * lib-writ.ads, lib-writ.adb: Remove separating space between
6559 parameters on R line.
6560 Makes format consistent with format used by the binder for Set_Globals
6561 call.
6562
6563 * osint.ads: Add 2004 to copyright notice
6564 Minor reformatting
6565
6566 * snames.ads: Correct capitalization of FIFO_Within_Priorities
6567 Noticed during code reading, documentation issue only
6568
6569 * usage.adb: Remove junk line for obsolete C switch
6570 Noticed during code reading
6571
65722004-02-12 Vincent Celier <celier@gnat.com>
6573
6574 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
6575 extend for each directory, so that multiple /** directories are
6576 extended individually.
6577 (Recursive_Process): Set the default for LANGUAGES to ada
6578
6579 * gprcmd.adb: Define new command "ignore", to do nothing.
6580 Implement new comment "path".
6581
6582 * Makefile.generic: Suppress output when SILENT is set
6583 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
6584 used, so that the correct compiler is invoked.
6585 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
6586 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
6587
65882004-02-12 Jerome Guitton <guitton@act-europe.fr>
6589
6590 * Makefile.in: Clean ups and remove obsolete targets.
6591
65922004-02-12 Ed Schonberg <schonberg@gnat.com>
6593
6594 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
6595 predicate declared in exp_util.
6596
6597 * exp_util.adb: Add comments.
6598
6599 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
6600 visibility before compiling context of the subunit.
6601
6602 * sem_res.adb (Check_Parameterless_Call): If the context expects a
6603 value but the name is a procedure, do not attempt to analyze as a call,
6604 in order to obtain more telling diagnostics.
6605
6606 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
6607 'Access on parameterless function calls.
6608 (Normalize_Actuals): For a parameterless function call with missing
6609 actuals, defer diagnostic until resolution of enclosing call.
6610
6611 * sem_util.adb (Wrong_Type): If the context type is an access to
6612 subprogram and the expression is a procedure name, suggest a missing
6613 'attribute.
6614
c1dcfa14
AC
66152004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
6616 Nathanael Nerode <neroden@gcc.gnu.org>
6617
6618 PR ada/6637, PR ada/5911
6619 Merge with libada-branch:
90afe2c9 6620 * config-lang.in: Build libada only when ada is built.
c1dcfa14 6621
2e071734
AC
66222004-02-09 Ed Schonberg <schonberg@gnat.com>
6623
6624 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
6625 for a tagged type, verify that both formals have the same type.
6626
6627 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
6628 temporary when the formal is an in-parameter and the actual a possibly
6629 unaligned slice.
6630
6631 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
6632 when expansion is disabled, to ensure proper name capture with
6633 overloaded literals. Condition can be of any boolean type, resolve
6634 accordingly.
6635
6636 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
6637 renaming is for a formal subprogram with a default operator name, and
6638 there is a usable operator that is visible at the point of
6639 instantiation.
6640
66412004-02-09 Robert Dewar <dewar@gnat.com>
6642
6643 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
6644 rewrite to ignore errors in ali files, intended to allow tools downward
6645 compatibility with new versions of ali files.
6646
6647 * ali.ads: Add new parameter Ignore_Errors
6648
6649 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
6650 duplicating the error message giving the file with restrictions.
6651
6652 * debug.adb: Add debug flag I for gnatbind
6653
6654 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
6655 operators for the case where the operator is a defining operator.
6656
6657 * exp_ch3.adb: Minor reformatting (new function spec format).
6658
6659 * exp_ch4.adb: Add comment for previous change, and make minor
6660 adjustment to loop to always check for improper loop termination.
6661 Minor reformatting throughout (new function spec format).
6662
6663 * gnatbind.adb: Implement -di debug flag for gnatbind
6664
6665 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
6666
6667 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
6668
6669 * lib-load.adb: Fix bad assertion.
6670 Found by testing and code reading.
6671 Minor reformatting.
6672
6673 * lib-load.ads: Minor reformatting.
6674
6675 * lib-writ.adb: There is only one R line now.
6676
6677 * lib-writ.ads: Add documentation on making downward compatible changes
6678 to ali files so old tools work with new ali files.
6679 There is only one R line now.
6680 Add documentation on format incompatibilities (with special GPS note)
6681
6682 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
6683
6684 * par-load.adb: Minor reformatting
6685
6686 * sem_ch8.adb: Fix to error message from last update
6687 Minor reformatting and restructuring of code from last update
6688
6689 * par-prag.adb, snames.adb, snames.ads, snames.h,
6690 sem_prag.adb: Implement pragma Profile.
6691
6692 * stylesw.adb: Implement -gnatyN switch to turn off all style check
6693 options.
6694
6695 * usage.adb: Add line for -gnatyN switch
6696
6697 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
6698
a41ea816
AC
66992004-02-09 Albert Lee <lee@gnat.com>
6700
6701 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
6702
67032004-02-09 Ed Schonberg <schonberg@gnat.com>
6704
6705 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
6706 slices.
6707
6708 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
6709 is nested in an instance that is not frozen yet, to avoid
6710 order-of-elaboration problems in gigi.
6711
6712 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
6713 body the attribute is legal.
6714
67152004-02-09 Robert Dewar <dewar@gnat.com>
6716
6717 * s-rident.ads: Minor comment correction
6718
6719 * targparm.adb: Remove dependence on uintp completely. There was
6720 always a bug in Make in that it called Targparm before initializing
6721 the Uint package. The old code appeared to get away with this, but
6722 the new code did not! This caused an assertion error in gnatmake.
6723
6724 * targparm.ads: Fix bad comment, restriction pragmas with parameters
6725 are indeed fully supported.
6726
725c60f8
AM
67272004-02-06 Alan Modra <amodra@bigpond.net.au>
6728
6729 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
6730
136e64db
KH
67312004-02-05 Kazu Hirata <kazu@cs.umass.edu>
6732
6733 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
6734 with targetm.calls.promote_prototypes.
6735
06effe87
AC
67362004-02-04 Robert Dewar <dewar@gnat.com>
6737
6738 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
6739 ali.ads, gprcmd.adb: Minor reformatting
6740
6741 * bindgen.adb: Output restrictions string for new style restrictions
6742 handling
6743
6744 * impunit.adb: Add s-rident.ads (System.Rident) and
6745 s-restri (System.Restrictions)
6746
6747 * lib-writ.adb: Fix bug in writing restrictions string (last few
6748 entries wrong)
6749
6750 * s-restri.ads, s-restri.adb: Change name Restrictions to
6751 Run_Time_Restrictions to avoid conflict with package name.
6752 Add circuit to read and acquire run time restrictions.
6753
67542004-02-04 Jose Ruiz <ruiz@act-europe.fr>
6755
6756 * restrict.ads, restrict.adb: Use the new restriction
6757 No_Task_Attributes_Package instead of the old No_Task_Attributes.
6758
6759 * sem_prag.adb: No_Task_Attributes is a synonym of
6760 No_Task_Attributes_Package.
6761
6762 * snames.ads, snames.adb: New entry for proper handling of
6763 No_Task_Attributes.
6764
6765 * s-rident.ads: Adding restriction No_Task_Attributes_Package
6766 (AI-00249) that supersedes the GNAT specific restriction
6767 No_Task_Attributes.
6768
67692004-02-04 Ed Schonberg <schonberg@gnat.com>
6770
90afe2c9 6771 * sem_prag.adb:
06effe87
AC
6772 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
6773 body, an identifier may be wrapped in an unchecked conversion.
6774
67752004-02-04 Vincent Celier <celier@gnat.com>
6776
6777 * lib-writ.ads: Comment update for the W lines
6778
6779 * bld.adb: (Expression): An empty string list is static
6780
6781 * fname-uf.adb: Minor comment update
6782
6783 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
6784
6785 * gnatbind.adb: Initialize Cumulative_Restrictions with the
6786 restrictions on the target.
6787
2fb00d7f
KH
67882004-02-03 Kazu Hirata <kazu@cs.umass.edu>
6789
6790 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
6791 gen_rtx.
6792
5ed23e25
AC
67932004-02-02 Arnaud Charlet <charlet@gnat.com>
6794
6795 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
6796
6e937c1c
AC
67972004-02-02 Vincent Celier <celier@gnat.com>
6798
6799 * gprcmd.adb (Check_Args): If condition is false, print the invoked
6800 comment before the usage.
6801 Gprcmd: Fail when command is not recognized.
6802 (Usage): Document command "prefix"
6803
6804 * g-md5.adb (Digest): Process last block.
6805 (Update): Do not process last block. Store remaining characters and
6806 length in Context.
6807
6808 * g-md5.ads (Update): Document that several call to update are
6809 equivalent to one call with the concatenated string.
6810 (Context): Add fields to allow new Update behaviour.
6811
6812 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
6813 defaulted to False.
6814 When May_Fail is True and no existing file can be found, return No_File.
6815
6816 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
6817 functions.
6818
6819 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
6820 spec file name instead on the W line.
6821
68222004-02-02 Robert Dewar <dewar@gnat.com>
6823
6824 * ali.adb: Read and acquire info from new format restrictions lines
6825
6826 * bcheck.adb: Add circuits for checking restrictions with parameters
6827
6828 * bindgen.adb: Output dummy restrictions data
6829 To be changed later
6830
6831 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
6832 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
6833 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
6834 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
6835 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
6836
6837 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
6838 the warning message on access to possibly uninitialized variable S)
6839 Minor changes for new restrictions handling.
6840
6841 * gnatbind.adb: Minor reformatting
6842 Minor changes for new restrictions handling
6843 Move circuit for -r processing here from bcheck (cleaner)
6844
6845 * gnatcmd.adb, gnatlink.adb: Minor reformatting
6846
6847 * lib-writ.adb: Output new format restrictions lines
6848
6849 * lib-writ.ads: Document new R format lines for new restrictions
6850 handling.
6851
6852 * s-restri.ads/adb: New files
6853
6854 * Makefile.rtl: Add entry for s-restri.ads/adb
6855
6856 * par-ch3.adb: Fix bad error messages starting with upper case letter
6857 Minor reformatting
6858
6859 * restrict.adb: Major rewrite throughout for new restrictions handling
6860 Major point is to handle restrictions with parameters
6861
6862 * restrict.ads: Major changes in interface to handle restrictions with
6863 parameters. Also generally simplifies setting of restrictions.
6864
6865 * snames.ads/adb: New entry for proper handling of No_Requeue
6866
6867 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
6868 restriction counting.
6869 Other minor changes for new restrictions handling
6870
6871 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
6872 Restriction_Warnings now allows full parameter notation
6873 Major rewrite of Restrictions for new restrictions handling
6874
68752004-02-02 Javier Miranda <miranda@gnat.com>
6876
6877 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
6878 syntax rule for object renaming declarations.
6879 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
6880 component definitions.
6881
6882 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
6883 components.
6884 (Array_Type_Declaration): Give support to access components. In addition
6885 it was also modified to reflect the name of the object in anonymous
6886 array types. The old code did not take into account that it is possible
6887 to have an unconstrained anonymous array with an initial value.
6888 (Check_Or_Process_Discriminants): Allow access discriminant in
6889 non-limited types.
6890 (Process_Discriminants): Allow access discriminant in non-limited types
6891 Initialize the new Access_Definition field in N_Object_Renaming_Decl
6892 node. Change Ada0Y to Ada 0Y in comments
6893
6894 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
6895 equality operators.
6896 Change Ada0Y to Ada 0Y in comments
6897
6898 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
6899 renamings Change Ada0Y to Ada 0Y in comments
6900
6901 * sem_type.adb (Find_Unique_Type): Give support to the equality
6902 operators for universal access types
6903 Change Ada0Y to Ada 0Y in comments
6904
6905 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
6906
6907 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
6908 field.
6909 (N_Object_Renaming_Declaration): Addition of Access_Definition field
6910 Change Ada0Y to Ada 0Y in comments
6911
6912 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
6913 component definition and object renaming nodes
6914 Change Ada0Y to Ada 0Y in comments
6915
69162004-02-02 Jose Ruiz <ruiz@act-europe.fr>
6917
6918 * restrict.adb: Use the new restriction identifier
6919 No_Requeue_Statements instead of the old No_Requeue for defining the
6920 restricted profile.
6921
6922 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
6923 No_Requeue_Statements.
6924
6925 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
6926 that supersedes the GNAT specific restriction No_Requeue. The later is
6927 kept for backward compatibility.
6928
69292004-02-02 Ed Schonberg <schonberg@gnat.com>
6930
6931 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
6932 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
6933 pragma and fix incorrect ones.
6934
6935 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
6936 warning if the pragma is redundant.
6937
69382004-02-02 Thomas Quinot <quinot@act-europe.fr>
6939
6940 * 5staprop.adb: Add missing 'constant' keywords.
6941
6942 * Makefile.in: use consistent value for SYMLIB on
6943 platforms where libaddr2line is supported.
6944
69452004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6946
6947 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
6948 annotating types.
6949
69502004-02-02 Olivier Hainque <hainque@act-europe.fr>
6951
6952 * init.c (__gnat_install_handler): Setup an alternate stack for signal
6953 handlers in the environment thread. This allows proper propagation of
6954 an exception on stack overflows in this thread even when the builtin
6955 ABI stack-checking scheme is used without support for a stack reserve
6956 region.
6957
6958 * utils.c (create_field_decl): Augment the head comment about bitfield
6959 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
6960 here, because the former is not accurate enough at this point.
6961 Let finish_record_type decide instead.
6962 Don't make a bitfield if the field is to be addressable.
6963 Always set a size for the field if the record is packed, to ensure the
6964 checks for bitfield creation are triggered.
6965 (finish_record_type): During last pass over the fields, clear
6966 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
6967 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
6968 from DECL_BIT_FIELD.
6969
71cbe2c1
KC
69702004-01-30 Kelley Cook <kcook@gcc.gnu.org>
6971
90afe2c9 6972 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
71cbe2c1
KC
6973 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
6974 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
6975
7f996f90
RO
69762004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6977
6978 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
6979
6980 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
6981 (ZCX_By_Default): Likewise.
6982 (Front_End_ZCX_Support): Likewise.
6983
6984 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
6985 (Initialize_Lock): Mark Level unreferenced.
6986 (Sleep): Mark Reason unreferenced.
6987 (Timed_Sleep): Likewise.
6988 (Wakeup): Likewise.
6989 (Exit_Task): Use Result.
6990 (Check_No_Locks): Mark Self_ID unreferenced.
90afe2c9 6991
7f996f90
RO
6992 * 5gtasinf.adb (New_Sproc): Make Attr constant.
6993 (Bound_Thread_Attributes): Make Sproc constant.
6994 (New_Bound_Thread_Attributes): Likewise.
6995
26fd4eae
AC
69962004-01-26 Ed Schonberg <schonberg@gnat.com>
6997
6998 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
6999 one-dimensional array an slice assignments, when component type is
7000 controlled.
7001
7002 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
7003 component type is controlled, and control_actions are in effect, use
7004 TSS procedure rather than generating inline code.
7005
7006 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
7007 arrays with controlled components.
7008
70092004-01-26 Vincent Celier <celier@gnat.com>
7010
7011 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
7012 command line for the non VMS case.
7013
7014 * gnatlink.adb (Process_Binder_File): When building object file, if
7015 GNU linker is used, put all object paths between quotes, to prevent ld
7016 error when there are unusual characters (such as '!') in the paths.
7017
7018 * Makefile.generic: When there are sources in Ada and the main is in
7019 C/C++, invoke gnatmake with -B, instead of -z.
7020
7021 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
7022 from VMS_Conversion.
7023 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
7024 specification of argument file on the command line.
7025
70262004-01-26 Bernard Banner <banner@gnat.com>
7027
7028 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
7029
70302004-01-26 Ed Schonberg <schonberg@gnat.com>
7031
7032 * snames.adb: Update copyright notice.
7033 Add info on slice assignment for controlled arrays.
7034
b7e429ab
AC
70352004-01-23 Robert Dewar <dewar@gnat.com>
7036
7037 * exp_aggr.adb: Minor reformatting
7038
7039 * exp_ch9.adb: Minor code clean up
7040 Minor reformatting
7041 Fix bad character in comment
7042
7043 PR ada/13471
7044 * targparm.adb (Get_Target_Parameters): Give clean abort error on
7045 unexpected end of file, along with more detailed message.
7046
70472004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7048
7049 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
7050 PAT.
7051
7052 * decl.c (copy_alias_set): New function.
7053 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
7054
70552004-01-23 Doug Rupp <rupp@gnat.com>
7056
7057 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
7058 lib$${file} in case subsequent character is not a separator.
7059
70602004-01-23 Vincent Celier <celier@gnat.com>
7061
7062 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
7063 when the GCC version is at least 3.
7064
7065 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
7066 Remove all "Opt.", to prepare for opt split
7067
7068 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
7069 Extends_All. Set to True when the project parsed is an extending all
7070 project. Fails for importing an extending all project only when the
7071 imported project is an extending all project.
7072 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
7073 depending on the value of Extends_All returned.
7074
7075 * prj-proc.adb (Process): Check that no project shares its object
7076 directory with a project that extends it, directly or indirectly,
7077 including a virtual project.
7078 Check that no project extended by another project shares its object
7079 directory with another also extended project.
7080
7081 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
7082 Kind = N_With_Clause
7083
7084 * prj-tree.ads: Minor reformatting
7085 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
7086
70872004-01-23 Ed Schonberg <schonberg@gnat.com>
7088
7089 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
7090 applies to a type with an incomplete view, use full view in Name of
7091 clause, for consistency with uses of Get_Attribute_Definition_Clause.
7092
70932004-01-23 Arnaud Charlet <charlet@act-europe.fr>
7094
7095 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
7096 SCHED_RR, since other values are not supported by this policy.
7097 (Initialize): Move initialization of mutex attribute to package
7098 elaboration, to prevent early access to this variable.
7099
7100 * Makefile.in: Remove mention of Makefile.adalib, unused.
7101
b291953f
AC
7102 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
7103 1ssecsta.ads: Removed, unused.
b7e429ab 7104
adc04486
AC
71052004-01-21 Javier Miranda <miranda@gnat.com>
7106
7107 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
7108 entity if already built in the current scope.
7109
7110 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
7111 reminder in internal scopes. Required for nested limited aggregates.
7112
71132004-01-21 Doug Rupp <rupp@gnat.com>
7114
7115 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
7116 VMS. Replace all occurences of libgnat- and libgnarl- with
7117 libgnat$(hyphen) and libgnarl$(hyphen).
7118 Fixed shared library build problem on VMS.
7119
71202004-01-21 Robert Dewar <dewar@gnat.com>
7121
7122 * mlib-prj.adb: Minor reformatting
7123
71242004-01-21 Thomas Quinot <quinot@act-europe.fr>
7125
7126 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
7127 'constant' keywords for declaration of pointers that are not modified.
7128
7129 * exp_pakd.adb: Fix English in comment.
7130
71312004-01-21 Ed Schonberg <schonberg@gnat.com>
7132
7133 PR ada/10889
7134 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
7135 copy all attributes of the parent, including the foreign language
7136 convention.
7137
71382004-01-21 Sergey Rybin <rybin@act-europe.fr>
7139
7140 PR ada/10565
7141 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
7142 for 'delay until' statement.
7143
a541f69d
KC
71442004-01-20 Kelley Cook <kcook@gcc.gnu.org>
7145
7146 * Make-lang.in: Replace $(docdir) with doc.
7147 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
7148 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
7149 to use consistent MAKEINFO rule.
7150 (ada.man, ada.srcman): Dummy entry.
7151 (ADA_INFOFILES): Define.
7152 (ada.info, ada.srcinfo): New rules.
7153
c01a9391
AC
71542004-01-19 Arnaud Charlet <charlet@act-europe.fr>
7155
7156 * utils.c: Update copyright notice, missed in previous change.
7157
71582004-01-19 Vincent Celier <celier@gnat.com>
7159
7160 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
7161 args if Bind is True. Set First_ALI, if not already done.
7162 (Build_Library): For Stand Alone Libraries, extract from one ALI file
7163 an eventual --RTS switch, for gnatbind, and all backend switches +
7164 --RTS, for linking.
7165
71662004-01-19 Robert Dewar <dewar@gnat.com>
7167
7168 * sem_attr.adb, memtrack.adb: Minor reformatting
7169
71702004-01-19 Ed Schonberg <schonberg@gnat.com>
7171
7172 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
7173 that rename enumeration literals. This is properly done in sem_eval.
7174
7175 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
7176 to functions that rename enumeration literals.
7177
7178 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
7179 functions that rename enumeration literals.
7180
510d1e80
KH
71812004-01-16 Kazu Hirata <kazu@cs.umass.edu>
7182
7183 * Make-lang.in (utils.o): Depend on target.h.
7184 * utils.c: Include target.h.
7185 (process_attributes): Use targetm.have_named_sections instead
7186 of ASM_OUTPUT_SECTION_NAME.
7187
fbf3e0dd
AJ
71882004-01-16 Andreas Jaeger <aj@suse.de>
7189
7190 * Makefile.in: Add $(DESTDIR).
7191
acd47d2a
AC
71922004-01-15 Olivier Hainque <hainque@act-europe.fr>
7193
7194 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
7195 also when not defining if a Size clause applies. That information is
7196 not to be ignored.
7197
71982004-01-15 Arnaud Charlet <charlet@act-europe.fr>
7199
7200 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
7201 symbolic links for the shared gnat run time when needed.
7202
72032004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
7204
7205 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
7206 for writing, and terminate with an error message if not.
7207
72082004-01-15 Ed Schonberg <schonberg@gnat.com>
7209
7210 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
7211 warning on an access to subprogram in an instance, when the target
7212 type is declared in the same generic unit.
7213 (Eval_Attribute): If 'access is known to fail accessibility check,
7214 rewrite as a raise statement.
7215
72162004-01-15 GNAT Script <nobody@gnat.com>
7217
7218 * Make-lang.in: Makefile automatically updated
7219
03787dfd
KC
72202004-01-15 Kelley Cook <kcook@gcc.gnu.org>
7221
7222 * Make-lang.in (ada.srcextra): Dummy entry.
7223
73e232f0
KC
72242004-01-14 Kelley Cook <kcook@gcc.gnu.org>
7225
7226 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
7227
9bc43c53
AC
72282004-01-13 Ed Schonberg <schonberg@gnat.com>
7229
7230 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
7231 components that are initialized with aggregates.
7232
72332004-01-13 Vincent Celier <celier@gnat.com>
7234
7235 * gnatlink.adb (Process_Binder_File): To find directory of shared
7236 libgcc, if "gcc-lib" is not a subdirectory, look for the last
7237 subdirectory "lib" in the path of the shared libgnat or libgnarl.
7238
7239 * make.adb (Gnatmake): If GCC version is at least 3, link with
7240 -shared-libgcc, when there is at least one shared library project.
7241
7242 * opt.ads (GCC_Version): New integer constant.
7243
7244 * adaint.c (get_gcc_version): New function.
7245
72462004-01-13 Robert Dewar <dewar@gnat.com>
7247
7248 * sem_dist.adb, sem_res.adb, sem_util.adb,
7249 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
7250 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
7251
72522004-01-13 Thomas Quinot <quinot@act-europe.fr>
7253
7254 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
7255 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
7256 declarations.
7257
8b52de7b
AC
72582004-01-12 Arnaud Charlet <charlet@act-europe.fr>
7259
f6ea0188
AC
7260 * misc.c: Remove trailing spaces.
7261 Update copyright notice missed in previous change.
7262
8b52de7b
AC
7263 PR ada/13572
7264 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
7265 prefix/share/make
7266
7267 * Makefile.generic: Update copyright.
7268 Add license notice.
7269
7270 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
7271 of prefix/share/make.
7272
7273 * Makefile.prolog: Update copyright.
7274 Add license notice.
7275
72762004-01-12 Laurent Pautet <pautet@act-europe.fr>
7277
7278 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
7279 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
7280 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
7281 instead of String.
7282
7283 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
7284 signature.
7285
72862004-01-12 Javier Miranda <miranda@gnat.com>
7287
7288 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
7289 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
7290 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
7291 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
7292 Component_Definition node.
7293
72942004-01-12 Ed Falis <falis@gnat.com>
7295
7296 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
7297
72982004-01-12 Thomas Quinot <quinot@act-europe.fr>
7299
7300 * link.c: Change default libgnat kind to STATIC for FreeBSD.
7301
73022004-01-12 Bernard Banner <banner@gnat.com>
7303
7304 * Makefile.in: map 86numaux to a-numaux for x86_64
7305
73062004-01-12 Ed Schonberg <schonberg@gnat.com>
7307
7308 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
7309 generated to rename a generic actual, go to the actual itself, the
7310 subtype is not a user-visible entity.
7311
7312 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
7313 part is a private subtype, reset the visibility of its full view, if
7314 any, to be consistent.
7315
7316 PR ada/13417
7317 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
7318 to use a generic package G as a formal package for another generic
7319 declared within G.
7320
73212004-01-12 Robert Dewar <dewar@gnat.com>
7322
7323 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
7324
7325 * usage.adb: Remove mention of obsolete -gnatwb switch
7326 Noticed during code reading
7327
73282004-01-12 Jerome Guitton <guitton@act-europe.fr>
7329
7330 * 1ssecsta.adb: Minor changes for -gnatwa warnings
7331
73322004-01-12 GNAT Script <nobody@gnat.com>
7333
7334 * Make-lang.in: Makefile automatically updated
7335
0fab64a3
MM
73362004-01-09 Mark Mitchell <mark@codesourcery.com>
7337
7338 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
7339
47527624
RO
73402004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7341
7342 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
7343
dedebde1
KC
73442004-01-05 Kelley Cook <kcook@gcc.gnu.org>
7345
fbf3e0dd 7346 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
dedebde1
KC
7347 Update comment and copyright date.
7348 * stamp-xgnatug: Delete.
7349
91b1417d
AC
73502004-01-05 Robert Dewar <dewar@gnat.com>
7351
7352 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
7353 be modified by the binder generated main program if the -D switch is
7354 used.
7355
7356 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
7357 imported functions (since now we expect this to be done for imported
7358 functions)
7359
7360 * 5vtaprop.adb: Add several ??? for sections requiring more comments
7361 Minor reformatting throughout
7362
7363 * 5zinit.adb: Minor reformatting
7364 Add 2004 to copyright date
7365 Minor changes to avoid -gnatwa warnings
7366 Correct some instances of using OR instead of OR ELSE (noted while
7367 doing reformatting)
7368
7369 * sprint.adb: Minor updates to avoid -gnatwa warnings
7370
fbf3e0dd 7371 * s-secsta.ads, s-secsta.adb:
91b1417d
AC
7372 (SS_Get_Max): New function to obtain high water mark for ss stack
7373 Default_Secondary_Stack is not a constant since it may be modified by
7374 the binder generated main program if the -D switch is used.
7375
7376 * switch-b.adb: New -Dnnn switch for binder
7377
fbf3e0dd 7378 * switch-c.adb:
91b1417d
AC
7379 Make -gnatg imply all warnings currently in -gnatwa
7380
7381 * vms_conv.adb: Minor reformatting
7382 Add 2004 to copyright notice
7383 Add 2004 to printed copyright notice
7384
7385 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
7386 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
7387 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
7388 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
7389 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
7390 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
7391 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
7392 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
7393 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
7394 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
7395 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
7396 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
7397 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
7398 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
7399 checks.adb, clean.adb, cstand.adb, einfo.ads,
7400 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
7401 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
7402 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
7403 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
7404 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
7405 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
7406 Minor reformatting and code clean ups.
7407 Minor changes to prevent -gnatwa warnings
7408
7409 * ali.adb: Minor reformatting and cleanup of code
7410 Acquire new SS indication of secondary stack use from ali files
7411
7412 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
7413 (since now we expect this to be done for imported functions)
7414
7415 * bindgen.adb: Generate call to modify default secondary stack size if
7416 -Dnnn switch given
7417
7418 * bindusg.adb: Add line for new -D switch
7419
7420 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
7421 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
7422 Add circuitry for both records and arrays to avoid gigi
7423 processing if the type involved has non-bit-aligned components
7424
7425 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
7426 N_String_Literal node always references an E_String_Literal_Subtype
7427 entity. This may not be true in the future.
7428 (Possible_Bit_Aligned_Component): Move processing of
7429 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
7430
7431 * exp_ch6.adb (Expand_Thread_Body): Pick up
7432 Default_Secondary_Stack_Size as variable so that we get value modified
7433 by possible -Dnnn binder parameter.
7434
7435 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
7436 (Type_May_Have_Bit_Aligned_Components): New function.
7437
7438 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
7439 (Type_May_Have_Bit_Aligned_Components): New function.
7440
7441 * fe.h: (Set_Identifier_Casing): Fix prototype.
7442 Add declaration for Sem_Elim.Eliminate_Error_Msg.
7443 Minor reformatting.
7444
7445 * freeze.adb (Freeze_Entity): Add RM reference to error message about
7446 importing constant atomic/volatile objects.
7447 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
7448 unless explicit Pure_Function pragma given, to avoid insidious bug of
7449 call to non-pure imported function getting eliminated.
7450
7451 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
7452 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
7453 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
7454 Add 2004 to printed copyright notice
7455
7456 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
7457 stack used.
7458
7459 * Makefile.rtl: Add entry for g-sestin.o
7460 g-sestin.ads: New file.
7461
7462 * mdll.adb: Minor changes to avoid -gnatwa warnings
7463
7464 * mlib-tgt.adb: Minor reformatting
7465
7466 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
7467 New switch Sec_Stack_Used (GNAT, GNATBIND)
7468 Make Default_Secondary_Stack_Size a variable instead of a constant,
7469 so that it can be modified by the new -Dnnn bind switch.
7470
7471 * rtsfind.adb (Load_Fail): Give full error message in configurable
7472 run-time mode if all_errors mode is set. This was not done in the case
7473 of a file not found, which was an oversight.
7474 Note if secondary stack unit is used by compiler.
7475
7476 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
7477 ineffective elaborate all pragmas on non-visible packages (this
7478 happened when a renamed subprogram was called). Now the elaborate all
7479 always goes on the package containing the renaming rather than the one
7480 containing the renamed subprogram.
7481
7482 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
7483 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
7484
7485 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
7486 has an Etype that references an E_String_Literal.
7487 (Eval_String_Literal): Avoid assumption that N_String_Literal node
7488 always references an E_String_Literal_Subtype entity. This may not
7489 be true in the future.
7490
7491 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
7492 pragma location.
7493
7494 * sem_res.adb (Resolve): Specialize msg for function name used in proc
7495 call.
7496
74972004-01-05 Ed Falis <falis@gnat.com>
7498
7499 * g-debuti.adb: Replaced direct boolean operator with short-circuit
7500 form.
7501
75022004-01-05 Vincent Celier <celier@gnat.com>
7503
7504 * bld.adb: Minor comment updates
7505 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
7506 of Item_Name).
7507
7508 * make.adb (Gnatmake): Special process for files to compile/check when
7509 -B is specified. Fail when there are only foreign mains in attribute
7510 Main of the project file and -B is not specified. Do not skip bind/link
7511 steps when -B is specified.
7512
7513 * makeusg.adb: Document new switch -B
7514
7515 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
7516
7517 * switch-m.adb: (Scan_Make_Switches): Process -B switch
7518
7519 * vms_data.ads: Add new GNAT PRETTY qualifier
7520 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
7521
75222004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7523
7524 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
7525 case.
7526
7527 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
7528 Set_Identifier_Casing.
7529
7530 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
7531 has size that overflows.
7532
75332004-01-05 Gary Dismukes <dismukes@gnat.com>
7534
7535 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
7536 -gnatwa warning on static condition.
7537
75382004-01-05 Doug Rupp <rupp@gnat.com>
7539
7540 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
7541
75422004-01-05 Arnaud Charlet <charlet@act-europe.fr>
7543
7544 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
7545 all attributes, including read-only attribute.
7546
75472004-01-05 Pascal Obry <obry@gnat.com>
7548
7549 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
7550 library naming scheme.
7551
7552 * mlib-prj.adb (Build_Library): Generate different names for the static
7553 or dynamic version of the GNAT runtime. This is needed to support the
7554 new shared library naming scheme.
7555 (Process_Binder_File): Add detection of shared library in binder file
7556 based on the new naming scheme.
7557
7558 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
7559 scheme for the shared runtime libraries.
7560
7561 * Makefile.in:
7562 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
7563 scheme.
7564 (install-gnatlib): Do not create symlinks for shared libraries.
7565 (gnatlib-shared-default): Idem.
7566 (gnatlib-shared-dual-win32): New target. Not used for now as the
7567 auto-import feature does not support arrays/records.
7568 (gnatlib-shared-win32): Do not create copy for the shared libraries.
7569 (gnatlib-shared-vms): Fix shared runtime libraries names.
7570
7571 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
7572 dependent runtime shared library name.
7573
75742004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
7575
7576 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
7577 than the object.
7578
75792004-01-05 Ed Schonberg <schonberg@gnat.com>
7580
7581 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
7582 protected objects when allocator has a subtype indication, not a
7583 qualified expression. Note that qualified expressions may have to be
7584 checked when limited aggregates are implemented.
7585
7586 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
7587 pure, emit warning.
7588 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
7589 subprogram is imported, remove warning.
7590
75912004-01-05 Geert Bosch <bosch@gnat.com>
7592
7593 * s-poosiz.adb: Update copyright notice.
7594 (Allocate): Use Task_Lock to protect against concurrent access.
7595 (Deallocate): Likewise.
7596
75972004-01-05 Joel Brobecker <brobecker@gnat.com>
7598
7599 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
7600 comment.
7601
2ab127f3
KC
76022003-12-23 Kelley Cook <kcook@gcc.gnu.org>
7603
7604 * gnat_ug.texi: Force a CVS commit by updating copyright.
7605 * gnat_ug_vxw.texi: Regenerate.
7606 * gnat_ug_wnt.texi: Regenerate.
7607 * gnat_ug_vms.texi: Regenerate.
7608 * gnat_ug_unx.texi: Regenerate.
7609
aed8bfdc
KH
76102003-12-20 Kazu Hirata <kazu@cs.umass.edu>
7611
7612 * trans.c: Remove uses of "register" specifier in
7613 declarations of local variables.
7614
90c2f1de
KC
76152003-12-18 Kelley Cook <kcook@gcc.gnu.org>
7616
7617 * stamp-xgnatug: New stamp file.
7618 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
7619 (ada/doctools/xgnatug): Add $(build_exeext).
7620 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
7621 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
7622
891a6e79
AC
76232003-12-17 Ed Falis <falis@gnat.com>
7624
7625 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
7626 eliminate warning.
7627
7628 * a-exextr.adb: Add context clause for
7629 Ada.Exceptions.Last_Chance_Handler.
7630
76312003-12-17 Sergey Rybin <rybin@act-europe.fr>
7632
7633 * cstand.adb (Create_Standard): Change the way how the declaration of
7634 the Duration type is created (making it the same way as it is for all
7635 the other standard types).
7636
76372003-12-17 Robert Dewar <dewar@gnat.com>
7638
7639 * s-crtl.ads: Fix header format
7640 Change Pure to Preelaborate
7641
76422003-12-17 Ed Schonberg <schonberg@gnat.com>
7643
7644 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
7645 the expression type only if it is declared in the current unit.
7646
7647 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
7648 are universal and already analyzed, as can occur in constrained
7649 subcomponents that depend on discriminants, when one constraint is a
7650 subtype mark.
7651
7652 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
7653 type Any_Fixed is legal as the argument of a conversion, if only one
7654 fixed-point type is in context.
7655
76562003-12-17 GNAT Script <nobody@gnat.com>
7657
7658 * Make-lang.in: Makefile automatically updated
7659
209db2bf
AC
76602003-12-15 Robert Dewar <dewar@gnat.com>
7661
7662 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
7663 sec stack size.
7664
76652003-12-15 Vincent Celier <celier@gnat.com>
7666
7667 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
7668 (Gnatchop): Do not set failure status when reporting the number of
7669 warnings.
7670
76712003-12-15 Doug Rupp <rupp@gnat.com>
7672
7673 * s-ctrl.ads: New file.
7674
7675 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
7676
7677 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
7678 (GNATBIND_OBJS): Add ada/s-crtl.o.
7679
7680 * Makefile.in [VMS]: Clean up ifeq rules.
7681
7682 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
7683 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
7684 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
7685 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
7686 s-tasdeb.adb: Update copyright.
7687 Import System.CRTL.
7688 Make minor modifications to use System.CRTL declared functions instead
7689 of importing locally.
7690
76912003-12-15 GNAT Script <nobody@gnat.com>
7692
7693 * Make-lang.in: Makefile automatically updated
7694
a9f4e3d2
AC
76952003-12-11 Ed Falis <falis@gnat.com>
7696
7697 * 5zinit.adb: Clean up.
7698
7699 * 5zintman.adb (Notify_Exception): replaced case statement with a call
7700 to __gnat_map_signal, imported from init.c to support
7701 signal -> exception mappings that depend on the vxWorks version.
7702
fbf3e0dd 7703 * init.c:
a9f4e3d2
AC
7704 Created and exported __gnat_map_signal to support signal -> exception
7705 mapping that is dependent on the VxWorks version.
7706 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
7707
77082003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
7709
7710 * 5wosinte.ads: Link with -mthreads switch.
7711
77122003-12-11 Arnaud Charlet <charlet@act-europe.fr>
7713
7714 * init.c (__gnat_install_handler [NetBSD]): Set
7715 __gnat_handler_installed, as done on all other platforms.
7716 Remove duplicated code.
7717
77182003-12-11 Jerome Guitton <guitton@act-europe.fr>
7719
7720 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
7721
77222003-12-11 Thomas Quinot <quinot@act-europe.fr>
7723
7724 * sinfo.ads: Fix inconsistent example code in comment.
7725
77262003-12-11 Robert Dewar <dewar@gnat.com>
7727
7728 * a-tiinau.adb: Add a couple of comments
7729
7730 * sem_ch3.adb: Minor reformatting
7731
fbf3e0dd 7732 * sem_prag.adb:
a9f4e3d2
AC
7733 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
7734 Minor reformatting throughout
7735
77362003-12-11 Ed Schonberg <schonberg@gnat.com>
7737
7738 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
7739 bounds of a loop, create a separate block in order to generate proper
7740 cleanup actions to prevent memory leaks.
7741
7742 * sem_res.adb (Resolve_Call): After a call to
7743 Establish_Transient_Scope, the call may be rewritten and relocated, in
7744 which case no further processing is needed.
7745
7746 * sem_util.adb: (Wrong_Type): Refine previous fix.
7747 Fixes ACATS regressions.
7748
7749 PR ada/13353
7750
7751 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
7752 be inlined.
7753
c45b6ae0
AC
77542003-12-08 Jerome Guitton <guitton@act-europe.fr>
7755
7756 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
7757 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
7758 obsolete files.
7759
7760 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
7761 (rts-zfp): Ditto.
7762
77632003-12-08 Robert Dewar <dewar@gnat.com>
7764
7765 * 7sintman.adb: Minor reformatting
7766
7767 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
7768 standard linker options to get standard libraries linked. We now plan
7769 to provide dummy versions of these libraries to match the appropriate
7770 configurable run-time (e.g. if a library is not needed at all, provide
7771 a dummy empty library).
7772
7773 * targparm.ads: Configurable_Run_Time mode no longer affects linker
7774 options (-L parameters and standard libraries). What we plan to do is
7775 to provide dummy libraries where the libraries are not required.
7776
7777 * gnatbind.adb: Minor comment improvement
7778
77792003-12-08 Javier Miranda <miranda@gnat.com>
7780
7781 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
7782 aggregate in the parent. Otherwise constants with limited aggregates
7783 are not supported. Add new formal to pass the component type (Ctype).
7784 It is required to call the corresponding IP subprogram in case of
7785 default initialized components.
7786 (Gen_Assign): In case of default-initialized component, generate a
7787 call to the IP subprogram associated with the component.
7788 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
7789 of aggregate with default initialized components.
7790 (Has_Default_Init_Comps): Improve implementation to recursively check
7791 all the present expressions.
7792
7793 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
7794 to indicate that the initialization call corresponds to a
7795 default-initialized component of an aggregate.
7796 In case of default initialized aggregate with tasks this parameter is
7797 used to generate a null string (this is just a workaround that must be
7798 improved later). In case of discriminants, this parameter is used to
7799 generate a selected component node that gives access to the discriminant
7800 value.
7801
7802 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
7803 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
7804 allocated aggregates with default-initialized components.
7805
7806 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
7807 the box notation is used in positional aggregates.
7808
78092003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
7810
7811 * lib.ads: Fix typo in comment
7812
78132003-12-08 Vincent Celier <celier@gnat.com>
7814
7815 * prj.adb (Project_Empty): New component Unkept_Comments
7816 (Scan): Remove procedure; moved to Prj.Err.
7817
7818 * prj.ads (Project_Data): New Boolean component Unkept_Comments
7819 (Scan): Remove procedure; moved to Prj.Err.
7820
7821 * prj-dect.adb: Manage comments for the different declarations.
7822
7823 * prj-part.adb (With_Record): New component Node
7824 (Parse): New Boolean parameter Store_Comments, defaulted to False.
7825 Set the scanner to return ends of line and comments as tokens, if
7826 Store_Comments is True.
7827 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
7828 comments are associated with these nodes. Store the node IDs in the
7829 With_Records.
7830 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
7831 With_Records.
7832 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
7833 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
7834 current project. Call Tree.Restore afterwards. Set the various nodes
7835 for comment storage (Next_End, End_Of_Line, Previous_Line,
7836 Previous_End).
7837
7838 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
7839 defaulted to False.
7840
7841 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
7842 to False. When Truncated is True, truncate the string, never go to the
7843 next line.
7844 (Write_End_Of_Line_Comment): New procedure
7845 (Print): Process comments for nodes N_With_Clause,
7846 N_Package_Declaration, N_String_Type_Declaration,
7847 N_Attribute_Declaration, N_Typed_Variable_Declaration,
7848 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
7849 Process nodes N_Comment.
7850
7851 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
7852 without comments and there are some comments, set the flag
7853 Unkept_Comments to True.
7854 (Scan): If there are comments, set the flag Unkept_Comments to True and
7855 clear the comments.
7856 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
7857 (Next_End_Nodes: New table
7858 (Comment_Zones_Of): New function
7859 (Scan): New procedure; moved from Prj. Accumulate comments in the
7860 Comments table and set end of line comments, comments after, after end
7861 and before end.
7862 (Add_Comments): New procedure
7863 (Save, Restore, Seset_State): New procedures
7864 (There_Are_Unkept_Comments): New function
7865 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
7866 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
7867 procedures.
7868 (First_Comment_After, First_Comment_After_End): New functions
7869 (First_Comment_Before, First_Comment_Before_End): New functions
7870 (Next_Comment): New function
7871 (End_Of_Line_Comment, Follows_Empty_Line,
7872 Is_Followed_By_Empty_Line): New functions
7873 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
7874 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
7875 (Set_Next_Comment): New procedure
7876 (Default_Project_Node): Associate comment before if the node can store
7877 comments.
7878
7879 * scans.ads (Token_Type): New enumeration value Tok_Comment
7880 (Comment_Id): New global variable
7881
7882 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
7883 defaulted to False.
7884 (Scan): Store position of start of comment. If comments are tokens, set
7885 Comment_Id and set Token to Tok_Comment when scanning a comment.
7886 (Set_Comment_As_Token): New procedure
7887
7888 * sinput-p.adb: Update Copyright notice
7889 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
7890 that no longer exists.
7891
78922003-12-08 Javier Miranda <miranda@gnat.com>
7893
7894 * sem_aggr.adb: Add dependence on Exp_Tss package
7895 Correct typo in comment
7896 (Resolve_Aggregate): In case of array aggregates set the estimated
7897 type of the aggregate before calling resolve. This is needed to know
7898 the name of the corresponding IP in case of limited array aggregates.
7899 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
7900 in case of default initialized array components.
7901
7902 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
7903 types. Required to give support to limited aggregates in generic
7904 formals.
7905
79062003-12-08 Ed Schonberg <schonberg@gnat.com>
7907
7908 * sem_ch3.adb (Check_Initialization): For legality purposes, an
7909 inlined body functions like an instantiation.
7910 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
7911 until bounds are analyzed, to diagnose premature use of type.
7912
7913 * sem_util.adb (Wrong_Type): Improve error message when the type of
7914 the expression is used prematurely.
7915
79162003-12-08 GNAT Script <nobody@gnat.com>
7917
7918 * Make-lang.in: Makefile automatically updated
7919
0875a894
AC
79202003-12-08 Arnaud Charlet <charlet@act-europe.fr>
7921
7618d510
AC
7922 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
7923 they are automatically generated by Make-lang.in and cause nothing but
0875a894
AC
7924 maintenance troubles.
7925
5b4994bc
AC
79262003-12-05 Thomas Quinot <quinot@act-europe.fr>
7927
7928 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
7929 version of this unit).
7930
79312003-12-05 Olivier Hainque <hainque@act-europe.fr>
7932
7933 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
7934 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
7935 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
7936 the body of System.Interrupt_Management common to several targets.
7937 Update copyright notice when appropriate.
7938
7939 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
7940 constant.
7941
7942 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
7943 to ensure that the kernel fills in the interrupted context structure
7944 before calling a signal handler, which is necessary to be able to
7945 unwind past it. Update the copyright notice.
7946
79472003-12-05 Jerome Guitton <guitton@act-europe.fr>
7948
7949 * a-elchha.ads: New file.
7950
7951 * a-elchha.adb: New default last chance handler. Contents taken from
7952 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
7953
7954 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
7955 is moved to a-elchha.adb to provide a target-independent default last
7956 chance handler.
7957
7958 * Makefile.rtl: Add a-elchha.o
7959
7960 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
7961
79622003-12-05 Ed Schonberg <schonberg@gnat.com>
7963
7964 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
7965 declared in an instance, do not inline the call if the instance is not
7966 frozen yet, to prevent order of elaboration problems.
7967
7968 * sem_prag.adb: Add comments for previous fix.
7969
79702003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
7971
7972 * g-table.adb: Use the right variable in Set_Item.
7973 Update copyright notice.
7974
79752003-12-05 Arnaud Charlet <charlet@act-europe.fr>
7976
7977 * Makefile.in: Remove unused rules.
7978
79792003-12-05 Vincent Celier <celier@gnat.com>
7980
7981 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
7982 -nostdlib. Not needed here after all.
7983
efdfd311
AC
79842003-12-03 Thomas Quinot <quinot@act-europe.fr>
7985
7986 PR ada/11724
7987
fbf3e0dd 7988 * adaint.h, adaint.c, g-os_lib.ads:
efdfd311
AC
7989 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
7990 on some platforms (including FreeBSD), it is a 64 bit value.
7991 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
7992
79932003-12-03 Arnaud Charlet <charlet@act-europe.fr>
7994
7995 * gnatvsn.ads (Library_Version): Now contain only the relevant
7996 version info.
7997 (Verbose_Library_Version): New constant.
7998
7999 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
8000 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
8001 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
8002
8003 * gnatlbr.adb: Clean up: replace Library_Version by
8004 Verbose_Library_Version.
8005
fbf3e0dd 8006 * make.adb, lib-writ.adb, exp_attr.adb:
efdfd311
AC
8007 Clean up: replace Library_Version by Verbose_Library_Version.
8008
8009 * 5lintman.adb: Removed.
8010
fbf3e0dd 8011 * Makefile.in:
efdfd311
AC
8012 Update and simplify computation of LIBRARY_VERSION.
8013 Fix computation of GSMATCH_VERSION.
8014 5lintman.adb is no longer used: replaced by 7sintman.adb.
8015
80162003-12-03 Robert Dewar <dewar@gnat.com>
8017
fbf3e0dd 8018 * exp_ch5.adb:
efdfd311
AC
8019 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
8020 name. Modified to consider small non-bit-packed arrays as troublesome
8021 and in need of component-by-component assigment expansion.
8022
80232003-12-03 Vincent Celier <celier@gnat.com>
8024
8025 * lang-specs.h: Process nostdlib as nostdinc
8026
8027 * back_end.adb: Update Copyright notice
8028 (Scan_Compiler_Arguments): Process -nostdlib directly.
8029
80302003-12-03 Jose Ruiz <ruiz@act-europe.fr>
8031
fbf3e0dd 8032 * Makefile.in:
efdfd311
AC
8033 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
8034 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
8035 included in HIE_NONE_TARGET_PAIRS.
8036
80372003-12-03 Ed Schonberg <schonberg@gnat.com>
8038
fbf3e0dd 8039 * sem_attr.adb:
efdfd311
AC
8040 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
8041 is legal in an instance, because legality is cheched in the template.
8042
fbf3e0dd 8043 * sem_prag.adb:
efdfd311
AC
8044 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
8045 appplied to an unchecked conversion of a formal parameter.
8046
fbf3e0dd 8047 * sem_warn.adb:
efdfd311
AC
8048 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
8049 variables.
8050
80512003-12-03 Olivier Hainque <hainque@act-europe.fr>
8052
8053 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
8054 routines. The second one is new functionality to deal with backtracing
8055 through signal handlers.
8056 (unwind): Split into the two separate subroutines above.
8057 Update the documentation, and deal properly with sizeof (REG) different
8058 from sizeof (void*).
8059
08aa9a4a
AC
80602003-12-01 Nicolas Setton <setton@act-europe.fr>
8061
8062 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
8063 so that the debugger can reliably access the value of the parameter,
8064 and therefore is able to display the exception name when an exception
8065 breakpoint is reached.
8066
80672003-12-01 Thomas Quinot <quinot@act-europe.fr>
8068
8069 * fmap.adb: Fix typo in warning message.
8070
8071 * g-socket.ads, g-socket.adb: Make Free a visible instance of
8072 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
8073
80742003-12-01 Vincent Celier <celier@gnat.com>
8075
8076 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
8077 ther is no Afile.
8078 (Build_Library): Get the switches only if Default_Switches is declared
8079 in package Binder.
8080
80812003-12-01 Ed Schonberg <schonberg@gnat.com>
8082
8083 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
8084 actuals that are indexed components, reanalyze actual to ensure that
8085 packed array references are properly expanded.
8086
8087 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
8088 attempted assignment to a discriminant.
8089
80902003-12-01 Robert Dewar <dewar@gnat.com>
8091
8092 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
8093 reformatting.
8094
8095 * switch-c.adb: Minor reformatting of comments
8096
80972003-12-01 Arnaud Charlet <charlet@act-europe.fr>
8098
8099 * Makefile.in: Clean ups.
8100
81012003-12-01 GNAT Script <nobody@gnat.com>
8102
8103 * Make-lang.in: Makefile automatically updated
8104
c6135994
AC
81052003-12-01 Arnaud Charlet <charlet@act-europe.fr>
8106
8107 * 5wsystem.ads: Disable zero cost exception, not ready yet.
8108
51a30506
UW
81092003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
8110
8111 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
8112 to force serialization.
8113
81a5b587
AC
81142003-11-26 Thomas Quinot <quinot@act-europe.fr>
8115
fbf3e0dd 8116 * g-socket.ads, g-socket.adb:
81a5b587
AC
8117 Clarify documentation of function Stream. Introduce a Free procedure
8118 to release the returned Stream once it becomes unused.
8119
8120 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
8121
81222003-11-26 Arnaud Charlet <charlet@act-europe.fr>
8123
8124 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
8125 since NT 4 cannot handle timeout values that are too large,
8126 e.g. DWORD'Last - 1.
8127
81282003-11-26 Ed Schonberg <schonberg@gnat.com>
8129
fbf3e0dd 8130 * exp_ch4.adb:
81a5b587
AC
8131 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
8132 in procedure calls and whose expansion must be deferred.
8133
8134 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
8135 is in exp_ch4.
8136
fbf3e0dd 8137 * sem_ch3.adb:
81a5b587
AC
8138 (Build_Derived_Array_Type): Create operator for unconstrained type
8139 if ancestor is unconstrained.
8140
81412003-11-26 Vincent Celier <celier@gnat.com>
8142
8143 * make.adb (Project_Object_Directory): New global variable
8144 (Change_To_Object_Directory): New procedure
8145 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
8146 of Change_Dir directly. Do not change working directory to object
8147 directory of main project after each compilation.
8148 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
8149 directly.
8150 Change to object directory of main project before binding step.
8151 (Initialize): Initialize Project_Object_Directory to No_Project
8152
fbf3e0dd 8153 * mlib-prj.adb:
81a5b587
AC
8154 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
8155 binding a Stand-Alone Library.
8156
8157 * output.adb: Update Copyright notice
8158 (Write_Char): Output buffer when full
8159
81602003-11-26 Robert Dewar <dewar@gnat.com>
8161
8162 * sem_ch13.adb: (Check_Size): Reset size if size is too small
8163
fbf3e0dd 8164 * sem_ch13.ads:
81a5b587
AC
8165 (Check_Size): Fix documentation to include bit-packed array case
8166
8167 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
8168
8169 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
8170
8171 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
8172
d4c47b51
AC
81732003-11-24 Arnaud Charlet <charlet@act-europe.fr>
8174
8175 PR ada/13142
8176 * utils.c (init_gigi_decls): Change name of built-in setjmp to
8177 __builtin_setjmp, since this is apparently needed by recent
8178 non Ada changes.
8179
7677e9e0
RO
81802003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8181
d4c47b51 8182 * adadecode.c: Only include ctype.h if not IN_GCC.
7677e9e0
RO
8183 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
8184
6c1e24d3
AC
81852003-11-24 Jose Ruiz <ruiz@act-europe.fr>
8186
fbf3e0dd 8187 * Makefile.in:
6c1e24d3
AC
8188 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
8189 signals and interrupts.
8190
8191 * 5zintman.ads: New File.
8192
8193 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
8194 add exception signals to the set of unmasked signals.
8195
fbf3e0dd 8196 * 5ztaprop.adb:
6c1e24d3
AC
8197 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
8198 between signals and interrupts.
8199 Add to Unblocked_Signal_Mask the set of signals that are in
8200 Keep_Unmasked.
8201
fbf3e0dd 8202 * 7sinmaop.adb:
6c1e24d3
AC
8203 Adding a check to see whether the Interrupt_ID we want to unmask is in
8204 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
8205 reason is that the index type of the Keep_Unmasked array is not always
8206 Interrupt_ID; it may be a subtype of Interrupt_ID.
8207
82082003-11-24 Gary Dismukes <dismukes@gnat.com>
8209
fbf3e0dd 8210 * exp_util.adb:
6c1e24d3
AC
8211 (Remove_Side_Effects): Condition constantness of object created for a
8212 an unchecked type conversion on the constantness of the expression
8213 to ensure the correct value for 'Constrained when passing components
8214 of view-converted class-wide objects.
8215
82162003-11-24 Robert Dewar <dewar@gnat.com>
8217
8218 * par-load.adb (Load): Improve handling of misspelled and missing units
8219 Removes several cases of compilation abandoned messages
8220
8221 * lib.adb: (Remove_Unit): New procedure
8222
8223 * lib.ads: (Remove_Unit): New procedure
8224
8225 * lib-load.adb: Minor reformatting
8226
82272003-11-24 Vincent Celier <celier@gnat.com>
8228
fbf3e0dd 8229 * make.adb:
6c1e24d3
AC
8230 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
8231 (Marking_Label): Label to mark processed source files. Incremented for
8232 each executable.
8233 (Gnatmake): Increase Marking_Labet for each executable
8234 (Is_Marked): Compare against marking label
8235 (Mark): Mark with marking label
8236
82372003-11-24 Jerome Guitton <guitton@act-europe.fr>
8238
fbf3e0dd 8239 * s-thread.ads:
6c1e24d3
AC
8240 Move the declaration of the TSD for System.Threads to System.Soft_Links.
8241 Add some comments.
8242
8243 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
8244 (rts-cert): build a single relocatable object for the run-time lib.
8245 Fix perms.
8246
82472003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
8248
fbf3e0dd 8249 * Make-lang.in:
6c1e24d3
AC
8250 Use gnatls rather than gcc to obtain the location of GNAT RTL for
8251 crosstools build.
8252
82532003-11-24 Sergey Rybin <rybin@act-europe.fr>
8254
8255 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
8256 can not use it as before (that is, as a variable) when dumping it into
8257 the tree file. Add a local variable to store the result of this
8258 function and to be used as the string to be written into the tree.
8259
8260 * scn.adb (Initialize_Scanner): Add comments explaining the recent
8261 changes.
8262
8263 * sinput.adb (Source_First, Source_Last): In case of
8264 Internal_Source_File, replace returning attributes of
8265 Internal_Source_Ptr (which is wrong) with returning attributes of
8266 Internal_Source.
8267
82682003-11-24 Ed Schonberg <schonberg@gnat.com>
8269
fbf3e0dd 8270 * sem_ch3.adb:
6c1e24d3
AC
8271 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
8272 used for implicit concatenation operators.
8273 Code cleanup.
8274
fbf3e0dd 8275 * sem_elab.adb:
6c1e24d3
AC
8276 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
8277 task bodies that are in the scope of a Suppress pragma.
8278 (Check_A Call): Use the flag to prevent spurious elaboration checks.
8279
fbf3e0dd 8280 * sinfo.ads, sinfo.adb:
6c1e24d3
AC
8281 New flag No_Elaboration_Check on function/procedure calls, to properly
8282 suppress checks on calls in task bodies that are within a local suppress
8283 pragma.
8284
fbf3e0dd 8285 * exp_ch4.adb:
6c1e24d3
AC
8286 (Expand_Concatenate_Other): Use the proper integer type for the
8287 expression for the upper bound, to avoid universal_integer computations
8288 when possible.
8289
6f2aeb72
KC
82902003-11-21 Kelley Cook <kcook@gcc.gnu.org>
8291
8292 * .cvsignore: Delete.
8293
e9f85cd6
AS
82942003-11-21 Andreas Schwab <schwab@suse.de>
8295
8296 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
8297
4e074baf
VF
82982003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
8299
8300 * 5wsystem.ads: Enable zero cost exception.
8301
f1f9fe30
AC
83022003-11-21 Jerome Guitton <guitton@act-europe.fr>
8303
8304 * 5ztiitho.adb: Remove an unreferenced variable.
8305
83062003-11-21 Thomas Quinot <quinot@act-europe.fr>
8307
8308 * adaint.c: For FreeBSD, use mkstemp.
8309
83102003-11-21 Arnaud Charlet <charlet@act-europe.fr>
8311
8312 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
8313
83142003-11-21 Robert Dewar <dewar@gnat.com>
8315
8316 * bld.adb: Remove useless USE of gnatvsn
8317
8318 * gnatchop.adb: Minor reformatting
8319 Clean up version handling to be more consistent
8320
8321 * gnatxref.adb: Minor reformatting
8322
8323 * gprcmd.adb: Minor reformatting
8324 Fix output of copyright to be more consistent with other tools
8325
83262003-11-21 Vincent Celier <celier@gnat.com>
8327
8328 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
8329
83302003-11-21 Sergey Rybin <rybin@act-europe.fr>
8331
8332 * atree.adb (Initialize): Add initializations for global variables
8333 used in New_Copy_Tree.
8334
8335 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
8336 Internal_Source_File as the actual).
8337 Put the set of statements creating Any_Character before the set of
8338 statements creating Any_Array to have Any_Character fully initialized
8339 when it is used in creating Any_Array.
8340
8341 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
8342 not call Scan in case if the actual is Internal_Source_File
8343 Add 2003 to copyright note.
8344
8345 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
8346 processing Internal_Source_File.
8347
8348 * types.ads: Add the constant Internal_Source_File representing the
8349 source buffer for artificial source-code-like strings created within
8350 the compiler (the definition of Source_File_Index is changed).
8351
c5b2a8ae
AC
83522003-11-20 Arnaud Charlet <charlet@act-europe.fr>
8353
8354 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
8355 56system.ads: New file, FreeBSD version.
8356
a03ad584
JM
83572003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
8358
8359 * Make-lang.in (ada.extraclean): Delete.
8360
19f0526a
AC
83612003-11-19 Arnaud Charlet <charlet@act-europe.fr>
8362
8363 * gnatmem.adb: Clean up verbose output.
8364
8365 * gprcmd.adb: Change copyright to FSF.
8366
83672003-11-19 Vincent Celier <celier@gnat.com>
8368
8369 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
8370 and Version (ignored).
8371
8372 * symbols.ads: (Policy): New type
8373 (Initialize): New parameter Reference, Symbol_Policy and
8374 Library_Version.
8375 Remove parameter Force.
8376 Minor reformatting.
8377
8378 * snames.ads, snames.adbadb: New standard names
8379 Library_Reference_Symbol_File and Library_Symbol_Policy
8380
fbf3e0dd 8381 * mlib-prj.adb:
19f0526a
AC
8382 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
8383 project.
8384
fbf3e0dd 8385 * mlib-tgt.adb:
19f0526a
AC
8386 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
8387
8388 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
8389
8390 * prj.adb: (Project_Empty): New component Symbol_Data
8391
8392 * prj.ads: (Policy, Symbol_Record): New types
8393 (Project_Data): New component Symbol_Data
8394
fbf3e0dd 8395 * prj-attr.adb:
19f0526a
AC
8396 New attributes Library_Symbol_File, Library_Symbol_Policy and
8397 Library_Reference_Symbol_File.
8398
fbf3e0dd 8399 * prj-nmsc.adb:
19f0526a
AC
8400 (Ada_Check): When project is a Stand-Alone library project, process
8401 attribute Library_Symbol_File, Library_Symbol_Policy and
8402 Library_Reference_Symbol_File.
8403
8404 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
8405 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
8406 5sml-tgt.adb (Build_Dynamic_Library): New parameter
8407 Symbol_Data (ignored).
8408
8409 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
8410 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
8411 functions Option_File_Name and Version_String. Set new options of
8412 gnatsym related to symbol file, symbol policy and reference symbol
8413 file.
8414
fbf3e0dd 8415 * 5vsymbol.adb:
19f0526a
AC
8416 Extensive modifications to take into account the reference symbol file,
8417 the symbol policy, the library version and to put in the symbol file the
8418 minor and major IDs.
8419
8420 * bld.adb (Process_Declarative_Items): Put second argument of
8421 gprcmd to_absolute between single quotes, to avoid problems with
8422 Windows.
8423
8424 * bld-io.adb: Update Copyright notice.
8425 (Flush): Remove last character of a line, if it is a back slash, to
8426 avoid make problems.
8427
fbf3e0dd 8428 * gnatsym.adb:
19f0526a
AC
8429 Implement new scheme with reference symbol file and symbol policy.
8430
8431 * g-os_lib.ads: (Is_Directory): Clarify comment
8432
84332003-11-19 Robert Dewar <dewar@gnat.com>
8434
8435 * atree.adb: Move New_Copy_Tree global variables to head of package
8436
8437 * errout.adb: Minor reformatting
8438
84392003-11-19 Javier Miranda <miranda@gnat.com>
8440
8441 * sem_ch4.adb: (Diagnose_Call): Improve error message.
8442 Add reference to Ada0Y (AI-50217)
8443
8444 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
8445 sem_util.adb: Add reference to AI-50217
8446
8447 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
8448
8449 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
8450
8451 * sem_aggr.adb: Complete documentation of AI-287 changes
8452
8453 * par-ch4.adb: Document previous changes.
8454
8455 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
8456 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
8457 Ada0Y (AI-50217)
8458
8459 * exp_aggr.adb: Add references to AI-287 in previous changes
8460
84612003-11-19 Ed Schonberg <schonberg@gnat.com>
8462
fbf3e0dd 8463 * exp_ch6.adb:
19f0526a
AC
8464 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
8465 in the rewriting is the result of an inlined call.
8466
8467 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
8468 parameter is a type conversion, use original node to construct the
8469 post-call assignment, because expression may have been rewritten, e.g.
8470 if it is a packed array.
8471
fbf3e0dd 8472 * sem_attr.adb:
19f0526a
AC
8473 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
8474 body, just as it is in an instance.
8475 Categorization routines
8476
8477 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
8478 Instantiate_Object): Set proper sloc reference for message on missing
8479 actual.
8480
84812003-11-19 Thomas Quinot <quinot@act-europe.fr>
8482
8483 * Makefile.in: Add FreeBSD libgnat pairs.
8484
8485 * usage.adb: Fix typo in usage message.
8486
84872003-11-19 Jerome Guitton <guitton@act-europe.fr>
8488
8489 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
8490 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
8491 pragma Thread_Body.
8492 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
8493
8494 * s-thread.adb: This file is now a dummy implementation of
8495 System.Thread.
8496
84972003-11-19 Sergey Rybin <rybin@act-europe.fr>
8498
8499 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
8500
85012003-11-19 Emmanuel Briot <briot@act-europe.fr>
8502
8503 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
8504 instanciation references in the parent type description.
8505
0d77ab84
AC
85062003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8507
8508 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
8509
8510 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
8511 TYPE_PRECISION directly from esize.
8512
85132003-11-18 Thomas Quinot <quinot@act-europe.fr>
8514
fbf3e0dd 8515 * cstreams.c:
0d77ab84
AC
8516 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
8517
8518 * init.c: Initialization routines for FreeBSD
8519
8520 * link.c: Link info for FreeBSD
8521
8522 * sysdep.c: Add the case of FreeBSD
8523
cb7a5092
AC
85242003-11-17 Jerome Guitton <guitton@act-europe.fr>
8525
8526 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
8527 already called in System.Threads.
8528
8529 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
8530 environment task, as it has been moved to System.Threads.Initialization.
8531
85322003-11-17 Arnaud Charlet <charlet@act-europe.fr>
8533
8534 * adaint.c (__gnatlib_install_locks): Only reference
8535 __gnat_install_locks on VMS, since other platforms can avoid using
8536 --enable-threads=gnat
8537
85382003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8539
8540 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
8541
8542 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
8543 TYPE_PACKED_ARRAY_TYPE_P.
8544 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
8545
8546 Part of PR ada/12806
8547 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
8548 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
8549
85502003-11-17 Vincent Celier <celier@gnat.com>
8551
8552 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
8553 to False.
8554 Do not set exit status to Failure when Warning is True.
8555 (Gnatchop): Make errors "no compilation units found" and
8556 "no source files written" warnings only.
8557
8558 * make.adb (Gnatmake): When using a project file, set
8559 Look_In_Primary_Dir to False.
8560 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
8561 and Local_Configuration_Pragmas in the project where they are declared
8562 not an extending project which might have inherited them.
8563
8564 * osint.adb (Locate_File): If Name is already an absolute path, do not
8565 look for a directory.
8566
8567 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
8568 -gnats (Check_Syntax) is used, issue only a warning, not an error.
8569
8570 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
8571 in objects of type Variable_Value.
8572
8573 * prj.ads: (Variable_Value): New component Project
8574
8575 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
8576 is in a project extended by Project.
8577
8578 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
8579 Project of Variable_Values to this new parameter value.
8580 (Expression): Set component Project of Variable_Values.
8581 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
8582 Set the component Project in array elements.
8583
85842003-11-17 Sergey Rybin <rybin@act-europe.fr>
8585
8586 * errout.adb: (Initialize): Add initialization for error nodes.
8587
8588 * sem_ch12.adb (Initialize): Add missing initializations for
8589 Exchanged_Views and Hidden_Entities.
8590
85912003-11-17 Ed Schonberg <schonberg@gnat.com>
8592
8593 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
8594 already instantiated tree for use in subsequent inlining.
8595 (Analyze_Associations, Instantiate_Formal_Subprogram,
8596 Instantiate_Object): improve error message for mismatch in
8597 instantiations.
8598
8599 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
8600 instantiations of subprograms declared in instances.
8601
86022003-11-17 Javier Miranda <miranda@gnat.com>
8603
8604 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
8605 executed only under the Extensions_Allowed flag.
8606
86072003-11-17 Robert Dewar <dewar@gnat.com>
8608
8609 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
8610 zeroes suppressed.
8611 (Address_Image): Fix bug of returning 0x instead of 0x0
8612 Minor reformatting (function specs).
8613
8614 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
8615 (missed case of 33-63)
8616
8617 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
8618
8619 * s-thread.adb: Add comments for pragma Restriction
8620
8621 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
8622 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
8623
86242003-11-17 Ed Falis <falis@gnat.com>
8625
8626 * s-thread.adb: Added No_Tasking restriction for this implementation.
8627
86282003-11-17 Emmanuel Briot <briot@act-europe.fr>
8629
8630 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
8631 instanciation references in the parent type description.
8632
86332003-11-17 GNAT Script <nobody@gnat.com>
8634
8635 * Make-lang.in: Makefile automatically updated
8636
7d60db05
JM
86372003-11-16 Jason Merrill <jason@redhat.com>
8638
8639 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
8640 and TAGS files that include them for each front end.
8641
c0040397
AJ
86422003-11-14 Andreas Jaeger <aj@suse.de>
8643
a477ab83 8644 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
fbf3e0dd 8645 is the canonical version.
a477ab83
AJ
8646 * misc.c (gnat_handle_option): Likewise.
8647
c0040397
AJ
8648 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
8649
8650 * 5nsystem.ads: New file for x86_64-linux-gnu.
8651
95a6aaf9
AC
86522003-11-14 Arnaud Charlet <charlet@act-europe.fr>
8653
262cc585 8654 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
95a6aaf9 8655
4a4fe537
AC
8656 * comperr.adb: Fix logic in previous change.
8657
65356e64
AC
86582003-11-13 Vincent Celier <celier@gnat.com>
8659
8660 * 5bml-tgt.adb (Build_Dynamic_Library): Use
8661 Osint.Include_Dir_Default_Prefix instead of
8662 Sdefault.Include_Dir_Default_Name.
8663
8664 * gnatlbr.adb: Update Copyright notice
8665 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
8666 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
8667 instead of Sdefault.Object_Dir_Default_Name
8668
c0040397 8669 * gnatlink.adb:
65356e64
AC
8670 (Process_Binder_File): Never suppress the option following -Xlinker
8671
c0040397 8672 * mdll-utl.adb:
65356e64
AC
8673 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
8674 Sdefault.Object_Dir_Default_Name.
8675
c0040397 8676 * osint.ads, osint.adb:
65356e64
AC
8677 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
8678 Minor reformatting.
8679
8680 * vms_conv.ads: Minor reformating
8681 Remove GNAT STANDARD and GNAT PSTA
8682
c0040397 8683 * vms_conv.adb:
65356e64
AC
8684 Allow GNAT MAKE to have several files on the command line.
8685 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
8686 Sdefault.Object_Dir_Default_Name.
8687 Minor Reformating
8688 Remove data for GNAT STANDARD
8689
c0040397 8690 * vms_data.ads:
65356e64
AC
8691 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
8692 Remove data for GNAT STANDARD
8693 Remove options and documentation for -gnatwb/-gnatwB: these warning
8694 options no longer exist.
8695
86962003-11-13 Ed Falis <falis@gnat.com>
8697
8698 * 5zthrini.adb: (Init_RTS): Made visible
8699
c0040397 8700 * 5zthrini.adb:
65356e64
AC
8701 (Register): Removed unnecessary call to taskVarGet that checked whether
8702 an ATSD was already set as a task var for the argument thread.
8703
c0040397 8704 * s-thread.adb:
65356e64
AC
8705 Updated comment to reflect that this is a VxWorks version
8706 Added context clause for System.Threads.Initialization
8707 Added call to System.Threads.Initialization.Init_RTS
8708
87092003-11-13 Jerome Guitton <guitton@act-europe.fr>
8710
c0040397 8711 * 5zthrini.adb:
65356e64
AC
8712 (Init_RTS): New procedure, for the initialization of the run-time lib.
8713
c0040397 8714 * s-thread.adb:
65356e64
AC
8715 Remove dependancy on System.Init, so that this file can be used in the
8716 AE653 sequential run-time lib.
8717
87182003-11-13 Robert Dewar <dewar@gnat.com>
8719
8720 * bindgen.adb: Minor reformatting
8721
87222003-11-13 Ed Schonberg <schonberg@gnat.com>
8723
c0040397 8724 * checks.adb:
65356e64
AC
8725 (Apply_Discriminant_Check): Do no apply check if target type is derived
8726 from source type with no applicable constraint.
8727
c0040397 8728 * lib-writ.adb:
65356e64
AC
8729 (Ensure_System_Dependency): Do not apply the style checks that may have
8730 been specified for the main unit.
8731
c0040397 8732 * sem_ch8.adb:
65356e64
AC
8733 (Find_Selected_Component): Further improvement in error message, with
8734 RM reference.
8735
c0040397 8736 * sem_res.adb:
65356e64
AC
8737 (Resolve): Handle properly the case of an illegal overloaded protected
8738 procedure.
8739
87402003-11-13 Javier Miranda <miranda@gnat.com>
8741
c0040397 8742 * exp_aggr.adb:
65356e64
AC
8743 (Has_Default_Init_Comps): New function to check the presence of
8744 default initialization in an aggregate.
8745 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
8746 extension aggregate of a limited record. In addition, a new formal
8747 was added to do not initialize the record controller (if any) during
8748 this recursive expansion of ancestors.
8749 (Init_Controller): Add support for limited record components.
8750 (Expand_Record_Aggregate): In case of default initialized components
8751 convert the aggregate into a set of assignments.
8752
8753 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
8754 describing the new syntax.
8755 Nothing else needed to be done because this subprogram delegates part of
8756 its work to P_Precord_Or_Array_Component_Association.
8757 (P_Record_Or_Array_Component_Association): Give support to the new
8758 syntax for default initialization of components.
8759
c0040397 8760 * sem_aggr.adb:
65356e64
AC
8761 (Resolve_Aggregate): Relax the strictness of the frontend in case of
8762 limited aggregates.
8763 (Resolve_Record_Aggregate): Give support to default initialized
8764 components.
8765 (Get_Value): In case of default initialized components, duplicate
8766 the corresponding default expression (from the record type
8767 declaration). In case of default initialization in the *others*
8768 choice, do not check that all components have the same type.
8769 (Resolve_Extension_Aggregate): Give support to limited extension
8770 aggregates.
8771
c0040397 8772 * sem_ch3.adb:
65356e64
AC
8773 (Check_Initialization): Relax the strictness of the front-end in case
8774 of aggregate and extension aggregates. This test is now done in
8775 Get_Value in a per-component manner.
8776
8777 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
8778 expression corresponds to a limited aggregate. This test is now done
8779 in Get_Value.
8780
8781 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
8782 Box_Present flag.
8783
8784 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
8785 present in an N_Component_Association node
8786
87872003-11-13 Thomas Quinot <quinot@act-europe.fr>
8788
8789 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
8790 type-conformant entry only if they are homographs.
8791
87922003-11-13 GNAT Script <nobody@gnat.com>
8793
8794 * Make-lang.in: Makefile automatically updated
8795
49add53f
RO
87962003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8797
8798 * adadecode.c: Use <> form of include for ctype.h.
8799 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
8800
94bae1cc
RO
88012003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8802
8803 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
8804 Works around PR middle-end/6552.
8805
463f452c
AC
88062003-11-10 Ed Falis <falis@gnat.com>
8807
8808 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
8809
8810 * 5zinit.adb: (Install_Handler): Moved back to spec
8811 (Install_Signal_Handlers): Deleted
8812
8813 * 5zthrini.adb: Added context clause for System.Storage_Elements
8814 (Register): Only handles creation of taskVar; initialization moved to
8815 Thread_Body_Enter.
8816 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
8817 Added declaration of environment task secondary stack and
8818 initialization.
8819
8820 * s-thread.adb: Implement bodies for thread body processing
8821
c0040397 8822 * s-thread.ads:
463f452c
AC
8823 Added comment identifying supported targets for pragma Thread_Body.
8824
88252003-11-10 Pascal Obry <obry@gnat.com>
8826
8827 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
8828 GNAT_MAX_PATH_LEN.
8829
c0040397 8830 * s-fileio.adb:
463f452c
AC
8831 (Open): Properly check for string length before copying into the buffer.
8832 Raises Name_Error if buffer is too small. Note that this was a potential
8833 buffer overflow.
8834
88352003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
8836
8837 * bindgen.adb, comperr.adb: Code clean ups.
8838 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
8839
88402003-11-10 Sergey Rybin <rybin@act-europe.fr>
8841
8842 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
8843
88442003-11-10 Vincent Celier <celier@gnat.com>
8845
c0040397 8846 * gprcmd.adb:
463f452c
AC
8847 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
8848 installation.
8849
8850 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
8851
8852 * prj.adb: (Project_Empty): Add new boolean component Virtual
8853
8854 * prj.ads: (Virtual_Prefix): New constant string
8855 (Project_Data): New boolean component Virtual
8856
8857 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
8858 a library project is extended by a virtual extending project.
8859
c0040397 8860 * prj-part.adb:
463f452c
AC
8861 Modifications throughout to implement extending-all project, including:
8862 (Virtual_Hash, Processed_Hash): New hash tables
8863 (Create_Virtual_Extending_Project): New procedure
8864 (Look_For_Virtual_Projects_For): New procedure
8865
c0040397 8866 * prj-proc.adb:
463f452c
AC
8867 (Process): After checking the projects, if main project is an
8868 extending-all project, set the object directory of all virtual extending
8869 project to the object directory of the main project.
8870 Adjust error message when a virtual extending project has the same
8871 object directory as an project being extended.
8872 (Recursive_Process): If name starts with the virtual prefix, set Virtual
8873 to True in the project data.
8874
c0040397 8875 * prj-tree.adb:
463f452c
AC
8876 (Default_Project_Node): Add new boolean component Extending_All
8877 (Is_Extending_All): New function
8878 (Set_Is_Extending_All): New procedure
8879
8880 * prj-tree.ads: (Is_Extending_All): New function
8881 (Set_Is_Extending_All): New procedure
8882 (Project_Node_Record): New boolean component Extending_All
8883
8884 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
8885
c0040397 8886 * vms_data.ads:
463f452c
AC
8887 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
8888
8889 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
8890 "gprcmd prefix" to define it.
8891
88922003-11-10 Thomas Quinot <quinot@act-europe.fr>
8893
8894 * einfo.ads: Fix a typo and remove an extraneous word in comments.
8895
c0040397 8896 * lib-load.adb:
463f452c
AC
8897 (Create_Dummy_Package_Unit): Set the scope of the entity for the
8898 created dummy package to Standard_Standard, not to itself, to
8899 defend other parts of the front-end against encoutering a cycle in
8900 the scope chain.
8901
c0040397 8902 * sem_ch10.adb:
463f452c
AC
8903 (Analyze_With_Clause): When setting the entities for the successive
8904 N_Expanded_Names that constitute the name of a child unit, do not
8905 attempt to go further than Standard_Standard in the chain of scopes.
8906 This case arises from the placeholder units created by
8907 Create_Dummy_Package_Unit in the case of a with_clause for a
8908 nonexistent child unit.
8909
89102003-11-10 Ed Schonberg <schonberg@gnat.com>
8911
c0040397 8912 * exp_ch6.adb:
463f452c
AC
8913 (Expand_Thread_Body): Place subprogram on scope stack, so that new
8914 declarations are given the proper scope.
8915
c0040397 8916 * sem_ch13.adb:
463f452c
AC
8917 (Check_Expr_Constants): Reject an expression that contains a constant
8918 created during expansion, and that appears after the object to which
8919 the address clause applies.
8920
8921 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
8922 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
8923 that uses 'Range of a function call with controlled components, so
8924 that the function result can be finalized before starting the loop.
8925
c0040397 8926 * sem_ch8.adb:
463f452c
AC
8927 (Find_Selected_Component): Improve error message when prefix is
8928 an implicit dereference of an incomplete type.
8929
89302003-11-10 Robert Dewar <dewar@gnat.com>
8931
8932 * opt.ads: New Print_Standard flag for -gnatS switch
8933
8934 * sem_ch13.adb: Remove some additional checks for unaligned arrays
8935
8936 * cstand.adb (Create_Standard): Print out package standard if -gnatS
8937 switch set
8938
8939 * debug.adb: Update doc for -gnatds to discuss relationship with new
8940 -gnatS flag
8941
8942 * sinfo.adb: Add new field Entity_Or_Associated_Node
8943
8944 * sinfo.ads: Add new field Entity_Or_Associated_Node
8945 Update documentation for Associated_Node and Entity fields to clarify
8946 relationship and usage.
8947
c0040397 8948 * sprint.adb:
463f452c
AC
8949 (Write_Id): Properly process Associated_Node field in generic template
8950
c0040397 8951 * switch-c.adb:
463f452c
AC
8952 Recognize new -gnatS switch for printing package Standard
8953 This replaces gnatpsta
8954
c0040397 8955 * usage.adb:
463f452c
AC
8956 Add line for new -gnatS switch for printing package Standard
8957 This replaces gnatpsta
8958
c77c5f2e
AJ
89592003-11-10 Andreas Jaeger <aj@suse.de>
8960
8961 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
8962 integer.
8963
5c90f17f
AC
89642003-11-10 Arnaud Charlet <charlet@act-europe.fr>
8965
8966 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
8967 by gnat1.
8968
139f0d1e
AC
89692003-11-10 Arnaud Charlet <charlet@act-europe.fr>
8970
8971 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
8972 no longer needed.
8973
8974 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
8975
8976 * sysdep.c: Add handling of cygwin.
8977
f3e4c05c
GS
89782003-11-10 GNAT Script <nobody@gnat.com>
8979
8980 * Make-lang.in: Makefile automatically updated
8981
2cdc8909
AC
89822003-11-10 Arnaud Charlet <charlet@act-europe.fr>
8983
8984 PR 12950
8985 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
8986 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
8987 Replace GNAT_ROOT by GCC_ROOT.
8988
8989 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
8990
37783865
ZW
89912003-11-06 Zack Weinberg <zack@codesourcery.com>
8992
8993 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
8994 and update for changed meaning of GET_MODE_BITSIZE.
8995
6bc1c519
AC
89962003-11-04 Doug Rupp <rupp@gnat.com>
8997
8998 * sysdep.c: Problem discovered during IA64 VMS port.
8999 [VMS] #include <unixio.h> to get proper prototypes.
9000
37783865 9001 * adaint.c:
6bc1c519
AC
9002 Issues discovered/problems fixed during IA64 VMS port.
9003 [VMS] #define _POSIX_EXIT for proper semantics.
9004 [VMS] #include <unixio.h> for proper prototypes.
9005 [VMS] (fork): #define IA64 version.
9006 (__gnat_os_exit): Remove unnecessary VMS specific code.
9007
90082003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9009
9010 Part of PR ada/12806
9011
9012 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
9013 tree, not integer.
9014
37783865 9015 * decl.c:
6bc1c519
AC
9016 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
9017 not integer.
9018
9019 * targtyps.c, decl.c, misc.c,
9020 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
9021 routines to work around change in FP sizing semantics in GCC.
9022
37783865 9023 * utils.c:
6bc1c519
AC
9024 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
9025
9026 * gigi.h: (enumerate_modes): New function.
9027
9028 * Make-lang.in: (ada/misc.o): Add real.h.
9029
9030 * misc.c: (enumerate_modes): New function.
9031
90322003-11-04 Robert Dewar <dewar@gnat.com>
9033
9034 * 3vtrasym.adb: Minor reformatting
9035 Use terminology encoded/decoded name, rather than C++ specific notion
9036 of mangling (this is the terminology used throughout GNAT).
9037
9038 * einfo.h: Regenerated
9039
9040 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
9041
37783865 9042 * exp_ch6.adb:
6bc1c519
AC
9043 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
9044
9045 * par-prag.adb: Add dummy entry for Thread_Body pragma
9046
37783865 9047 * rtsfind.ads:
6bc1c519
AC
9048 Add entries for System.Threads entities for thread body processing
9049
37783865 9050 * sem_attr.adb:
6bc1c519
AC
9051 (Analyze_Pragma, Access attributes): Check these are not applied to a
9052 thread body, since this is not permitted
9053
9054 * sem_prag.adb: Add processing for Thread_Body pragma.
9055 Minor comment fix.
9056
37783865 9057 * sem_res.adb:
6bc1c519
AC
9058 (Resolve_Call): Check for incorrect attempt to call a thread body
9059 procedure with a direct call.
9060
9061 * snames.ads, snames.adb: Add entry for Thread_Body pragma
9062 Add names associated with thread body expansion
9063
9064 * snames.h: Add entry for Thread_Body pragma
9065
9066 * s-thread.adb: Add entries for thread body processing
9067 These are dummy bodies so far
9068
9069 * s-thread.ads: Add documentation on thread body handling.
9070 Add entries for thread body processing.
9071
90722003-11-04 Javier Miranda <miranda@gnat.com>
9073
37783865 9074 * sem_ch10.adb:
6bc1c519
AC
9075 (Build_Limited_Views): Return after posting an error in case of limited
9076 with_clause on subprograms, generics, instances or generic renamings
9077 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
9078 on subprograms, generics, instances or generic renamings
9079
90802003-11-04 Arnaud Charlet <charlet@act-europe.fr>
9081
9082 * raise.c (setup_to_install): Correct mistake in last revision; two
9083 arguments out of order.
9084
9085 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
9086 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
9087 notice, missed in previous change.
9088 Remove trailing blanks and other style errors introduced in previous
9089 change.
9090
90912003-11-04 Olivier Hainque <hainque@act-europe.fr>
9092
9093 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
9094 rid of the wrapper for a LJM type, ensuring we don't do that if the
9095 field is addressable. This avoids potential low level type view
9096 mismatches later on, for instance in a by-reference argument passing
9097 process.
9098
90992003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9100
9101 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
9102 aligned at byte boundary.
9103
91042003-11-04 Joel Brobecker <brobecker@gnat.com>
9105
9106 * decl.c (components_to_record): Do not delete the empty variants from
9107 the end of the union type.
9108
91092003-11-04 Ed Schonberg <schonberg@gnat.com>
9110
9111 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
9112 operation for a derived type, an explicit declaration may use a local
9113 subtype of Boolean.
9114
91152003-11-04 Vincent Celier <celier@gnat.com>
9116
9117 * make.adb (Gnatmake): Allow main sources on the command line with a
9118 library project when it is only for compilation (no binding or
9119 linking).
9120
487e9fff
RO
91212003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9122
9123 * Makefile.in: Remove many duplicate variables.
9124
63069342
KC
91252003-11-03 Kelley Cook <kcook@gcc.gnu.org>
9126
9127 * Make-lang.in (dvi): Move targets to $(docobjdir).
9128 (gnat_ug_vms.dvi): Simplify rule and adjust target.
9129 (gnat_ug_wnt.dvi): Likewise.
9130 (gnat_ug_unx.dvi): Likewise.
9131 (gnat_ug_vxw.dvi): Likewise.
9132 (gnat_rm.dvi): Likewise.
9133 (gnat-style.dvi): Likewise.
9134
c2edc52b
KC
91352003-10-31 Kelley Cook <kcook@gcc.gnu.org>
9136
9137 * gigi.h: Missed commit from update for C90.
9138
14df9585
KC
91392003-10-31 Kelley Cook <kcook@gcc.gnu.org>
9140
9141 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
9142
acd8e984
AS
91432003-10-31 Andreas Schwab <schwab@suse.de>
9144
9145 * raise.c (get_action_description_for): Fix typo in last change.
9146
b2c62c45
NN
91472003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
9148
9149 PR ada/12761
9150 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
9151 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
9152
9373164a
KC
91532003-10-30 Kelley Cook <kcook@gcc.gnu.org>
9154
9155 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
9156 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
9157 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
9158 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
9159 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
9160
bde58e32
AC
91612003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
9162
37783865 9163 * 3vtrasym.adb:
bde58e32
AC
9164 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
9165 numbers when symbol name is too long.
9166
91672003-10-30 Ed Falis <falis@gnat.com>
9168
9169 * g-signal.ads, g-signal.adb: New files
9170
9171 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
9172
9173 * Makefile.rtl: Introduce GNAT.Signals
9174
91752003-10-30 Robert Dewar <dewar@gnat.com>
9176
9177 * freeze.adb: Minor reformatting
9178
9179 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
9180
37783865
ZW
9181 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
9182 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
bde58e32
AC
9183 New handling of Id_Check parameter to improve recognition of keywords
9184 used as identifiers.
9185 Update copyright notice to include 2003
9186
657a9dd9
AC
91872003-10-29 Robert Dewar <dewar@gnat.com>
9188
9189 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
9190 sem_ch10.adb: Minor reformatting
9191
9192 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
9193 (Expand_Assign_Record): Test right hand side for bit unaligned as well
9194
91952003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
9196
37783865 9197 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
657a9dd9
AC
9198 Support for TBK$SYMBOLIZE-based symbolic traceback.
9199
92002003-10-29 Jose Ruiz <ruiz@act-europe.fr>
9201
37783865 9202 * exp_disp.adb:
657a9dd9
AC
9203 Revert previous change, that did not work well when pragma No_Run_Time
9204 was used in conjunction with a run-time other than ZFP.
9205
92062003-10-29 Vincent Celier <celier@gnat.com>
9207
37783865 9208 * make.adb:
657a9dd9
AC
9209 (Gnatmake): When there are no Ada mains in attribute Main, disable the
9210 bind and link steps only is switch -z is not used.
9211
92122003-10-29 Arnaud Charlet <charlet@act-europe.fr>
9213
9214 * Makefile.generic: Remove duplicated setting of CC.
9215
9216 * Makefile.prolog: Set CC to gcc by default, to override make's
9217 default (cc).
9218
9219 * einfo.h: Regenerated.
9220
92212003-10-29 Ed Schonberg <schonberg@gnat.com>
9222
9223 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
9224 current body, after compiling subunit.
9225
9226 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
9227 when in deleted code, because gigi needs properly ordered freeze
9228 actions to annotate types.
9229
9230 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
9231 prevent the premature freezing of record type that contains
9232 subcomponents with a private type that does not yet have a completion.
9233
92342003-10-29 Javier Miranda <miranda@gnat.com>
9235
37783865 9236 * sem_ch12.adb:
657a9dd9
AC
9237 (Analyze_Package_Instantiation): Check that instances can not be used in
9238 limited with_clauses.
9239
37783865 9240 * sem_ch8.adb:
657a9dd9
AC
9241 (Analyze_Package_Renaming): Check that limited withed packages cannot
9242 be renamed. Improve text on error messages related to limited
9243 with_clauses.
9244
9245 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
9246
9247 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
9248 Update copyright notice.
9249
9250 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
9251 (Install_Limited_Context_Clauses): New subprogram that isolates all the
9252 checks required for limited context_clauses and installs the limited
9253 view.
9254 (Install_Limited_Withed_Unit): Complete its documentation.
9255 (Analyze_Context): Check that limited with_clauses are only allowed in
9256 package specs.
9257 (Install_Context): Call Install_Limited_Context_Clauses after the
9258 parents have been installed.
9259 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
9260 package as 'From_With_Type'; this mark indicates that the limited view
9261 is installed. Used to check bad usages of limited with_clauses.
9262 (Build_Limited_Views): Do not add shadow entities to the scope's list
9263 of entities. Do not add real entities to the Non_Limited_Views chain.
9264 Improve error notification.
9265 (Remove_Context_Clauses): Remove context clauses in two phases:
9266 limited views first and regular views later (to maintain the
9267 stack model).
9268 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
9269 its visible entities.
9270
92712003-10-29 Thomas Quinot <quinot@act-europe.fr>
9272
9273 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
9274 with any type that Is_Fixed_Point_Type.
9275
9276 * sinfo.ads: Fix documentation for Associated_Node attribute.
9277
92782003-10-29 Sergey Rybin <rybin@act-europe.fr>
9279
9280 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
9281 both '-gnatc' and '-gnatt' are specified.
9282
9283 * atree.adb (Initialize): Add initialization for Node_Count (set to
9284 zero).
9285
92862003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9287
9288 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
9289 do not consider as Pure.
9290
9291 Part of implementation of function-at-a-time:
9292
9293 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
9294 (tree_transform): Add new argument to build_component_ref.
9295 (tree_transform, case N_Assignment_Statement): Make and return an
9296 EXPR_STMT.
9297 (tree_transform): If result IS_STMT, set flags and return it.
9298 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
9299
9300 * utils2.c (build_simple_component_ref, build_component_ref): Add new
9301 arg, NO_FOLD_P.
9302 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
9303 (build_allocator): Likewise.
9304
9305 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
9306 Add new arg to build_component_ref.
9307 (maybe_unconstrained_array, unchecked_convert): Likewise.
9308
9309 * ada-tree.def (EXPR_STMT): New code.
9310
9311 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
9312
9313 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
9314 build_component_ref calls.
9315
9316 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
9317
9318 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
9319 (build_component_ref): Add new argument, NO_FOLD_P.
9320
ecad994d
AC
93212003-10-27 Arnaud Charlet <charlet@act-europe.fr>
9322
9323 * Makefile.generic: Add missing substitution on object_deps handling.
9324
9325 PR ada/5909:
9326 * Make-lang.in (check-ada): Enable ACATS test suite.
9327
93282003-10-27 Robert Dewar <dewar@gnat.com>
9329
37783865 9330 * exp_ch3.adb:
ecad994d
AC
9331 (Freeze_Array_Type): We do not need an initialization routine for types
9332 derived from String or Wide_String. They should be treated the same
9333 as String and Wide_String themselves. This caused problems with the
9334 use of Initialize_Scalars.
9335
37783865 9336 * exp_ch5.adb:
ecad994d
AC
9337 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
9338 composites. This allows use of component clauses that are not byte
9339 aligned.
9340
37783865 9341 * sem_prag.adb:
ecad994d
AC
9342 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
9343 is an attempt to pack an array of atomic objects.
9344
9345 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
9346
93472003-10-27 Pascal Obry <obry@gnat.com>
9348
37783865 9349 * g-dirope.adb:
ecad994d
AC
9350 (Basename): Check for drive letters in a pathname only on DOS based OS.
9351
93522003-10-27 Vincent Celier <celier@gnat.com>
9353
37783865 9354 * make.adb:
ecad994d
AC
9355 (Gnatmake): When unable to change dir to the object dir, display the
9356 content of the parent dir of the obj dir, to try to understand why this
9357 happens.
9358
93592003-10-27 GNAT Script <nobody@gnat.com>
9360
9361 * Make-lang.in: Makefile automatically updated
9362
93632003-10-27 Ed Schonberg <schonberg@gnat.com>
9364
37783865 9365 * sem_ch12.adb:
ecad994d
AC
9366 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
9367 should not be done in Save/Restore_Scope_Stack, because it is performed
9368 locally.
9369
37783865 9370 * sem_ch8.adb:
ecad994d
AC
9371 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
9372 whether use clauses should be removed/restored.
9373
37783865 9374 * sem_ch8.ads:
ecad994d
AC
9375 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
9376 whether use clauses should be removed/restored.
9377
b6b3c138
AJ
93782003-10-26 Andreas Jaeger <aj@suse.de>
9379
9380 * Makefile.in: Remove duplicated lines.
9381
b6d83931
AC
93822003-10-24 Arnaud Charlet <charlet@act-europe.fr>
9383
9384 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
9385 minimize the differences with ACT tree.
9386
9387 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
9388 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
9389 Gnatvsn.Gnat_Static_Version_String to reduce differences between
9390 ACT and FSF trees.
9391
93922003-10-24 Pascal Obry <obry@gnat.com>
9393
9394 * adadecode.c (ostrcpy): New function.
9395 (__gnat_decode): Use ostrcpy of strcpy.
9396 (has_prefix): Set first parameter a const.
9397 (has_suffix): Set first parameter a const.
9398 Update copyright notice. Fix source name in header.
9399 Removes a trailing space.
9400 PR ada/12014.
9401
94022003-10-24 Jose Ruiz <ruiz@act-europe.fr>
9403
b6b3c138 9404 * exp_disp.adb:
b6d83931
AC
9405 Remove the test against being in No_Run_Time_Mode before generating a
9406 call to Register_Tag. It is redundant with the test against the
9407 availability of the function Register_Tag.
9408
94092003-10-24 Vincent Celier <celier@gnat.com>
9410
9411 * g-catiio.adb: (Month_Name): Correct spelling of February
9412
9413 * make.adb: (Mains): New package
9414 (Initialize): Call Mains.Delete
9415 (Gnatmake): Check that each main on the command line is a source of a
9416 project file and, if there are several mains, each of them is a source
9417 of the same project file.
9418 (Gnatmake): When a foreign language is specified in attribute Languages,
9419 no main is specified on the command line and attribute Mains is not
9420 empty, only build the Ada main. If there is no Ada main, just compile
9421 the Ada sources and their closure.
9422 (Gnatmake): If a main is specified on the command line with directory
9423 information, check that the source exists and, if it does, that the path
9424 is the actual path of a source of a project.
9425
b6b3c138 9426 * prj-env.adb:
b6d83931
AC
9427 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
9428 Full_Path is True, return the full path instead of the simple file name.
9429 (Project_Of): New function
9430
b6b3c138 9431 * prj-env.ads:
b6d83931
AC
9432 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
9433 defaulted to False.
9434 (Project_Of): New function
9435
94362003-10-24 Arnaud Charlet <charlet@act-europe.fr>
9437
b6b3c138 9438 * Makefile.generic:
b6d83931
AC
9439 Ensure objects of main project are always checked and rebuilt if needed.
9440 Set CC to gcc by default.
9441 Prepare new handling of link by creating a global archive (not activated
9442 yet).
9443
9444 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
9445 stringt.h: Update copyright notice. Remove trailing blanks.
9446 Fix source name in header.
9447
94482003-10-24 Robert Dewar <dewar@gnat.com>
9449
9450 * sem_ch12.adb: Minor reformatting
9451
b6b3c138 9452 * sem_ch3.adb:
b6d83931
AC
9453 Minor reformatting (including new function return style throughout)
9454
b6b3c138 9455 * sem_ch3.ads:
b6d83931
AC
9456 Minor reformatting (including new function return style throughout)
9457
94582003-10-24 Arnaud Charlet <charlet@act-europe.fr>
9459
9460 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
9461 stringt.h: Update copyright notice. Remove trailing blanks.
9462 Fix source name in header.
9463
94642003-10-24 GNAT Script <nobody@gnat.com>
9465
9466 * Make-lang.in: Makefile automatically updated
9467
b4e2d709
NN
94682003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
9469
9470 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
9471 stringt.h: Convert to ISO C90 declarations and definitions.
9472
9d7d51be
AC
94732003-10-23 Thomas Quinot <quinot@act-europe.fr>
9474
9475 PR ada/11978:
9476 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
9477 External_Tag attribute definition clauses.
9478
94792003-10-23 Ed Schonberg <schonberg@gnat.com>
9480
9481 PR ada/7613:
9482 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
9483 child unit, generate a fully qualified name to avoid spurious errors
9484 when the context contains renamings of different child units with
9485 the same simple name.
9486
9487 * exp_dbug.ads: Add documentation on name qualification for renamings
9488 of child units.
9489
94902003-10-23 Robert Dewar <dewar@gnat.com>
9491
9492 * g-regpat.ads, g-regpat.adb: Minor reformatting
9493
94942003-10-23 Jose Ruiz <ruiz@act-europe.fr>
9495
9496 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
9497
94982003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9499
9500 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
9501 Machine call.
9502
9503 * urealp.h: (Machine): Update to proper definition.
9504
6d244bbe
AC
95052003-10-23 Arnaud Charlet <charlet@act-europe.fr>
9506
9507 * init.c, adaint.c: Minor reformatting.
9508
8f4eb34b
DS
95092003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
9510
6d244bbe 9511 * adaint.c (w32_epoch_offset): Define static const at file level.
8f4eb34b
DS
9512 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
9513 rather than t_create, t_access in call to GetFileTime. Use union
9514 to convert between FILETIME and unsigned long long.
9515 (__gnat_file_time_name): Test for invalid file handle.
9516 (__gnat_set_filetime_name): Support win32 targets using
9517 w32api SetFileTime.
9518
25412599
DS
95192003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
9520
9521 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
9522
9523 * ctrl_c.c (__gnat_int_handler): Remove declaration.
9524
9525 * decl.c (creat_concat_name): Const-ify prefix.
9526
9527 * adaint.c: Include ctype.h if __MINGW32__.
9528 (__gnat_readlink): Mark arguments as possibly unused.
9529 (__gnat_symlink): Likewise.
9530 (__gnat_is_symbolic_link): Likewise.
9531 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
9532 declaration
b6b3c138 9533 (__gnat_file_time_name): Don't declare struct stat statbuf when
25412599
DS
9534 not needed.
9535 (__gnat_is_absolute_path): Add parenthesis around condition of
9536 'if' statement to avoid warning.
9537 (__gnat_plist_init): Specify void as parameter.
9538 (plist_enter): Likewise.
9539 (plist_leave): Likewise.
9540 (remove_handle): Make static. Initialize prev.
9541
698a5e79
AC
95422003-10-22 Arnaud Charlet <charlet@act-europe.fr>
9543
6d244bbe 9544 * Makefile.in: Disable build of gnatpsta. PR ada/10110.
698a5e79
AC
9545 * cstreams.c (__gnat_full_name): Minor improvements and clean up
9546 of previous change.
9547
e97c30aa
RO
95482003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9549
9550 * tracebak.c (MAX): Avoid redefinition warning.
9551
9552 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
9553 Change msg to const char *.
9554 (__gnat_install_handler): Remove ss, unused.
9555 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
9556 to const char *.
9557 * cstreams.c (__gnat_full_name): Declare p only when used.
9558 (__gnat_full_name) [sgi] Return buffer.
9559
65f1ebd1
AC
95602003-10-22 Arnaud Charlet <charlet@act-europe.fr>
9561
9562 * mingw32.h: New file.
0c644933
AC
9563 * gnat_wrapper.adb: New file.
9564
6d244bbe 95652003-10-22 Jerome Roussel <roussel@act-europe.fr>
0c644933
AC
9566
9567 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
9568 string match a pre compiled regular expression (the corresponding
9569 version of the function working on a raw regular expression)
9570 Fix typos in various comments
9571 Update copyright notice in spec
9572
6d244bbe 95732003-10-21 Gary Dismukes <dismukes@gnat.com>
0c644933 9574
b6b3c138 9575 * exp_ch3.adb:
0c644933
AC
9576 (Component_Needs_Simple_Initialization): Return False when the type is a
9577 packed bit array. Revise spec comments to document this case.
9578
b6b3c138 9579 * exp_prag.adb:
0c644933
AC
9580 (Expand_Pragma_Import): Set any expression on the imported object to
9581 empty to avoid initializing imported objects (in particular this
9582 covers the case of zero-initialization of bit arrays).
9583 Update copyright notice.
9584
6d244bbe 95852003-10-21 Ed Schonberg <schonberg@gnat.com>
0c644933 9586
b6b3c138 9587 * sem_ch12.adb:
0c644933
AC
9588 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
9589 a subunit is missing.
9590 (Instantiate_Subprogram_Body): If body of function is missing, set type
9591 of return expression explicitly in dummy body, to prevent cascaded
9592 errors when a subunit is missing.
9593 Fixes PR 5677.
9594
b6b3c138 9595 * sem_ch3.adb:
0c644933
AC
9596 (Access_Subprogram_Declaration): Verify that return type is valid.
9597 Fixes PR 8693.
9598
b6b3c138 9599 * sem_elab.adb:
0c644933
AC
9600 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
9601 generic.
9602 Fixes PR 12318.
9603
b6b3c138 9604 * sem_util.adb:
0c644933
AC
9605 (Corresponding_Discriminant): If the scope of the discriminant is a
9606 private type without discriminant, use its full view.
9607 Fixes PR 8247.
65f1ebd1 9608
fbf5a39b
AC
96092003-10-21 Arnaud Charlet <charlet@act-europe.fr>
9610
9611 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
9612 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
9613 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
9614 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
9615 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
9616 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
9617 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
9618 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
9619 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
9620 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
9621 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
9622 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
9623 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
9624 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
9625 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
9626 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
9627 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
9628 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
9629 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
9630 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
9631 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
9632 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
9633 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
9634 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
9635 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
9636 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
9637 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
9638 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
9639 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
9640 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
9641 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
9642 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
9643 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
9644 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
9645 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
9646 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
9647 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
9648 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
9649 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
9650 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
9651 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
9652 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
9653 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
9654 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
9655 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
9656 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
9657 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
9658 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
9659 vms_conv.ads, vms_conv.adb, vms_data.ads,
9660 vxaddr2line.adb: Files added. Merge with ACT tree.
9661
9662 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
9663 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
9664 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
9665 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
9666 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
9667 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
9668 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
9669 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
9670 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
9671 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
9672
9673 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
9674 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
9675 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
9676 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
9677 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
9678 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
9679 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
9680 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
9681 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
9682 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
9683 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
9684 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
9685 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
9686 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
9687 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
9688 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
9689 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
9690 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
9691 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
9692 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
9693 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
9694 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
9695 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
9696 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
9697 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
9698 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
9699 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
9700 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
9701 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
9702 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
9703 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
9704 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
9705 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
9706 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
9707 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
9708 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
9709 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
9710 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
9711 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
9712 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
9713 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
9714 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
9715 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
9716 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
9717 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
9718 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
9719 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
9720 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
9721 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
9722 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
9723 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
9724 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
9725 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
9726 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
9727 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
9728 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
9729 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
9730 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
9731 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
9732 checks.adb, checks.ads, cio.c, comperr.adb,
9733 comperr.ads, csets.adb, cstand.adb, cstreams.c,
9734 debug_a.adb, debug_a.ads, debug.adb, decl.c,
9735 einfo.adb, einfo.ads, errout.adb, errout.ads,
9736 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
9737 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
9738 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
9739 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
9740 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
9741 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
9742 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
9743 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
9744 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
9745 fe.h, fmap.adb, fmap.ads, fname.adb,
9746 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
9747 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
9748 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
9749 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
9750 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
9751 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
9752 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
9753 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
9754 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
9755 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
9756 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
9757 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
9758 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
9759 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
9760 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
9761 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
9762 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
9763 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
9764 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
9765 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
9766 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
9767 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
9768 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
9769 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
9770 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
9771 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
9772 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
9773 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
9774 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
9775 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
9776 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
9777 layout.adb, lib.adb, lib.ads, lib-list.adb,
9778 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
9779 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
9780 link.c, live.adb, make.adb, make.ads,
9781 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
9782 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
9783 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
9784 misc.c, mkdir.c, mlib.adb, mlib.ads,
9785 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
9786 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
9787 namet.adb, namet.ads, namet.h, nlists.ads,
9788 nlists.h, nmake.adt, opt.adb, opt.ads,
9789 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
9790 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
9791 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
9792 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
9793 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
9794 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
9795 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
9796 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
9797 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
9798 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
9799 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
9800 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
9801 prj-util.adb, prj-util.ads, raise.c, raise.h,
9802 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
9803 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
9804 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
9805 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
9806 scans.ads, scn.adb, scn.ads, s-crc32.adb,
9807 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
9808 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
9809 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
9810 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
9811 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
9812 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
9813 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
9814 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
9815 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
9816 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
9817 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
9818 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
9819 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
9820 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
9821 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
9822 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
9823 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
9824 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
9825 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
9826 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
9827 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
9828 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
9829 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
9830 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
9831 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
9832 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
9833 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
9834 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
9835 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
9836 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
9837 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
9838 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
9839 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
9840 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
9841 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
9842 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
9843 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
9844 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
9845 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
9846 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
9847 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
9848 stringt.adb, stringt.ads, stringt.h, style.ads,
9849 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
9850 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
9851 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
9852 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
9853 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
9854 table.adb, table.ads, targparm.adb, targparm.ads,
9855 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
9856 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
9857 ttypes.ads, types.ads, types.h, uintp.adb,
9858 uintp.ads, uintp.h, uname.adb, urealp.adb,
9859 urealp.ads, urealp.h, usage.adb, utils2.c,
9860 utils.c, validsw.adb, validsw.ads, widechar.adb,
9861 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
9862 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
9863 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
9864 gnatvsn.ads: Merge with ACT tree.
9865
9866 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
9867
97ae108d
MM
98682003-10-20 Mark Mitchell <mark@codesourcery.com>
9869
de696511
MM
9870 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
9871 (gnat_ug_vmx.info): Likewise.
9872 (gnat_ug_vxw.info): Likewise.
9873 (gnat_ug_wnt.info): Likewise.
9874 (gnat_rm.info): Likewise.
9875 (gnat-style.info): Likewise.
9876
97ae108d
MM
9877 * Make-lang.in (ada.install-info): Remove target.
9878 (info): New target.
9879 (install-info): Likewise.
9880 (gnat_ug_unx.info): Simplify rule.
9881 (gnat_ug_vmx.info): Likewise.
9882 (gnat_ug_vxw.info): Likewise.
9883 (gnat_ug_wnt.info): Likewise.
9884 (gnat_rm.info): Likewise.
9885 (gnat-style.info): Likewise.
9886
43aba518
NN
98872003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
9888
9889 * Make-lang.in: Replace uses of $(target_alias) with
9890 $(target_noncanonical).
9891 * ada/Makefile.in: Remove unused mention of $(target_alias).
9892
62b81e45
MM
98932003-10-06 Mark Mitchell <mark@codesourcery.com>
9894
9895 * Make-lang.in (ada.info): Replace with ...
9896 (info): ... this.
9897 (ada.dvi): Replace with ...
9898 (dvi): ... this.
9899
783be936
ZW
99002003-09-29 Zack Weinberg <zack@codesourcery.com>
9901
9902 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
9903 initialize dconstp5 and dconstmp5.
9904
177560b2
RH
99052003-09-28 Richard Henderson <rth@redhat.com>
9906
9907 * trans.c (tree_transform): Update call to expand_asm_operands.
9908
f31686a3
RH
99092003-09-21 Richard Henderson <rth@redhat.com>
9910
9911 * trans.c, utils.c: Revert.
9912
7e2af53a
RH
99132003-09-21 Richard Henderson <rth@redhat.com>
9914
9915 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
9916 change to const.
9917
5f1e32fa
MM
99182003-09-04 Michael Matz <matz@suse.de>
9919
9920 * misc.c: Include "target.h".
9921 * Make-lang.in (misc.o): Add dependency on target.h.
9922
61f71b34
DD
99232003-09-03 DJ Delorie <dj@redhat.com>
9924
9925 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
9926 hook.
9927
2ed26f6b
ZW
99282003-08-30 Zack Weinberg <zack@codesourcery.com>
9929
9930 * Makefile.in: Update substitutions to match changes to
9931 configure. Use include directives instead of @-insertions
9932 to read in host and target fragments. Add a rule to
9933 regenerate ada/Makefile.
9934
b2e608ca
NB
99352003-07-18 Neil Booth <neil@daikokuya.co.uk>
9936
9937 * lang-options.h: Remove.
9938 * lang.opt: Add help text.
9939
0cea056b
NS
99402003-07-07 Nathan Sidwell <nathan@codesourcery.com>
9941
9942 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
9943 calls.
9944
cb66e385
NB
99452003-07-06 Neil Booth <neil@daikokuya.co.uk>
9946
9947 * misc.c (gnat_handle_option): Don't handle filenames.
9948
8c90b13a
L
99492003-07-04 H.J. Lu <hongjiu.lu@intel.com>
9950
9951 * Make-lang.in: Replace PWD with PWD_COMMAND.
9952 * Makefile.adalib: Likewise.
9953 * Makefile.in: Likewise.
9954
9c286213
MK
99552003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
9956
9957 * misc.c (gnat_argv): Revert last change.
9958 (gnat_handle_option, gnat_init_options): Copy arguments.
9959
b9add449
NB
99602003-07-03 Neil Booth <neil@daikokuya.co.uk>
9961
9c286213 9962 * misc.c (gnat_argv): Make const.
b9add449 9963
836d77a9
NB
99642003-07-02 Neil Booth <neil@daikokuya.co.uk>
9965
9966 * misc.c (save_argc, save_argv): Keep non-static!
9967
b86f6cd9
NB
99682003-07-02 Neil Booth <neil@daikokuya.co.uk>
9969
9970 * misc.c (save_argc, save_argv): Make static.
9971 (gnat_init_options): New prototype.
9972 (gnat_init_options): Update.
9973
6344b1f1
MK
99742003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
9975
9976 * gnat_ug.texi: Remove unlikely characters from @vars.
9977 * gnat_ug_vms.texi: Regenerate.
9978
2e040219
NS
99792003-06-27 Nathan Sidwell <nathan@codesourcery.com>
9980
9981 * misc.c (record_code_position): Adjust emit_note call.
9982
9eee5e72
NB
99832003-06-26 Neil Booth <neil@daikokuya.co.uk>
9984
9985 * misc.c (gnat_handle_option): Don't check for missing arguments.
9986
1f9cc6db
NS
99872003-06-20 Nathan Sidwell <nathan@codesourcery.com>
9988
9989 * utils.c (end_subprog_body): Adjust expand_function_end call.
9990
23d6baa3
MK
99912003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
9992
9993 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
9994 Bind_Main_Program.
9995
be43ab4e
NB
99962003-06-15 Neil Booth <neil@daikokuya.co.uk>
9997
9998 * lang.opt: Declare Ada.
9999 * misc.c (gnat_init_options): Update.
10000
ee6b0296
NS
100012003-06-14 Nathan Sidwell <nathan@codesourcery.com>
10002
10003 * utils.c (begin_subprog_body): Adjust init_function_start call.
10004
d7b42618
NB
100052003-06-14 Neil Booth <neil@daikokuya.co.uk>
10006
10007 * Make-lang.in: Update to use options.c and options.h.
10008 * misc.c: Include options.h not aoptions.h.
10009 (gnat_handle_option): Abort on unrecognized switch.
10010 (gnat_init_options): Request Ada switches.
10011
57eb6503
NB
100122003-06-14 Neil Booth <neil@daikokuya.co.uk>
10013
10014 * lang.opt: Add -Wall.
10015 * misc.c (gnat_handle_option): Handle it.
10016
70fd6569
NB
100172003-06-12 Neil Booth <neil@daikokuya.co.uk>
10018
10019 * misc.c (gnat_handle_option): Fix warnings.
10020
8cdea5a1
MK
100212003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
10022
10023 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
10024
3c900cb5
NB
100252003-06-11 Neil Booth <neil@daikokuya.co.uk>
10026
10027 * Make-lang.in: Update to handle command-line options.
10028 * lang.opt: New file.
10029 * misc.c: Include aoptions.h.
10030 (cl_options_count, cl_options): Remove.
10031 (gnat_handle_option): New.
10032 (gnat_decode_option): Remove.
10033 (LANG_HOOKS_DECODE_OPTION): Remove.
10034 (LANG_HOOKS_HANDLE_OPTION): Override.
10035
e8face4c
NN
100362003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
10037
10038 * init.c, misc.c, trans.c, utils.c: Remove dead code.
10039
4665e56c
NN
100402003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
10041
10042 * Makefile.in: Replace "host_canonical" with "host" for autoconf
10043 substitution.
10044
a165c302
NB
100452003-06-08 Neil Booth <neil@daikokuya.co.uk>
10046
10047 * Make-lang.in: Update.
10048 * misc.c: Include opts.h. Define cl_options_count and cl_options.
10049
2772ef3e
NB
100502003-06-07 Neil Booth <neil@daikokuya.co.uk>
10051
10052 * misc.c (gnat_init_options): Update.
10053
d8277a55
MK
100542003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
10055
10056 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
10057 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
10058 __attribute__ ((__unused__)).
10059
602a82f3 100602003-06-05 Jan Hubicka <jh@suse.cz>
8f231b5d
JH
10061
10062 * Make-lang.in: Add support for stageprofile and stagefeedback
10063
3aa07c6d
MK
100642003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
10065
10066 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
10067 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
10068
f1093866
MK
100692003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
10070
10071 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
10072 Remove non-VMS directive.
10073 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
10074 alternatives.
10075 (Examples of gnatls Usage): Remove VMS alternative.
dee2df72
OH
10076
100772003-06-04 Olivier Hainque <hainque@act-europe.fr>
10078
2ed26f6b
ZW
10079 PR ada/9953:
10080 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
10081 and turn ZCX_By_Default back to False since the underlying support
10082 is not quite there yet.
dee2df72 10083
80eaf415
AJ
100842003-06-01 Andreas Jaeger <aj@suse.de>
10085
10086 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
10087 and ROUND_TYPE_SIZE_UNIT.
10088
36f9020c
GB
100892003-05-22 Geert Bosch <bosch@gnat.com>
10090
10091 * gnat_rm.texi : Remove reference to Ada Core Technologies.
10092
e7b5f0c9
NS
100932003-05-03 Nathan Sidwell <nathan@codesourcery.com>
10094
10095 * trans.c (tree_transform): Use location_t and input_location
10096 directly.
10097 (build_unit_elab): Likewise.
10098 * utils.c (create_label_decl): Likewise.
10099
d479d37f
NS
101002003-05-01 Nathan Sidwell <nathan@codesourcery.com>
10101
561712fe
NS
10102 * trans.c (tree_transform, build_unit_elab,
10103 set_lineno): Rename lineno to input_line.
d479d37f
NS
10104 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
10105 end_subprog_body): Likewise.
10106 * utils2.c (build_call_raise): Likewise.
10107
4f9335cd
LG
101082003-05-01 Laurent Guerby <guerby@acm.org>
10109
2ed26f6b
ZW
10110 PR ada/10546
10111 * 5iosinte.ads: Increase pthread_cond_t size to match recent
10112 LinuxThread and NPTL version, merge from ACT.
80eaf415 10113
0864034e
ZW
101142003-04-28 Zack Weinberg <zack@codesourcery.com>
10115
10116 * utils.c (convert): No need to clear TREE_CST_RTL.
10117
bcea76b6
GB
101182003-04-23 Geert Bosch <bosch@gnat.com>
10119
10120 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
10121 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
10122 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
10123 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
10124 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
10125 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
10126 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
10127 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
10128 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
10129 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
10130 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
10131 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
10132 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
10133 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
10134 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
10135 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
10136 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
10137 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
10138 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
10139 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
10140 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
10141 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
10142 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
10143 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
10144 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
10145 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
10146 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
10147 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
10148 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
10149 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
10150 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
10151 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
10152 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
10153 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
10154 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
10155 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
10156 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
10157 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
10158 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
10159 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
10160 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
10161 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
10162 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
10163 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
10164 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
10165 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
10166 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
10167 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
10168 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
10169 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
10170 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
10171 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
10172 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
10173 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
10174 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
10175 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
10176 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
10177 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
10178 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
10179 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
10180 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
10181 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
10182 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
10183 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
10184 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
10185 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
10186 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
10187 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
10188 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
10189 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
10190 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
10191 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
10192 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
10193 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
10194 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
10195 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
10196 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
10197 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
10198 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
10199 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
10200 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
10201 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
10202 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
10203 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
10204 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
10205 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
10206 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
10207 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
10208 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
10209 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
10210 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
10211 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
10212 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
10213 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
10214 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
10215 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
10216 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
10217 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
10218 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
10219 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
10220 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
10221 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
10222 ali.adb, ali.ads, alloc.ads, argv.c,
10223 atree.adb, atree.ads, atree.h, aux-io.c,
10224 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
10225 binde.adb, binde.ads, binderr.adb, binderr.ads,
10226 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
10227 butil.adb, butil.ads, cal.c, calendar.ads,
10228 casing.adb, casing.ads, ceinfo.adb, checks.adb,
10229 checks.ads, cio.c, comperr.adb, comperr.ads,
10230 config-lang.in, csets.adb, csets.ads, csinfo.adb,
10231 cstand.adb, cstand.ads, cuintp.c, debug.adb,
10232 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
10233 dec-io.ads, dec.ads, deftarg.c, directio.ads,
10234 einfo.adb, einfo.ads, elists.adb, elists.ads,
10235 elists.h, errno.c, errout.adb, errout.ads,
10236 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
10237 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
10238 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
10239 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
10240 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
10241 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
10242 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
10243 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
10244 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
10245 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
10246 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
10247 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
10248 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
10249 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
10250 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
10251 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
10252 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
10253 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
10254 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
10255 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
10256 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
10257 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
10258 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
10259 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
10260 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
10261 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
10262 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
10263 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
10264 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
10265 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
10266 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
10267 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
10268 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
10269 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
10270 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
10271 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
10272 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
10273 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
10274 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
10275 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
10276 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
10277 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
10278 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
10279 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
10280 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
10281 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
10282 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
10283 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
10284 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
10285 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
10286 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
10287 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
10288 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
10289 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
10290 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
10291 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
10292 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
10293 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
10294 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
10295 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
10296 lib.adb, lib.ads, live.adb, live.ads,
10297 machcode.ads, make.adb, make.ads, makeusg.adb,
10298 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
10299 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
10300 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
10301 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
10302 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
10303 mlib.ads, namet.adb, namet.ads, nlists.adb,
10304 nlists.ads, opt.adb, opt.ads, osint-b.adb,
10305 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
10306 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
10307 osint.ads, output.adb, output.ads, par-ch10.adb,
10308 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
10309 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
10310 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
10311 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
10312 par-tchk.adb, par-util.adb, par.adb, par.ads,
10313 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
10314 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
10315 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
10316 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
10317 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
10318 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
10319 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
10320 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
10321 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
10322 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
10323 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
10324 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
10325 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
10326 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
10327 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
10328 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
10329 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
10330 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
10331 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
10332 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
10333 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
10334 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
10335 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
10336 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
10337 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
10338 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
10339 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
10340 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
10341 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
10342 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
10343 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
10344 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
10345 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
10346 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
10347 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
10348 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
10349 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
10350 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
10351 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
10352 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
10353 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
10354 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
10355 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
10356 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
10357 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
10358 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
10359 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
10360 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
10361 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
10362 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
10363 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
10364 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
10365 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
10366 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
10367 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
10368 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
10369 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
10370 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
10371 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
10372 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
10373 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
10374 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
10375 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
10376 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
10377 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
10378 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
10379 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
10380 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
10381 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
10382 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
10383 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
10384 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
10385 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
10386 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
10387 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
10388 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
10389 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
10390 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
10391 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
10392 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
10393 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
10394 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
10395 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
10396 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
10397 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
10398 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
10399 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
10400 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
10401 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
10402 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
10403 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
10404 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
10405 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
10406 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
10407 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
10408 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
10409 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
10410 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
10411 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
10412 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
10413 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
10414 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
10415 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
10416 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
10417 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
10418 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
10419 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
10420 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
10421 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
10422 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
10423 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
10424 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
10425 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
10426 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
10427 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
10428 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
10429 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
10430 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
10431 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
10432 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
10433 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
10434 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
10435 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
10436 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
10437 snames.ads, sprint.adb, sprint.ads, stand.adb,
10438 stand.ads, stringt.adb, stringt.ads, style.adb,
10439 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
10440 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
10441 switch-m.ads, switch.adb, switch.ads, system.ads,
10442 table.adb, table.ads, targparm.adb, targparm.ads,
10443 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
10444 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
10445 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
10446 ttypef.ads, ttypes.ads, types.adb, types.ads,
10447 uintp.adb, uintp.ads, uname.adb, uname.ads,
10448 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
10449 usage.adb, usage.ads, validsw.adb, validsw.ads,
10450 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
10451 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
10452 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
10453 formatting and other trivial changes from ACT.
10454
dcf92453
ZW
104552003-04-12 Zack Weinberg <zack@codesourcery.com>
10456
10457 * gigi.h, utils2.c (build_constructor):
10458 Rename gnat_build_constructor. Use build_constructor.
10459 * decl.c (gnat_to_gnu_entity)
10460 * trans.c (tree_transform, pos_to_constructor, extract_values)
10461 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
10462 (unchecked_convert)
10463 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
10464 (fill_vms_descriptor):
10465 Update to match.
10466
d78e771d
ZW
104672003-04-06 Zack Weinberg <zack@codesourcery.com>
10468
10469 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
10470 * misc.c (gnat_tree_size): New function.
10471 (LANG_HOOKS_TREE_SIZE): Override.
10472
78d55cc8
JM
104732003-04-03 Jason Merrill <jason@redhat.com>
10474
10475 * misc.c (gnat_adjust_rli): #if 0.
10476
b174e2d4
GB
104772003-03-31 Geert Bosch <bosch@gnat.com>
10478
10479 PR ada/10020
10480 * link.c : Fix misspelled "const" keyword
10481
f29a2bd1
MM
104822003-03-23 Mark Mitchell <mark@codesourcery.com>
10483
10484 PR c++/7086
10485 * utils2.c: Adjust calls to put_var_into_stack.
10486
08e247b1
NN
104872003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
10488
10489 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
10490
4bfec483
NB
104912003-03-08 Neil Booth <neil@daikokuya.co.uk>
10492
10493 * misc.c (gnat_init): Update for new prototype.
10494
3d713bb8
GB
104952003-03-05 Olivier Hainque <hainque@gnat.com>
10496
10497 ada/9961
78d55cc8
JM
10498 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
10499 warning, and fix return type for the IN_RTS && !SJLJ case.
3d713bb8 10500
8b89fcdf
TT
105012003-03-04 Tom Tromey <tromey@redhat.com>
10502
10503 * Make-lang.in (ada.tags): New target.
10504
3d713bb8 105052003-03-04 Olivier Hainque <hainque@act-europe.fr>
23cae84f
OH
10506
10507 ada/9911
10508 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
10509 wrapper, which name remains constant whatever underlying GCC
10510 scheme.
10511
10512 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
10513 the stable interface needed for a-except.
10514
f4ae98be
AJ
105152003-03-02 Andreas Jaeger <aj@suse.de>
10516
10517 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
10518 gnat_ug_wnt.texi: Regenerate.
10519
5348742b
LG
105202003-03-02 Laurent Guerby <guerby@acm.org>
10521
f4ae98be 10522 * Makefile.in (install-gnatlib): Match previous change there
5348742b 10523 so it works.
f4ae98be 10524
8c108db2
AS
105252003-02-28 Andreas Schwab <schwab@suse.de>
10526
10527 * Make-lang.in (install-gnatlib): Change to ada directory before
10528 running make instead of using ada/Makefile directly.
10529
601d71bc
BE
105302003-02-18 Ben Elliston <bje@redhat.com>
10531
10532 Part of fix for PR ada/9406
10533 * gnat_ug.texi (Binder output file): Grammar fix.
10534
bf7c02dd
BE
105352003-02-18 Ben Elliston <bje@redhat.com>
10536
10537 PR other/7350
10538 * 5qtaprop.adb (Sleep): Fix typo in comment.
10539
b3a8389d
JM
105402003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
10541
10542 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
10543 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
10544 gnat_ug_wnt.texi: Regenerate.
10545
5da14cb5
CC
105462003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
10547
10548 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
10549 be created if necessary.
10550 (ada.install-common): Let $(DESTDIR)$(bindir) be created
10551 if necessary. Remove erroneous and redundant gnatchop
10552 installation commands. Test for gnatdll before attempting
10553 to install it.
10554 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
10555 and gnatdll from all plausible locations.
10556
271bd540
RS
105572003-02-01 Richard Sandiford <rsandifo@redhat.com>
10558
10559 * utils2.c (build_unary_op): Don't check flag_volatile.
10560 * gnat_ug.texi: Remove -fvolatile from example.
10561 * gnat_ug_vxw.texi: Likewise.
10562
c1cc6a51
LG
105632003-01-29 Laurent Guerby <guerby@acm.org>
10564
d78e771d
ZW
10565 PR ada/8344
10566 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
10567 * Makefile.in: match previous change.
10568 * Make-lang.in: match previous change.
c1cc6a51 10569
c4039eb0
JS
105702003-01-29 Joel Sherrill <joel@OARcorp.com>
10571
10572 * 5rosinte.ads: Add SIGXCPU.
10573 * 5rtpopsp.adb: New file.
10574 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
10575 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
10576 specific file 5rtpopsp.adb.
10577 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
10578 is likely needed for all newlib targets.
10579 * init.c: Add RTEMS specific version of __gnat_initialize().
10580
00d29f7d
RO
105812003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10582
10583 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
10584
437026ef
RO
105852003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10586
10587 * init.c (__gnat_error_handler): Make msg const.
10588
10589 * gmem.c (convert_addresses): Move declaration ...
10590 * adaint.h: ... here.
10591 * adaint.c (convert_addresses): Adapt addrs type to match
10592 prototype.
10593
10594 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
10595
e12825cd
AS
105962003-01-24 Andreas Schwab <schwab@suse.de>
10597
10598 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
10599 size_t to avoid warning.
10600
a8729406
ZW
106012003-01-21 Zack Weinberg <zack@codesourcery.com>
10602
b09b91b9 10603 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
a8729406 10604
17211ab5
GK
106052003-01-09 Geoffrey Keating <geoffk@apple.com>
10606
10607 * gnat_rm.texi: Remove RCS version number.
10608
10609 * ada-tree.h (union lang_tree_node): Add chain_next option.
10610
1d27195c
CC
106112003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
10612
10613 * Make-lang.in (ada.install-info, ada.install-common,
10614 ada.uninstall): Prepend $(DESTDIR) to the destination
10615 directory in all (un)installation commands.
10616 * Makefile.in (install-gnatlib, install-rts): Ditto.
10617
bdefb2ab
JM
106182002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
10619
10620 * gnat_rm.texi, gnat_ug.texi: Use @copying.
10621 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
10622 gnat_ug_wnt.texi: Regenerate.
10623
46d40353
JM
106242002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
10625
10626 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
10627 only.
10628 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
10629 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
10630 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
10631 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
10632 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
10633 $(srcdir)/doc/include/gcc-common.texi.
10634
d2f97d3e
GB
106352002-12-15 Geert Bosch <bosch@gnat.com>
10636
10637 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
10638
93a81b02
GB
106392002-12-14 Geert Bosch <bosch@gnat.com>
10640
4977bab6
ZW
10641 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
10642 case of a body created for a Renaming_As_Body, on which
10643 conformance checks are not performed. Fixes PR ada/5690.
10644
106452002-11-30 Zack Weinberg <zack@codesourcery.com>
10646
10647 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
10648 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
10649 not already included.
10650 * Make-lang.in: Update dependencies.
93a81b02 10651
dfc15546
NN
106522002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
10653 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
4977bab6 10654 solution to buffer overflow bug on GNU/Linux.
dfc15546 10655
8b54424d
NN
106562002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
10657 Closes PR ada/5856 and PR ada/6919 !
10658 * bindgen.adb: Remove all references to Public_Version.
10659 * comperr.adb: Remove all references to Public_Version and
10660 GNATPRO_Version; correct bug reporting instructions.
10661 * comperr.ads: Change to match bug box.
10662 * gnatvsn.ads: Remove all references to Public version and
10663 GNATPRO version.
10664
cc41268d 106652002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
1a083c0e
NN
10666 PR ada/6919
10667 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
10668 GNU/Linux.
10669
cc41268d
NN
10670 PR ada/6558
10671 * config-lang.in: Remove diff_excludes.
10672
1c7b0712
GS
106732002-11-05 Graham Stott <graham.stott@btinternet.com>
10674 PR ada/8358
10675 * trans.c (gnu_pending_elaboration_lists): New GC root.
4977bab6 10676 (build_unit_elab): Use..
1c7b0712 10677
1c4048ca
GB
106782002-10-30 Geert Bosch <bosch@gnat.com>
10679 PR ada/6558
10680 * misc.c : Include optabs.h
10681
10682 * Make-lang.in (misc.o): Add dependency on optabs.h
10683
f0d96f9c 106842002-10-29 Geert Bosch <bosch@gnat.com>
4977bab6 10685 PR ada/6558
f0d96f9c
GB
10686 * Make-lang.in (gnatbind): Depend on CONFIG_H
10687
a7512dec 106882002-10-29 Geert bosch <bosch@gnat.com>
4977bab6
ZW
10689 PR ada/6558
10690 * misc.c: Unrevert misc.c (1.13)
a7512dec 10691
c6362f4f
NN
106922002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
10693
10694 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
10695 maintainership comments.
10696
106972002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
91ed4b19 10698 PR ada/5904
4977bab6
ZW
10699 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
10700 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
10701 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
10702 7staprop.adb: Correct statements in comments about
91ed4b19
NN
10703 maintainership of GNAT.
10704
1f02b6af 10705 PR ada/5904
4977bab6
ZW
10706 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
10707 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
10708 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
10709 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
10710 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
10711 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
10712 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
1f02b6af
NN
10713 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
10714 comments about maintainership of GNAT.
10715
71ff80dc 10716 PR ada/6919 (forward port of patch for PR ada/5904)
4977bab6
ZW
10717 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
10718 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
10719 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
10720 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
10721 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
10722 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
10723 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
10724 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
10725 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
10726 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
10727 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
10728 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
10729 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
10730 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
10731 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
10732 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
10733 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
10734 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
10735 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
10736 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
10737 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
10738 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
10739 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
10740 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
10741 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
10742 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
10743 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
10744 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
10745 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
10746 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
10747 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
10748 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
10749 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
10750 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
10751 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
10752 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
10753 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
10754 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
10755 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
10756 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
10757 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
10758 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
10759 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
10760 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
10761 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
10762 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
10763 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
10764 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
10765 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
10766 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
10767 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
10768 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
10769 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
10770 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
10771 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
10772 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
10773 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
10774 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
10775 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
10776 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
10777 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
10778 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
10779 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
10780 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
10781 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
10782 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
10783 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
10784 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
10785 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
10786 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
10787 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
10788 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
10789 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
10790 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
10791 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
10792 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
10793 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
10794 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
10795 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
10796 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
10797 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
10798 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
10799 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
10800 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
10801 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
10802 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
10803 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
10804 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
10805 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
10806 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
10807 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
10808 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
10809 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
10810 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
10811 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
10812 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
10813 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
10814 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
10815 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
10816 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
10817 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
10818 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
10819 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
10820 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
10821 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
10822 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
10823 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
10824 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
10825 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
10826 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
10827 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
10828 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
10829 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
10830 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
10831 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
10832 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
10833 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
10834 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
10835 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
10836 par-endh.adb par-labl.adb par-load.adb par-prag.adb
10837 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
10838 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
10839 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
10840 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
10841 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
10842 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
10843 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
10844 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
10845 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
10846 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
10847 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
10848 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
10849 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
10850 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
10851 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
10852 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
10853 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
10854 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
10855 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
10856 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
10857 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
10858 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
10859 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
10860 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
10861 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
10862 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
10863 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
10864 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
10865 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
10866 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
10867 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
10868 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
10869 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
10870 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
10871 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
10872 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
10873 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
10874 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
10875 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
10876 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
10877 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
10878 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
10879 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
10880 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
10881 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
10882 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
10883 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
10884 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
10885 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
10886 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
10887 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
10888 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
10889 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
10890 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
10891 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
10892 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
10893 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
10894 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
10895 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
10896 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
10897 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
10898 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
10899 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
10900 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
10901 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
10902 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
10903 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
10904 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
10905 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
10906 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
10907 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
10908 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
10909 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
10910 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
10911 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
10912 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
10913 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
10914 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
10915 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
10916 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
10917 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
10918 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
10919 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
10920 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
10921 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
10922 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
10923 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
10924 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
10925 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
10926 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
10927 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
10928 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
10929 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
10930 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
10931 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
10932 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
10933 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
10934 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
10935 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
10936 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
10937 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
10938 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
10939 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
10940 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
10941 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
10942 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
10943 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
10944 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
10945 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
10946 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
10947 stringt.ads stringt.h style.adb style.ads stylesw.adb
10948 stylesw.ads switch.adb switch.ads sysdep.c system.ads
10949 table.adb table.ads targparm.adb targparm.ads targtyps.c
10950 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
10951 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
10952 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
10953 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
10954 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
10955 usage.ads utils.c utils2.c validsw.adb validsw.ads
10956 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
10957 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
71ff80dc
NN
10958 xtreeprs.adb: Correct statements in comments about maintainership
10959 of GNAT.
10960
b4f94ac1
ZW
109612002-09-23 Zack Weinberg <zack@codesourcery.com>
10962
10963 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
10964 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
10965 * gnatvsn.ads: Gnat_Version_String is now a function.
10966 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
10967 copy the C version_string into a String and return it.
10968 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
10969 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
10970 Remove pragma Ident (Gnat_Version_String). If this was the
10971 sole use of package Gnatvsn, remove the with statement too.
10972 * gnat1drv.adb: Tweak -gnatv output.
10973
eaff3bf8
RH
109742002-09-17 Richard Henderson <rth@redhat.com>
10975
10976 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
10977 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
10978 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
10979 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
10980 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
10981 and real_2expN instead of a loop.
10982 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
10983 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
10984
d241f75b 109852002-08-25 Andre Leis <a.leis@gmx.net>
f4ae98be 10986 David Billinghurst (David.Billinghurst@riotinto.com>
d241f75b 10987
f4ae98be 10988 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
d241f75b 10989
4320085a
RO
109902002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10991
10992 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
10993 Remove $(CONFIG_H) dependency.
10994
22aa533e
NS
109952002-08-08 Nathan Sidwell <nathan@codesourcery.com>
10996
10997 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
10998
1dcd444b
KG
109992002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11000
11001 * adadecode.c (ada_demangle): Use xstrdup in lieu of
11002 xmalloc/strcpy.
11003 * misc.c (gnat_decode_option): Likewise.
11004
7bc7d27b
FW
110052002-07-15 Florian Weimer <fw@deneb.enyo.de>
11006
11007 * make.adb (Add_Switch): Make Generic_Position a procedure. The
11008 function approach did not work well because of a side effect (the
11009 function call could reallocate the table which was being indexed
11010 using its result). Fixes ada/4851. [RESURRECTED]
11011
6a2dd09a
RS
110122002-07-01 Roger Sayle <roger@eyesopen.com>
11013
11014 * ada/utils.c (builtin_function): Accept an additional parameter.
11015
c168bbd7
AJ
110162002-06-28 Andreas Jaeger <aj@suse.de>
11017
11018 PR ada/7144
11019 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
11020 <adi@thur.de>.
11021
b41e09a7
KG
110222002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11023
11024 * Makefile.in (SHELL): Set to @SHELL@.
11025
62c71f4b
KG
110262002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11027
11028 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
11029 array size calculation.
11030
94213cff
AJ
110312002-06-04 Andreas Jaeger <aj@suse.de>
11032
11033 * Make-lang.in (gnatbind): Readd rule that has been lost in last
11034 patch.
11035
e2500fed
GK
110362002-06-03 Geoffrey Keating <geoffk@redhat.com>
11037
11038 Merge from pch-branch:
11039
11040 * config-lang.in (gtfiles): Add ada-tree.h.
11041 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
11042 (SET_TYPE_MODULUS): New.
11043 (SET_TYPE_INDEX): New.
11044 (SET_TYPE_DIGITS_VALUE): New.
11045 (SET_TYPE_RM_SIZE): New.
11046 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
11047 (SET_TYPE_ADA_SIZE): New.
11048 (SET_TYPE_ACTUAL_BOUNDS): New.
11049 (SET_DECL_CONST_CORRESPONDING_VAR): New.
11050 (SET_DECL_ORIGINAL_FIELD): New.
11051 (TREE_LOOP_ID): Correct typo.
11052 * decl.c: Use new macros.
11053 * utils.c: Include debug.h, use new macros.
94213cff 11054 * utils2.c: Use new macros.
e2500fed
GK
11055
11056 * ada-tree.h: Update all macros for new tree description.
11057 (struct tree_loop_id): New.
11058 (union lang_tree_node): New.
11059 (struct lang_decl): New.
11060 (struct lang_type): New.
11061 * misc.c (gnat_mark_tree): Delete.
11062 (LANG_HOOKS_MARK_TREE): Delete.
11063 * trans.c (tree_transform): No longer any need to cast
11064 for TREE_LOOP_ID.
11065
11066 * utils.c (struct language_function): New dummy structure.
11067
11068 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
11069 (misc.o): Likewise.
11070 (utils.o): Likewise; also gtype-ada.h.
11071 * Make-lang.in (gnat1): Add dependency on s-gtype.
11072 (gnatbind): Add dependency on $(CONFIG_H).
11073 * utils.c: Correct last #include.
11074 (stuct e_stack): Remove unnecessary 'static'.
11075 (mark_e_stack): Remove unused prototype.
11076
11077 * scn-nlit.adb: Remove whitespace after version number to
11078 keep lines under 80 chars.
11079 * snames.adb: Likewise.
11080 * treepr.ads: Likewise.
94213cff 11081
e2500fed
GK
11082 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
11083 (misc.o): Likewise.
11084 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
11085 * config-lang.in (gtfiles): New.
11086 * decl.c: Use gengtype for roots.
11087 * gigi.h: Use gengtype for roots.
11088 * trans.c: Use gengtype for roots.
11089 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
11090
27e511e0
GDR
110912002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
11092
11093 * misc.c (gnat_init): Adjust setting of internal_error_function.
11094
113dc143
JM
110952002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
11096
11097 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
11098 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
11099 gnat_ug_wnt.texi: Regenerate.
11100
5321fb3e
FW
111012002-05-31 Florian Weimer <fw@deneb.enyo.de>
11102
15e6136e
FW
11103 * 5ntaprop.adb (with System.OS_Primitives): Remove.
11104
019310ac
FW
11105 * cstreams.c (max_path_len): Move from here ...
11106 * adaint.c (__gnat_max_path_len): ... to here.
11107 * adaint.c (__gnat_max_path_len): Declare.
11108 * g-dirope.adb (Max_Path): Adjust.
11109 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
94213cff 11110 * i-cstrea.ads (max_path_len): Adjust.
019310ac
FW
11111 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
11112 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
11113
5321fb3e
FW
11114 * Makefile.in, Make-lang.in: Documentation is now built in
11115 Make-lang.in. Store Info and generated Texinfo files in the
11116 source directory.
11117 * gnat_ug.texi: Remove CVS keywords, correct version number.
11118 Set file name correctly.
11119
11120 * gnat_ug_*.texi: Add.
11121 * .cvsignore: Ignore generated Texinfo files.
11122
b1c12c4b
ZW
111232002-05-30 Zack Weinberg <zack@codesourcery.com>
11124
11125 * ada.h: Add MI guard macro.
11126 (SUBTYPE): Define constants with an anonymous enum, not static
11127 const variables.
11128 (IN): Cast constants to appropriate type before use.
11129
ead33da9
JM
111302002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
11131
11132 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
11133 (experimental)".
11134
7d600178
RO
111352002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11136
11137 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
11138 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
11139 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
11140 (ALL_ADA_CFLAGS): Likewise.
11141 (ADA_INCLUDES): Likewise.
11142 Adapt for new working dir.
11143 (GNATBIND): Use Makefile.in version.
11144 (.SUFFIXES): Copy from Makefile.in.
11145 (ada-warn): Define.
11146 (.adb.o, .ads.o): Copy from Makefile.in.
11147 Added $(OUTPUT_OPTION).
11148 (GNAT1_C_OBJS): Moved from Makefile.in.
11149 Prefix with ada subdir.
11150 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
11151 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
11152 Adapt for new working dir.
11153 (EXTRA_GNATBIND_OBJS): Likewise.
11154 (ADA_BACKEND): Moved from Makefile.in.
11155 Renamed to avoid conflict with global BACKEND.
11156 Use that one.
11157 (TARGET_ADA_SRCS): Moved from Makefile.in.
11158 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
11159 Use ADA_BACKEND.
11160 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
11161 (ada_extra_files): Moved from Makefile.in.
11162 Prefix with ada subdir.
11163 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
11164 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
11165 (ada/nmake.ads): Likewise.
11166 (update-sources): Moved from Makefile.in.
11167 Prefix with ada subdir.
11168 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
11169 (ADA_TREE_H): Likewise.
11170 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
11171 (ada/memtrack.o): Likewise.
11172 (ada/adadecode.o): Likewise.
11173 Update dependencies.
11174 (ada/adaint.o): New.
11175 (ada/argv.o): Moved from Makefile.in.
11176 Prefix with ada subdir.
94213cff 11177 Update dependencies.
7d600178
RO
11178 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
11179 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
11180 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
11181 Prefix with ada subdir.
11182 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
11183 (GNAT DEPENDENCIES): Regenerate.
11184 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
11185 toplevel Makefile.in.
11186 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
11187 (TARGET_ADA_SRCS): Removed.
11188 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
11189 (GNATBIND_OBJS): Likewise.
11190 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
11191 (BACKEND): Removed.
11192 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
11193 (TREE_H): Likewise.
11194 (ada_extra_files): Likewise.
11195 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
11196 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
11197 (update-sources): Likewise.
11198 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
11199 (ADA_TREE_H): Likewise.
11200 (adadecoce.o): Likewise.
11201 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
11202 (GNAT DEPENDENCIES): Likewise.
11203
1e6347d8
RO
112042002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11205
11206 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
11207 * Makefile.in: Likewise.
11208
db80834f
RO
112092002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11210
11211 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
11212 Restore $(CONFIG_H) and prefix.o dependencies.
11213 (ada.stage[1-4]): Depend on stage?-start.
11214
11215 * Makefile.in (b_gnatb.c): Depend on interfac.o.
11216
ac293f98
JW
112172002-05-02 Jim Wilson <wilson@redhat.com>
11218
11219 * utils.c (finish_record_type): Change record_size to record_type.
11220
b303008e
JDA
112212001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
11222
11223 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
11224 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
11225 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
94213cff 11226
ff45c01e
NB
112272002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
11228
11229 * misc.c (gnat_parse_file): Update.
11230
349ae713
NB
112312002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
11232
11233 * misc.c (gnat_init): Don't set lang_attribute_common.
11234
ace133aa
JM
112352002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
11236
11237 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
11238
5c558dd9
FW
112392002-04-21 Florian Weimer <fw@deneb.enyo.de>
11240
b4f94ac1 11241 * gnat_ug.texi: New file.
88e1739c 11242
5c558dd9
FW
11243 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
11244 instead of gfdl.texi
11245
11246 * xgnatug.adb, ug_words: New files.
11247
11248 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
b4f94ac1 11249 gnat_rm and gnat-style manuals.
5c558dd9 11250
7a228918
NB
112512002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
11252
11253 * gigi.h (incomplete_type_error): Remove.
11254 * utils.c (incomplete_type_error): Remove.
11255
b2123dc0
MM
112562002-04-16 Mark Mitchell <mark@codesourcery.com>
11257
11258 * trans.c (tree_transform): Add has_scope argument to
11259 expand_start_stmt_expr.
11260
78ef5b89
NB
112612002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
11262
11263 * gigi.h (truthvalue_conversion): Rename.
11264 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
11265 * trans.c (tree_transform): Update.
11266 * utils2.c (truthvalue_conversion): Rename, update.
11267 (build_binary_op, build_unary_op): Update.
11268
a71742a8
LG
112692002-04-04 Laurent Guerby <guerby@acm.org>
11270
11271 * make.adb: Implement -margs, remove restriction about file name placement.
11272 * makeusg.adb: Documentation update.
11273 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
11274 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
11275
82a4b025
NB
112762002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
11277
11278 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
11279 (builtin_function): Similarly.
11280
dffd7eb6
NB
112812002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
11282
11283 * decl.c (gnat_to_gnu_entity): Update.
11284 * gigi.h (mark_addressable): Rename.
11285 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
11286 * trans.c (tree_transform): Update.
11287 * utils.c (create_var_decl): Update.
11288 * util2.c (build_binary_op, build_unary_op,
11289 fill_vms_descriptor): Update.
11290 (mark_addressable): Rename, update.
11291
ceef8ce4
NB
112922002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
11293
11294 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
11295 Rename.
11296 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
11297 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
11298 * trans.c (tree_transform, convert_with_check): Update.
11299 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
11300 Rename.
11301
48a7a235
NB
113022002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
11303
11304 * gigi.h (finish_incomplete_decl): Rename.
11305 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
11306 * utils.c (gnat_init_decl_processing): Don't set hook.
11307 (finish_incomplete_decl): Rename.
11308
1d5af871
AS
113092002-03-29 Andreas Schwab <schwab@suse.de>
11310
11311 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
11312 directory.
11313
8cbb664e
MG
113142001-03-28 Robert Dewar <dewar@gnat.com>
11315
11316 * checks.ads:
11317 (Remove_Checks): New procedure
11318
11319 * checks.adb:
11320 (Remove_Checks): New procedure
11321
11322 * exp_util.adb:
11323 Use new Duplicate_Subexpr functions
11324 (Duplicate_Subexpr_No_Checks): New procedure
11325 (Duplicate_Subexpr_No_Checks_Orig): New procedure
11326 (Duplicate_Subexpr): Restore original form (checks duplicated)
11327 (Duplicate_Subexpr): Call Remove_Checks
11328
82a4b025 11329 * exp_util.ads:
8cbb664e
MG
11330 (Duplicate_Subexpr_No_Checks): New procedure
11331 (Duplicate_Subexpr_No_Checks_Orig): New procedure
11332 Add 2002 to copyright notice
11333
11334 * sem_util.adb: Use new Duplicate_Subexpr functions
11335
82a4b025 11336 * sem_eval.adb:
8cbb664e
MG
11337 (Eval_Indexed_Component): This is the place to call
11338 Constant_Array_Ref and to replace the value. We simply merge
11339 the code of this function in here, since it is now no longer
11340 used elsewhere. This fixes the problem of the back end not
11341 realizing we were clever enough to see that this was
11342 constant.
11343 (Expr_Val): Remove call to Constant_Array_Ref
11344 (Expr_Rep_Val): Remove call to Constant_Array_Ref
11345 Minor reformatting
11346 (Constant_Array_Ref): Deal with string literals (patch
11347 suggested by Zack Weinberg on the gcc list)
11348
113492001-03-28 Ed Schonberg <schonber@gnat.com>
11350
82a4b025 11351 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
8cbb664e
MG
11352 Duplicate_Subexpr_Move_Checks.
11353
82a4b025 11354 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
8cbb664e
MG
11355 Duplicate_Subexpr_Move_Checks.
11356
82a4b025
NB
11357 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
11358 value of array exists before retrieving it (it may a private
8cbb664e
MG
11359 protected component in a function).
11360
792c4e74
GB
113612002-03-28 Geert Bosch <bosch@gnat.com>
11362
11363 * prj-pp.adb : New file.
11364
11365 * prj-pp.ads : New file.
11366
915e8bad
AJ
113672002-03-28 Andreas Jaeger <aj@suse.de>
11368
11369 * Makefile.in (stamp-sdefault): Fix path for Makefile.
11370
0840811c
NB
113712002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
11372
11373 * misc.c (gnat_expand_expr): Move prototype.
11374
7ffb4fd2
NB
113752002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
11376
11377 * misc.c (insert_default_attributes): Remove.
11378
c9d892a8
NB
113792002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
11380
11381 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
11382 (gnat_init): Don't set hook.
11383 (gnat_expand_expr): Fix prototype.
11384
31c816cf
NB
113852002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
11386
11387 * misc.c (ggc_p): Remove.
11388
ef83161c
GB
113892002-03-27 Geert Bosch <bosch@gnat.com>
11390
11391 * prj-makr.ads, prj-makr.adb : New files.
11392
4f0ade92
NB
113932002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
11394
11395 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
11396 (lang_mark_tree): Make static, rename.
11397
c88770e9
NB
113982002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
11399
11400 * misc.c (maybe_build_cleanup): Remove.
11401
05671968
NB
114022002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
11403
11404 * gigi.h (yyparse): Remove.
11405
ad42149c
FW
114062002-03-23 Florian Weimer <fw@deneb.enyo.de>
11407
82a4b025 11408 * gnat_rm.texi: Sync with ACT version.
b4f94ac1 11409 (From Ben Brosgol <brosgol@gnat.com>)
ad42149c 11410
7afff7cf
NB
114112002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
11412
11413 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
11414 (gnat_init): Remove old hook.
11415
52dabb6c
NB
114162002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
11417
11418 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
11419 (yyparse): Rename gnat_parse_file.
11420
6cbcc541
GK
114212002-03-14 Geoffrey Keating <geoffk@redhat.com>
11422
11423 Delete all lines containing "$Revision:".
11424 * xeinfo.adb: Don't look for revision numbers.
11425 * xnmake.adb: Likewise.
11426 * xsinfo.adb: Likewise.
11427 * xsnames.adb: Likewise.
11428 * xtreeprs.adb: Likewise.
11429
2f9834e8
KG
114302002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11431
11432 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
11433 gnat_tree_code_name): Delete.
11434 (tree_code_type, tree_code_length, tree_code_name): Define.
11435 (gnat_init): Don't try to copy into the various tree_code
11436 arrays.
11437
63adb4ff
RH
114382002-03-11 Richard Henderson <rth@redhat.com>
11439
11440 * Makefile.in (.NOTPARALLEL): Add fake tag.
11441
43ff4547
GB
114422002-03-07 Geert Bosch <bosch@gnat.com>
11443
82a4b025
NB
11444 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
11445 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
11446 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
43ff4547
GB
11447 switch-m.adb, switch-m.ads : New files.
11448
07fc65c4
GB
114492002-03-07 Geert Bosch <bosch@gnat.com>
11450
11451 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
11452 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
11453 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
11454 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
11455 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
11456 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
11457 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
11458 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
11459 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
11460 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
11461 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
11462 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
11463 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
11464 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
11465 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
11466 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
11467 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
11468 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
11469 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
11470 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
11471 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
11472 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
11473 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
11474 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
11475 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
11476 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
11477 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
11478 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
11479 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
11480 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
11481 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
11482 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
11483 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
11484 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
11485 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
11486 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
11487 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
11488 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
11489 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
11490 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
11491 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
11492 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
11493 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
11494 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
11495 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
11496 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
11497 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
11498 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
11499 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
11500 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
11501 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
11502 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
11503 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
11504 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
11505 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
11506 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
11507 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
11508 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
11509 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
11510 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
11511 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
11512 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
11513 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
11514 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
11515 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
11516 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
11517 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
11518 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
11519 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
11520 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
11521 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
11522 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
11523 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
11524 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
11525 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
11526 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
11527 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
11528 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
11529 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
11530 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
11531 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
11532 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
11533 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
11534 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
11535 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
11536 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
11537 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
11538 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
11539 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
11540 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
11541 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
11542 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
11543 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
11544 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
11545 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
11546 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
11547 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
11548
11549 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
11550 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
11551 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
11552 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
11553
11554 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
11555 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
11556
11557 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
11558 to mdll-fil.ad[bs] and mdll-util.ad[bs]
11559
11560 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
11561 from mdllfile.ad[bs] and mdlltool.ad[bs]
11562
ca7558fc
KG
115632002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11564
11565 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
11566 lieu of explicit sizeof/sizeof.
11567
63e1b1c4
NB
115682002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
11569
11570 * misc.c (copy_lang_decl): Remove.
11571
f458d1d5
ZW
115722002-02-27 Zack Weinberg <zack@codesourcery.com>
11573
11574 * misc.c: Delete traditional-mode-related code copied from the
11575 C front end but not used, or used only to permit the compiler
11576 to link.
11577
21e09952
RH
115782002-02-07 Richard Henderson <rth@redhat.com>
11579
11580 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
11581 * adaint.h (__gnat_to_gm_time): Update prototype.
11582
ead39bdf 115832002-01-30 Richard Henderson <rth@redhat.com>
e803a64b
RH
11584
11585 * trans.c (tree_transform) [N_Loop_Statement]: Use
11586 expand_exit_loop_top_cond.
11587
72ac12bf
RH
115882001-12-23 Richard Henderson <rth@redhat.com>
11589
11590 * utils.c (end_subprog_body): Push GC context around
11591 rest_of_compilation for nested functions.
11592
14aacce7
RH
115932001-12-23 Richard Henderson <rth@redhat.com>
11594
11595 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
11596
b3d45d87
FW
115972001-12-23 Florian Weimer <fw@deneb.enyo.de>
11598
ece2d1b8
FW
11599 * gnat-style.texi (Declarations and Types): Remove ancient style
11600 rule which was mandated by code generation issues.
82a4b025 11601
b3d45d87
FW
11602 * gnat-style.texi (header): Add @dircategory, @direntry.
11603 (title page): Remove date.
11604 (general) Add @./@: where approriate, and two spaces after the
11605 full stop at the end of a sentence. Use @samp markup when
11606 referring concrete lexical entities (keywords, attribute names
11607 etc.), and @syntax for ARM grammar elements. Use @r for English
11608 text in comments. Use @emph for emphasis. Change "if-statements"
11609 etc. to "if statements" (without @samp). Break long lines. Make
11610 casing of section names consistent.
11611 (Identifiers): Use @samp markup for variable names.
11612 (Comments): Use @samp markup for comment characters. Line-end
11613 comments may follow any Ada code, not just statements. Fix
11614 misspelling of "Integer" as "integer".
11615 (Loop statements): Do not use variable name "I", use "J".
11616 (Subprogram Declarations): Document alignment.
11617 (Subprogram Bodies, Block statements): Document empty line before
11618 "begin".
11619
7a73ad55
FW
116202001-12-22 Florian Weimer <fw@deneb.enyo.de>
11621
11622 * make.adb (Add_Switch): Make Generic_Position a procedure. The
11623 function approach did not work well because of a side effect (the
11624 function call could reallocate the table which was being indexed
11625 using its result). Fixes ada/4851.
11626
17c5c8a5
GB
116272001-12-19 Robert Dewar <dewar@gnat.com>
11628
11629 * bindgen.adb: Minor reformatting
82a4b025 11630
17c5c8a5 11631 * cstand.adb: Minor reformatting
82a4b025 11632
17c5c8a5
GB
11633 * fmap.adb: Minor reformatting
11634 Change name from Add for Add_To_File_Map (Add is much too generic)
11635 Change Path_Name_Of to Mapped_Path_Name
11636 Change File_Name_Of to Mapped_File_Name
11637 Fix copyright dates in header
82a4b025 11638
17c5c8a5
GB
11639 * fmap.ads:
11640 Change name from Add for Add_To_File_Map (Add is much too generic)
11641 Change Path_Name_Of to Mapped_Path_Name
11642 Change File_Name_Of to Mapped_File_Name
11643 Fix copyright dates in header
82a4b025 11644
17c5c8a5
GB
11645 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
11646 Add use clause for Fmap.
82a4b025 11647
17c5c8a5 11648 * make.adb: Minor reformatting
82a4b025 11649
17c5c8a5
GB
11650 * osint.adb: Minor reformatting. Change of names in Fmap.
11651 Add use clause for Fmap.
82a4b025 11652
17c5c8a5 11653 * prj-env.adb: Minor reformatting
82a4b025 11654
17c5c8a5 11655 * prj-env.ads: Minor reformatting
82a4b025 11656
07fc65c4
GB
11657 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
11658 error found (there were odd exceptions to this general rule in
17c5c8a5 11659 -gnatec/-gnatem processing)
82a4b025 11660
17c5c8a5
GB
116612001-12-19 Olivier Hainque <hainque@gnat.com>
11662
07fc65c4
GB
11663 * raise.c (__gnat_eh_personality): Exception handling personality
11664 routine for Ada. Still in rough state, inspired from the C++ version
17c5c8a5 11665 and still containing a bunch of debugging artifacts.
07fc65c4 11666 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
17c5c8a5 11667 inspired from the C++ library.
82a4b025 11668
07fc65c4 11669 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
17c5c8a5 11670 exception handling integration.
82a4b025 11671
17c5c8a5
GB
116722001-12-19 Arnaud Charlet <charlet@gnat.com>
11673
11674 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
11675 (HIE_SOURCES): Add s-secsta.ad{s,b}.
11676 (HIE_OBJS): Add s-fat*.o
07fc65c4 11677 (RAVEN_SOURCES): Remove files that are no longer required. Add
17c5c8a5
GB
11678 interrupt handling files.
11679 (RAVEN_MOD): Removed, no longer needed.
82a4b025 11680
17c5c8a5
GB
116812001-12-19 Robert Dewar <dewar@gnat.com>
11682
11683 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
11684 Add 2001 to copyright date
82a4b025 11685
07fc65c4 11686 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
17c5c8a5 11687 need to force universal inlining for these cases.
82a4b025 11688
17c5c8a5
GB
116892001-12-19 Arnaud Charlet <charlet@gnat.com>
11690
07fc65c4 11691 * s-taprob.adb: Minor clean ups so that this unit can be used in
17c5c8a5 11692 Ravenscar HI.
82a4b025 11693
17c5c8a5
GB
11694 * exp_ch7.adb: Allow use of secondary stack in HI mode.
11695 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
82a4b025 11696
17c5c8a5
GB
116972001-12-19 Vincent Celier <celier@gnat.com>
11698
07fc65c4 11699 * prj-tree.ads (Project_Node_Record): Add comments for components
17c5c8a5 11700 Pkg_Id and Case_Insensitive.
82a4b025 11701
17c5c8a5
GB
117022001-12-19 Pascal Obry <obry@gnat.com>
11703
11704 * g-socket.adb: Minor reformatting. Found while reading code.
82a4b025 11705
17c5c8a5
GB
117062001-12-19 Robert Dewar <dewar@gnat.com>
11707
11708 * prj-tree.ads: Minor reformatting
11709
38be19f6
JM
117102001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
11711
11712 * config-lang.in (diff_excludes): Remove.
11713
6510f4c9
GB
117142001-12-17 Ed Schonberg <schonber@gnat.com>
11715
07fc65c4
GB
11716 * sem_res.adb (Resolve_Selected_Component): do not generate a
11717 discriminant check if the selected component is a component of
6510f4c9
GB
11718 the argument of an initialization procedure.
11719
07fc65c4
GB
11720 * trans.c (tree_transform, case of arithmetic operators): If result
11721 type is private, the gnu_type is the base type of the full view,
6510f4c9 11722 given that the full view itself may be a subtype.
82a4b025 11723
6510f4c9
GB
117242001-12-17 Robert Dewar <dewar@gnat.com>
11725
11726 * sem_res.adb: Minor reformatting
82a4b025 11727
07fc65c4
GB
11728 * trans.c (tree_transform, case N_Real_Literal): Add missing third
11729 parameter in call to Machine (unknown horrible effects from this
6510f4c9 11730 omission).
82a4b025 11731
6510f4c9
GB
11732 * urealp.h: Add definition of Round_Even for call to Machine
11733 Add third parameter for Machine
82a4b025 11734
6510f4c9
GB
117352001-12-17 Ed Schonberg <schonber@gnat.com>
11736
07fc65c4 11737 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
6510f4c9 11738 predefined units in No_Run_Time mode.
82a4b025 11739
6510f4c9
GB
117402001-12-17 Richard Kenner <kenner@gnat.com>
11741
11742 * misc.c (insn-codes.h): Now include.
82a4b025 11743
6510f4c9
GB
117442001-12-17 Olivier Hainque <hainque@gnat.com>
11745
07fc65c4 11746 * a-except.adb: Preparation work for future integration of the GCC 3
6510f4c9
GB
11747 exception handling mechanism
11748 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
11749 to factorize previous code sequences and make them externally callable,
11750 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
11751 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
11752 Use the new notification routines.
82a4b025 11753
6510f4c9
GB
117542001-12-17 Emmanuel Briot <briot@gnat.com>
11755
11756 * prj-tree.ads (First_Choice_Of): Document the when others case
82a4b025 11757
6510f4c9
GB
117582001-12-17 Arnaud Charlet <charlet@gnat.com>
11759
07fc65c4 11760 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
6510f4c9 11761 HI-E mode, in order to support Ravenscar profile properly.
82a4b025 11762
07fc65c4 11763 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
6510f4c9 11764 mode on 32 bits targets.
82a4b025 11765
6510f4c9
GB
117662001-12-17 Vincent Celier <celier@gnat.com>
11767
11768 * fmap.adb: Initial version.
82a4b025 11769
6510f4c9 11770 * fmap.ads: Initial version.
82a4b025 11771
6510f4c9
GB
11772 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
11773 If search is successfully done, add to mapping.
82a4b025 11774
6510f4c9 11775 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
82a4b025 11776
6510f4c9
GB
11777 * make.adb:
11778 (Gnatmake): Add new local variable Mapping_File_Name.
11779 Create mapping file when using project file(s).
11780 Delete mapping file before exiting.
82a4b025 11781
6510f4c9 11782 * opt.ads (Mapping_File_Name): New variable
82a4b025 11783
6510f4c9 11784 * osint.adb (Find_File): Use path name found in mapping, if any.
82a4b025 11785
6510f4c9 11786 * prj-env.adb (Create_Mapping_File): New procedure
82a4b025 11787
6510f4c9 11788 * prj-env.ads (Create_Mapping_File): New procedure.
82a4b025 11789
07fc65c4 11790 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
6510f4c9 11791 (Mapping_File)
82a4b025 11792
6510f4c9 11793 * usage.adb: Add entry for new switch -gnatem.
82a4b025 11794
6510f4c9 11795 * Makefile.in: Add dependencies for fmap.o.
82a4b025 11796
6510f4c9
GB
117972001-12-17 Ed Schonberg <schonber@gnat.com>
11798
07fc65c4 11799 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
6510f4c9
GB
11800 is a package instantiation rewritten as a package body.
11801 (Install_Withed_Unit): Undo previous change, now redundant.
82a4b025 11802
6510f4c9
GB
118032001-12-17 Gary Dismukes <dismukes@gnat.com>
11804
11805 * layout.adb:
11806 (Compute_Length): Move conversion to Unsigned to callers.
11807 (Get_Max_Size): Convert Len expression to Unsigned after calls to
11808 Compute_Length and Determine_Range.
11809 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
11810 Compute_Length and Determine_Range.
11811 Above changes fix problem with length computation for supernull arrays
07fc65c4 11812 where Max (Len, 0) wasn't getting applied due to the Unsigned
6510f4c9 11813 conversion used by Compute_Length.
82a4b025 11814
6510f4c9
GB
118152001-12-17 Arnaud Charlet <charlet@gnat.com>
11816
11817 * rtsfind.ads:
11818 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
11819 System.Secondary_Stack.
11820 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
11821 in HI-E mode.
11822 Remove unused entity RE_Exception_Data.
82a4b025 11823
6510f4c9 11824 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
82a4b025 11825
6510f4c9
GB
11826 * rident.ads (No_Secondary_Stack): New restriction.
11827
3a77b68d
GB
118282001-12-17 Joel Brobecker <brobecke@gnat.com>
11829
07fc65c4 11830 * gnat_rm.texi: Fix minor typos. Found while reading the section
3a77b68d
GB
11831 regarding "Bit_Order Clauses" that was sent to a customer.
11832 Very interesting documentation!
82a4b025 11833
3a77b68d
GB
118342001-12-17 Robert Dewar <dewar@gnat.com>
11835
07fc65c4
GB
11836 * sem_case.adb (Choice_Image): Avoid creating improper character
11837 literal names by using the routine Set_Character_Literal_Name. This
3a77b68d 11838 fixes bombs in certain error message cases.
82a4b025 11839
3a77b68d
GB
118402001-12-17 Arnaud Charlet <charlet@gnat.com>
11841
11842 * a-reatim.adb: Minor reformatting.
82a4b025 11843
3a77b68d
GB
118442001-12-17 Ed Schonberg <schonber@gnat.com>
11845
07fc65c4
GB
11846 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
11847 case where the formal is an extension of another formal in the current
3a77b68d 11848 unit or in a parent generic unit.
82a4b025 11849
3a77b68d
GB
118502001-12-17 Arnaud Charlet <charlet@gnat.com>
11851
07fc65c4 11852 * s-tposen.adb: Update comments. Minor reformatting.
3a77b68d 11853 Minor code clean up.
82a4b025 11854
3a77b68d 11855 * s-tarest.adb: Update comments. Minor code reorganization.
82a4b025 11856
3a77b68d
GB
118572001-12-17 Gary Dismukes <dismukes@gnat.com>
11858
07fc65c4 11859 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
3a77b68d 11860 when Java_VM.
82a4b025 11861
3a77b68d
GB
118622001-12-17 Robert Dewar <dewar@gnat.com>
11863
11864 * exp_attr.adb: Minor reformatting
82a4b025 11865
3a77b68d
GB
118662001-12-17 Ed Schonberg <schonber@gnat.com>
11867
07fc65c4 11868 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
3a77b68d
GB
11869 derivations nested within a child unit: verify that the parent
11870 type is declared in an outer scope.
82a4b025 11871
3a77b68d
GB
118722001-12-17 Robert Dewar <dewar@gnat.com>
11873
11874 * sem_ch12.adb: Minor reformatting
82a4b025 11875
3a77b68d
GB
118762001-12-17 Ed Schonberg <schonber@gnat.com>
11877
07fc65c4
GB
11878 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
11879 warning if current unit is a predefined one, from which bodies may
3a77b68d 11880 have been deleted.
82a4b025 11881
3a77b68d
GB
118822001-12-17 Robert Dewar <dewar@gnat.com>
11883
11884 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
11885 Fix header format. Add 2001 to copyright date.
82a4b025 11886
07fc65c4 11887 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
3a77b68d
GB
11888 which caused CE during compilation if checks were enabled.
11889
79503fdd
GB
118902001-12-17 Vincent Celier <celier@gnat.com>
11891
11892 * make.adb:
11893 (Switches_Of): New function
11894 (Test_If_Relative_Path): New procedure
11895 (Add_Switches): Use new function Switches_Of
11896 (Collect_Arguments_And_Compile): Use new function Switches_Of.
11897 When using a project file, test if there are any relative
11898 search path. Fail if there are any.
07fc65c4
GB
11899 (Gnatmake): Only add switches for the primary directory when not using
11900 a project file. When using a project file, change directory to the
11901 object directory of the main project file. When using a project file,
11902 test if there are any relative search path. Fail if there are any.
11903 When using a project file, fail if specified executable is relative
11904 path with directory information, and prepend executable, if not
11905 specified as an absolute path, with the exec directory. Make sure
79503fdd 11906 that only one -o switch is transmitted to the linker.
82a4b025 11907
79503fdd 11908 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
82a4b025 11909
79503fdd
GB
11910 * prj-nmsc.adb:
11911 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
11912 when using a non standard naming scheme.
11913 (Check_Ada_Naming_Scheme): Make sure that error messages
11914 do not raise exceptions.
11915 (Is_Illegal_Append): Return True if there is no dot in the suffix.
11916 (Language_Independent_Check): Check the exec directory.
82a4b025 11917
79503fdd 11918 * prj.adb (Project_Empty): Add new component Exec_Directory
82a4b025 11919
79503fdd
GB
11920 * prj.ads:
11921 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
11922 (Project_Data): Add component Exec_Directory
82a4b025 11923
79503fdd 11924 * snames.adb: Updated to match snames.ads revision 1.215
82a4b025 11925
79503fdd 11926 * snames.ads: Added Exec_Dir
82a4b025 11927
79503fdd
GB
119282001-12-17 Robert Dewar <dewar@gnat.com>
11929
11930 * make.adb: Minor reformatting
82a4b025 11931
79503fdd 11932 * prj-nmsc.adb: Minor reformatting
82a4b025 11933
79503fdd 11934 * snames.adb: Updated to match snames.ads
82a4b025 11935
79503fdd
GB
11936 * snames.ads: Alphebetize entries for project file
11937
119382001-12-17 Ed Schonberg <schonber@gnat.com>
11939
07fc65c4 11940 * trans.c (process_freeze_entity): Do nothing if the entity is a
79503fdd 11941 subprogram that was already elaborated.
82a4b025 11942
79503fdd 119432001-12-17 Richard Kenner <kenner@gnat.com>
82a4b025 11944
07fc65c4 11945 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
79503fdd
GB
11946 and Esize if object is referenced via pointer.
11947
855ff2e1
GB
119482001-12-17 Ed Schonberg <schonber@gnat.com>
11949
07fc65c4 11950 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
855ff2e1 11951 is discrete before analyzing choices.
82a4b025 11952
855ff2e1
GB
119532001-12-17 Joel Brobecker <brobecke@gnat.com>
11954
07fc65c4
GB
11955 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
11956 containing the name of the Ada Main Program. This string is mainly
855ff2e1
GB
11957 intended for the debugger.
11958 (Gen_Output_File_C): Do the equivalent change when generating a C file.
82a4b025 11959
855ff2e1
GB
119602001-12-17 Robert Dewar <dewar@gnat.com>
11961
11962 * ali.adb: Set new Dummy_Entry field in dependency entry
82a4b025 11963
855ff2e1 11964 * ali.ads: Add Dummy_Entry field to source dependency table
82a4b025 11965
855ff2e1 11966 * bcheck.adb (Check_Consistency): Ignore dummy D lines
82a4b025 11967
855ff2e1 11968 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
82a4b025 11969
855ff2e1 11970 * lib-writ.ads: Document dummy D lines for missing files.
82a4b025 11971
855ff2e1
GB
11972 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
11973
c1c22e7a
GB
119742001-12-17 Robert Dewar <dewar@gnat.com>
11975
11976 * ali.adb: Type reference does not reset current file.
82a4b025 11977
c1c22e7a 11978 * ali.adb: Recognize and scan renaming reference
82a4b025 11979
c1c22e7a 11980 * ali.ads: Add spec for storing renaming references.
82a4b025 11981
c1c22e7a 11982 * lib-xref.ads: Add documentation for handling of renaming references
82a4b025 11983
c1c22e7a 11984 * lib-xref.adb: Implement output of renaming reference.
82a4b025 11985
c1c22e7a
GB
11986 * checks.adb:
11987 (Determine_Range): Document local variables
11988 (Determine_Range): Make sure Hbound is initialized. It looks as though
11989 there could be a real problem here with an uninitialized reference
11990 to Hbound, but no actual example of failure has been found.
82a4b025 11991
c1c22e7a
GB
119922001-12-17 Laurent Pautet <pautet@gnat.com>
11993
11994 * g-socket.ads:
11995 Fix comment of Shutdown_Socket and Close_Socket. These functions
11996 should not fail silently because if they are called twice, this
11997 probably means that there is a race condition in the user program.
11998 Anyway, this behaviour is consistent with the rest of this unit.
11999 When an error occurs, an exception is raised with the error message
12000 as exception message.
12001
7eb7bb07
RD
120022001-12-17 Robert Dewar <dewar@gnat.com>
12003
07fc65c4 12004 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
7eb7bb07 12005 that it happens before modification of Sloc values for -gnatD.
82a4b025 12006
07fc65c4 12007 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
7eb7bb07 12008 so that it happens before modification of Sloc values for -gnatD.
82a4b025 12009
7eb7bb07
RD
12010 * switch.adb: Minor reformatting
12011
b6434700
RH
120122001-12-15 Richard Henderson <rth@redhat.com>
12013
12014 * sem_ch7.adb: Wrap comment.
12015
44d6a706
JM
120162001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
12017
12018 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
12019 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
12020 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
12021 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
12022 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
12023 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
12024 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
12025 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
12026 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
12027 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
12028 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
12029 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
12030 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
12031 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
12032 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
12033 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
12034 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
12035 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
12036 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
12037 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
12038 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
12039 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
12040 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
12041 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
12042 spelling errors.
12043
226ada7a
GB
120442001-12-14 Vincent Celier <celier@gnat.com>
12045
07fc65c4 12046 * osint.adb(Create_Debug_File): When an object file is specified,
226ada7a 12047 put the .dg file in the same directory as the object file.
82a4b025 12048
226ada7a
GB
120492001-12-14 Robert Dewar <dewar@gnat.com>
12050
12051 * osint.adb: Minor reformatting
82a4b025 12052
07fc65c4 12053 * lib-xref.adb (Output_Instantiation): New procedure to generate
226ada7a 12054 instantiation references.
82a4b025 12055
226ada7a 12056 * lib-xref.ads: Add documentation of handling of generic references.
82a4b025 12057
07fc65c4 12058 * ali.adb (Read_Instantiation_Ref): New procedure to read
226ada7a 12059 instantiation references
82a4b025 12060
226ada7a 12061 * ali.ads: Add spec for storing instantiation references
82a4b025 12062
226ada7a 12063 * bindusg.adb: Minor reformatting
82a4b025 12064
226ada7a 12065 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
82a4b025 12066
226ada7a 12067 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
82a4b025 12068
226ada7a 12069 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
82a4b025 12070
226ada7a 12071 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
82a4b025 12072
226ada7a
GB
12073 * csets.ads:
12074 Fix header format
12075 Add 2001 to copyright date
12076 Add entry for Latin-5 (Cyrillic ISO-8859-5)
82a4b025 12077
226ada7a
GB
120782001-12-14 Matt Gingell <gingell@gnat.com>
12079
07fc65c4 12080 * adaint.c: mktemp is a macro on Lynx and can not be used as an
226ada7a 12081 expression.
82a4b025 12082
226ada7a
GB
120832001-12-14 Richard Kenner <kenner@gnat.com>
12084
07fc65c4 12085 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
226ada7a 12086 if operand is CONSTRUCTOR.
82a4b025 12087
226ada7a
GB
120882001-12-14 Ed Schonberg <schonber@gnat.com>
12089
07fc65c4
GB
12090 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
12091 before emiting check on right-hand side, so that exception information
226ada7a
GB
12092 is correct.
12093
120942001-12-14 Richard Kenner <kenner@gnat.com>
82a4b025 12095
07fc65c4 12096 * utils.c (create_var_decl): Throw away initializing expression
226ada7a 12097 if just annotating types and non-constant.
82a4b025 12098
226ada7a
GB
120992001-12-14 Vincent Celier <celier@gnat.com>
12100
12101 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
12102 Default_Ada_...
82a4b025 12103
07fc65c4 12104 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
226ada7a
GB
12105 Remove functions.
12106 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
82a4b025 12107
07fc65c4 12108 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
226ada7a
GB
12109 Remove functions.
12110 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
12111
9b94bf9e
JM
121122001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
12113
12114 * ChangeLog: Remove piece of diff output.
12115
449d2be3
GB
121162001-12-14 Geert Bosch <bosch@gnat.com>
12117
12118 * config-lang.in: Update copyright notice
12119
12120 * layout.adb: Remove commented out code.
12121
12122 * mdllfile.ads: Update copyright notice. Fix header format.
12123
12124 * sem_case.ads: Likewise.
12125
12126 * sem_ch3.adb: Minor reformatting.
12127
e5bd5cb4
GB
121282001-12-12 Geert Bosch <bosch@gnat.com>
12129
12130 * freeze.ads: Update copyright date.
12131
12132 * g-comlin.ads: Minor reformatting.
12133
12134 * gnat-style.texi: Fix typo.
12135
b468d8ec
GB
121362001-12-12 Geert Bosch <bosch@gnat.com>
12137
12138 * einfo.h: Regenerate.
12139
ed7da216
GB
121402001-12-12 Ed Schonberg <schonber@gnat.com>
12141
07fc65c4 12142 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
ed7da216 12143 on known node types, rather than untyped fields. Further cleanups.
82a4b025 12144
ed7da216
GB
121452001-12-12 Robert Dewar <dewar@gnat.com>
12146
12147 * sem_ch12.adb:
12148 (Save_Entity_Descendant): Minor comment update.
12149 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
07fc65c4 12150 of an N_Attribute_Reference node. As per note below, this does not
ed7da216 12151 eliminate need for Associated_Node in attribute ref nodes.
07fc65c4 12152 (Associated_Node): Documentation explicitly mentions attribute
ed7da216 12153 reference nodes, since this field is used in such nodes.
82a4b025 12154
ed7da216
GB
12155 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
12156
de76a39c
GB
121572001-12-12 Robert Dewar <dewar@gnat.com>
12158
12159 * s-stalib.adb: Add more comments on with statements being needed
82a4b025 12160
de76a39c 12161 * par-ch12.adb: Minor reformatting
82a4b025 12162
de76a39c 12163 * prj-dect.ads: Fix copyright header
82a4b025 12164
07fc65c4 12165 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
de76a39c 12166 inputs fit in 32 bits, but the result still overflows.
82a4b025 12167
de76a39c 12168 * s-fatgen.ads: Minor comment improvement
82a4b025 12169
de76a39c
GB
121702001-12-12 Ed Schonberg <schonber@gnat.com>
12171
07fc65c4
GB
12172 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
12173 formal derived type, look for an inherited component from the full
de76a39c 12174 view of the parent, if any.
82a4b025 12175
de76a39c
GB
121762001-12-12 Robert Dewar <dewar@gnat.com>
12177
12178 * checks.ads (Apply_Alignment_Check): New procedure.
82a4b025 12179
07fc65c4
GB
12180 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
12181 ensure that the alignment of objects with address clauses is
de76a39c
GB
12182 appropriate, and raise PE if not.
12183
07fc65c4 12184 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
de76a39c 12185 Exp_Pakd.Known_Aligned_Enough
82a4b025 12186
de76a39c
GB
12187 * mdllfile.ads: Minor reformatting
12188
12189 * mlib-fil.ads: Minor reformatting
82a4b025 12190
de76a39c
GB
121912001-12-12 Ed Schonberg <schonber@gnat.com>
12192
07fc65c4
GB
12193 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
12194 fix to any component reference if enclosing record has non-standard
de76a39c 12195 representation.
82a4b025 12196
de76a39c
GB
121972001-12-12 Vincent Celier <celier@gnat.com>
12198
07fc65c4 12199 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
de76a39c 12200 Iteration
82a4b025 12201
de76a39c
GB
122022001-12-12 Ed Schonberg <schonber@gnat.com>
12203
07fc65c4 12204 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
de76a39c 12205 sem_attr.
82a4b025 12206
de76a39c
GB
122072001-12-12 Robert Dewar <dewar@gnat.com>
12208
12209 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
82a4b025 12210
de76a39c
GB
122112001-12-12 Emmanuel Briot <briot@gnat.com>
12212
12213 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
12214 and it adds dependencies to system.io.
82a4b025 12215
de76a39c
GB
122162001-12-12 Pascal Obry <obry@gnat.com>
12217
07fc65c4 12218 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
de76a39c
GB
12219 variable name.
12220
0b09835f
ES
122212001-12-11 Ed Schonberg <schonber@gnat.com>
12222
12223 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
07fc65c4
GB
12224 that is the parent of other generics, the instance body replaces the
12225 instance node. Retrieve the instance of the spec, which is the one
0b09835f
ES
12226 that is visible in clients and within the body.
12227
598c3446
GB
122282001-12-11 Vincent Celier <celier@gnat.com>
12229
12230 * gnatmain.adb: Initial version.
82a4b025 12231
598c3446 12232 * gnatmain.ads: Initial version.
82a4b025 12233
598c3446 12234 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
82a4b025 12235
598c3446 12236 * snames.adb: Updated to match snames.ads.
82a4b025 12237
598c3446 12238 * snames.ads: Added Gnatstub.
82a4b025 12239
598c3446
GB
122402001-12-11 Vincent Celier <celier@gnat.com>
12241
07fc65c4 12242 * prj-attr.adb (Initialization_Data): Change name from
598c3446 12243 Initialisation_Data.
82a4b025 12244
598c3446
GB
122452001-12-11 Emmanuel Briot <briot@gnat.com>
12246
12247 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
12248 + and * applied to backslashed expressions like \r.
82a4b025 12249
598c3446
GB
122502001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
12251
07fc65c4 12252 * g-os_lib.ads: String_List type added, Argument_List type is now
598c3446 12253 subtype of String_List.
82a4b025 12254
598c3446
GB
122552001-12-11 Robert Dewar <dewar@gnat.com>
12256
12257 * g-os_lib.ads: Change copyright to FSF
12258 Add comments for String_List type
82a4b025 12259
598c3446
GB
122602001-12-11 Vincent Celier <celier@gnat.com>
12261
07fc65c4 12262 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
598c3446
GB
12263 string to the buffer).
12264
7fb754a1
GB
122652001-12-11 Ed Schonberg <schonber@gnat.com>
12266
12267 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
12268 sem_attr.
82a4b025 12269
7fb754a1 12270 * sem_attr.adb: Simplify previous fix for Address.
07fc65c4
GB
12271 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
12272 to avoid anomalies where the bound of the type appears to raise
7fb754a1
GB
12273 constraint error.
12274
122752001-12-11 Robert Dewar <dewar@gnat.com>
12276
07fc65c4 12277 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
7fb754a1 12278 handled.
82a4b025 12279
7fb754a1
GB
122802001-12-11 Ed Schonberg <schonber@gnat.com>
12281
07fc65c4 12282 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
7fb754a1 12283 renamed unit before checking for recursive instantiations.
82a4b025 12284
7fb754a1
GB
122852001-12-11 Emmanuel Briot <briot@gnat.com>
12286
12287 * prj.ads: Add comments for some of the fields.
12288
0873bafc
GB
122892001-12-11 Robert Dewar <dewar@gnat.com>
12290
07fc65c4 12291 * lib-xref.adb (Output_Refs): Don't output type references outside
0873bafc 12292 the main unit if they are not otherwise referenced.
82a4b025 12293
0873bafc
GB
122942001-12-11 Ed Schonberg <schonber@gnat.com>
12295
07fc65c4 12296 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
0873bafc 12297 code and diagnose additional illegal uses
82a4b025 12298
07fc65c4 12299 * sem_util.adb (Is_Object_Reference): An indexed component is an
0873bafc 12300 object only if the prefix is.
82a4b025 12301
0873bafc
GB
123022001-12-11 Vincent Celier <celier@gnat.com>
12303
12304 * g-diopit.adb: Initial version.
82a4b025 12305
0873bafc 12306 * g-diopit.ads: Initial version.
82a4b025 12307
0873bafc
GB
12308 * g-dirope.adb:
12309 (Expand_Path): Avoid use of Unbounded_String
12310 (Find, Wildcard_Iterator): Moved to child package Iteration
82a4b025 12311
0873bafc 12312 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
82a4b025 12313
7fb754a1 123142001-12-11 Robert Dewar <dewar@gnat.com>
0873bafc
GB
12315
12316 * sem_attr.adb: Minor reformatting
12317
d087cd96
GB
123182001-12-11 Ed Schonberg <schonber@gnat.com>
12319
12320 * sem_ch3.adb: Clarify some ???.
82a4b025 12321
d087cd96
GB
123222001-12-11 Robert Dewar <dewar@gnat.com>
12323
07fc65c4 12324 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
d087cd96 12325 Exp_Pakd.Known_Aligned_Enough
82a4b025 12326
07fc65c4 12327 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
d087cd96
GB
12328 version is moved to Exp_Ch13.
12329
123302001-12-11 Robert Dewar <dewar@gnat.com>
12331
12332 * einfo.ads: Minor reformatting
82a4b025 12333
d087cd96 12334 * exp_ch5.adb: Add comment for previous.change
82a4b025 12335
d087cd96 12336 * ali.adb: New interface for extended typeref stuff.
82a4b025 12337
d087cd96 12338 * ali.ads: New interface for typeref stuff.
82a4b025 12339
d087cd96 12340 * checks.adb (Apply_Alignment_Check): New procedure.
82a4b025 12341
d087cd96 12342 * debug.adb: Add -gnatdM for modified ALI output
82a4b025 12343
d087cd96 12344 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
82a4b025 12345
07fc65c4
GB
12346 * lib-xref.adb: Extend generation of <..> notation to cover
12347 subtype/object types. Note that this is a complete rewrite,
12348 getting rid of the very nasty quadratic algorithm previously
d087cd96 12349 used for derived type output.
82a4b025 12350
07fc65c4
GB
12351 * lib-xref.ads: Extend description of <..> notation to cover
12352 subtype/object types. Uses {..} for these other cases.
d087cd96 12353 Also use (..) for pointer types.
82a4b025 12354
d087cd96 12355 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
82a4b025 12356
07fc65c4 12357 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
d087cd96
GB
12358 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
12359
290986ed
GB
123602001-12-11 Vincent Celier <celier@gnat.com>
12361
12362 * gnatcmd.adb:
12363 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
12364 Changed /BIND_ONLY to /ACTIONS=BIND
12365 Changed /LINK_ONLY to /ACTIONS=LINK
82a4b025 12366
290986ed
GB
123672001-12-11 Ed Schonberg <schonber@gnat.com>
12368
12369 * sem_ch8.adb (Find_Selected_Component): improved search for a
12370 candidate package in case of error.
82a4b025 12371
290986ed
GB
12372 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
12373 chain back on scope stack before reinstalling use clauses.
82a4b025 12374
290986ed
GB
12375 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
12376 is enabled, do not kill the code for the condition, to preserve
12377 warning.
12378
84157f51
GB
123792001-12-11 Robert Dewar <dewar@gnat.com>
12380
07fc65c4 12381 * checks.adb (Insert_Valid_Check): Apply validity check to expression
84157f51
GB
12382 of conversion, not to result of conversion.
12383
123842001-12-11 Ed Schonberg <schonber@gnat.com>
82a4b025 12385
07fc65c4
GB
12386 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
12387 before freezing parent. If the declarations are mutually recursive,
12388 an access to the current record type may be frozen before the
84157f51
GB
12389 derivation is complete.
12390
7ffa903f
VC
123912001-12-05 Vincent Celier <celier@gnat.com>
12392
07fc65c4 12393 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
7ffa903f 12394 -c /COMPILE_ONLY, -l /LINK_ONLY
82a4b025 12395
7ffa903f
VC
12396 * opt.ads:
12397 (Bind_Only): New Flag
12398 (Link_Only): New flag
82a4b025 12399
07fc65c4 12400 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
7ffa903f 12401 and -l (Link_Only)
82a4b025 12402
7ffa903f 12403 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
82a4b025 12404
7ffa903f
VC
12405 * make.adb:
12406 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
12407 (Gnatmake): Set the step flags. Only perform a step if the
12408 corresponding step flag is True.
12409 (Scan_Make_Arg): Reset the bind and link step flags when -u
12410 or -gnatc has been specified.
12411
f91b40db
GB
124122001-12-05 Ed Schonberg <schonber@gnat.com>
12413
07fc65c4 12414 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
f91b40db 12415 get bounds from right operand.
82a4b025 12416
f91b40db 12417 * sem_eval.adb: Minor reformatting
82a4b025 12418
07fc65c4 12419 * exp_util.adb (Make_Literal_Range): use bound of literal rather
f91b40db 12420 than Index'First, its lower bound may be different from 1.
82a4b025 12421
07fc65c4 12422 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
f91b40db 12423 and C48009J
82a4b025 12424
f91b40db
GB
124252001-12-05 Vincent Celier <celier@gnat.com>
12426
12427 * prj-nmsc.adb Minor reformatting
82a4b025 12428
07fc65c4 12429 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
f91b40db 12430 set and libraries are not supported.
82a4b025 12431
f91b40db
GB
124322001-12-05 Ed Schonberg <schonber@gnat.com>
12433
07fc65c4
GB
12434 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
12435 private view explicitly, so the back-end can treat as a global
f91b40db
GB
12436 when appropriate.
12437
45d04cbb
GB
124382001-12-05 Ed Schonberg <schonber@gnat.com>
12439
12440 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
12441 unit, always replace instance node with new body, for ASIS use.
12442
124432001-12-05 Vincent Celier <celier@gnat.com>
82a4b025 12444
07fc65c4
GB
12445 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
12446 libraries are not supported and both attributes Library_Name and
45d04cbb 12447 Library_Dir are specified.
82a4b025 12448
07fc65c4 12449 * prj-proc.adb (Expression): Set location of Result to location of
45d04cbb 12450 first term.
82a4b025 12451
45d04cbb
GB
12452 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
12453 (prj-nmsc is now importing MLib.Tgt)
82a4b025 12454
45d04cbb
GB
12455 * prj-proc.adb: Put the change indicated above that was forgotten.
12456
84436014
RD
124572001-12-05 Robert Dewar <dewar@gnat.com>
12458
12459 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
12460
7ae0dcd8
ES
124612001-12-05 Ed Schonberg <schonber@gnat.com>
12462
12463 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
12464 constraint, introduce explicit subtype declaration and derive from it.
82a4b025 12465
7ae0dcd8
ES
12466 * sem_ch3.adb: Minor reformatting
12467
c9a4817d
RD
124682001-12-05 Robert Dewar <dewar@gnat.com>
12469
07fc65c4 12470 * checks.adb (Determine_Range): Increase cache size for checks.
c9a4817d 12471 Minor reformatting
82a4b025 12472
c9a4817d
RD
12473 * exp_ch6.adb: Minor reformatting
12474 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
12475 a parameter whose root type is System.Address, since treating such
12476 subprograms as pure in the code generator is almost surely a mistake
12477 that will lead to unexpected results.
82a4b025 12478
07fc65c4 12479 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
c9a4817d 12480 change handling of conversions.
82a4b025 12481
c9a4817d
RD
12482 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
12483
2514b839
ES
124842001-12-05 Ed Schonberg <schonber@gnat.com>
12485
07fc65c4
GB
12486 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
12487 aggregate with static wrong size, attach generated Raise node to
2514b839
ES
12488 declaration.
12489
457b6274
RD
124902001-12-05 Robert Dewar <dewar@gnat.com>
12491
07fc65c4 12492 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
457b6274
RD
12493 Fixes compilation abandoned bomb in B24009B.
12494
19349925
ES
124952001-12-05 Ed Schonberg <schonber@gnat.com>
12496
12497 * sem_ch12.adb:
12498 Document use of Associated_Node on Selected_Components.
12499 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
12500 to clarify use of untyped descendant fields.
12501
6663c393
RD
125022001-12-05 Robert Dewar <dewar@gnat.com>
12503
12504 * prj-dect.ads: Add ??? comment
12505 Add 2001 to copyright notice (was not done in after all)
82a4b025 12506
6663c393 12507 * prj-part.adb: Minor reformatting. Reword one awkward error message.
82a4b025 12508
6663c393 12509 * prj.ads: Minor reformatting throughout, and add some ??? comments
82a4b025 12510
6663c393
RD
12511 * snames.ads: Minor reformatting
12512
d7b2a6af
GB
125132001-12-05 Geert Bosch <bosch@gnat.com>
12514
12515 * snames.adb: Autoupdate
12516
fbc9a404
VC
125172001-12-05 Vincent Celier <celier@gnat.com>
12518
12519 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
82a4b025 12520
fbc9a404 12521 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
82a4b025 12522
fbc9a404 12523 * prj-env.adb: Minor comment changes (modifying -> extends).
82a4b025 12524
fbc9a404 12525 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
82a4b025 12526
07fc65c4 12527 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
fbc9a404 12528 Tok_Extends.
82a4b025 12529
fbc9a404 12530 * prj.adb (Initialize): Change Modifying to Extends.
82a4b025 12531
fbc9a404 12532 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
82a4b025 12533
fbc9a404 12534 * prj.ads: Minor comment change (Modifying -> extending).
82a4b025 12535
fbc9a404
VC
12536 * snames.ads: Change modifying to extends.
12537
7cff0b1b
RD
125382001-12-05 Robert Dewar <dewar@gnat.com>
12539
07fc65c4 12540 * sem_warn.adb: Remove stuff for conditionals, we are not going to
7cff0b1b 12541 do this after all.
82a4b025 12542
07fc65c4 12543 * sem_warn.ads: Remove stuff for conditionals, we are not going to
7cff0b1b
RD
12544 do this after all. Add 2001 to copyright notice
12545
4f56ebb7
GB
125462001-12-04 Geert Bosch <bosch@gnat.com>
12547
12548 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
12549
053defdf
RD
125502001-12-04 Robert Dewar <dewar@gnat.com>
12551
07fc65c4
GB
12552 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
12553 location if we already have errors. Stops some cases of cascaded
053defdf 12554 errors.
82a4b025 12555
053defdf
RD
12556 * errout.adb: Improve comment.
12557
f311e166
RD
125582001-12-04 Robert Dewar <dewar@gnat.com>
12559
12560 * sem_ch12.adb:
12561 (Analyze_Formal_Type_Definition): Defend against Error.
12562 (Analyze_Formal_Subprogram): Defend against Error.
82a4b025 12563
07fc65c4 12564 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
f311e166
RD
12565 remove following semicolon if present. Removes cascaded error.
12566
d61bd65a
DR
125672001-12-04 Douglas B. Rupp <rupp@gnat.com>
12568
12569 * bindgen.adb:
12570 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
12571 exceptions equals 0.
12572 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
12573 Fixes PIWG E tests (which have to be run with -gnatL).
12574
4ba603e2
RD
125752001-12-04 Robert Dewar <dewar@gnat.com>
12576
12577 * einfo.ads: Minor reformatting
12578
57568d91
ES
125792001-12-04 Ed Schonberg <schonber@gnat.com>
12580
07fc65c4
GB
12581 * einfo.ads: Block_Node points to the identifier of the block, not to
12582 the block node itself, to preserve the link when the block is
12583 rewritten, e.g. within an if-statement with a static condition.
82a4b025 12584
07fc65c4 12585 * inline.adb (Cleanup_Scopes): recover block statement from block
57568d91 12586 entity using new meaning of Block_Node.
82a4b025 12587
07fc65c4 12588 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
57568d91
ES
12589 identifier of block node, rather than to node itself.
12590
0815d36a 125912001-12-04 Gary Dismukes <dismukes@gnat.com>
82a4b025 12592
0815d36a
GD
12593 * layout.adb:
12594 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
12595 (Discrimify): Go back to setting the Etypes of the selected component
07fc65c4 12596 because the Vname component does not exist at this point and will
0815d36a
GD
12597 fail name resolution. Also set Analyzed.
12598 Remove with and use of Sem_Res.
12599
edc0f304
AC
126002001-12-04 Arnaud Charlet <charlet@gnat.com>
12601
12602 * Makefile.in: (HIE_SOURCES): add s-fat*.
12603
32213142
RD
126042001-12-04 Robert Dewar <dewar@gnat.com>
12605
12606 * sem_attr.adb:
12607 (Compile_Time_Known_Attribute): New procedure.
12608 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
12609 proper range check.
12610
c0def2ad
ES
126112001-12-04 Ed Schonberg <schonber@gnat.com>
12612
07fc65c4 12613 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
c0def2ad
ES
12614 processing discriminants to diagnose illegal default values.
12615
ee0a48c5
ES
126162001-12-04 Ed Schonberg <schonber@gnat.com>
12617
07fc65c4
GB
12618 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
12619 access discriminant within a type extension that constrains its
ee0a48c5
ES
12620 parent discriminants.
12621
dd5875a6
ES
126222001-12-04 Ed Schonberg <schonber@gnat.com>
12623
07fc65c4 12624 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
dd5875a6 12625 is malformed, use instance of Any_Id to allow analysis to proceed.
82a4b025 12626
07fc65c4 12627 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
dd5875a6
ES
12628 type definition is illegal.
12629 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
12630 misplaced.
12631
c2a41e57
ES
126322001-12-04 Ed Schonberg <schonber@gnat.com>
12633
07fc65c4 12634 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
c2a41e57
ES
12635 constants.
12636
0ae84753
RD
126372001-12-04 Robert Dewar <dewar@gnat.com>
12638
12639 * errout.adb: Minor reformatting
12640
63db260e
RD
126412001-12-04 Robert Dewar <dewar@gnat.com>
12642
12643 * exp_util.adb: Minor reformatting from last change
82a4b025 12644
07fc65c4
GB
12645 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
12646 which is a rewriting of an expression, traverse the original
63db260e
RD
12647 expression to remove warnings that may have been posted on it.
12648
c6d289f4
ES
126492001-12-04 Ed Schonberg <schonber@gnat.com>
12650
07fc65c4 12651 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
c6d289f4
ES
12652 record that has other packed components.
12653
5917e80d
DR
126542001-12-04 Douglass B. Rupp <rupp@gnat.com>
12655
12656 * adaint.c: Minor cleanups.
12657
2c70f9dd
DR
126582001-12-04 Douglass B. Rupp <rupp@gnat.com>
12659
12660 * adaint.c: Do not use utime.h on vxworks.
12661
e59b3387
AC
126622001-12-04 Arnaud Charlet <charlet@gnat.com>
12663
07fc65c4 12664 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
e59b3387
AC
12665 more confusion than it solves.
12666
e288604a
GB
126672001-12-04 Geert bosch <bosch@gnat.com>
12668
12669 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
12670
5ac21013
GB
126712001-12-04 Geert Bosch <bosch@gnat.com>
12672
07fc65c4 12673 * Makefile.in (update-sources): New target.
5ac21013
GB
12674 For use by gcc_release script.
12675
7dd5bd5e
ES
126762001-12-04 Ed Schonberg <schonber@gnat.com>
12677
07fc65c4 12678 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
7dd5bd5e
ES
12679 a configuration pragma, it is now legal wherever a pragma can appear.
12680
a078a589
ZW
126812001-12-04 Zack Weinberg <zack@codesourcery.com>
12682
12683 * Makefile.in: Don't set ALL. Delete @cross_defines@,
12684 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
12685 is now @CROSS@ -DIN_GCC; update comment.
12686
0839863c
GB
126872001-12-04 Robert Dewar <dewar@gnat.com>
12688
12689 * einfo.adb (Has_Pragma_Pure_Function): New flag.
12690 Fix problem that stopped ceinfo from working
82a4b025 12691
0839863c 12692 * einfo.ads (Has_Pragma_Pure_Function): New flag.
82a4b025 12693
0839863c
GB
12694 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
12695
126962001-12-04 Douglas B. Rupp <rupp@gnat.com>
9678de49
DR
12697
12698 * gnatchop.adb:
12699 (File_Time_Stamp): New procedure.
12700 (Preserve_Mode): New boolean.
12701 (Write_Unit): Pass time stamp.
12702 Implement -p switch (preserve time stamps).
82a4b025 12703
9678de49 12704 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
82a4b025 12705
9678de49 12706 * gnatchop.adb: Do usage info for -p switch
82a4b025 12707
9678de49 12708 * adaint.h (__gnat_set_file_time_name): New function
82a4b025 12709
9678de49 12710 * adaint.c (__gnat_set_file_time_name): Implement
82a4b025 12711
9678de49
DR
12712 * adaint.h: Fix typo
12713
3b9a13c4
RD
127142001-12-03 Robert Dewar <dewar@gnat.com>
12715
667e5c5d 12716 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
b4f94ac1 12717 have Associated_Node.
3b9a13c4 12718
767b404e
RD
127192001-12-03 Robert Dewar <dewar@gnat.com>
12720
12721 * prj-proc.adb: Minor reformatting
667e5c5d 12722
767b404e
RD
12723 * make.adb: Minor reformatting
12724
11ac71ba
GB
127252001-12-03 Geert Bosch <bosch@gnat.com>
12726
667e5c5d 12727 * make.adb: Minor reformatting.
11ac71ba 12728
ef3d4d6e 127292001-12-03 Robert Dewar <dewar@gnat.com>
b1446533
RD
12730
12731 * sem_ch12.adb: Minor reformatting
12732
d6d32b24
ES
127332001-12-03 Ed Schonberg <schonber@gnat.com>
12734
667e5c5d
AJ
12735 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
12736 push Standard on the stack before analyzing the instance body,
d6d32b24 12737 in order to have a clean visibility environment.
667e5c5d
AJ
12738
12739 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
d6d32b24 12740
13f08f03
ES
127412001-12-03 Ed Schonberg <schonber@gnat.com>
12742
667e5c5d 12743 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
13f08f03
ES
12744 instantiation of a body that contains an inlined body.
12745
3bd6c100
ES
127462001-12-03 Ed Schonberg <schonber@gnat.com>
12747
12748 * sem_ch12.adb:
12749 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
12750 to prevent freezing within formal packages.
12751 (Freeze_Subprogram_Body): If body comes from another instance that
12752 appeared before its own body, place freeze node at end of current
12753 declarative part, to prevent a back-end crash.
12754 (Inline_Instance_Body): Handle properly a package instance within
12755 a subprogram instance that is a child unit.
12756
58d07d8f
GS
127572001-12-01 Graham Stott <grahams@redhat.com>
12758
12759 * Makefile.in (misc.o): Add missing $(srcdir) prefix
12760 and add optabs.h dependency.
12761
12762 * misc.c: Include optabs.h
12763 (gnat_tree_code_type): Make static and const.
12764 (gnat_tree_code_length): Likewise.
12765 (gnat_tree_code_name): Likewise.
12766 (update_setjmp_buf): Obtain operands mode from insn_data.
12767
c87222f0
RH
127682001-11-29 Richard Henderson <rth@redhat.com>
12769
12770 * init.c: Remove obsolete dwarf2 frame.h section.
12771
d3945f0a
JM
127722001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
12773
12774 * Make-lang.in (ada.generated-manpages): New dummy target.
12775
9f639397
ES
127762001-11-29 Ed Schonberg <schonber@gnat.com>
12777
667e5c5d
AJ
12778 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
12779 into Command, an array conversion is illegal here. Uncovered by
9f639397
ES
12780 ACATS B460005.
12781
c835e5c6
GB
127822001/11/28 Geert Bosch <bosch@gnat.com>
12783
12784 * init.c: Minor whitespace changes.
12785
49bb4548
DR
127862001-11-28 Doug Rupp <rupp@gnat.com>
12787
667e5c5d 12788 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
49bb4548
DR
12789 signal stack.
12790
ea2417e5
ZW
127912001-11-28 Zack Weinberg <zack@codesourcery.com>
12792
12793 * misc.c (gnat_expand_constant): Move declaration above
12794 definition of lang_hooks.
12795 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
12796 (gnat_init): lang_expand_constant no longer exists.
12797
12798 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
12799 always have vprintf.
12800 (gnat_init): Always call set_internal_error_function.
12801
f8e0aa73
AJ
128022001-11-27 Andreas Jaeger <aj@suse.de>
12803
12804 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
12805
d99b0e79
LG
128062001-11-27 Laurent Guerby <guerby@acm.org>
12807
12808 * Makefile.in: Regenerate Ada dependencies.
12809
3f0496e5
RH
128102001-11-26 Richard Henderson <rth@redhat.com>
12811
12812 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
12813 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
12814 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
12815
92fa4733
LG
128162001-11-25 Laurent Guerby <guerby@acm.org>
12817
12818 * sysdep.c (rts_get_*): Fix style.
12819
07626501
LG
128202001-11-19 Laurent Guerby <guerby@acm.org>
12821
12822 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
12823 since it is of no apparent use and cause warnings.
12824
22703ccc
NB
128252001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
12826
12827 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
12828 static too.
12829 (gnat_init): Don't return NULL.
12830 (finish_parse): Remove.
12831
b0df4321
LG
128322001-11-17 Laurent Guerby <guerby@acm.org>
12833
12834 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
12835 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
12836 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
12837 * lang-spec.h: Add missing struct field to silence warnings.
12838 * sysdep.c (rts_get_*): Provide K&R prototype.
12839 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
12840 * traceback.c (Unlock_Task, Lock_Task): Likewise.
12841 * tracebak.c (__gnat_backtrace): Remove unused variable.
12842 * utils.c (end_subprog_body): Move to K&R style.
12843
d215024f
RK
12844Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12845
12846 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
12847
f5e99456
NB
128482001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
12849
12850 * misc.c (gnat_init): Change prototype. Include the
12851 functionality of the old init_parse and init_decl_processing.
12852 (gnat_init_decl_processing): New prototype.
12853 (init_parse): Remove.
12854 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
12855
5d69f816
NB
128562001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
12857
12858 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
12859 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
12860 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
12861 set_yydebug): Remove.
12862
3ac88239
NB
128632001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
12864
12865 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
12866 (struct lang_hooks): Constify.
12867 (language_string, lang_identify): Remove.
12868 * utils.c (init_decl_processing): Update.
12869
d23c55c2
NB
128702001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
12871
12872 * misc.c: Include langhooks-def.h.
12873 * Makefile.in: Update.
12874
04a1b79c
RD
128752001-10-30 Robert Dewar <dewar@gnat.com>
12876
12877 * style.adb:
12878 (Check_Identifier): Rewrite circuit to be compatible with use of letters
12879 in the upper half of ASCII.
12880 (Check_Identifier): Minor reformatting
12881
81fa2d39
GB
128822001-10-30 Geert Bosch <bosch@gnat.com>
12883
f8e0aa73 12884 * (Associated_Node, Set_Associated_Node): Do not check for
81fa2d39
GB
12885 Freeze_Entity.
12886
ffc5527f
RD
128872001-10-30 Robert Dewar <dewar@gnat.com>
12888
12889 * a-reatim.ads: Minor reformatting
12890
865335eb
RD
128912001-10-30 Robert Dewar <dewar@gnat.com>
12892
f8e0aa73 12893 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
865335eb
RD
12894 undocumented declarations.
12895
5e257178
PO
128962001-10-30 Pascal Obry <obry@gnat.com>
12897
f8e0aa73 12898 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
5e257178
PO
12899 to the binder and linker.
12900 Minor style fix.
f8e0aa73 12901
5e257178
PO
12902 * mdll.ads: Fix layout. Update copyright notice.
12903
12904 * mdll.adb: Fix layout. Update copyright notice.
12905
1753e0ad
RD
129062001-10-30 Robert Dewar <dewar@gnat.com>
12907
12908 * usage.adb: Minor fix to output for -gnaty.
12909
84bfdde0
ES
129102001-10-30 Ed Schonberg <schonber@gnat.com>
12911
f8e0aa73
AJ
12912 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
12913 to accommodate all its possible values.
84bfdde0 12914
f8e0aa73 12915 * a-reatim.adb (Split): Special-case handling of Time_Span_First
84bfdde0
ES
12916 and of small absolute values of T.
12917
c296e5fc
RK
129182001-10-30 Richard Kenner <kenner@gnat.com>
12919
f8e0aa73
AJ
12920 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
12921 set_mem_attributes since not needed and wrong if RESULT if a REG;
c296e5fc
RK
12922 fixes ACATS failures.
12923
07c809df
GB
129242001-10-30 Geert Bosch <bosch@gnat.com>
12925
12926 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
12927 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
12928
54d22416 129292001-10-30 Robert Dewar <dewar@gnat.com>
f8e0aa73 12930
54d22416 12931 * bindusg.adb: Undocument -f switch.
f8e0aa73 12932
54d22416 12933 * gnatcmd.adb: Remove /FULL_ELABORATION.
f8e0aa73
AJ
12934
12935 * opt.ads (Force_RM_Elaboration_Order): Document that this is
54d22416 12936 obsolescent.
f8e0aa73 12937
54d22416 12938 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
f8e0aa73 12939
54d22416
RD
12940 * gnatbind.adb: Minor update of warning msg.
12941
af5cf6f8
VC
129422001-10-30 Vincent Celier <celier@gnat.com>
12943
f8e0aa73 12944 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
af5cf6f8 12945 for project file switches (-P (/PROJECT_FILE=),
f8e0aa73 12946 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
af5cf6f8
VC
12947 or MEDIUM or HIGH)
12948
984bc4c3
GB
129492001-10-30 Geert Bosch <bosch@gnat.com>
12950
12951 * decl.c: Minor whitespace fixes.
12952
5dece937
RK
129532001-10-30 Richard Kenner <kenner@gnat.com>
12954
12955 * utils2.c (build_allocator): Test for SIZE overflow in array case too
12956
de4bf6cb
GB
129572001-10-30 Geert Bosch <bosch@gnat.com>
12958
f8e0aa73 12959 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
de4bf6cb 12960 Found due to GCC 3.0 warning of using uninitialized value.
f8e0aa73 12961
de4bf6cb
GB
12962 * layout.adb:
12963 (Get_Max_Size): Use variant record for tracking value/expression.
12964 Makes logic clearer and prevents warnings for uninitialized variables.
12965 (Layout_Array_Type): Use variant record for tracking value/expression.
12966 Makes logic clearer and prevents warnings for uninitialized variables.
12967
f5e44987
RD
129682001-10-30 Robert Dewar <dewar@gnat.com>
12969
12970 * lib.adb: Minor reformatting
12971
12972 * s-taprop.ads: Minor reformatting
12973
45659035 129742001-10-29 Laurent Guerby <guerby@acm.org>
f8e0aa73 12975
45659035
GB
12976 * init.c:
12977 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
12978 const.
12979 (_gnat_error_handler): Make MSG const.
12980
129812001-10-29 Richard Kenner <kenner@gnat.com>
12982
12983 * sysdep.c: Fix localtime_r problem on LynxOS.
12984 Also remove #elif to avoid warnings.
f8e0aa73
AJ
12985
12986 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
45659035 12987 used by this.
f8e0aa73 12988
45659035
GB
12989 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
12990
638e383e
JM
129912001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
12992
12993 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
12994 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
12995 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
12996 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
12997 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
12998 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
12999 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
13000 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
13001 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
13002 types.ads, urealp.adb: Fix spelling errors.
13003
97f6baa0
LG
130042001-10-27 Laurent Guerby <guerby@acm.org>
13005
13006 * trans.c (gigi): Fix non determinism leading to bootstrap
13007 comparison failures for debugging information.
13008
46b58b8c
FW
130092001-10-26 Florian Weimer <fw@deneb.enyo.de>
13010
13011 * gnat_rm.texi: Use @./@: where appropriate.
13012
30151c7b
RD
130132001-10-26 Robert Dewar <dewar@gnat.com>
13014
13015 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
13016
c0b1738d
RK
130172001-10-26 Richard Kenner <kenner@gnat.com>
13018
13019 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
13020
5b09c153
RK
130212001-10-26 Richard Kenner <kenner@gnat.com>
13022
f8e0aa73 13023 * decl.c (validate_size): Modify message for bad size to avoid
5b09c153
RK
13024 implication that compiler is modifying the size.
13025
4d553668
RD
130262001-10-26 Robert Dewar <dewar@gnat.com>
13027
13028 * prj-util.adb: Minor reformatting. Fix bad header format.
13029
3e542a58
RD
130302001-10-26 Robert Dewar <dewar@gnat.com>
13031
13032 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
f8e0aa73 13033
3e542a58 13034 * sinfo.ads: Clarify use of Associated_Node (documentation only).
f8e0aa73
AJ
13035
13036 * sem_ch12.adb: Change Node4 to Associated_Node. Change
13037 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
3e542a58
RD
13038 much more narrowly in places where needed. These are cleanups.
13039
0bf08bfe
JB
130402001-10-26 Joel Brobecker <brobecke@gnat.com>
13041
13042 * 5zosinte.ads (null_pthread): new constant.
f8e0aa73 13043
0bf08bfe
JB
13044 * 5ztaprop.adb:
13045 (Initialize_TCB): Initialize thread ID to null, to be able to verify
13046 later that this field has been set.
13047 (Finalize_TCB): ditto.
13048 (Suspend_Task): Verify that the thread ID is not null before using it.
13049 (Resume_Task): ditto.
f8e0aa73 13050
0bf08bfe
JB
13051 * s-tasdeb.adb:
13052 (Resume_All_Tasks): Lock the tasks list before using it.
13053 (Suspend_All_Tasks): ditto.
13054
7a3a8c06
RK
130552001-10-26 Richard Kenner <kenner@gnat.com>
13056
f8e0aa73 13057 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
7a3a8c06
RK
13058 Make constant variant of designated type for Is_Access_Constant.
13059 Call update_pointer_to with main variant.
f8e0aa73
AJ
13060
13061 * trans.c (process_freeze_entity, process_type):
7a3a8c06 13062 Call update_pointer_to on main variant.
f8e0aa73 13063
7a3a8c06
RK
13064 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
13065 If main variant, update all other variants.
f8e0aa73
AJ
13066
13067 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
7a3a8c06
RK
13068 TREE_STATIC.
13069
a160babb
RD
130702001-10-26 Robert Dewar <dewar@gnat.com>
13071
13072 * prj-util.adb: Minor reformatting
13073
b403bd17
RD
130742001-10-26 Robert Dewar <dewar@gnat.com>
13075
13076 * prj-util.adb: Minor reformatting
13077
5fc3b4c7
RD
130782001-10-26 Robert Dewar <dewar@gnat.com>
13079
13080 * prj-attr.adb: Minor reformatting throughout
13081
8c736034
RD
130822001-10-26 Robert Dewar <dewar@gnat.com>
13083
13084 * prj-attr.ads: Minor reformatting
13085 Add ??? comment (this whole spec has almost no comments)
13086
47d5b6ed
VC
130872001-10-26 Vincent Celier <celier@gnat.com>
13088
f8e0aa73 13089 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
b4f94ac1 13090 ("//") that precede the drive letter on Interix.
47d5b6ed 13091
41af791f
GB
130922001-10-26 Geert Bosch <bosch@gnat.com>
13093
13094 * gnat_rm.texi: Add GNAT Reference Manual.
13095
ed4a1468
RD
130962001-10-25 Robert Dewar <dewar@gnat.com>
13097
f8e0aa73 13098 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
b4f94ac1 13099 is Error. Similar change for other renaming cases.
ed4a1468 13100
24377ae4
RD
131012001-10-25 Robert Dewar <dewar@gnat.com>
13102
13103 * s-atacco.ads: Add pragma Inline_Always for functions.
13104 Fix header format. Add copyright 2001
13105
fef3204e
ES
131062001-10-25 Ed Schonberg <schonber@gnat.com>
13107
f8e0aa73 13108 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
b4f94ac1 13109 return Error rather than Empty so that analysis can proceed.
fef3204e 13110
dfc69d80
ES
131112001-10-25 Ed Schonberg <schonber@gnat.com>
13112
f8e0aa73 13113 * sem_util.adb (Enter_Name): better handling of cascaded error
b4f94ac1 13114 messages when a unit appears in its own context.
dfc69d80 13115
5a15af62
ES
131162001-10-25 Ed Schonberg <schonber@gnat.com>
13117
f8e0aa73 13118 * sem_util.adb (Defining_Entity): in case of error, attach created
b4f94ac1 13119 entity to specification, so that semantic analysis can proceed.
5a15af62 13120
2b881d53
RD
131212001-10-25 Robert Dewar <dewar@gnat.com>
13122
f8e0aa73 13123 * sem_util.adb
b4f94ac1 13124 (Defining_Entity): Deal with Error.
2b881d53
RD
13125 (Process_End_Label): Deal with bad end label for.
13126
578053f2
ES
131272001-10-25 Ed Schonberg <schonber@gnat.com>
13128
f8e0aa73 13129 * sem_elab.adb (Check_A_Call): refine message when call is in an
578053f2
ES
13130 instance but callee is not declared in the generic unit.
13131
0597ce0b 131322001-10-25 Ed Schonberg <schonber@gnat.com>
f8e0aa73
AJ
13133
13134 * sem_elab.adb (Check_A_Call): check for renaming before finding the
0597ce0b
ES
13135 enclosing unit, which may already be different from the calling unit.
13136
3de6e6da
GB
131372001-10-25 Geert Bosch <bosch@gnat.com>
13138
13139 * 4gintnam.ads: fix header format.
13140
6f311316
ES
131412001-10-25 Ed Schonberg <schonber@gnat.com>
13142
f8e0aa73 13143 * sem_res.adb (Resolve_Call): if the call is actually an indexing
b4f94ac1
ZW
13144 operation on the result of a parameterless call, perform elaboration
13145 check after the node has been properly rewritten.
f8e0aa73
AJ
13146
13147 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
b4f94ac1
ZW
13148 inlined within the generic tree, the defining identifier is not a
13149 compilation_unit.
6f311316 13150
17be0cdf
ES
131512001-10-25 Ed Schonberg <schonber@gnat.com>
13152
f8e0aa73 13153 * sem_res.adb (Resolve): special-case resolution of Null in an
b4f94ac1 13154 instance or an inlined body to avoid view conflicts.
f8e0aa73
AJ
13155
13156 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
b4f94ac1 13157 compatibility by retrieving the access type of the generic copy.
17be0cdf 13158
ce9e9122
RD
131592001-10-25 Robert Dewar <dewar@gnat.com>
13160
13161 * sem_ch3.adb:
13162 (Analyze_Number_Declaration): Handle error expression.
13163 (Signed_Integer_Type_Declaration): Handle error bound.
13164 (Analyze_Subtype_Indication): Handle error range.
f8e0aa73 13165
ce9e9122
RD
13166 * sem_util.adb (Get_Index_Bounds): Check for Error.
13167
e12fbc9e
RD
131682001-10-25 Robert Dewar <dewar@gnat.com>
13169
f8e0aa73 13170 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
e12fbc9e
RD
13171 in no run time mode.
13172
52b80488
PO
131732001-10-25 Pascal Obry <obry@gnat.com>
13174
f8e0aa73 13175 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
b4f94ac1 13176 mode case for ALLOC case.
f8e0aa73
AJ
13177
13178 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
b4f94ac1 13179 all platforms. Improvement of last change.
52b80488 13180
316ad9c5
RD
131812001-10-25 Robert Dewar <dewar@gnat.com>
13182
13183 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
13184
1a7e4df4
GB
131852001-10-25 Geert Bosch <bosch@gnat.com>
13186
13187 * osint.adb (Is_Relative): Remove duplicate.
13188
90a9fff2
PO
131892001-10-25 Pascal Obry <obry@gnat.com>
13190
f8e0aa73 13191 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
b4f94ac1 13192 pathnames in UNIX and DOS style with drive letter.
90a9fff2 13193 (Is_Relative): new routine.
f8e0aa73 13194
90a9fff2 13195 * osint.adb: Minor reformatting
f8e0aa73
AJ
13196
13197 * osint.adb (Is_Relative): implementation using
b4f94ac1 13198 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
90a9fff2 13199
5c1ba4cc
PO
132002001-10-25 Pascal Obry <obry@gnat.com>
13201
f8e0aa73 13202 * g-dirope.adb (Basename): correctly compute offset between the
b4f94ac1 13203 original Path and the translated one.
f8e0aa73 13204
5c1ba4cc
PO
13205 * g-dirope.adb: (Base_Name): add some comments.
13206
a7fb206d
RD
132072001-10-25 Robert Dewar <dewar@gnat.com>
13208
f8e0aa73 13209 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
b4f94ac1 13210 in HIE mode, avoids compilation abandoned message
f8e0aa73 13211
a7fb206d 13212 * exp_imgv.adb: Correct typo in previous change
f8e0aa73 13213
a7fb206d
RD
13214 * exp_imgv.adb: Correct typo in previous change (not my day!)
13215
e6a7e62e
RD
132162001-10-25 Robert Dewar <dewar@gnat.com>
13217
13218 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
13219
0d2b8e0b 132202001-10-25 Pascal Obry <obry@gnat.com>
75c09e7d 13221
f8e0aa73 13222 * g-awk.ads: Move all pragma inlines next to the routine
0d2b8e0b 13223 declarations. This is more uniform with other GNAT spec.
75c09e7d 13224
0d2b8e0b 132252001-10-22 Geert Bosch <bosch@gnat.com>
d2740a69
GB
13226
13227 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
13228
0d2b8e0b 132292001-10-19 Geert Bosch <bosch@gnat.com>
d7ac9bdd
GB
13230
13231 * Makefile.in (tools, gnattools): Remove gnatmem.
13232
17ed6335
RH
132332001-10-17 Richard Henderson <rth@redhat.com>
13234
13235 * Makefile.in (misc.o): Depend on langhooks.h.
13236 * misc.c: Include it.
13237 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
13238 (LANG_HOOKS_DECODE_OPTION): New.
13239 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
13240
f2436274
FW
132412001-10-16 Florian Weimer <fw@deneb.enyo.de>
13242
13243 * trans.c (tree_transform): Adjust to recent change in
13244 expand_asm_operands to implement named asm operands.
13245
b14127e6
ES
132462001-10-11 Ed Schonberg <schonber@gnat.com>
13247
f8e0aa73 13248 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
b14127e6
ES
13249 renaming of discriminant for mutable record type.
13250
e70ee92a
RD
132512001-10-11 Robert Dewar <dewar@gnat.com>
13252
13253 * validsw.adb: Properly save -gnatVn status.
13254
9a5621d7 132552001-10-11 Robert Dewar <dewar@gnat.com>
f8e0aa73 13256
9a5621d7
RD
13257 * usage.adb: Add lines for V switch.
13258
f8e0aa73 13259 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
9a5621d7
RD
13260 (/VALIDITY_CHECKING).
13261
45667f04
ES
132622001-10-11 Ed Schonberg <schonber@gnat.com>
13263
f8e0aa73 13264 * sem_type.adb (Add_One_Interp): an operator for a type declared in
45667f04
ES
13265 an extension of System is known to be visible.
13266
c3de5c4c
ES
132672001-10-11 Ed Schonberg <schonber@gnat.com>
13268
f8e0aa73 13269 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
c3de5c4c
ES
13270 properly. Fixes regression on ACATS C34005G.
13271
4fa964a6
RD
132722001-10-11 Robert Dewar <dewar@gnat.com>
13273
f8e0aa73 13274 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
4fa964a6
RD
13275 loop in generic instance, since this is likely not very useful.
13276
0868e09c
RD
132772001-10-11 Robert Dewar <dewar@gnat.com>
13278
f8e0aa73 13279 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
0868e09c 13280 the error message for high integrity mode.
f8e0aa73
AJ
13281
13282 * rtsfind.adb (RTE): Give message if we try to find an entity that
0868e09c 13283 is not available in high integrity mode.
f8e0aa73 13284
0868e09c
RD
13285 * rtsfind.ads:
13286 (OK_To_Use_In_HIE_Mode): New array.
13287 (RTE): May return Empty in high integrity mode.
f8e0aa73
AJ
13288
13289 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
13290 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
13291
13292 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
13293 unit if not inlined always and in no runtime mode. Fixes problem
0868e09c 13294 caused by new Rtsfind changes.
f8e0aa73
AJ
13295
13296 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
0868e09c 13297 body is deleted.
f8e0aa73
AJ
13298
13299 * rtsfind.adb (RTE): Make sure we do not try to load unit after
0868e09c
RD
13300 giving message for entity not available in high integrity mode.
13301
934abf9c 133022001-10-11 Pascal Obry <obry@gnat.com>
f8e0aa73 13303
934abf9c
PO
13304 * impunit.adb: Add GNAT.CRC32.
13305
3c72bea4
ES
133062001-10-11 Ed Schonberg <schonber@gnat.com>
13307
f8e0aa73
AJ
13308 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
13309 properly the case where one universal operand in a non-static
3c72bea4
ES
13310 exponentiation of a real literal.
13311
44d8d2bb
ES
133122001-10-11 Ed Schonberg <schonber@gnat.com>
13313
f8e0aa73
AJ
13314 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
13315 clause, return the gobal finalization list, for lack of anthing else.
44d8d2bb 13316
9e2b9627
ES
133172001-10-11 Ed Schonberg <schonber@gnat.com>
13318
f8e0aa73
AJ
13319 * exp_ch7.adb (Make_Transient_Block): if statement is within
13320 exception handler, always use new transient scope to place Clean
9e2b9627
ES
13321 procedure.
13322
cfac6e9f
PO
133232001-10-11 Pascal Obry <obry@gnat.com>
13324
13325 * Makefile.in:
13326 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
13327 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
13328 (GNATLS_RTL_OBJS): add g-crc32.o
13329 (GNATMAKE_RTL_OBJS): add g-crc32.o
f8e0aa73 13330
cfac6e9f
PO
13331 * ali-util.adb:
13332 (CRC_Match): new function.
f8e0aa73 13333 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
cfac6e9f
PO
13334 instead of the previous simple checksum algorithm.
13335 (Time_Stamp_Mismatch): use CRC_Match for comparison.
13336 (Set_Source_Table): idem.
f8e0aa73 13337
cfac6e9f 13338 * ali-util.ads:
f8e0aa73 13339 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
cfac6e9f
PO
13340 instead of simple checksum.
13341 (CRC_Match): new function.
13342 (CRC_Error): new constant.
f8e0aa73
AJ
13343
13344 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
13345 a CRC now and not a simple checksum. A CRC uses lower-case hex
cfac6e9f 13346 letters, fixes ambiguity in parsing.
f8e0aa73
AJ
13347
13348 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
cfac6e9f 13349 is what this variable will store.
f8e0aa73 13350
cfac6e9f 13351 * bcheck.adb: Change reference to chechsum in comments by CRC.
f8e0aa73
AJ
13352 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
13353 rename All_Checksum_Match to All_CRC_Match. Change due to API
13354 renaming since now GNAT does not use a simple checksum but a
cfac6e9f 13355 CRC using GNAT.CRC32.
f8e0aa73
AJ
13356
13357 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
cfac6e9f 13358 now and not anymore a simple checksum.
f8e0aa73
AJ
13359
13360 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
cfac6e9f 13361 places.
f8e0aa73 13362
cfac6e9f 13363 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
f8e0aa73 13364
cfac6e9f
PO
13365 * scans.adb:
13366 (Restore_Scan_State): rename Checksum to CRC.
13367 (Save_Scan_State): idem.
f8e0aa73 13368
cfac6e9f
PO
13369 * scans.ads:
13370 With GNAT.CRC32.
13371 (Checksum): rename to CRC.
13372 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
f8e0aa73
AJ
13373
13374 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
cfac6e9f 13375 GNAT.CRC32). Update copyright notice.
f8e0aa73
AJ
13376
13377 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
cfac6e9f 13378 GNAT.CRC32). Update copyright notice.
f8e0aa73 13379
cfac6e9f
PO
13380 * scn.adb:
13381 (Accumulate_Checksum): removed.
13382 (Update): new procedure. Add a wide-character into the CRC.
f8e0aa73 13383
cfac6e9f
PO
13384 * sinput-l.adb:
13385 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
f8e0aa73 13386 (Load_File): fix initialization of S (change Source_Checksum to
cfac6e9f 13387 Source_CRC)
f8e0aa73
AJ
13388
13389 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
cfac6e9f 13390 Source_CRC in S initialization.
f8e0aa73 13391
cfac6e9f 13392 * sinput.adb (Source_Checksum): renamed to Source_CRC.
f8e0aa73 13393
cfac6e9f
PO
13394 * sinput.ads (Source_Checksum): renamed to Source_CRC.
13395 Update comments for the CRC.
f8e0aa73 13396
cfac6e9f 13397 * types.adb (Hex): Use lowercase for the letter part.
f8e0aa73
AJ
13398
13399 * types.ads (Get_Hex_String): Returns the hexadecimal representation
13400 for a word. This is currently used only for CRC. In previous version,
13401 the checksum was using a representation with all letter being
13402 upper-case. With the new implementation (using CRC) we do not remove
13403 the 32th bit of the CRC, so we can have an upper-case starting letter
13404 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
13405 It is ambigous since the CRC was optional and could be followed by
13406 options like EB, EE. So now this routines uses lower-case letter for
13407 the hexadecimal representation. Strange enough only lower case letters
cfac6e9f 13408 where checked in Scan_ALI (even if this was not a possible case).
f8e0aa73 13409
cfac6e9f 13410 * gnatvsn.ads (Library_Version): changed to 3.15a.
f8e0aa73
AJ
13411
13412 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
cfac6e9f 13413 for the compiler.
f8e0aa73
AJ
13414
13415 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
cfac6e9f 13416 for the compiler.
f8e0aa73 13417
cfac6e9f
PO
13418 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
13419 Add 2001 to copyright notice
13420 (Accumulate_Checksum): Modify to use System.CRC32.
f8e0aa73
AJ
13421
13422 * ali-util.ads: Redo changes of previous revision to continue to use
cfac6e9f 13423 the word Checksum. Add 2001 to copyright notice.
f8e0aa73 13424
cfac6e9f
PO
13425 * ali.adb: Undo some of previous changes, not needed.
13426 Keep the change for lower case letters in the checksum.
f8e0aa73 13427
cfac6e9f
PO
13428 * ali.ads: Undo previous change not needed.
13429
13430 * bcheck.adb: Undo most of previous change, not needed.
13431 But do use Checksums_Match for checksum comparison.
f8e0aa73 13432
cfac6e9f
PO
13433 * gnatls.adb: Undo most of previous change, not needed.
13434 But do use Checksums_Match for comparing checksums.
f8e0aa73 13435
cfac6e9f 13436 * lib-load.adb: Undo previous change, not needed.
f8e0aa73 13437
cfac6e9f 13438 * lib-writ.adb: Undo previous change, not needed.
f8e0aa73
AJ
13439
13440 * lib-writ.ads: Document that checksums use lower case,
cfac6e9f 13441 not upper case letters.
f8e0aa73 13442
cfac6e9f 13443 * scans.adb: Undo previous change, not needed
f8e0aa73 13444
cfac6e9f 13445 * scans.ads: Undo previous change, not needed.
f8e0aa73 13446
cfac6e9f 13447 * scn-nlit.adb: Undo previous changes, not needed.
f8e0aa73 13448
cfac6e9f 13449 * scn-slit.adb: Undo previous change, not needed. Fix header format.
f8e0aa73 13450
cfac6e9f
PO
13451 * scn.adb:
13452 (Accumulate_Checksum): Use System.CRC32.
13453 (Initialize_Checksum): New procedure.
13454 Remove other changes of previous revision.
f8e0aa73 13455
cfac6e9f 13456 * sinput-p.adb: Undo previous change, not needed.
f8e0aa73 13457
cfac6e9f
PO
13458 * sinput.adb: Undo previous change, not needed.
13459
13460 * sinput-l.adb: Undo previous change, not needed.
f8e0aa73
AJ
13461
13462 * sinput.ads: Undo previous change, not needed. Keep only comment
cfac6e9f 13463 on new checksum algorithm
f8e0aa73 13464
cfac6e9f
PO
13465 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
13466 Also remove a-tags and a-stream from GNAT sources.
f8e0aa73 13467
cfac6e9f 13468 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
f8e0aa73 13469
cfac6e9f
PO
13470 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
13471
4d6d06a5
GB
134722001-10-11 Geert Bosch <bosch@gnat.com>
13473
13474 * einfo.h: Regenerate.
13475
13476 * nmake.ads: Regenerate.
13477
13478 * nmake.adb: Regenerate.
13479
13480 * sinfo.h: Regenerate.
13481
13482 * treeprs.adb: Regenerate.
13483
c97412e2
GB
134842001-10-10 Geert Bosch <bosch@gnat.com>
13485
13486 * gnat-style.texi: New file describing coding guidelines for Ada.
f8e0aa73 13487
b83018ca
ES
134882001-10-10 Ed Schonberg <schonber@gnat.com>
13489
f8e0aa73 13490 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
b83018ca
ES
13491 is Flag174.
13492
e834fe1f
GB
134932001-10-10 Geert Bosch <bosch@gnat.com>
13494
13495 * snames.ads: Add new names for project facility.
13496
13497 * snames.adb: Update to reflect snames.ads changes.
13498
13499 * snames.h: Update to reflect snames.ads changes.
13500
b30668b7
VC
135012001-10-10 Vincent Celier <celier@gnat.com>
13502
13503 * make.adb:
13504 (Add_Switches): reflect the changes for the switches attributes
13505 Default_Switches indexed by the programming language,
13506 Switches indexed by the file name.
13507 (Collect_Arguments_And_Compile): Idem.
13508 Reflect the attribute name changes.
f8e0aa73 13509
b30668b7
VC
13510 * prj-attr.adb:
13511 (Initialisation_Data): Change the names of some packages and
13512 attributes.
13513 (Initialize): process case insensitive associative arrays.
f8e0aa73 13514
b30668b7
VC
13515 * prj-attr.ads:
13516 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
f8e0aa73 13517
b30668b7
VC
13518 * prj-dect.adb:
13519 (Parse_Attribute_Declaration): For case insensitive associative
13520 arrays, set the index string to lower case.
f8e0aa73 13521
b30668b7
VC
13522 * prj-env.adb:
13523 Reflect the changes of the project attributes.
f8e0aa73 13524
b30668b7
VC
13525 * prj-nmsc.adb:
13526 Replace Check_Naming_Scheme by Ada_Check and
13527 Language_Independent_Check.
f8e0aa73 13528
b30668b7
VC
13529 * prj-nmsc.ads:
13530 Replaced Check_Naming_Scheme by 2 procedures:
13531 Ada_Check and Language_Independent_Check.
f8e0aa73 13532
b30668b7
VC
13533 * prj-proc.adb:
13534 (Process_Declarative_Items): For case-insensitive associative
13535 arrays, set the index string to lower case.
13536 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
13537 Prj.Nmsc.Check_Naming_Scheme.
f8e0aa73 13538
b30668b7
VC
13539 * prj-tree.adb:
13540 (Case_Insensitive): New function
13541 (Set_Case_Insensitive): New procedure
f8e0aa73 13542
b30668b7
VC
13543 * prj-tree.ads:
13544 (Case_Insensitive): New function
13545 (Set_Case_Insensitive): New procedure
13546 (Project_Node_Record): New flag Case_Insensitive.
f8e0aa73 13547
b30668b7
VC
13548 * prj-util.adb:
13549 (Value_Of): new function to get the string value of a single
13550 string variable or attribute.
f8e0aa73 13551
b30668b7
VC
13552 * prj-util.ads:
13553 (Value_Of): new function to get the string value of a single
13554 string variable or attribute.
f8e0aa73 13555
b30668b7
VC
13556 * prj.adb:
13557 (Ada_Default_Spec_Suffix): New function
13558 (Ada_Default_Impl_Suffix): New function
13559 Change definitions of several constants to reflect
13560 new components of record types.
f8e0aa73 13561
b30668b7
VC
13562 * prj.ads:
13563 (Naming_Data): Change several components to reflect new
13564 elements of naming schemes.
13565 (Project_Data): New flags Sources_Present and
13566 Language_Independent_Checked.
13567 (Ada_Default_Spec_Suffix): New function.
13568 (Ada_Default_Impl_Suffix): New function.
f8e0aa73 13569
b30668b7
VC
13570 * snames.ads:
13571 Modification of predefined names for project manager: added
13572 Implementation, Specification_Exceptions, Implementation_Exceptions,
13573 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
13574 Default_Switches, _Languages, Builder, Cross_Reference,
13575 Finder. Removed Body_Part, Specification_Append, Body_Append,
13576 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
13577 Gnatlink.
f8e0aa73 13578
b30668b7
VC
13579 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
13580 Add comments.
f8e0aa73 13581
b30668b7
VC
13582 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
13583 not that it is Nil_Variable_Value.
f8e0aa73 13584
b30668b7
VC
13585 * prj.ads: Add ??? for uncommented declarations
13586
662e57b4
ES
135872001-10-10 Ed Schonberg <schonber@gnat.com>
13588
f8e0aa73
AJ
13589 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
13590 constant, do not indicate possible modification, so that gigi can
662e57b4
ES
13591 treat it as a bona fide constant.
13592
72e4357f
RD
135932001-10-10 Robert Dewar <dewar@gnat.com>
13594
13595 * sem_prag.adb: Add processing for pragma External.
f8e0aa73 13596
72e4357f 13597 * snames.ads: Add entry for pragma External.
f8e0aa73 13598
72e4357f 13599 * par-prag.adb: Add pragma External.
f8e0aa73 13600
72e4357f
RD
13601 * snames.adb: Updated to match snames.ads.
13602
7bc1c7df
ES
136032001-10-10 Ed Schonberg <schonber@gnat.com>
13604
13605 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
13606 a dynamic task if the allocator appears in an indexed assignment
13607 or selected component assignment.
f8e0aa73
AJ
13608
13609 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
13610 For a dynamic task in an assignment statement, use target of
7bc1c7df
ES
13611 assignment to generate meaningful name.
13612
c84700e7
ES
136132001-10-10 Ed Schonberg <schonber@gnat.com>
13614
f8e0aa73 13615 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
c84700e7
ES
13616 a generic package.
13617
13618 * einfo.ads: Body_Entity is also defined for generic package.
13619 Documentation change only
f8e0aa73
AJ
13620
13621 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
13622 others_choice for a discriminated component initialization,
13623 convert discriminant references into the corresponding discriminals.
13624
13625 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
13626 only if original type is private and expression has to be wrapped
c84700e7 13627 in a conversion.
f8e0aa73
AJ
13628
13629 * checks.adb:
13630 (Apply_Constraint_Check): Do not perform length check
c84700e7 13631 if expression is an aggregate with only an others_choice.
f8e0aa73 13632 (Length_N_Cond): two references to the same in_parameter
c84700e7
ES
13633 (typically the discriminal in an init_proc) denote the same value.
13634 Two useful optimization uncovered by bugfixes above.
13635
d8d80dcd
RD
136362001-10-10 Robert Dewar <dewar@gnat.com>
13637
f8e0aa73 13638 * xeinfo.adb: Change int to char in translation of enumeration types.
d8d80dcd
RD
13639 This fixes a problem in the C representation of component alignment.
13640 Add 2001 to copyright notice
13641
a8fee948
RK
136422001-10-10 Richard Kenner <kenner@gnat.com>
13643
f8e0aa73 13644 * decl.c: (validate_size): Do check size of object of integral type
a8fee948
RK
13645 if it is a packed array type.
13646
c2d7fe59
RK
136472001-10-10 Richard Kenner <kenner@gnat.com>
13648
f8e0aa73 13649 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
c2d7fe59
RK
13650 VAR_DECL for constant if not Is_Public but -O0.
13651
fb75e100
RK
136522001-10-10 Richard Kenner <kenner@gnat.com>
13653
13654 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
13655
1724557a
GB
136562001-10-10 Geert Bosch <bosch@gnat.com>
13657
f8e0aa73 13658 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
1724557a
GB
13659 use '/' as switch character, allowing for absolute file names.
13660
9f2f9eb6
JM
136612001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
13662
13663 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
13664 FSF address.
13665
8fecf41d
GB
136662001-10-08 Geert Bosch <bosch@gnat.com>
13667
13668 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
13669 Automatically build utilities when files need to be regenerated.
13670
589f1edf
GB
136712001-10-08 Geert Bosch <bosch@gnat.com>
13672
13673 * xsnames.adb: New utility for updating snames.ads and snames.adb
13674
67f28219
ZW
136752001-10-08 Zack Weinberg <zack@codesourcery.com>
13676
13677 * Make-lang.in (ADAFLAGS): Add -W -Wall.
13678 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
13679 (gnat1): Also depend on attribs.o.
13680 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
13681 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
13682 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
13683 (ADAFLAGS): Add -W -Wall.
13684 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
13685 take out CFLAGS.
13686
13687 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
13688 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
13689 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
13690 Use $(ADAC), not $(CC), as compilation command.
13691
13692 (gnattools): Depend directly on tools to build, don't use
13693 recursive make.
13694 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
13695
13696 * einfo.h, sinfo.h: New files (autogenerated).
13697
295ef2bb
RH
136982001-10-08 Richard Henderson <rth@redhat.com>
13699
13700 * comperr.adb (Abort_In_Progress): New.
13701 (Compiler_Abort): Use it to prevent recursion.
13702
5c736541
RD
137032001-10-08 Robert Dewar <dewar@gnat.com>
13704
13705 * atree.adb: Set Error_Posted in Error node, helps error recovery.
67f28219
ZW
13706
13707 * par-endh.adb (Output_End_Expected): We should also not test
5c736541 13708 Error_Posted on the Error node, since now it is always set.
67f28219
ZW
13709
13710 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
5c736541 13711 to help error recovery. Part of general work on 9407-004.
67f28219 13712
5c736541 13713 * par.adb: Add ??? for misuse of error
67f28219 13714
5c736541
RD
13715 * sem_res.adb:
13716 (Resolve): Defend against Error, fixes 9407-003.
13717 (Resolve_Discrete_Subtype_Indication): Defend against Error.
67f28219
ZW
13718
13719 * sinfo.ads (N_Error): Now has Etype field (which will be set
5c736541
RD
13720 to Any_Type to help error recovery).
13721
a153ae15
RK
137222001-10-08 Richard Kenner (kenner@gnat.com)
13723
13724 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
13725 Consistently set MEM attributes from expression; fixes
13726 bootstrap failure on x86.
13727
743f3c7b
GB
137282001-10-08 Geert Bosch (bosch@gnat.com)
13729
13730 * 5oosinte.adb: Add 2001 to copyright notice.
13731
210c4ef4
GB
137322001-10-08 Geert Bosch (bosch@gnat.com)
13733
13734 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
13735
13736 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
13737
cc712abf
JM
137382001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
13739
13740 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
13741
4c4abc0f
GB
137422001-10-05 Geert Bosch (bosch@gnat.com)
13743
13744 * adaint.h: Small formatting fix.
13745
7f50e2e3
GB
137462001-10-04 Geert Bosch <bosch@gnat.com>
13747
13748 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
13749 Arg is int, not FILE *, in dummy version of functions.
67f28219 13750
7f50e2e3
GB
13751 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
13752 Arg is int, not FILE *.
13753
5d1a9698
GB
137542001-10-04 Geert Bosch <bosch@gnat.com>
13755
13756 * 3lsoccon.ads: Added file, missed with initial check ins.
67f28219 13757
5d1a9698
GB
13758 * 4lintnam.ads: Fix header format.
13759 Change Linux to GNU/Linux.
67f28219 13760
5d1a9698
GB
13761 * 5iosinte.adb: Change Linux to GNU/Linux.
13762
13763 * 5iosinte.ads: Change Linux to GNU/Linux.
67f28219 13764
5d1a9698 13765 * 5itaprop.adb: Change Linux to GNU/Linux.
67f28219 13766
5d1a9698
GB
13767 * 5itaspri.ads: Change Linux to GNU/Linux.
13768 Update copyright notice.
67f28219 13769
5d1a9698 13770 * 5lintman.adb: Change Linux to GNU/Linux.
67f28219 13771
5d1a9698 13772 * 5lml-tgt.adb: Change Linux to GNU/Linux.
67f28219 13773
5d1a9698 13774 * 5losinte.ads: Change Linux to GNU/Linux.
67f28219 13775
5d1a9698 13776 * 5lsystem.ads: Change Linux to GNU/Linux.
67f28219 13777
5d1a9698 13778 * 5qosinte.adb: Change Linux to GNU/Linux.
67f28219 13779
5d1a9698 13780 * 5qosinte.ads: Change Linux to GNU/Linux.
67f28219 13781
5d1a9698 13782 * 5qparame.ads: Change Linux to GNU/Linux.
67f28219 13783
5d1a9698 13784 * 5qtaprop.adb: Change Linux to GNU/Linux.
67f28219 13785
5d1a9698
GB
13786 * 5qtaspri.ads: Change Linux to GNU/Linux.
13787 Add 2001 to copyright notice.
67f28219 13788
5d1a9698
GB
13789 * 5vintman.ads: Change Linux to GNU/Linux.
13790 Fix header format. Add 2001 to copyright notice.
67f28219 13791
5d1a9698 13792 * g-soccon.ads: Change Linux to GNU/Linux.
67f28219 13793
5d1a9698
GB
13794 * g-trasym.ads: Change Linux to GNU/Linux.
13795 Add 2001 to copyright notice.
67f28219 13796
5d1a9698 13797 * memtrack.adb: Change Linux to GNU/Linux.
67f28219 13798
5d1a9698
GB
13799 * s-intman.ads: Change Linux to GNU/Linux.
13800 Add 2001 to copyright notice. Fix header format.
67f28219 13801
5d1a9698 13802 * s-stache.adb: Change Linux to GNU/Linux.
67f28219 13803
5d1a9698 13804 * adaint.c: Change Linux to GNU/Linux.
67f28219 13805
5d1a9698 13806 * cio.c: Change Linux to GNU/Linux.
67f28219 13807
5d1a9698 13808 * cstreams.c: Change Linux to GNU/Linux.
67f28219 13809
5d1a9698 13810 * init.c: Change Linux to GNU/Linux.
67f28219 13811
5d1a9698 13812 * gmem.c: Change Linux to GNU/Linux.
67f28219 13813
5d1a9698
GB
13814 * tracebak.c: Change Linux to GNU/Linux.
13815
13816
c25ca2d7
GB
138172001-10-02 Geert Bosch <bosch@gnat.com>
13818
13819 * misc.c (insert_default_attributes): Add dummy version.