]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ada/ChangeLog
g-socket.ads (Get_Host_By_Address, [...]): Clarify documentation of the behaviour...
[thirdparty/gcc.git] / gcc / ada / ChangeLog
CommitLineData
ed986c8e
AS
12004-11-27 Andreas Schwab <schwab@suse.de>
2
3 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
4
3c13948a
AC
52004-11-25 Arnaud Charlet <charlet@adacore.com>
6
7 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
8 internal implementation unit GNAT.Sockets.Thin,
9 as their usage for sockets is non-portable (using the read and write
10 functions from the system runtime library is fine on UNIX but won't
11 work under Windows).
12
13 * mingw32.h: Update copyright notice.
14
061fd2bf
AC
152004-11-25 Arnaud Charlet <charlet@adacore.com>
16
17 * ada-tree.h: Minor reformatting of previous change to avoid lines
18 longer than 79 characters.
19
e850e1f4
OH
202004-11-25 Olivier Hainque <hainque@adacore.com>
21
22 * tb-gcc.c: GCC infrastructure based implementation of
23 __gnat_backtrace.
24
39afeb1a
SB
252004-11-24 Steven Bosscher <stevenb@suse.de>
26
27 * misc.c (gnat_post_options): Don't clear
28 flag_inline_functions.
29
9633a6ac
AP
302004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
31
32 PR ada/17986
33 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
34 tree.
35
7fe16580
AJ
362004-11-21 Andreas Jaeger <aj@suse.de>
37
38 * stylesw.adb: Change Style_Check_Subprogram_Order to
39 Style_Check_Order_Subprograms.
40
9716416b
AC
412004-11-18 Arnaud Charlet <charlet@adacore.com>
42
43 * adaint.h, adaint.c
44 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
45 to avoid warnings.
46 Add also a cast to kill another warning.
47 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
48 parameter with the priority class of the parent process instead of
49 always using the NORMAL_PRIORITY_CLASS.
50 (__gnat_dup): New function.
51 (__gnat_dup2): New function.
52 (__gnat_is_symbolic_link): Enable the effective body of this
53 function when __APPLE__ is defined.
54
55 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
56 Update comments.
57
582004-11-18 Olivier Hainque <hainque@adacore.com>
59
60 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
61 address of which may be used to represent "others" and "all others"
62 choices in exception tables, instead of the current harcoded
63 (void *)0 and (void *)1.
64 (Setup_Exception): Do nothing in the GNAT SJLJ case.
65
66 * gigi.h (others_decl, all_others_decl): New decls representing the
67 new Others_Value and All_Others_Value objects.
68 (struct attrib): Rename "arg" component as "args", since GCC expects a
69 list of arguments in there.
70
71 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
72 corresponding objects exported by a-exexpr, instead of hardcoded dummy
73 addresses.
74
75 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
76 others_decl and all_others_decl instead of hardcoded dummy addresses
77 to represent "others" and "all others" choices, which is cleaner and
78 more flexible with respect to the possible eh pointer encoding policies.
79
80 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
81 (process_attributes): Account for the naming change of the "args"
82 attribute list entry component.
83
84 * decl.c (build_attr_list): Rename into prepend_attributes to allow
85 cumulating attributes for different entities into a single list.
86 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
87 attributes for the current entity and propagate first subtype
88 attributes to other subtypes.
89 <E_Procedure>: Attribute arguments are attr->args and not
90 attr->arg any more.
91 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
92 argument provided, as this is what GCC expects. Use NULL_TREE instead
93 of 0 for trees.
94
952004-11-18 Robert Dewar <dewar@adacore.com>
96
97 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
98 Minor reformatting througout (including new function specs)
99 Add ??? comments asking for clarification.
100
1012004-11-18 Thomas Quinot <quinot@adacore.com>
102
103 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
104 incomplete duplicate implementation of this subprogram from butil.
105
1062004-11-18 Thomas Quinot <quinot@adacore.com>
107
108 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
109 procedures factors the common processing for building an RPC receiver
110 for an RCI package or an RACW type.
111 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
112 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
113 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
114 in use.
115 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
116 Add_RACW_Features.
117 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
118 Add_RAST_Features.
119 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
120 distribution subprogram identifiers that are either subprogram numbers
121 or strings.
122 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
123 string distribution identifiers assigned to a given subprogram.
124 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
125 (Add_RAS_Dereference_TSS): Add comments.
126 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
127 is not referenced yet because it will be used by the PolyORB DSA
128 implementation.
129 (Insert_Partition_Check): Remove fossile code.
130 (First_RCI_Subprogram_Id): Document this constant.
131 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
132 RAS_Access TSS.
133 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
134 replaced with calls to Get_Library_Unit_Name_String. Previously there
135 were several instances of the same code in different locations in the
136 compiler; this checkin completes the replacement of all of these
137 instances with calls to a common subprogram.
138 Minor reformatting.
139
140 * sem_dist.adb: Remove comment noting that RPC receiver generation
141 should be disabled for RACWs that implement RASs.
142 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
143
144 * sem_util.ads, sem_util.adb (Has_Stream): New function
145 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
146 qualified name of a library unit into the name buffer.
147 (Note_Possible_Modification): Generate a reference only
148 if the context comes from source.
149
150 * snames.ads (PCS_Names): New subtype corresponding to names of
151 supported implementations of the Partition Communication Subsystem
152 (PCS) (i.e. the runtime library support modules for the distributed
153 systems annex).
154
1552004-11-18 Robert Dewar <dewar@adacore.com>
156 Ed Schonberg <schonberg@adacore.com>
157
158 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
159 (Has_Rep_Pragma): New function
160 (Has_Attribute_Definition_Clause): New function
161 (Record_Rep_Pragma): Moved here from sem_ch13.adb
162 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
163
164 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
165
166 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
167 (Expand_Pragma_Psect_Object): New procedure
168 These procedures contain the revised and cleaned up processing for
169 these two pragmas. This processing was formerly in Sem_Prag, but
170 is more appropriately moved here. The cleanup involves making sure
171 that the pragmas are properly attached to the tree, and that no
172 nodes are improperly shared.
173
174 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
175 pragmas to Exp_Prag, which is more appropriate.
176 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
177 check for duplicates Remove use of Is_Psected flag, no longer needed.
178 Use new Make_String_Literal function with string.
179
180 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
181 that are functions return universal values, that have to be converted
182 to the context type.
183 Use new Make_String_Literal function with string.
184 (Get_Stream_Convert_Pragma): New function, replaces the use of
185 Get_Rep_Pragma, which had to be kludged to work in this case.
186
187 * freeze.adb: Use new Has_Rep_Pragma function
188
189 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
190 function with string.
191 Use new Has_Rep_Pragma function.
192
193 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
194 string argument.
195
1962004-11-18 Robert Dewar <dewar@adacore.com>
197
198 * errout.ads, errout.adb: (First_Sloc): New function
199
200 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
201 check (-gnatyx) instead of being included as a redundant construct
202 warning.
203
204 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
205 Style_Check_Order_Subprograms.
206
207 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
208 stylesw.adb: Add Style_Check_Xtra_Parens
209
210 * usage.adb: Add line for -gnatyx (check extra parens)
211
212 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
213
2142004-11-18 Ed Schonberg <schonberg@adacore.com>
215 Robert Dewar <dewar@adacore.com>
216
217 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
218 discriminant of a constrained subtype, analyze the copy of the
219 corresponding constraint, because in some cases it may be only
220 partially analyzed.
221 Removes long-lived ??? comments.
222
223 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
224 handled controlled or secondary-stack expressions within the
225 iteration_scheme of a loop.
226
227 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
228 bounds that may contain functions calls, to prevent memory leaks when
229 the bound contains a call to a function that uses the secondary stack.
230 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
231 generate temporaries for loop bounds that might contain function calls
232 that require secondary stack and/or finalization actions.
233
234 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
235 selected component and the selector is overloadable (not just a
236 function) treat as function call, Analyze_Call will disambiguate if
237 necessary.
238 (Analyze_Selected_Component): Do not generate an actual subtype for the
239 selected component if expansion is disabled. The actual subtype is only
240 needed for constraint checks.
241 (Analyze_Allocator): If restriction No_Streams is set, then do
242 not permit objects to be declared of a stream type, or of a
243 composite type containing a stream.
244
245 * restrict.ads: Remove the a-stream entry from Unit_Array, since
246 No_Streams no longer prohibits with'ing this package.
247
248 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
249 discriminants, but the parent base has unknown discriminants, there is
250 no discriminant constraint to inherit. Such a discrepancy can arise
251 when the actual for a formal type with unknown discriminants is a
252 similar private type whose full view has discriminants.
253 (Analyze_Object_Declaration): If restriction No_Streams is set, then
254 do not permit objects to be declared of a stream type, or of a
255 composite type containing a stream.
256
2572004-11-18 Ed Schonberg <schonberg@adacore.com>
258
259 * exp_dbug.ads: Update documentation to reflect simpler encoding for
260 protected operations.
261
262 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
263 generated name, it complicates decoding in gdb and hinders debugging
264 of protected operations.
265 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
266 flag for the protected entry barrier function.
267 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
268 flag for the protected entry function.
269
2702004-11-18 Nicolas Setton <setton@adacore.com>
271
272 * expect.c: Define __unix__ when __APPLE__ is defined.
273
274 * Makefile.in: Inform the value of the variable GMEM_LIB in the
275 Darwin-specific section.
276
277 * lang-specs.h: Change the placement of the %1 marker.
278 Works around the fact that gcc adds -fPIC by default under Darwin.
279
2802004-11-18 Ed Schonberg <schonberg@adacore.com>
281
282 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
283 type of the object with the packed array type, set the Analyzed flag
284 on the object if it is an entity or simple indexed component, to avoid
285 spurious type errors.
286
2872004-11-18 Gary Dismukes <dismukes@adacore.com>
288
289 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
290 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
291 separate line from the version message.
292
2932004-11-18 Ed Falis <falis@adacore.com>
294
295 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
296 vthreads.
297 (init_float): Eliminate initialization of floating point status for
298 AE653. The instructions have no effect for vThreads.
299
3002004-11-18 Vincent Celier <celier@adacore.com>
301
302 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
303 gnatbind is invoked with -shared.
304
3052004-11-18 Jose Ruiz <ruiz@adacore.com>
306
307 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
308 for Detect_Blocking which is redundant with the check done within the
309 procedure Protected_Single_Entry_Call.
310 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
311 Detect_Blocking which is redundant with the check done within the
312 procedure Protected_Single_Entry_Call.
313
3142004-11-18 Vincent Celier <celier@adacore.com>
315
316 * makegpr.adb (Compile): Put the compiling switches (in package
317 Compiler and on the command line) immediately after "-c", instead of
318 at the end of the command line invocation of the compiler, when
319 compiling a non-Ada file.
320 (Build_Global_Archive): When there is no need to rebuild the archive,
321 set Global_Archive_Exists, so that the archive is passed to the linker
322 if one is needed.
323
3242004-11-18 Robert Dewar <dewar@adacore.com>
325 Sergey Rybin <rybin@adacore.com>
326
327 * gnat_ugn.texi:
328 Remove extra paren check from list of checks for redundant constructs
329 Add documentation of new -gnatyx style check (check extra parens)
330 Remove paragraph about gnatelim debug options.
331
332 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
333 objects rather than forbidding dependencies on the package Ada.Streams.
334
335 * sinfo.ads: Add ??? note that we should document pragmas passed to
336 back end.
337
338 * g-expect.ads: Fix a few typos in the comments.
339
9e637a26
JM
3402004-11-09 Joseph S. Myers <joseph@codesourcery.com>
341
342 * misc.c (gnat_handle_option): Use %< and %> for quoting in
343 warning message.
344
0506cb1c
RO
3452004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
346
347 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
348
426e7d28
AS
3492004-11-07 Andreas Schwab <schwab@suse.de>
350
351 * Makefile.in (install-gnatlib): Remove spurious hyphen.
352
8785609e 3532004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
bb342a77
AP
354
355 PR ada/18228
356 * Makefile.in (darwin): Set soext to .dylib.
357
0ca5fab2
AC
3582004-10-26 Vincent Celier <celier@gnat.com>
359 Thomas Quinot <quinot@act-europe.fr>
360
361 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
362 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
363 there is no use of GNAT.Sockets.Constants.
364 Remove remaining pragma Import for C_Write
365 Remove C_Read and C_Write from internal implementation unit
366 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
367 the read and write functions from the system runtime library is fine
368 on UNIX but won't work under Windows).
369
370 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
371 (Check_Selector): Use C_Recv instead of C_Read.
372 Selectors are the GNAT.Sockets abstraction to perform a select()
373 call on a set of descriptors. To allow abortion of an ongoing
374 select operation, some data is written to a dedicated socket that
375 is always monitored.
376 Under Windows, the write and read library functions cannot operate
377 on sockets, so we need to use send and recv instead, which is portable
378 across all supported platforms.
379
380 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
381 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
382 (using the read and write functions from the system runtime library is
383 fine on UNIX but won't work under Windows).
384
3852004-10-26 Nicolas Setton <setton@act-europe.fr>
386
387 * mlib-tgt-darwin.adb: New file.
388
389 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
390 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
391 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
392 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
393 subprogram body.
394
395 * Makefile.in: Add support for building shared libraries under Darwin.
396 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
397 the low level EH init subprogram to be called from __gnat_initialize.
398
399 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
400 indicates which options to pass to the archive indexer.
401
402 * mlib-utl.adb: Add support for calling ranlib with additional
403 options. This is needed for instance under Mac OS X.
404 (Ranlib_Options): New global variable, used to store the potential
405 options to pass to ranlib.
406 (Ar): Use Ranlib_Options when spawning ranlib.
407 (Initialize): Set the value of ranlib option.
408
4092004-10-26 Olivier Hainque <hainque@act-europe.fr>
410
411 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
412 instead of 8K, to reflect the real potential needs for stack-checking
413 in the ZCX case.
414
4152004-10-26 Pascal Obry <obry@gnat.com>
416
417 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
418
419 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
420 Windows only the initial thread stack size can be set so it is good to
421 start we a low stack size.
422 The OS will adjust the size as needed.
423
4242004-10-26 Olivier Hainque <hainque@act-europe.fr>
425 Nicolas Setton <setton@act-europe.fr>
426
427 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
428 "__unix__" instead of "unix".
429 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
430 sections were just mistakenly ignored. The former is
431 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
432 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
433 of hpux. This prevents an unwanted definition of the symbol
434 convert_addresses in adaint.o.
435
4362004-10-26 Gary Dismukes <dismukes@gnat.com>
437
438 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
439 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
440
4412004-10-26 Cyrille Comar <comar@act-europe.fr>
442
443 * a-filico.ads, a-filico.adb: fix incorrect header.
444
4452004-10-26 Javier Miranda <miranda@gnat.com>
446
447 * a-ststio.ads: Fix typo in identifier
448
4492004-10-26 Thomas Quinot <quinot@act-europe.fr>
450
451 * sem_ch4.adb: Minor reformatting.
452
4532004-10-26 Ed Schonberg <schonberg@gnat.com>
454
455 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
456 enabled, check the result of unary and binary operations when the
457 expression is the right-hand side of an assignment.
458
4592004-10-26 Vincent Celier <celier@gnat.com>
460
461 * clean.adb (Delete): Do not output warnings when in quiet output and
462 not in verbose mode.
463 (Force_Deletions): New Boolean flag, defaulted to False
464 (Delete): Only delete a file if it is writable, and when
465 Force_Deletions is True.
466 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
467 (Usage): Line for new switch -f
468 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
469 own.
470
4712004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
472
473 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
474 JM type only if its size matches that of the wrapper. When a size is
475 prescribed and the field is not aliased, remove the wrapper of a JM
476 type only if the size is not greater than that of the packed array.
477 (gnat_to_gnu_entity): Change the extension of packed array wrappers
478 from LJM to JM.
479
4802004-10-26 Geert Bosch <bosch@gnat.com>
481
482 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
483 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
484 (Pred): Implement in terms of Succ.
485
4862004-10-26 Ed Schonberg <schonberg@gnat.com>
487
488 * exp_aggr.adb (Safe_Component): An aggregate component that is an
489 unchecked conversion is safe for in-place use if the expression of the
490 conversion is safe.
491 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
492 be expandable in place even if the aggregate does not come from source.
493 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
494 designated object of an allocator in place, rather than building it
495 first on the stack. The previous scheme forces a full copy of the array,
496 and may be altogether unsusable if the size of the array is too large
497 for stack allocation.
498
4992004-10-26 Robert Dewar <dewar@gnat.com>
500
501 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
502 compares if the component is atomic.
503
504 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
505 array assignment if the component type is atomic.
506
5072004-10-26 Ed Schonberg <schonberg@gnat.com>
508 Eric Botcazou <ebotcazou@act-europe.fr>
509
510 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
511 is aliased and is a by_reference type, do not pass by copy.
512 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
513 detect whether the call is in the right side of an assignment or
514 the expression of an object declaration. Recurse on component
515 association within aggregates.
516 Call it in the condition that determines whether the temporary is
517 necessary for correct stack-checking.
518
5192004-10-26 Thomas Quinot <quinot@act-europe.fr>
520
521 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
522 RACW_Type, used in the PolyORB version.
523 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
524 version and the GARLIC version.
525
526 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
527 Rename RCI_Info to RCI_Locator for better consistency between the
528 GARLIC and PolyORB versions of the distributed systems annex.
529 (DSA_Implementation_Name): This enumeration lists the possible
530 implementations of the Partition Communication Subsystem for the
531 Distributed Systems Annex (DSA). The three available implementations
532 are the dummy stub implementation (No_DSA), and two versions based on
533 two different distribution runtime libraries: GARLIC and PolyORB. Both
534 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
535 technology.
536 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
537 that organization.
538
539 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
540 between the GARLIC and PolyORB versions of the distributed systems
541 annex.
542 Remove RE_Unbounded_Reclaim_Pool since it is unused.
543
5442004-10-26 Gary Dismukes <dismukes@gnat.com>
545
546 * gnat1drv.adb: Suppress calling the back end when
547 Frontend_Layout_On_Target is true.
548
5492004-10-26 Thomas Quinot <quinot@act-europe.fr>
550
551 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
552 Set_Read_Only): New subprograms.
553 These new routines allow the user to set or unset the Owner execute
554 and Owner write permission flags on a file.
555
556 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
557 GNAT.OS_Lib.Set_Executable instead of rolling our own.
558
5592004-10-26 Matthew Gingell <gingell@gnat.com>
560
561 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
562
5632004-10-26 Pascal Obry <obry@gnat.com>
564
565 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
566 memory before the faulting page we properly test the process read
567 access for this address using appropriate Win32 routine.
568 (HPUX sections): guard with "__hpux__" instead of "hpux".
569
5702004-10-26 Robert Dewar <dewar@gnat.com>
571
572 * lib-xref.adb (Generate_Reference): Don't complain about reference to
573 entry parameter if pragma Unreferenced set, since we do not properly
574 handle the case of multiple parameters.
575
5762004-10-26 Vincent Celier <celier@gnat.com>
577
578 * prj-env.adb: (Contains_ALI_Files): New Boolean function
579 (Ada_Objects_Path.Add): For a library project, add to the object path
580 the library directory only if there is no object directory or if the
581 library directory contains ALI files.
582 (Set_Ada_Paths.Add.Recursive_Add): Ditto
583
5842004-10-26 Vincent Celier <celier@gnat.com>
585
586 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
587 extension of library projects.
588
589 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
590 path defaults to ".:<prefix>/lib/gnat".
591 (Parse): For an extending all project, allow direct import of a project
592 that is virtually extended.
593
594 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
595 the specified name is directly imported, return its ID. Otherwise, if
596 an extension of this project is imported, return the ID of the
597 extension.
598
5992004-10-26 Robert Dewar <dewar@gnat.com>
600
601 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
602 (Sub3): New procedure, used by Scaled_Divide
603 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
604 correct more than one instance of failure to propagate carries
605 correctly.
606 (Double_Divide): Handle overflow case of largest negative number
607 divided by minus one.
608
609 * s-arit64.ads (Double_Divide): Document that overflow can occur in
610 the case of a quotient value out of range.
611 Fix comments.
612
6132004-10-26 Robert Dewar <dewar@gnat.com>
614
615 * s-bitops.adb (Bit_Eq): Remove redundant check.
616
617 * s-bitops.ads: Minor comment updates
618 Change some occurrences of Address to System.Address
619
620 * s-carsi8.ads: Fix minor cut-and-paste error in comments
621
6222004-10-26 Ed Schonberg <schonberg@gnat.com>
623
624 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
625 accessibility check to prefix that is a protected operation.
626
6272004-10-26 Ed Schonberg <schonberg@gnat.com>
628
629 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
630 empty, post message on stub.
631
6322004-10-26 Ed Schonberg <schonberg@gnat.com>
633 Javier Miranda <miranda@gnat.com>
634
635 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
636 current instance appears within a unit that is directly in the context
637 of the main unit.
638 Used to determine whether the body of the instance should be analyzed
639 immediately after its spec, to make its subprogram bodies available
640 for front-end inlining.
641 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
642 constraint is not allowed on the component type (AARM 12.5.3(3))
643
6442004-10-26 Cyrille Comar <comar@act-europe.fr>
645
646 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
647 'Storage_Pool): enhance, document & limit detection of non-sharable
648 internal pools.
649
650 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
651
652 * s-pooglo.ads: Add more documentation now that this pool is properly
653 documented.
654
6552004-10-26 Ed Schonberg <schonberg@gnat.com>
656
657 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
658 or protected type with discriminants, do not constrain the
659 corresponding record type if the subtype declaration has no
660 discriminant constraints. This can be the case in source code, or in
661 the subtype declaration created to rename an actual type within an
662 instantiation.
663
6642004-10-26 Ed Schonberg <schonberg@gnat.com>
665
666 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
667 different kind of stub (possibly wrong name for file), do not check
668 for conformance.
669 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
670 includes call to some function that returns an unconstrained type, do
671 not inline.
672
6732004-10-26 Ed Schonberg <schonberg@gnat.com>
674
675 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
676 appear in the code for the main unit. Dependencies among units in the
677 context of the main unit are established when those other units are
678 compiled. Otherwise spurious elaboration constraints can generate
679 incorrect elaboration circularities.
680
6812004-10-26 Thomas Quinot <quinot@act-europe.fr>
682 Ed Schonberg <schonberg@gnat.com>
683
684 * sem_util.adb (Is_Aliased_View): Defend against the case where this
685 subprogram is called with a parameter that is not an object name. This
686 situation arises for some cases of illegal code, which is diagnosed
687 later, and in this case it is wrong to call Is_Aliased, as that might
688 cause a compiler crash.
689 (Explain_Limited_Type): Refine previous fix to include
690 inherited components of derived types, to provide complete information.
691
692 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
693 is the prival for a protected object.
694 It is necessary to mark this entity as a variable, in addition to
695 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
696 modified to avoid checking the Aliased flag on entities that are not
697 objects. (Checking that flag for non-objects is erroneous and could
698 lead to a compiler crash).
699
7002004-10-26 Robert Dewar <dewar@gnat.com>
701
702 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
703 X_Frac = 0.5, then we know that the number X must be positive.
704 (Succ): Remove the same redundant test, and also fix the primary test
705 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
706 Minor reformatting
707 (Decompose): Add fuller comments to spec
708
7092004-10-26 Pascal Obry <obry@gnat.com>
710
711 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
712 validity (process must have read access). Set to 0 in all other cases.
713 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
714 violation on Win32.
715 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
716 segmentation violation.
717
7182004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
719
720 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
721 whose type is a constructed subtype of an aliased object with an
722 unconstrained nominal subtype, convert the actual to the constructed
723 subtype before taking its address.
724
7252004-10-26 Vincent Celier <celier@gnat.com>
726
727 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
728 (Is_Path_Name_Case_Sensitive): New function
729
730 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
731 (Base_Name, Simple_Name, Current_Directory, Compose,
732 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
733 the result.
734
7352004-10-26 Cyrille Comar <comar@act-europe.fr>
736 Vasiliy Fofanov <fofanov@act-europe.fr>
737 Vincent Celier <celier@gnat.com>
738
739 * gnat_ugn.texi: Generalize "finding memory problems" section into a
740 "memory management issues" section and document some of the useful
741 memory pools provided as part of the GNAT library.
742 Remove "virtual" from declaration of A::method2 in
743 the simple example of Ada/C++ mixed system.
744 Library Projects may be virtually extended: their virtual extensions
745 are not Library Projects.
746 Added section on extending project hierarchies.
747
d65c6710 7482004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
aa75e737
AL
749
750 * adaint.c (__gnat_get_libraries_from_registry): Cast value
751 to LPBYTE.
752 (__gnat_portable_spawn): Remove const.
753
754 * mingw32.h (MAXPATHLEN): Check for previous definition.
755
95e19580
MK
7562004-10-17 Matthias Klose <doko@debian.org>
757
758 * gnatvsn.ads: Set gnat library version to 4.0.
759
88a6ecb6
VC
7602004-10-05 Vincent Celier <celier@gnat.com>
761
762 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
763
110aba14
LG
7642004-10-04 Laurent GUERBY <laurent@guerby.net>
765
766 PR ada/15156
767 * Makefile.in: Define and use RANLIB_FLAGS.
88a6ecb6 768
09552763
PO
7692004-10-04 Pascal Obry <obry@gnat.com>
770
771 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
772 other x86 platforms).
773
a8e490b7
OH
7742004-10-04 Olivier Hainque <hainque@act-europe.fr>
775
776 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
777 in general and triggers stack alignment adjustment for thread entry
778 points on targets where this is necessary.
779
71c10a83
BB
7802004-10-04 Bernard Banner <banner@gnat.com>
781
782 PR ada/13897
783
784 * Makefile.in: Add section for powerpc linux
785 Add variant i-vxwork-x86.ads
786
787 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
788
9a03df55
OH
7892004-10-04 Olivier Hainque <hainque@act-europe.fr>
790
791 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
792 table registration calls when need be. Ensures no reference to the crt
793 ctors symbol are issued in the SJLJ case, which avoids possible
794 undefined symbol errors in the case of modules to be statically linked
795 with the kernel.
796
28d6470f
JM
7972004-10-04 Javier Miranda <miranda@gnat.com>
798
799 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
800 in-line the code corresponding to subprogram Analyze_Actuals. In
801 addition, analyze the actuals only in case of subprogram call.
802
06237875
EF
8032004-10-04 Ed Falis <falis@gnat.com>
804
805 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
806
259d6c3a
SR
8072004-10-04 Sergey Rybin <rybin@act-europe.fr>
808
809 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
810 in the documentation.
811
6f21ed26
RD
8122004-10-04 Robert Dewar <dewar@gnat.com>
813
814 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
815 IF and CASE.
816 (Analyze_Block_Statement): Add circuitry to detect following dead code
817 (Check_Unreachable_Code): Handle case of block exit
818
4cded177
RD
8192004-10-04 Robert Dewar <dewar@gnat.com>
820
821 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
822 (XMatchD): Avoid warning for Logic_Error call
823
c6a60aa1
RD
8242004-10-04 Robert Dewar <dewar@gnat.com>
825
826 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
827 consider expressions buried within a procedure actual to be an actual.
828 This caused some blowups with uses of packed slices within a procedure
829 actual.
830
1fdebfe5
RD
8312004-10-04 Robert Dewar <dewar@gnat.com>
832
833 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
834 longer need to be initialized to zero.
835 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
836 initialized to zero.
837
838 * checks.adb (Expr_Known_Valid): Packed arrays are now always
839 considered valid, even if the representation is modular. That's correct
840 now that we no longer initialize packed modular arrays to zero.
841
842 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
843 suffixes. These are now documented as the only cases in which the
844 debugger ignores outer records.
845 Previously, the spec allowed arbitrary suffixes for this purpose.
846 Change name of LJM to JM for packed array pad records
847 Create separate section on packed array handling, and add a whole new
848 set of comments to this section describing the situation with packed
849 modular types and justification requirements depending on endianness.
850
cd91501c
RD
8512004-10-04 Robert Dewar <dewar@gnat.com>
852
853 * a-except.adb: Add a comment for last change
854
855 * einfo.ads: Minor spelling correction in comment
856
857 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
858
859 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
860 messages.
861
862 * sem_util.ads: Minor comment update
863
c71c53a8
ES
8642004-10-04 Ed Schonberg <schonberg@gnat.com>
865
866 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
867 Inline_Always when in Configurable_Run_Time mode.
868
869 * sem_prag.adb (Process_Convention): If entity is an inherited
870 subprogram, apply convention to parent subprogram if in same scope.
871 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
872 when in Configurable_Run_Time mode.
873
71d9e9f2
ES
8742004-10-04 Ed Schonberg <schonberg@gnat.com>
875
876 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
877 class_wide type after component list has been inherited.
878
0b525bee
ES
8792004-10-04 Ed Schonberg <schonberg@gnat.com>
880
881 * sem_ch12.adb (Check_Generic_Actuals): New predicate
882 Denotes_Previous_Actual, to handle properly the case of a private
883 actual that is also the component type of a subsequent array actual.
884 The visibility status of the first actual is not affected when the
885 second is installed.
886 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
887 make fully recursive the treatment of formals of packages declared
888 with a box.
889 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
890 the above on exit from an instantiation.
891 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
892 current instantiation which is now complete.
893 (Analyze_Package_Instantiation): No instantiated body is needed if the
894 main unit is generic. Efficient, and avoid anomalies when a instance
895 appears in a package accessed through rtsfind.
896
27ad9660
ES
8972004-10-04 Ed Schonberg <schonberg@gnat.com>
898
899 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
900 do not generate a declaration for a temporary if the call is part of a
901 library-level instantiation.
902
1c6c6771
ES
9032004-10-04 Ed Schonberg <schonberg@gnat.com>
904
905 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
906 searching for a limited component to flag.
907
908 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
909 expansion of Input, to account for the fact that the implicit call
910 generated by the attribute reference must freeze the user-defined
911 stream subprogram. This is only relevant to 'Input, because it can
912 appear in an object declaration, prior to the body of the subprogram.
913
914 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
915 expansion can proceed and further errors uncovered.
916 (Minor clean up): Fix cases of using | instead of \ for continuation
917 messages.
918
8005f3e5
RK
9192004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
920
921 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
922
923 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
924 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
925 Use gcc_assert and gcc_unreachable.
926
927 * decl.c (gnat_to_gnu_entity, case object): Check and process a
928 specified alignment before validating size.
929 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
930 stripped-down declaration for the type of the inner field when making
931 a JM type.
932
933 * utils.c (finish_record_type): Do not compute the size in units
934 incrementally. Instead compute it once for the rep clause case.
935 Use gcc_assert and gcc_unreachable.
936
6a294a29
VC
9372004-10-04 Vincent Celier <celier@gnat.com>
938
939 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
940 in file name.
941 (Is_Valid_Path_Name): Take '/' as a directory separator.
942
9a080ea3
VC
9432004-10-04 Vincent Celier <celier@gnat.com>
944
945 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
946 (Extended_Project) only if Extended_Project is defined, to avoid
947 assertion error.
948 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
949 resolved path.
950 (Parse_Single_Project): Ditto.
951
952 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
953 Add_To_Project_Path for virtual projects.
954
51004cb5
VC
9552004-10-04 Vincent Celier <celier@gnat.com>
956
957 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
958 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
959 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
960 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
961 parameter Options_2.
962
963 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
964 Build_Dynamic_Library with an empty Options_2.
965
966 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
967 default anymore.
968
969 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
970 directory separator, if any.
971 (Gprmake): Do not allow mains on the command line for library projects.
972 Do not attempt to link when the project is a library project.
973 (Library_Opts): New table to store Library_Options.
974 (Build_Library): If Library_Options is specified, pass these options
975 when building a shared library.
976
3b37ffbf
JR
9772004-10-04 Jose Ruiz <ruiz@act-europe.fr>
978
979 * s-tposen.adb (Service_Entry): The object must be always unlocked at
980 the end of this procedure now that the unlock operation was inserted
981 by the expander.
982
b23e28d5
JR
9832004-10-04 Jose Ruiz <ruiz@act-europe.fr>
984
985 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
986 corresponding to the Preallocated_Stacks flags in System.
987 (Get_Target_Parameters): Including the processing for
988 Preallocated_Stacks.
989
990 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
991 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
992 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
993 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
994 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
995 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
996 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
997 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
998 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
999 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
1000 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
1001 used to signal whether the compiler creates the required stacks and
1002 descriptors for the different tasks (when True) or it is done by the
1003 underlying operating system at run time (when False).
1004 It is initially set to False in all targets.
1005
1006 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
1007 if it is supported by the target.
1008 (Make_Task_Create_Call): Pass the stack address if it has been
1009 previously created. Otherwise pass a Null_Address.
1010
1011 * snames.adb: Add _stack.
1012
1013 * snames.ads: Add Name_uStack. Required to allow the expander to
1014 statically allocated task stacks.
1015
1016 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
1017 Stack_Address argument.
1018 Check that its value is equal to Null_Address because this target does
1019 not support the static stack allocation.
1020
6fd459bb
TQ
10212004-10-04 Thomas Quinot <quinot@act-europe.fr>
1022
1023 * usage.adb: Change "pragma inline" to "pragma Inline" in information
1024 and error messages
1025
5885facb
TQ
10262004-10-04 Thomas Quinot <quinot@act-europe.fr>
1027
1028 * exp_dist.adb: Split declaration of asynchronous flag out of
1029 Add_RACW_Read_Attribute.
1030 Minor reformatting for better alignment with PolyORB version.
1031 Store the entity for the asynchronous flag of an RACW, rather than the
1032 expression, in the asynchronous flags table. This will allow this flag
1033 to be used in other subprograms beside Add_RACW_Read_Attribute.
1034
d6c7ed50
TQ
10352004-10-04 Thomas Quinot <quinot@act-europe.fr>
1036
1037 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
1038 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
1039 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
1040 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
1041 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
1042 sockets constant MSG_NOSIGNAL (Linux-specific).
1043 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
1044 all Send operations.
1045 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
1046 from trigerring SIGPIPE.
1047 Rename components to avoid clash with Ada 2005 possible reserved
1048 word 'interface'.
1049 (Check_Selector): When the select system call returns with an error
1050 condition, propagate Socket_Error to the caller.
1051
0f0377f6
JH
10522004-10-01 Jan Hubicka <jh@suse.cz>
1053
1054 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
1055
2c9beb8a
RD
10562004-09-23 Robert Dewar <dewar@gnat.com>
1057
1058 PR ada/17540
1059
1060 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
1061 instead do this at freeze time (we won't do it if there is an address
1062 clause).
1063 Change "pragma inline" to "pragma Inline" in information and error
1064 messages.
1065 Minor reformatting.
1066
1067 * freeze.adb (Check_Address_Clause): Remove previous change, not the
1068 right way of doing things after all.
1069 (Freeze_Entity): For object, set Is_Public for imported entities
1070 unless there is an address clause present.
1071
2494e673
OH
10722004-09-21 Olivier Hainque <hainque@act-europe.fr>
1073
1074 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
1075 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
1076 ensures proper handling of types with rep clauses, which might have
1077 their TYPE_SIZE set already.
1078
910d20fc
RD
10792004-09-21 Robert Dewar <dewar@gnat.com>
1080
1081 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
1082 packed array types in both little- and big-endian cases. This change
1083 ensures that we no longer count on the unused bits being initialized
1084 for such types (and in particular ensures that equality testing will
1085 only read the relevant bits).
1086 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
1087 These changes mean that we no longer need to initialize small packed
1088 arrays.
1089 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
1090 optimization to an LJM field as to its parent field.
1091
1092 * ada-tree.h, trans.c, utils.c, utils2.c:
1093 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
1094
8f235343
JH
10952004-09-20 Jan Hubicka <jh@suse.cz>
1096
1097 * utils.c (gnat_finalize): Remove.
1098 (end_subprog_body): Directly call cgraph_finalize_function;
1099 do not lower the nested functions.
1100
bb9be5eb
RD
11012004-09-20 Robert Dewar <dewar@gnat.com>
1102
1103 PR ada/17540
1104
1105 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
1106 if an address clause is present, since that means that the Import
1107 should be ignored.
1108
796ef2e2
AC
11092004-09-20 Arnaud Charlet <charlet@act-europe.fr>
1110
1111 * 5tsystem.ads: Removed, no longer used.
1112
6615c446
JO
11132004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
1114 Zack Weinberg <zack@codesourcery.com>
1115
1116 * ada-tree.def: Use tree_code_class enumeration constants
1117 instead of code letters.
1118 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
1119 Update for new tree-class enumeration constants.
1120
93ed8a01
VC
11212004-09-17 Vincent Celier <celier@gnat.com>
1122
1123 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
1124 capabilities of the general project manager.
1125
c885d7a1
AC
11262004-09-09 Vincent Celier <celier@gnat.com>
1127
1128 * a-direct.ads: Add pragma Ada_05
1129 (Directory_Entry_Type): Give default value to component Kind to avoid
1130 not initialized warnings.
1131
1132 * a-direct.adb (Current_Directory): Remove directory separator at the
1133 end.
1134 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
1135 an existing directory.
1136 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
1137 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
1138 Convert the result to File_Size.
1139
1140 * prj.ads: (Project_Error): New exception
1141
1142 * prj-attr.adb: Except in procedure Initialize, Fail comes from
1143 Prj.Com, not from Osint.
1144 (Attrs, Package_Attributes): Tables moved to private part of spec
1145 (Add_Attribute, Add_Unknown_Package): Moved to new child package
1146 Prj.Attr.PM.
1147 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
1148 Prj.Project_Error after call to Fail.
1149 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
1150 Fail. Check that package name is not already in use.
1151
1152 * prj-attr.ads: Comment updates to indicate that all subprograms may be
1153 used by tools, not only by the project manager, and to indicate that
1154 exception Prj.Prj_Error may be raised in case of problem.
1155 (Add_Unknown_Package, Add_Attribute): Moved to new child package
1156 Prj.Attr.PM.
1157 (Attrs, Package_Attributes): Table instantiations moved from the body to
1158 the private part to be accessible from Prj.Attr.PM body.
1159
1160 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
1161 from new package Prj.Attr.PM.
1162 (Parse_Attribute_Declaration): Call Add_Attribute from new package
1163 Prj.Attr.PM.
1164
1165 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
1166
1167 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
1168 instead of Elaboration_Checks).
1169
1170 * a-calend.adb: Minor reformatting
1171
11722004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1173
1174 * gigi.h (maybe_pad_type): New declaration.
1175 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
1176
1177 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
1178
1179 * cuintp.c: Convert to use buildN.
1180
1181 * decl.c (maybe_pad_type): No longer static.
1182 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
1183 target pointer.
1184 Convert to use buildN.
1185
1186 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
1187 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
1188 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
1189 RHS.
1190 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
1191 (gnat_gimplify_expr, case ADDR_EXPR): New case.
1192 Convert to use buildN.
1193
1194 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
1195 TREE_READONLY for const.
1196 Convert to use buildN.
1197
1198 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
1199 (create_var_decl): Refine when TREE_STATIC is set.
1200 Convert to use buildN.
1201
12022004-09-09 Gary Dismukes <dismukes@gnat.com>
1203
1204 * gnat_ugn.texi: Delete text relating to checking of ali and object
1205 consistency.
1206
1207 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
1208 routines.
1209
12102004-09-09 Jose Ruiz <ruiz@act-europe.fr>
1211
1212 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
1213 pragmas recognized by GNAT.
1214
1215 * gnat_rm.texi: Document pragma Detect_Blocking.
1216
1217 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
1218 raise Program_Error if called from a protected operation.
1219
1220 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
1221 the protected action nesting level.
1222 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
1223 protected action nesting level.
1224 (Unlock): When pragma Detect_Blocking is active decrease the protected
1225 action nesting level.
1226
1227 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
1228 Protected_Action_Nesting.
1229
1230 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
1231 Common_ATCB record. It contains the dynamic level of protected action
1232 nesting for each task. It is needed for checking whether potentially
1233 blocking operations are called from protected operations.
1234 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
1235 Detect_Blocking is active or not in the partition.
1236
1237 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
1238 raise Program_Error if called from a protected operation.
1239 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
1240 Program_Error if called from a protected operation.
1241 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
1242 Program_Error if called from a protected operation.
1243
1244 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
1245 raise Program_Error if called from a protected operation.
1246
1247 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
1248 raise Program_Error if called from a protected operation, and increase
1249 the protected action nesting level.
1250 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
1251 Program_Error if called from a protected operation, and increase the
1252 protected action nesting level.
1253 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
1254 protected action nesting level.
1255
1256 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
1257 raise Program_Error if called from a protected operation, and increase
1258 the protected action nesting level.
1259 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
1260 Program_Error if called from a protected operation, and increase the
1261 protected action nesting level.
1262 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
1263 raise Program_Error if called from a protected operation.
1264 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
1265 active, raise Program_Error if called from a protected operation.
1266 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
1267 protected action nesting level.
1268
1269 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
1270 insertion of the statement raising Program_Error. The run time
1271 contains the required machinery for handling that.
1272
1273 * sem_util.ads: Change comment associated to procedure
1274 Check_Potentially_Blocking_Operation.
1275 This procedure does not insert a call for raising the exception because
1276 that is currently done by the run time.
1277
1278 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
1279
1280 * init.c: Add the global variable __gl_detect_blocking that indicates
1281 whether pragma Detect_Blocking is active (1) or not (0). Needed for
1282 making the pragma available at run time.
1283 (__gnat_set_globals): Pass and update the detect_blocking parameter.
1284
1285 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
1286 pragma Detect_Blocking is active.
1287
1288 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
1289
1290 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
1291 DB is found in the ali file. Any unit compiled with pragma
1292 Detect_Blocking active forces its effect in the whole partition.
1293
1294 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
1295 Detect_Blocking is active and delay is called from a protected
1296 operation.
1297
1298 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
1299 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
1300 Detect_Blocking is active (0 otherwise).
1301 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
1302 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
1303 otherwise).
1304
13052004-09-09 Thomas Quinot <quinot@act-europe.fr>
1306
1307 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
1308 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
1309 package.
1310
1311 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
1312 (Register_Receiving_Stub): Add Subp_Info formal parameter.
1313 Update API in placeholder implemetation of s-parint to reflect changes
1314 in distribution runtime library.
1315
1316 * sem_ch3.adb (Expand_Derived_Record): Rename to
1317 Expand_Record_Extension.
1318
1319 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
1320 primitive operations of potentially distributed object types that have
1321 non-controlling anonymous access formals.
1322
1323 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
1324 subprogram.
1325 New implementation of expansion for remote access-to-subprogram types,
1326 based on the RACW infrastructure.
1327 This version of sem_dist is compatible with PolyORB/DSA as well as
1328 GLADE.
1329
1330 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
1331 Asynchrronous that applies to a remote access-to-subprogram type, mark
1332 the underlying RACW type as asynchronous.
1333
1334 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
1335 __gnat_using_gnu_linker to 1.
1336
1337 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
1338 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
1339 GNAT.Perfect_Hash_Generators, and remove the empty
1340 GNAT.Perfect_Hash package.
1341
1342 * atree.adb: Minor reformatting
1343
1344 * exp_ch3.adb (Expand_Derived_Record): Rename to
1345 Expand_Record_Extension.
1346 (Build_Record_Init_Proc.Build_Assignment): The default expression in
1347 a component declaration must remain attached at that point in the
1348 tree so New_Copy_Tree copies it if the enclosing record type is derived.
1349 It is therefore necessary to take a copy of the expression when building
1350 the corresponding assignment statement in the init proc.
1351 As a side effect, in the case of a derived record type, we now see the
1352 original expression, without any rewriting that could have occurred
1353 during expansion of the ancestor type's init proc, and we do not need
1354 to go back to Original_Node.
1355
1356 * exp_ch3.ads (Expand_Derived_Record): Rename to
1357 Expand_Record_Extension.
1358
1359 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
1360 Returns the RACW type used to implement a remote access-to-subprogram
1361 type.
1362 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
1363 New subprograms. Used to create a proxy tagged object for a remote
1364 subprogram. The proxy object is used as the designated object
1365 for RAS values on the same partition (unless All_Calls_Remote applies).
1366 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
1367 System.Partition_Interface.Get_Unique_Remote_Pointer.
1368 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
1369 Renamed from Add_RAS_*_Attribute.
1370 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
1371 subprograms.
1372 New implementation of expansion for remote access-to-subprogram types,
1373 based on the RACW infrastructure.
1374
1375 * exp_dist.ads (Copy_Specification): Update comment to note that this
1376 function can copy the specification from either a subprogram
1377 specification or an access-to-subprogram type definition.
1378
13792004-09-09 Ed Schonberg <schonberg@gnat.com>
1380
1381 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
1382 in an instance, between an explicit subprogram an one inherited from a
1383 type derived from an actual.
1384
1385 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
1386 add a polling call if the subprogram is to be inlined by the back-end,
1387 to avoid repeated calls with multiple inlinings.
1388
1389 * checks.adb (Apply_Alignment_Check): If the expression in the address
1390 clause is a call whose name is not a static entity (e.g. a dispatching
1391 call), treat as dynamic.
1392
13932004-09-09 Robert Dewar <dewar@gnat.com>
1394
1395 * g-trasym.ads: Minor reformatting
1396
1397 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
1398 packed arrays, since unused bits are expected to be zero for a
1399 comparison.
1400
14012004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
1402
1403 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
1404 comment.
1405
14062004-09-09 Pascal Obry <obry@gnat.com>
1407
1408 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
1409 enable map file generation. Add the right option to generate the map
1410 file if Map_File is set to True.
1411
1412 * gnatdll.adb (Gen_Map_File): New variable.
1413 (Syntax): Add info about new -m (Map_File) option.
1414 (Parse_Command_Line): Add support for -m option.
1415 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
1416 Minor reformatting.
1417
14182004-09-09 Laurent Pautet <pautet@act-europe.fr>
1419
1420 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
1421 new gnatdist implementation.
1422 Define a subpackage isolating the output routines specific to this
1423 verbose mode.
1424
14252004-09-09 Joel Brobecker <brobecker@gnat.com>
1426
1427 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
1428
1429 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
1430
14312004-09-09 Cyrille Comar <comar@act-europe.fr>
1432
1433 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
1434 internal unit.
1435
1436 * opt.ads: Add Ada_Version_Runtime constant used to decide which
1437 version of the language is used to compile the run time.
1438
14392004-09-09 Arnaud Charlet <charlet@act-europe.fr>
1440
1441 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
1442 of variable length temporaries for function return now that the
1443 back-end and gigi support it.
1444
23c7b149 14452004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6cdb2c6e
AC
1446
1447 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
1448
1449 * trans.c (struct stmt_group): Delete field GLOBAL.
1450 (gnat_init_stmt_group): Do not initialize it.
1451 (call_to_gnu): Use save_expr, not protect_multiple_eval.
1452 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
1453 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
1454 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
1455 (start_stmt_group): Likewise.
1456 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
1457
1458 * utils2.c (ggc.h): Include.
1459 (build_call_raise): Call build_int_cst, not build_int_2.
1460
1461 * utils.c (gnat_init_decl_processing): Fix arg to
1462 build_common_tree_nodes.
1463 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
1464 (gnat_define_builtin): Set built_in_decls.
1465 (init_gigi_decls): Call build_int_cst, not build_int_2.
1466
1467 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
1468 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
1469 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
1470 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
1471 SET_TYPE_MODULE): Use them.
1472 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
1473 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
1474 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
1475 SET_TYPE_ADA_SIZE): Likewise.
1476 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
1477 (DECL_CONST_CORRESPONDING_VAR,
1478 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
1479 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
1480 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
1481 (TYPE_RM_SIZE_NUM): New macro.
1482 (TYPE_RM_SIZE): Modified to use above.
1483
1484 * cuintp.c: (build_cst_from_int): New function.
1485 (UI_To_gnu): Use it.
1486
1487 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
1488 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
1489 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
1490 MIN_EXPR for the size, copy it into new.
1491
23c7b149 14922004-09-01 Robert Dewar <dewar@gnat.com>
6cdb2c6e
AC
1493
1494 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
1495 packed indexed component where array is an IN OUT formal. This
1496 generated garbage code previously.
1497
1498 * gnat_ugn.texi: Document -fverbose-asm
1499
1500 * gnat-style.texi: Minor updates (note that boolean constants and
1501 variables are joined with AND/OR rather than short circuit forms).
1502
23c7b149 15032004-09-01 Ed Schonberg <schonberg@gnat.com>
6cdb2c6e
AC
1504
1505 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
1506 it is an upward conversion of an untagged type with no representation
1507 change.
1508
23c7b149 15092004-09-01 Thomas Quinot <quinot@act-europe.fr>
6cdb2c6e
AC
1510
1511 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
1512 System.Partition_Interface.
1513
1514 * checks.adb (Apply_Access_Checks): Do not generate checks when
1515 expander is not active (but check for unset reference to prefix of
1516 dereference).
1517
1518 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
1519 pragma Debug as an if statement with a constant condition, for
1520 consistent treatment of entity references contained within the
1521 enclosed procedure call.
1522
23c7b149 15232004-09-01 Vincent Celier <celier@gnat.com>
6cdb2c6e
AC
1524
1525 * bindgen.adb: (Set_EA_Last): New procedure
1526 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
1527 Set_EA_Last.
1528 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
1529 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
1530 linked without errors.
1531 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
1532 ST and EA.
1533 (Gen_Exception_Table_C): Correct same bugs
1534
1535 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
1536
1537 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
1538 on Windows, make sure that the drive letter is in upper case.
1539
1540 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
1541 Windows, when the drive letter is added and Case_Sensitive is True, the
1542 drive letter is forced to upper case.
1543
1544 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
1545 to Options_2 for the call to MLib.Utl.Gcc.
1546
1547 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
1548 directory separator when defining BASE_DIR.
1549
23c7b149 15502004-09-01 Pascal Obry <obry@gnat.com>
6cdb2c6e
AC
1551
1552 * gprcmd.adb (Extend): Do not output trailing directory separator. This
1553 is not needed and it confuses Windows GNU/make which does not report
1554 directory terminated by a slash as a directory.
1555 (gprcmd): Idem for "pwd" internal command.
1556
1557 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
1558 target names rewrite to fix regressions with recent version of
1559 GNU/make. Starting with GNU/make 3.80 the pipe character was not
1560 handled properly anymore.
1561
4eb104c1
AS
15622004-09-01 Andreas Schwab <schwab@suse.de>
1563
1564 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
1565 * raise.c [!IN_RTS]: Undef abort.
1566
6a6bfc8e
NS
15672004-08-27 Nathan Sidwell <nathan@codesourcery.com>
1568
ce552f75
NS
1569 * utils2.c (build_allocator): Use ssize_int.
1570
6a6bfc8e
NS
1571 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
1572
f8b7bf58
AS
15732004-08-27 Andreas Schwab <schwab@suse.de>
1574
1575 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
1576
15793d0c
NS
15772004-08-25 Nathan Sidwell <nathan@codesourcery.com>
1578 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6615c446 1579
15793d0c
NS
1580 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
1581
7d60be94
NS
15822004-08-25 Nathan Sidwell <nathan@codesourcery.com>
1583
1584 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
1585 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
1586 * utils.c (init_gigi_decls): Likewise.
1587 * utils2.c (build_call_raise, build_allocator): Likewise.
6615c446 1588
8c1d6d62
NS
15892004-08-24 Nathan Sidwell <nathan@codesourcery.com>
1590
7d60be94 1591 * utils.c (gnat_init_decl_processing): Adjust
8c1d6d62
NS
1592 build_common_tree_nodes call.
1593
3224bead
NS
15942004-08-20 Nathan Sidwell <nathan@codesourcery.com>
1595
1596 * utils2.c (build_allocator): Use build_int_cst for negative
1597 size types.
1598
4766261d
RH
15992004-08-18 Richard Henderson <rth@redhat.com>
1600
1601 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
1602
1f6c00df
NS
16032004-08-16 Nathan Sidwell <nathan@codesourcery.com>
1604
1605 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
1606 call.s
1607 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
1608 (gnat_to_gnu): Likewise.
1609
4c46b835
AC
16102004-08-16 Pascal Obry <obry@gnat.com>
1611
1612 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
1613 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
1614 option and not mdll anymore. Update comment.
1615
16162004-08-16 Pascal Obry <obry@gnat.com>
1617
1618 * bld.adb (Put_Include_Project): Properly handle directory separators
1619 on Windows.
1620
16212004-08-16 Ed Schonberg <schonberg@gnat.com>
1622
1623 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
1624 decreasing the number of allocated junk nodes while searching for the
1625 appropriate subprogram.
1626
4a90aeeb
NS
16272004-08-15 Nathan Sidwell <nathan@codesourcery.com>
1628
1629 * cuintp.c (UI_To_gnu): Use build_int_cst..
1630 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
1631 * utils.c (init_gigi_decls): Likewise.
1632 * utils2.c (build_call_raise): Likewise.
1633
244e5a2c
AC
16342004-08-13 Olivier Hainque <hainque@act-europe.fr>
1635
1636 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
1637 for a global aliased object with a variable size and an unconstrained
1638 nominal subtype, pretend there is no initializer if the one we have is
1639 incomplete, and avoid referencing an inexistant component in there. The
1640 part we have will be rebuilt anyway and the reference may confuse
1641 further operations.
1642
16432004-08-13 Thomas Quinot <quinot@act-europe.fr>
1644
1645 * einfo.ads: Minor reformatting
1646
1647 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
1648 restrictions in the ALI if we only want to warn about violations.
1649
16502004-08-13 Vincent Celier <celier@gnat.com>
1651
1652 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
1653 when creating a new Unit_Record in table Units.
1654
1655 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
1656 that are violated, if any.
1657
1658 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
1659 add directory separator if path already ends with a directory separator.
1660
16612004-08-13 Ed Schonberg <schonberg@gnat.com>
1662
1663 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
1664 unit, this is an attempt to inline a construct that is not available in
1665 the current restricted mode, so abort rather than trying to continue.
1666
1667 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
1668 discriminants that rename those of the parent, recover names of
1669 original discriminants for the constraint on the full view of the
1670 parent.
1671 (Complete_Private_Subtype): Do not create a subtype declaration if the
1672 subtype is an itype.
1673
1674 * gnat_rm.texi: Added section on implementation of discriminated
1675 records with default values for discriminants.
1676
16772004-08-13 Ed Schonberg <schonberg@gnat.com>
1678
1679 PR ada/15601
1680 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
1681 the second operand is overloaded.
1682
1a186ec5
RH
16832004-08-10 Richard Henderson <rth@redhat.com>
1684
1685 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
1686 add __builtin_alloca.
1687
89f1a702
RH
16882004-08-10 Richard Henderson <rth@redhat.com>
1689
1690 * config-lang.in (boot_language): Yes.
1691
5d09245e
AC
16922004-08-09 Thomas Quinot <quinot@act-europe.fr>
1693
1694 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
1695 from complaining on potential uninitialized reference.
1696 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
1697 new specification and test explicitly for non-zero return value.
1698
1699 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
1700 returning C.int, to avoid using a derived boolean type.
1701
1702 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
1703 Duplicate_Subexpr_No_Checks in preference to direct use of
1704 Remove_Side_Effects and New_Copy_Tree.
1705 Clear Comes_From_Source on prefix of 'Size attribute reference.
1706
1707 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
1708 g-socthi-vxworks.adb: Change calls to
1709 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
1710 and test explicitly for non-zero return value.
1711
6615c446 1712 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
5d09245e
AC
1713 (Is_Socket_In_Set): Declare imported function as returning C.int, to
1714 avoid using a derived boolean type.
1715
17162004-08-09 Albert Lee <lee@gnat.com>
1717
1718 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
1719
17202004-08-09 Pascal Obry <obry@gnat.com>
1721
1722 * gnat_ugn.texi: Document new way to build DLLs on Windows using
1723 GCC's -shared option.
1724
1725 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
1726 Options_2 parameter (options put after object files).
1727
17282004-08-09 Olivier Hainque <hainque@act-europe.fr>
1729
1730 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
1731 ignore overflows on low and high bounds of an index to also account for
1732 differences in signedness between sizetype and gnu_index_subtype.
1733 These are as legitimate as the ones caused by a lower TYPE_PRECISION
1734 on sizetype.
1735
17362004-08-09 Robert Dewar <dewar@gnat.com>
1737
1738 * s-solita.ads, s-solita.adb: Minor reformatting
1739
1740 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
1741 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
1742 obsolescent section
1743 Add note that No_Implicit_Conditionals does not suppress
1744 run time constraint checks.
1745
1746 * vms_conv.ads: Minor reformatting
1747
1748 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
1749 and necessary for following change).
1750 (Mark): Return new format Mark_Id containing sec stack address
1751 (Release): Use sec stack address from Mark_Id avoiding Self call
1752
1753 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
1754 pointer (cleanup and necessary for following change).
1755 Define Mark_Id as record containing address of secondary stack, that way
1756 Release does not need to find the stack again, decreasing the number of
1757 calls to Self and improving efficiency.
1758
1759 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
1760
1761 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
1762 case variable into the individual case branches when possible.
1763
1764 * sem_ch11.adb: Minor reformatting
1765
1766 * prj.ads: Correct spelling of suffixs
1767
1768 * prj-nmsc.adb: Minor reformatting
1769 Correct spelling suffixs throughout (also in identifiers)
1770
1771 * freeze.adb: Minor spelling correction
1772
1773 * exp_ch2.adb: Cleanups to handling of Current_Value
1774 (no functional effect).
1775
1776 * bld.adb: Correct spelling of suffixs
1777
1778 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
1779
17802004-08-09 Ed Schonberg <schonberg@gnat.com>
1781
1782 PR ada/15408
1783
1784 * sem_ch7.adb (Install_Private_Declarations): In the body of the
1785 package or of a child, private entities are both immediately_visible
1786 and not hidden.
1787
17882004-08-09 Ed Schonberg <schonberg@gnat.com>
1789
1790 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
1791 there are no range checks on the value of the literal.
1792
1793 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
1794 wrapped is the triggering alternative of an asynchronous select, action
1795 statements mustbe inserted before the select itself.
1796
1797 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
1798 case where the prefix is a protected function call.
1799 (Resolve_Attribute, case 'Access): The attribute reference on a
1800 subprogram is legal in a generic body if the subprogram is declared
1801 elsewhere.
1802
18032004-08-09 Vincent Celier <celier@gnat.com>
1804
1805 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
1806 languages, otherwise building the library may fail with unresolved
1807 symbols.
1808 (Compile_Sources): Do not build libraries if -c switch is used
1809
1810 * gnatlink.adb (Process_Args): New switches -M and -Mmap
1811 (Write_Usage): If map file creation is supported, output new switches
1812 -M and -Mmap.
1813 (Gnatlink): When -M is specified, add the necessary switch(es) to the
1814 gcc call, when supported.
1815
1816 * Makefile.in: Added indepsw.o to the object list for gnatlink
1817 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
1818
1819 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
1820 indepsw.adb, indepsw.ads: New files.
1821
18222004-08-09 Bernard Banner <banner@gnat.com>
1823
1824 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
1825
1826 * Makefile.in: add section for vxworks x86
1827
18282004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
1829
1830 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
1831 per-object constrained components where the discriminant is of an
1832 Access type.
1833 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
1834 the parent initialization procedure for derived Unchecked_Unions.
1835 Instead, derived Unchecked_Unions build their own initialization
1836 procedure.
1837 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
1838 Check the body of the subprogram for details.
1839 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
1840 functions for derived Unchecked_Union types by introducing a condition.
1841 Allow the creation of TSS equality functions for Unchecked_Unions.
1842 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
1843 Add formal parameter Discr to function signature. Discr is used to
1844 control the generated case statement for Unchecked_Union types.
1845 (Make_Eq_If): Rename formal parameter Node to E in function signature.
1846
1847 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
1848 Unchecked_Unions.
1849 Check the body of the subprogram for details.
1850 (Expand_Composite_Equality): Augment composite type equality to include
1851 correct handling of Unchecked_Union components.
1852 (Expand_N_In): Add condition to detect illegal membership tests when the
1853 subtype mark is a constrained Unchecked_Union and the expression lacks
1854 inferable discriminants, and build a Raise_Program_Error node.
1855 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
1856 to detect types that contain components of unconstrained Unchecked_Union
1857 subtype. Add condition to detect equality between types that have an
1858 unconstrained Unchecked_Union component, and build a Raise_Program_Error
1859 node. Add condition to detect equality between Unchecked_Union types
1860 that lack inferable discriminants, and build a Raise_Program_Error node.
1861 Otherwise build a TSS equality function call.
1862 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
1863 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
1864 with the operand lacking inferable discriminants, and build a Raise_
1865 Program_Error node.
1866 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
1867 composite equality.
1868 (Has_Inferable_Discriminants): Implement new predicate for objects and
1869 expressions of Unchecked_Union type. Check the body of subprogram for
1870 details.
1871 (Has_Unconstrained_UU_Components): Add function
1872 Component_Is_Unconstrained_UU. It is used to detect whether a single
1873 component is of an unconstrained Unchecked_Union subtype. Add function
1874 Variant_Is_Unconstrained_UU. It is used to detect whether a single
1875 component inside a variant is of an unconstrained Unchecked_Union type.
1876
1877 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
1878 inferred discriminant values. Add condition to generate a case
1879 statement with an inferred discriminant as the switch.
1880 (Make_Component_List_Assign): Introduce a Boolean flag that determines
1881 the behaviour of the subprogram in the presence of an Unchecked_Union.
1882 Add condition to trigger the usage of the inferred discriminant value
1883 as the generated case statement switch.
1884 (Make_Field_Assign): Introduce a Boolean flag that determines the
1885 behaviour of the subprogram in the presence of an Unchecked_Union. Add
1886 condition to trigger the usage of the inferred discriminant value as
1887 the right-hand side of the generated assignment.
1888
1889 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
1890 parameter generation when dealing with Unchecked_Unions.
1891
1892 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
1893 checks for Unchecked_Unions.
1894
1895 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
1896
1897 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
1898 Raise_Program_Error nodes for the execution of Read and Write
1899 attributes of Unchecked_Union types and the execution of Input and
1900 Output attributes of Unchecked_Union types that lack default
1901 discriminant values.
1902
1903 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
1904 Unchecked_Union. Add procedure Check_Component. It is used to inspect
1905 per-object constrained components of Unchecked_Unions for being
1906 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
1907 check individual components withing a variant.
1908
1909 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
1910 comparison of Unchecked_Unions.
1911 (Resolve_Equality_OP): Remove guard that prevents equality between
1912 Unchecked_Unions.
1913
1914 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
1915 of component subtypes for Unchecked_Union components.
1916 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
1917 since it is the actual subtype.
1918
1919 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
1920 pass of Unchecked_Union subtypes as generic actuals to formal types
1921 that lack known_discriminant_parts or that are derived Unchecked_Union
1922 types, and do nothing. In any other case, produce an error message.
1923
1924 * sem_ch3.adb (Analyze_Component_Declaration): Add function
1925 Contains_POC. It determines whether a constraint uses the discriminant
1926 of an enclosing record type.
1927 Add condition to detect per-object constrained component and set the
1928 appropriate flag.
1929 (Derived_Type_Declaration): Remove guard that prevents derivation from
1930 Unchecked_Union types.
1931 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
1932 Union subtypes.
1933
1934 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
1935 references to Unchecked_Union discriminants.
1936
1937 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
1938 formal generation when dealing with Unchecked_Unions.
1939 (Set_Actual_Subtypes): Add condition to prevent generation of actual
1940 subtypes for Unchecked_Unions.
1941
1942 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
1943 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
1944 completions of discriminated partial views by Unchecked_Unions and
1945 produce an error message.
1946
19472004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1948
1949 * trans.c (struct stmt_group): New field, GLOBAL.
1950 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
1951 (struct elab_info): New struct.
1952 (elab_info_list, gnu_elab_proc_stack): New variables.
1953 (Compilation_Unit_to_gnu): New procedure.
1954 (gigi): Call it and also handle elaboration procs we've saved.
1955 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
1956 global field from parent.
1957 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
1958 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
1959 (start_stmt_group): Initialize global field from parent.
1960 (add_decl_expr): Set to global for current statement group.
1961 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
1962 post.
1963
1964 * utils.c (global_bindings_p): True when no current_function_decl; no
1965 longer check current_binding_level.
1966
19672004-08-09 Ben Brosgol <brosgol@gnat.com>
1968
1969 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
1970 choice.
1971
1972 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
1973
160ff372
AS
19742004-08-06 Andreas Schwab <schwab@suse.de>
1975
1976 * utils.c (gnat_define_builtin): Remove second parameter of
1977 make_decl_rtl.
1978 (begin_subprog_body): Likewise.
1979
615cbd95
AC
19802004-07-26 Arnaud Charlet <charlet@act-europe.fr>
1981
1982 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
1983 optimization, not supported by the tree-ssa back-end.
1984
19852004-07-26 Olivier Hainque <hainque@act-europe.fr>
1986
1987 * s-mastop-irix.adb: Update comments.
1988
1989 * a-except.adb (Exception_Information): Raise Constraint_Error if
1990 exception Id is Null_Id.
1991 This is required behavior, which is more reliably and clearly checked
1992 at the top level interface level.
1993
19942004-07-26 Javier Miranda <miranda@gnat.com>
1995
1996 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
1997 call if a component has no default_expression and the box is used.
1998
1999 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
2000 default_expression and you use box, it behaves as if you had declared a
2001 stand-alone object.
2002 (Resolve_Record_Aggregate): If a component has no default_expression and
2003 you use box, it behaves as if you had declared a stand-alone object.
2004
2005 * sem_ch10.adb (Install_Siblings): Do not make visible the private
2006 entities of private-with siblings.
2007
20082004-07-26 Ed Schonberg <schonberg@gnat.com>
2009
2010 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
2011 for a component of an itype, set the parent pointer for analysis,
2012 there is no list in which to insert it.
2013
2014 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
2015 bona-fide renamings, not for inherited operations.
2016
2017 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
2018 actual for a formal that is an access parameter, create local
2019 finalization list even if the expression is not an aggregate.
2020
20212004-07-26 Ed Schonberg <schonberg@gnat.com>
2022
2023 PR ada/16213
2024 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
2025 Diagnose properly illegal subprogram renamings that are library units.
2026
20272004-07-26 Ed Schonberg <schonberg@gnat.com>
2028
2029 PR ada/15588
2030 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
2031 conversion rewritten as an unchecked conversion, check that original
2032 expression is a variable.
2033
2034 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
2035 unchecked_conversion, create new node rather than rewriting in place,
2036 to preserve original construct.
2037
20382004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2039
2040 * gigi.h (gnat_expand_body): Deleted.
2041
2042 * Make-lang.in: (trans.o): Depends on function.h.
2043
2044 * misc.c: (gnat_expand_body): Moved to here.
2045
2046 * trans.c (gnat_expand_body_1): Deleted.
2047 (gnat_expand_body): Moved from here.
2048 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
2049 (add_stmt): Check for marked visited with global_bindings_p.
2050 (gnat_gimplify_expr, case COMPONENT_REF): New case.
2051 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
2052
2053 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
2054 VIEW_CONVERT_EXPR if not operation type.
2055
2056 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
2057 fat pointer.
2058
2059 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
2060 changes: reformatting of negation operators, removing unneeded
2061 inequality comparison with zero, converting equality comparisons with
2062 zero to negations, changing int/0/1 to bool/false/true, replace calls
2063 to gigi_abort with abort, and various other similar changes.
2064
20652004-07-26 Vincent Celier <celier@gnat.com>
2066
2067 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
2068 "setup".
2069
2070 * make.adb (Gnatmake): Fail when a library is not present and there is
2071 no object directory.
2072
2073 * mlib-prj.adb (Check_Library): No need to check if the library needs
2074 to be rebuilt if there is no object directory, hence no object files
2075 to build the library.
2076
2077 * opt.ads (Setup_Projects): New Boolean flag.
2078
2079 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
2080 Location.
2081 Create directory when Kind /= "" and in "gnat setup". Report error if
2082 directory cannot be created.
2083 (Ada_Check): Create library interface copy dir if it does not exist
2084 and we are in "gnat setup".
2085 (Find_Sources): No error if in "gnat setup" and no Ada sources were
2086 found.
2087 (Language_Independent_Check): Create object directory, exec directory
2088 and/or library directory if they do not exist and we are in
2089 "gnat setup".
2090
2091 * vms_conv.ads: (Command_Type): New command Setup.
2092
2093 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
2094
2095 * vms_data.ads: Add qualifiers/switches for new built-in command
2096 "setup".
2097
b785f485
RH
20982004-07-25 Richard Henderson <rth@redhat.com>
2099
2100 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
2101 DECL_IGNORED_P on RESULT_DECL.
2102
35ae2ed8
AC
21032004-07-20 Olivier Hainque <hainque@act-europe.fr>
2104
2105 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
2106 allocation and potentially overflowing update with
2107 Tailored_Exception_Information. Use the sec-stack free procedural
2108 interface to output Exception_Information instead.
2109
2110 * a-except.adb (To_Stderr): New subprogram for character, and string
2111 version moved from a-exextr to be visible from other separate units.
2112 (Tailored_Exception_Information): Remove the procedural version,
2113 previously used by the default Last_Chance_Handler and not any more.
2114 Adjust various comments.
2115
2116 * a-exexda.adb: Generalize the exception information procedural
2117 interface, to minimize the use of secondary stack and the need for
2118 local buffers when the info is to be output to stderr:
2119 (Address_Image): Removed.
2120 (Append_Info_Character): New subprogram, checking for overflows and
2121 outputing to stderr if buffer to fill is of length 0.
2122 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
2123 (Append_Info_Address, Append_Info_Exception_Name,
2124 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
2125 Append_Info_Basic_Exception_Traceback,
2126 Append_Info_Exception_Information): New subprograms.
2127 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
2128 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
2129 Exception_Info_Maxlength, Exception_Name_Length,
2130 Exception_Message_Length): New subprograms.
2131 (Exception_Information): Use Append_Info_Exception_Information.
2132 (Tailored_Exception_Information): Use
2133 Append_Info_Basic_Exception_Information.
2134 Export services for the default Last_Chance_Handler.
2135
2136 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
2137 other separate units.
2138
21392004-07-20 Vincent Celier <celier@gnat.com>
2140
2141 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
2142
21432004-07-20 Ed Schonberg <schonberg@gnat.com>
2144
2145 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
2146 emit itype references for the designated types of component types that
2147 are declared outside of the full record declaration, and that may
2148 denote a partial view of that record type.
2149
21502004-07-20 Ed Schonberg <schonberg@gnat.com>
2151
2152 PR ada/15607
2153 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
2154 which is the designated type in an access component declaration, to the
2155 list of incomplete dependents of the parent type, to avoid elaboration
2156 issues with out-of-scope subtypes.
2157 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
2158 full view of the parent.
2159
21602004-07-20 Ed Schonberg <schonberg@gnat.com>
2161
2162 PR ada/15610
2163 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
2164 entities that are hidden, such as references to generic actuals
2165 outside an instance.
2166
21672004-07-20 Javier Miranda <miranda@gnat.com>
2168
2169 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
2170 support to the new notation.
2171 (Analyze_Selected_Component): Add call to Try_Object_Operation.
2172
21732004-07-20 Jose Ruiz <ruiz@act-europe.fr>
2174
2175 * s-taprob.adb: Adding the elaboration code required for initializing
2176 the tasking soft links that are common to the full and the restricted
2177 run times.
2178
2179 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
2180 restricted run time has been moved to the package
2181 System.Soft_Links.Tasking.
2182
2183 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
2184 restricted run time has been moved to the package
2185 System.Soft_Links.Tasking.
2186
2187 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
2188
2189 * s-solita.ads, s-solita.adb: New files.
2190
21912004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2192
2193 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
2194 Case_Statement_to_gnu): Split off from gnat_to_gnu.
2195 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
2196 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
2197 Exception_Handler_to_gnu_zcx): Likewise.
2198
6e34d3a3
JM
21992004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
2200
2201 * gigi.h (builtin_function): Declare.
2202
523456db
AC
22032004-07-15 Robert Dewar <dewar@gnat.com>
2204
2205 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
2206 reformatting
2207
2208 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
2209 access values as an example of a warning.
2210
2211 * gnat_rm.texi: Document new attribute Has_Access_Values
2212
2213 * gnat-style.texi: Document that box comments belong on nested
2214 subprograms
2215
2216 * sem_util.ads (Has_Access_Values): Improved documentation
2217
2218 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
2219
2220 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
2221 (Process_Interface_Name): Call to this new procedure
2222 (Set_Extended_Import_Export_External_Name): Call to this new procedure
2223
2224 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
2225
2226 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
2227
2228 * einfo.ads: Minor comment typo fixed
2229
22302004-07-15 Jose Ruiz <ruiz@act-europe.fr>
2231
2232 * snames.adb: Add _atcb.
2233
2234 * snames.ads: Add Name_uATCB.
2235
2236 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
2237 (in the expanded code) when using the restricted run time.
2238
2239 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
2240 a in parameter in order to allow ATCBs to be preallocated (in the
2241 expanded code).
2242
2243 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
2244 order to allow ATCBs to be preallocated. In case of error, the ATCB is
2245 deallocated in System.Tasking.Stages.
2246
2247 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
2248 order to allow ATCBs to be preallocated.
2249
2250 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
2251 here. It was previously done in Initialize_ATCB.
2252
2253 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
2254
2255 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
2256 Restricted run time.
2257
2258 * exp_ch3.adb: When using the Restricted run time, pass the
2259 preallocated Ada_Task_Control_Block when creating a task.
2260
22612004-07-15 Ed Schonberg <schonberg@gnat.com>
2262
2263 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
2264 function call that is itself an actual in an enclosing call, diagnose
2265 problem here rather than assuming that resolution will catch it.
2266
2267 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
2268 the local copy of a generic unit for a formal package, and the generic
2269 is a child unit, install private part of ancestors before compiling
2270 private part of spec.
2271
2272 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
2273 use scope entities rather than tree structures, to handle properly
2274 parent units that are instances rewritten as bodies for inlining
2275 purposes.
2276
2277 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
2278 Remove_Parents): Handle properly a parent unit that is an
2279 instantiation, when the unit has been rewritten as a body for inlining
2280 purposes.
2281
2282 * par.adb (Goto_List): Global variable to collect goto statements in a
2283 given unit, for use in detecting natural loops.
2284
2285 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
2286 use in detecting natural loops.
2287
2288 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
2289 backwards goto's, and rewrite as a infinite loop, to improve locality
2290 of temporaries.
2291
2292 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
2293 subcomponent that includes an indexed reference, to prevent the
2294 generation of copies that would miscompile the desired assignment
2295 statement.
2296 (Build_Task_Image_Decls): Add a numeric suffix to
2297 generated name for string variable, to avoid spurious conflicts with
2298 the name of the type of a single protected object.
2299
2300 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
2301 loop with an explicit exit statement, to avoid generating an
2302 out-of-range value with 'Succ leading to spurious constraint_errors
2303 when compiling with -gnatVo.
2304
23052004-07-15 Thomas Quinot <quinot@act-europe.fr>
2306
2307 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
2308 might not be analyzed yet, even if its Etype is already set (case of an
2309 unchecked conversion built using Unchecked_Convert_To, for example).
2310 If the prefix has already been analyzed, this will be a nop anyway.
2311
2312 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
2313 controller type, or an assignment of a record type with controlled
2314 components, copy only user data, and leave the finalization chain
2315 pointers untouched.
2316
23172004-07-15 Vincent Celier <celier@gnat.com>
2318
2319 * make.adb (Collect_Arguments): Improve error message when attempting
2320 to compile a source not part of any project, when -x is not used.
2321
2322 * prj.ads: (Defined_Variable_Kind): New subtype
2323
2324 * prj-attr.adb (Register_New_Package): Two new procedures to register
2325 a package with or without its attributes.
2326 (Register_New_Attribute): Mew procedure to register a new attribute in a
2327 package.
2328 New attribute oriented subprograms: Attribute_Node_Id_Of,
2329 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
2330 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
2331 Next_Attribute.
2332 New package oriented subprograms: Package_Node_Id_Of,
2333 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
2334
2335 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
2336 type.
2337 (Package_Node_Id): Now a private, self initialized type
2338 (Register_New_Package): New procedure to register a package with its
2339 attributes.
2340 New attribute oriented subprograms: Attribute_Node_Id_Of,
2341 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
2342 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
2343 Next_Attribute.
2344 New package oriented subprograms: Package_Node_Id_Of,
2345 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
2346
2347 * prj-dect.adb (Parse_Attribute_Declaration,
2348 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
2349
2350 * prj-makr.adb (Make): Parse existing project file before creating
2351 other files. Fail if there was an error during parsing.
2352
2353 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
2354 new spec of Prj.Attr.
2355
2356 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
2357 to new spec of Prj.Attr.
2358
23592004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2360
2361 * utils2.c: Fix typo in comment.
2362
23632004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
54805e13
RK
2364
2365 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
2366 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
2367
a1c7af89
AS
23682004-07-14 Andreas Schwab <schwab@suse.de>
2369
2370 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
2371
a5cb3b30
AC
23722004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2373
2374 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
2375 object type.
2376 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
2377 TYPE_STUB_DECL.
2378
2379 * misc.c (gnat_types_compatible_p): New function.
2380 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
2381 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
2382
2383 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
2384 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
2385 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
2386 (mark_visited): Don't mark dummy type.
6615c446 2387 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
a5cb3b30
AC
2388 parameter, we must remove any LJM building from GNU_NAME.
2389 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
2390 (pos_to_constructor): Use int_const_binop.
2391 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
2392 PARM_DECL.
2393
2394 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
2395 (gnat_pushlevel): Set TREE_USE on BLOCK node.
2396 (gnat_install_builtins): Add __builtin_memset.
2397
23982004-07-13 Olivier Hainque <hainque@act-europe.fr>
2399
2400 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
2401 for a renaming, stabilize the initialization expression if we are at a
2402 local level. At the local level, uses of the renaming may be performed
2403 by a direct dereference of the initializing expression, and we don't
2404 want possible variables there to be evaluated for every use.
2405
2406 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
2407 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
2408 them on the way. Account for the fact that we may introduce side
2409 effects in the process.
2410
0976078c
RH
24112004-07-13 Richard Henderson <rth@redhat.com>
2412
2413 * misc.c (default_pass_by_ref): Use pass_by_reference.
2414
9dcf6e73
JM
24152004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
2416
2417 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
2418 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
2419
ac45df5d
RH
24202004-07-08 Richard Henderson <rth@redhat.com>
2421
2422 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
2423 commentary.
2424
15ce9ca2
AC
24252004-07-06 Vincent Celier <celier@gnat.com>
2426
2427 * vms_conv.ads: Minor reformatting.
2428 Alphabetical order for enumerated values of type Command_Type, to have
2429 the command in alphabetical order for the usage.
2430
2431 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
2432 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
2433
2434 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
2435
2436 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
2437 (Add_Archive_Path): Only add the global archive if there is one.
2438 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
2439 or not any object file to put in the global archive, and don't build
2440 a global archive if there is none.
2441 (X_Switches): New table
2442 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
2443 in the X_Switches table, if any.
2444 (Initialize): Make sure the X_Switches table is empty
2445 (Scan_Arg): Record -X switches in table X_Switches
2446
2447 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
2448
2449 * make.adb: Minor comment fix
2450
2451 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
2452 invoked with directory information, add the directory in front of the
2453 path.
2454
2455 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
2456 invoked with directory information, add the directory in front of the
2457 path.
2458
2459 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
2460 when Keep_Temporary_Files is False.
2461 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
2462 directory information, add the directory in front of the path.
2463 When not on VMS, handle new switch -dn before the command to set
2464 Keep_Temporary_Files to True.
2465 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
2466 everywhere.
2467
2468 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
2469 invoked with directory information, add the directory in front of the
2470 path.
2471
24722004-07-06 Thomas Quinot <quinot@act-europe.fr>
2473
2474 * snames.ads, snames.adb (Name_Stub): New name for the distributed
2475 systems annex.
2476
2477 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
2478 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
2479
2480 * g-socket.adb (To_Timeval): Fix incorrect conversion of
2481 Selector_Duration to Timeval for the case of 0.0.
2482
2483 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
2484 documentation from Evolve_And_Then.
2485
24862004-07-06 Jose Ruiz <ruiz@act-europe.fr>
2487
2488 * s-taprop-tru64.adb, s-taprop-os2.adb,
2489 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
2490
24912004-07-06 Robert Dewar <dewar@gnat.com>
2492
2493 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
2494 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
2495 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
2496 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
2497 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
2498 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
2499 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
2500 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
2501 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
2502 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
2503 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
2504 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
2505 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
2506 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
2507 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
2508 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
2509 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
2510 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
2511 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
2512 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
2513 vms_data.ads: Minor reformatting,
2514 Fix bad box comment format.
2515
2516 * gnat_rm.texi: Fix minor grammatical error
2517
2518 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
2519
2520 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
2521 more cases of discriminated records to be recognized as not needing a
2522 secondary stack.
2523 (Has_Access_Values): New function.
2524
2525 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
2526
2527 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
2528 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
2529 with LRM terminology).
2530 Change terminology in comments primitive type => elementary type.
2531
25322004-07-06 Ed Schonberg <schonberg@gnat.com>
2533
2534 PR ada/15602
2535 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
2536 parameters do not impose any requirements on the presence of a body.
2537
25382004-07-06 Ed Schonberg <schonberg@gnat.com>
2539
2540 PR ada/15593
2541 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
2542 compilation unit and is in an open scope at the point of instantiation,
2543 assume that a body may be present later.
2544
25452004-07-06 Ed Schonberg <schonberg@gnat.com>
2546
2547 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
2548 Improve error message when specified size is not supported.
2549
2550 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
2551 is never a primitive operation.
2552
cb42deba
AS
25532004-07-05 Andreas Schwab <schwab@suse.de>
2554
2555 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
2556 RECORD_OR_UNION_CHECK.
2557 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
2558
98877933
KC
25592004-07-04 Kelley Cook <kcook@gcc.gnu.org>
2560
2561 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
2562 dependency on xgnatugn, instead build it via a submake.
2563 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
2564
8fff4fc1
RH
25652004-07-04 Richard Henderson <rth@redhat.com>
2566
2567 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
2568
4dfa0342
RH
25692004-07-01 Richard Henderson <rth@redhat.com>
2570
2571 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
2572 * utils.c (max_size): Likewise.
2573
909f21b3
RK
25742004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2575
2576 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
2577 and rest_of_type_compilation; add arg to create_*_decl.
2578 (annotate_decl_with_node): Deleted.
2579 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
2580 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
2581 (get_current_block_context, gnat_pushdecl): New declarations.
2582 (gnat_init_stmt_group): Likewise.
2583 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
2584 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
2585 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
2586 (gnat_init): Call gnat_init_stmt_group.
2587 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
2588 (gnu_pending_elaboration_list): Deleted.
2589 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
2590 (gigi): Rearrange initialization calls and move some to last above.
2591 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
2592 Delete calls to add_decl_expr; add arg to create_*_decl.
2593 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
6615c446 2594 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
909f21b3
RK
2595 begin_subprog_body and call it.
2596 Don't push and pop ggc context.
2597 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
2598 (add_stmt): Remove handling of DECL_EXPR from here.
2599 If not in function, mark visited.
2600 (add_decl_expr): Put global at top level.
2601 Check for cases of DECL_INITIAL we have to handle here.
2602 (process_type): Add extra arg to create_type_decl.
2603 (build_unit_elab): Rework to just gimplify.
2604 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
2605 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
2606 (get_pending_elaborations, pending_elaborations_p): Likewise.
2607 (push_pending_elaborations, pop_pending_elaborations): Likewise.
2608 (get_elaboration_location, insert_elaboration_list): Likewise.
2609 (gnat_binding_level): Renamed from ada_binding_level.
2610 (init_gnat_to_gnu): Don't clear pending_elaborations.
2611 (global_bindings_p): Treat as global if no current_binding_level.
2612 (set_current_block_context): New function.
2613 (gnat_pushdecl): Renamed from pushdecl; major rework.
2614 All callers changed.
2615 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
2616 (finish_record_type): Call call pushdecl for stub decl.
2617 (function_nesting_depth): Deleted.
2618 (begin_subprog_body): Delete obsolete code.
2619 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
6615c446 2620
246d2ceb
AC
26212004-06-28 Robert Dewar <dewar@gnat.com>
2622
2623 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
2624 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
2625 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
2626 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
2627 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
2628
2629 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
2630 deal with problem of inefficient slices on machines with strict
2631 alignment, when the slice is a component of a composite.
2632
2633 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
2634 machines, we need the check there as well.
2635
26362004-06-28 Ed Schonberg <schonberg@gnat.com>
2637
2638 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
2639 determine safe copying direction for overlapping slice assignments
2640 when component is controlled.
2641
2642 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
2643 formal derived type in the actual for a formal package are visible in
2644 the enclosing instance.
2645
26462004-06-28 Ed Schonberg <schonberg@gnat.com>
2647
2648 PR ada/15600
2649 * sem_util.adb (Trace_Components): Diagnose properly an illegal
2650 circularity involving a private type whose completion includes a
2651 self-referential component.
2652 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
2653 renaming or an instantiation from an implicit derived operation.
2654
26552004-06-28 Pascal Obry <obry@gnat.com>
2656
2657 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
2658 DLL.
2659 (Library_File_Name_For): Idem.
2660
26612004-06-28 Matthew Gingell <gingell@gnat.com>
2662
2663 * g-traceb.ads: Add explanatory note on the format of addresses
2664 expected by addr2line.
2665
26662004-06-28 Jerome Guitton <guitton@act-europe.fr>
2667
2668 * Makefile.in: Force debugging information on s-tasdeb.adb,
2669 a-except.adb and s-assert.adb needed by the debugger.
2670
26712004-06-28 Vincent Celier <celier@gnat.com>
2672
2673 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
2674 Need_To_Build_Lib.
2675 (Gnatmake): Ditto.
2676
2677 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
2678
2679 * prj.adb: Minor reformatting
2680 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
2681
2682 * prj.ads: Comment updates
2683 Minor reformatting
2684 (Project_Data): Change Flag1 to Need_To_Build_Lib.
2685 Remove Flag2: not used.
2686
2687 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
2688 declaration.
2689
2690 * gnat_ugn.texi: Put a "null;" declaration in one project file example
2691
2692 * gnat_rm.texi: Document Empty declarations "null;".
2693
2694 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
2695 front of the linker options.
2696 (Link_Foreign): Put the global archives and the libraries in front of
2697 the linker options.
2698
26992004-06-28 Javier Miranda <miranda@gnat.com>
2700
2701 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
2702 (RTU_Loaded): Code cleanup
2703 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
2704 withed predefined units.
2705
2706 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
2707 explicitly withed predefined units.
2708 Fix typo in comment
2709
2710 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
2711 explicitly withed predefined units.
2712
bce3da32
RK
27132004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2714
2715 * ada-tree.def (DECL_STMT): Deleted.
2716 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
2717 (DECL_STMT_VAR): Deleted.
2718 * decl.c: add_decl_stmt now add_decl_expr.
2719 * gigi.h: Likewise.
2720 * trans.c: Likewise.
2721 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
2722 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
2723 (add_stmt): Only handle padded type here.
2724 (add_stmt_with_node): Allow gnat_node to not be present.
2725 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
2726 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
2727 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
2728 make a SAVE_EXPR for the entire fat pointer.
2729 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
2730 (create_index_type): Make a DECL_EXPR.
2731 (end_subprog_body): Don't call allocate_struct_function here but
2732 do clear cfun.
2733
0da2c8ac
AC
27342004-06-25 Pascal Obry <obry@gnat.com>
2735
2736 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
2737 Relocatable from Build_Dynamic_Library call.
2738
2739 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
2740 Relocatable are now synonym.
2741
2742 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
2743
2744 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
2745 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
2746 call.
2747
2748 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
2749 Lib_Address and Relocatable.
2750 (Default_DLL_Address): Removed.
2751
6615c446
JO
2752 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
2753 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
0da2c8ac
AC
2754 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
2755 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
2756 (Default_DLL_Address): Removed.
2757
2758 * mlib-tgt-mingw.adb: Ditto.
2759 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
2760
2761 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
2762 the initial thread stack size.
2763
2764 * a-strmap.ads: Move package L to private part as it is not used in
2765 the spec. Found while reading code.
2766
27672004-06-25 Olivier Hainque <hainque@act-europe.fr>
2768
2769 * tracebak.c: Introduce support for a GCC infrastructure based
2770 implementation of __gnat_backtrace.
2771
2772 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
2773 any more. Use accessors instead. This eases maintenance and relaxes
2774 some alignment constraints.
2775 (_GNAT_Exception structure): Remove the Ada specific fields
2776 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
2777 a-exexpr.adb.
2778 (is_handled_by, __gnat_eh_personality): Replace component references to
2779 exception structure by use of the new accessors.
2780
2781 * init.c (__gnat_initialize): Adjust comments to match the just
2782 reverted meaning of the -static link-time option.
2783
2784 * adaint.c (convert_addresses): Arrange not to define a stub for
2785 mips-irix any more, as we now want to rely on a real version from a
2786 recent libaddr2line.
2787
2788 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
2789 the personality routine can use them and not have to rely on a C
2790 counterpart of the record anymore. This simplifies maintenance and
2791 relaxes the constraint of having Standard'Maximum_Alignment match
2792 BIGGEST_ALIGNMENT.
2793 Update comments, and add a section on the common header alignment issue.
2794
27952004-06-25 Geert Bosch <bosch@gnat.com>
2796
2797 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
2798 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
2799
28002004-06-25 Robert Dewar <dewar@gnat.com>
2801
2802 * gnat_rm.texi: Fix section on component clauses to indicate that the
2803 restriction on byte boundary placement still applies for bit packed
2804 arrays.
2805 Add comment on stack usage from Initialize_Scalars
2806
2807 * gnat_ugn.texi: Add documentation for -gnatyLnnn
2808
2809 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
2810 limiting nesting level.
2811
2812 * usage.adb: Add line for -gnatyLnnn switch
2813
2814 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
2815 sem_ch13.adb, exp_aggr.adb: Minor reformatting
2816
2817 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
2818 type as well as on the subtype. This corrects a problem in freeze in
2819 setting alignments of atomic types.
2820
2821 * sem_eval.ads: Minor comment typo fixed
2822
2823 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
2824 level. Minor reformatting.
2825
2826 * fname.adb (Is_Predefined_File_Name): Require a letter after the
2827 minus sign. This means that file names like a--b.adb will not be
2828 considered predefined.
2829
2830 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
2831 record Test new flag and give diagnostic for bad component clause.
2832 (Freeze_Entity): Set alignment of array from component alignment in
2833 cases where this is safe to do.
2834
2835 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
2836 arrays.
2837
2838 * cstand.adb: (Create_Standard): Set alignment of String to 1
2839
2840 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
2841
2842 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
2843 code in the common constrained array cases.
2844
2845 * a-storio.adb: Change implementation to avoid possible alignment
2846 problems on machines requiring strict alignment (data should be moved
2847 as type Buffer, not type Elmt).
2848
2849 * checks.adb (Apply_Array_Size_Check): Improve these checks by
2850 killing the overflow checks which we really do not need (64-bits is
2851 enough).
2852
28532004-06-25 Vincent Celier <celier@gnat.com>
2854
2855 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
2856 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
2857 inconditionally for the main project.
2858 (Recursive_Add_Archives.Add_Archive_Path): New procedure
2859 (Link_Executables.Check_Time_Stamps): New procedure
2860 (Link_Executables.Link_Foreign): New procedure
2861 Changes made to reduce nesting level of this package
2862 (Check): New procedure
2863 (Add_Switches): When not in quiet output, check that a switch is not
2864 the concatenation of several valid switches. If it is, issue a warning.
2865 (Build_Global_Archive): If the global archive is rebuilt, linking need
2866 to be done.
2867 (Compile_Sources): Rebuilding a library archive does not imply
2868 rebuilding the global archive.
2869 (Build_Global_Archive): New procedure
2870 (Build_Library): New name for Build_Archive, now only for library
2871 project
2872 (Check_Archive_Builder): New procedure
2873 (Create_Global_Archive_Dependency_File): New procedure
2874 (Gprmake): Call Build_Global_Archive before linking
2875 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
2876 throughout.
2877 (Scan_Arg): Display the Copyright notice when -v is used
2878
2879 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
2880 for gnatls.
2881
2882 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
2883 COMPILE.
2884 Add new GNAT LIST qualifier /FILES=
2885 Added qualifier /DIRECTORY= to GNAT METRIC
2886 Added qualifier /FILES= to GNAT METRIC
2887 Added qualifier /FILES to GNAT PRETTY
2888
2889 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
2890 to take into account both versions of the switch.
2891
2892 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
2893 always be the last switch to the gcc driver. Disable switch storing so
2894 that switches automatically added by the gcc driver are not put in the
2895 ALI file.
2896
2897 * prj.adb (Project_Empty): Take into account changes in components of
2898 Project_Data.
2899
2900 * prj.ads (Languages_Processed): New enumaration value All_Languages.
2901
2902 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
2903 used. Split Boolean component Ada_Sources_Present in two Boolean
2904 components Ada_Sources_Present and Other_Sources_Present.
2905 Minor reformatting
2906
2907 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
2908 instead of Sources_Present.
2909 (Set_Ada_Paths.Add.Recursive_Add): Ditto
2910
2911 * prj-nmsc.adb: Minor reformatting
2912 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
2913 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
2914 Check_Ada_Naming_Scheme.
2915 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
2916 throughout.
2917
2918 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
2919 In_Limited.
2920 Make sure that all cycles where there is at least one "limited with"
2921 are detected.
2922 (Parse_Single_Project): New Boolean parameter In_Limited
2923
2924 * prj-proc.adb (Recursive_Check): When Process_Languages is
2925 All_Languages, call first Prj.Nmsc.Ada_Check, then
2926 Prj.Nmsc.Other_Languages_Check.
2927
2928 * prj-proc.adb (Process): Use Ada_Sources_Present or
2929 Other_Sources_Present (instead of Sources_Present) depending on
2930 Process_Languages.
2931
2932 * lang-specs.h: Keep -g and -m switches in the same order, and as the
2933 last switches.
2934
2935 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
2936 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
2937 False.
2938 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
2939 False.
2940
2941 * lib.ads (Disable_Switch_Storing): New procedure.
2942
2943 * make.adb: Modifications to reduce nesting level of this package.
2944 (Check_Standard_Library): New procedure
2945 (Gnatmake.Check_Mains): New procedure
2946 (Gnatmake.Create_Binder_Mapping_File): New procedure
2947 (Compile_Sources.Compile): Add switch -gnatez as the last option
2948 (Display): Never display -gnatez
2949
6615c446 2950 * Makefile.generic:
0da2c8ac
AC
2951 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
2952
2953 * gnatcmd.adb (Check_Project): New function
2954 (Process_Link): New procedure to reduce nesting depth
2955 (Check_Files): New procedure to reduce the nesting depth.
2956 For GNAT METRIC, include the inherited sources in extending projects.
2957 (GNATCmd): When GNAT LS is invoked with a project file and no files,
2958 add the list of files from the sources of the project file. If this list
2959 is too long, put it in a temp text files and use switch -files=
2960 (Delete_Temp_Config_Files): Delete the temp text file that contains
2961 a list of source for gnatpp or gnatmetric, if one has been created.
2962 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
2963 in the project file is too large, create a temporary text file that
2964 list them and pass it to the tool with "-files=<temp text file>".
2965 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
2966
2967 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
2968 generated file is in not in Ada.
2969
2970 * gnatls.adb: Remove all parameters And_Save that are no longer used.
2971 (Scan_Ls_Arg): Add processing for -files=
2972 (Usage): Add line for -files=
2973
2974 * g-os_lib.adb (On_Windows): New global constant Boolean flag
2975 (Normalize_Pathname): When on Windows and the path starts with a
2976 directory separator, make sure that the resulting path will start with
2977 a drive letter.
2978
2979 * clean.adb (Clean_Archive): New procedure
2980 (Clean_Project): When there is non-Ada code, delete the global archive,
2981 the archive dependency files, the object files and their dependency
2982 files, if they exist.
2983 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
2984
29852004-06-25 Thomas Quinot <quinot@act-europe.fr>
2986
2987 * sinfo.ads: Fix typo in comment.
2988
2989 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
2990 the TSS for remote access-to-subprogram types, since these TSS are
2991 always present once the type has been analyzed.
2992 (RAS_E_Dereference): Same.
2993
2994 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
2995 reference raises Bad_Attribute, mark the reference as analyzed so the
2996 node (and any children resulting from rewrites that could have occurred
2997 during the analysis that ultimately failed) is not analyzed again.
2998
2999 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
3000
3001 * exp_dist.adb: Minor comment fix.
3002
3003 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
3004 type is an anonymous access type, no unchecked deallocation of the
3005 allocated object can occur. If the object is controlled, attach it with
3006 a count of 1. This allows attachment to the Global_Final_List, if
3007 no other relevant list is available.
3008 (Get_Allocator_Final_List): For an anonymous access type that is
3009 the type of a discriminant or record component, the corresponding
3010 finalisation list is the one of the scope of the type.
3011
30122004-06-25 Ed Schonberg <schonberg@gnat.com>
3013
3014 * sem_ch3.adb (Replace_Type): When computing the signature of an
3015 inherited subprogram, use the first subtype if the derived type
3016 declaration has no constraint.
3017
3018 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
3019 before applying previous optimization. Minor code cleanup.
3020
3021 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
3022 placed at the beginning of an unpacked record without explicit
3023 alignment, a slice of it will be aligned and does not need a copy when
3024 used as an actual.
3025
30262004-06-25 Ed Schonberg <schonberg@gnat.com>
3027
3028 PR ada/15591
3029 PR ada/15592
3030 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
3031 reference is written with expressions mimicking parameters.
3032
30332004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
3034
3035 PR ada/15589
3036 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
3037 STEP 2a. The constraints of a full type declaration of a derived record
3038 type are checked for conformance with those declared in the
3039 corresponding private extension declaration. The message
3040 "not conformant with previous declaration" is emitted if an error is
3041 detected.
3042
30432004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
3044
3045 * g-traceb.ads: Document the need for -E binder switch in the spec.
3046
3047 * g-trasym.ads: Document the need for -E binder switch in the spec.
3048
30492004-06-25 Jose Ruiz <ruiz@act-europe.fr>
3050
3051 * sem_prag.adb: Add handling of pragma Detect_Blocking.
3052
3053 * snames.h, snames.ads, snames.adb: Add entry for pragma
3054 Detect_Blocking.
3055
3056 * s-rident.ads: Change reference to pragma Detect_Blocking.
3057
3058 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
3059 system.ads.
3060
3061 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
3062 to indicate whether pragma Detect_Blocking is active.
3063
3064 * par-prag.adb: Add entry for pragma Detect_Blocking.
3065
3066 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
3067 of not handling WITH.
3068 Note that this replaces the previous update which was incorrect.
3069
30702004-06-25 Javier Miranda <miranda@gnat.com>
3071
3072 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
3073 use-clauses to have a clean environment.
3074
3075 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
3076 the installation of the use-clauses to stablish a clean environment in
3077 case of compilation of a separate unit; otherwise the call to
3078 use_one_package is protected by the barrier Applicable_Use.
3079
3080 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
3081 the installation of the use-clauses to stablish a clean environment in
3082 case of compilation of a separate unit.
3083 (End_Use_Clauses): Minor comment cleanup.
3084
30852004-06-25 Sergey Rybin <rybin@act-europe.fr>
3086
3087 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
3088
65355d53
RH
30892004-06-23 Richard Henderson <rth@redhat.com>
3090
3091 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
3092
c0e3aa48
RK
30932004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3094
3095 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
3096 now bool instead of int.
3097 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
3098 * trans.c (gnu_switch_label_stack): New function.
3099 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
3100 elaboration of renamed entity returns.
3101 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
3102 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
3103 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
3104 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
3105 DECL_SIZE_UNIT and simplify variable-sized case.
3106 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
3107 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
3108 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
3109 (build_unit_elab): Disable for now.
3110 * utils.c (mark_visited): New function.
3111 (pushdecl): Walk tree to call it for global decl.
3112 (update_pointer_to): Update all variants of pointer and ref types.
3113 Add arg to COMPONENT_REF.
3114 (convert): Likewise.
3115 Move check for converting between variants lower down.
3116 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
3117 (build_allocator): Don't force type of MODIFY_EXPR.
3118 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
3119 put_var_into_stack.
3120
966389ee
RK
31212004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3122
3123 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
3124 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
3125 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
3126 subprograms.
3127 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
3128 all callers changed.
3129 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
3130 the way that EXIT_STMT finds the loop label.
3131 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
3132 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
3133 (add_stmt): Use annotate_with_locus insted of setting directly.
3134 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
3135 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
3136 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
3137 (build_vms_descriptor): Add extra args to ARRAY_REF.
3138 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
3139 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
3140 New cases.
3141 (build_binary_op): Don't make explicit CONVERT_EXPR.
3142 Add extra rgs to ARRAY_REF.
3143
cc335f43
AC
31442004-06-14 Pascal Obry <obry@gnat.com>
3145
3146 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
3147 Windows. Fix minor typo.
3148
3149 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
3150 which is now supported on Windows. With this implementation using the
3151 Library Project feature is no different on Windows than on UNIX.
3152
31532004-06-14 Vincent Celier <celier@gnat.com>
3154
3155 * makegpr.adb (Compile_Sources): Nothing to do when there are no
3156 non-Ada sources.
3157
3158 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
3159
3160 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
3161 found, show the project name and the path of the previously parsed
3162 project file.
3163
31642004-06-14 Ed Schonberg <schonberg@gnat.com>
3165
3166 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
3167 array, avoid copying the actual before the call.
3168
31692004-06-14 Thomas Quinot <quinot@act-europe.fr>
3170
3171 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
3172 Instead, allocate memory on worst-case alignment assumptions, and then
3173 return an aligned address within the allocated zone.
3174
31752004-06-14 Robert Dewar <dewar@gnat.com>
3176
3177 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
3178 elab entities in predefined units in No_Run_Time_Mode.
3179 (Gen_Adainit_C): Same fix
3180 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
3181 units in No_Run_Time_Mode
3182 (Gen_Elab_Calls_C): Same fix
3183
3184 * symbols-vms-alpha.adb: Minor reformatting
3185
3186 * g-debpoo.ads: Minor reformatting
3187
3188 * lib.adb (In_Same_Extended_Unit): Version working on node id's
3189
3190 * lib.ads (In_Same_Extended_Unit): Version working on node id's
3191
3192 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
3193 working on nodes.
3194
3195 * make.adb: Minor reformatting
3196
3197 * par-ch12.adb: Minor reformatting
3198
3199 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
3200
3201 * prj-strt.adb: Minor reformatting
3202
3203 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
3204 be more general.
3205
3206 * sem_attr.adb: Minor reformatting
3207
3208 * sem_ch7.adb: Minor reformatting
3209
3210 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
3211 for type in the same unit as the object declaration.
3212
3213 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
3214 static string expressions and not just string literals.
3215 Minor reformatting
3216 (Set_Warning): Reset restriction warning flag for restriction pragma
3217 Implement pragma Profile_Warnings
3218 Implement pragma Profile (Restricted)
3219 Give obolescent messages for old restrictions and pragmas
3220
3221 * snames.h, snames.ads, snames.adb: Add new entry for pragma
3222 Profile_Warnings.
3223
3224 * s-rident.ads: Add declarations for restrictions required by profile
3225 Restricted and profile Ravenscar.
3226
3227 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
3228
3229 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
3230 configuration pragmas.
3231
5453d5bd
AC
32322004-06-11 Vincent Celier <celier@gnat.com>
3233
3234 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
3235 gnatsym, when symbol policy is Restricted.
3236
3237 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
3238 gnatsym, when symbol policy is Restricted.
3239
3240 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
3241 read the symbol file.
3242 (Finalize): Fail in symbol policy Restricted if a symbol in the original
3243 symbol file is not in the object files. Do not create a new symbol file
3244 when symbol policy is Restricted.
3245
3246 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
3247 in Scng.
3248
3249 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
3250 Restricted.
3251 (Usage): Line for new switch -R
3252
3253 * make.adb (Initialize): When the platform is not VMS, add the
3254 directory where gnatmake is invoked in the front of the path, if
3255 gnatmake is invoked with directory information. Change the Scan_Args
3256 while loop to a for loop.
3257 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
3258 if Depth is equal or greater than the proposed depth, there is nothing
3259 to do.
3260 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
3261 instead of 0.
3262
3263 * prj.ads: Add new symbol policy Restricted.
3264
3265 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
3266 with the new parameters Check_All_Labels and Case_Location.
3267
3268 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
3269 (Library_Symbol_File needs to be defined).
3270
3271 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
3272 and Case_Location If Check_All_Labels is True, check that all values of
3273 the string type are used, and output warning(s) if they are not.
3274
3275 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
3276 and Case_Location.
3277
3278 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
3279
3280 * gnat_ugn.texi: Update documentation about the library directory in
3281 Library Projects.
3282
3283 * makegpr.adb (Display_Command): In verbose mode, also display the
3284 value of the CPATH env var, when the compiler is gcc.
3285 (Initialize): Change the Scan_Args while loop to a for loop
3286 (Compile_Individual_Sources): Change directory to object directory
3287 before compilations.
3288
3289 * symbols.ads: New symbol policy Restricted.
3290
32912004-06-11 Olivier Hainque <hainque@act-europe.fr>
3292
3293 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
3294 is now taken care of internally in the Exception_Propagation package
3295 and does not require clients assistance any more.
3296
3297 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
3298 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
3299 functions. Helpers to maintain a predicate required in the handling of
3300 occurrence transfer between tasks.
3301 This is now handled internally and does not require clients assistance
3302 for the setup/propagate separation anymore.
3303 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
3304 allocation strategy, handle the Setup_And_Not_Propagated predicate and
3305 document.
3306
3307 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
3308 raise_after_setup, now that everything is handled internally within the
3309 setup/propagation engine.
3310
33112004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
3312
3313 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
3314 Add additional conditions for the case of an actual being a simple
3315 name or literal. Improve inlining by preventing the generation
3316 of temporaries with a short lifetime (one use).
3317
33182004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
3319
3320 PR ada/15587
3321
3322 * einfo.ads: Minor comment updates for Has_Completion and
3323 E_Constant list of flags.
3324
3325 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
3326 and constant redeclarations now set the Has_Completion flag of their
3327 defining identifiers.
3328
3329 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
3330 Inspect_Deferred_Constant_Completion.
3331 Used to detect private deferred constants that have not been completed
3332 either by a constant redeclaration or pragma Import. Emits error message
3333 "constant declaration requires initialization expression".
3334
3335 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
3336 completes a deferred constant.
3337
33382004-06-11 Geert Bosch <bosch@gnat.com>
3339
3340 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
3341
3342 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
3343 calculating exponent for scaling denormal numbers.
3344 (Leading_Part): Properly raise Constraint_Error for zero or negative
3345 Adjustment.
3346 (Remainder): Properly raise Constraint_Error for zero divisor.
3347
33482004-06-11 Thomas Quinot <quinot@act-europe.fr>
3349
3350 * sem_util.adb: Minor reformatting.
3351
3352 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
3353 dereference when accessing the entry parameter record.
3354 (Check_Array_Type): Always check for possible implicit dereference.
3355 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
3356 Abort if a pointer is still present (denoting that an implicit
3357 dereference was left in the tree by the front-end).
3358
3359 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
3360 dereference when accessing the entry parameter record.
3361 (Check_Array_Type): Always check for possible implicit dereference.
3362 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
3363 Abort if a pointer is still present (denoting that an implicit
3364 dereference was left in the tree by the front-end).
3365
33662004-06-11 Emmanuel Briot <briot@act-europe.fr>
3367
3368 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
3369 message, like the compiler itself does. Easier to parse the output.
3370
3371 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
3372
3373 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
3374 be base names, and not includes directories.
3375
33762004-06-11 Arnaud Charlet <charlet@act-europe.fr>
3377
3378 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
3379 so that dependencies are properly taken into account by make.
3380
33812004-06-11 Arnaud Charlet <charlet@act-europe.fr>
3382
3383 PR ada/15622
3384 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
3385 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
3386
33872004-06-11 Jerome Guitton <guitton@act-europe.fr>
3388
3389 * Makefile.in (install-gnatlib): install target-specific run-time files.
3390
3391 * Make-lang.in: Remove obsolete targets.
3392
33932004-06-11 Ed Schonberg <schonberg@gnat.com>
3394
3395 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
3396 specification, to catch misuses of program unit names.
3397
3398 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
3399 superfluous conversions in an instance.
3400
34012004-06-11 Ed Schonberg <schonberg@gnat.com>
3402
3403 PR ada/15403
3404
3405 * sem_ch12.adb (Save_References): If operator node has been folded to
3406 enumeration literal, associated_node must be discarded.
3407
34082004-06-11 Jose Ruiz <ruiz@act-europe.fr>
3409
3410 * s-stchop-vxworks.adb: Add required pragma Convention to
3411 Task_Descriptor because it is updated by a C function.
3412
a98f59be
AC
34132004-06-08 Arnaud Charlet <charlet@act-europe.fr>
3414
3415 PR ada/15568
3416
3417 * Makefile.in: Remove target specific SO_OPT on IRIX
3418
821e1ea1
RK
34192004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3420
3421 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
3422 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
3423 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
3424 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
3425 (STMT_STMT, USE_STMT): New statement codes.
3426 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
3427 * ada-tree.h: Reflect above changes.
3428 (struct tree_loop_id): Deleted.
3429 (union lang_tree_node, struct lang_decl, struct lang_type):
3430 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
3431 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
3432 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
3433 (IS_ADA_STMT): New macro.
3434 * decl.c (annotate_decl_with_node): New function.
3435 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
3436 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
3437 Call add_stmt_with_node to do needed assignments.
3438 Add call to update setjmp buffer directly, not via EXPR_STMT.
3439 (maybe_variable): Argment GNAT_NODE deleted.
3440 * gigi.h (maybe_variable): Likewise.
3441 (make_transform, add_stmt_with_node, set_block_for_group): New.
3442 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
3443 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
3444 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
3445 (set_lineno, set_lineno_from_sloc): Likewise.
3446 (record_code_position, insert_code_for): Likewise.
3447 (gnat_poplevel): Now returns void.
3448 (end_subprog_body): Now takes argument.
3449 * misc.c (cgraph.h, tree-inline.h): New includes.
3450 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
3451 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
3452 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
3453 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
3454 (gnat_parse_file): Don't set immediate_size_expand.
3455 Call cgraph functions.
3456 (gnat_expand_expr): Remove most cases.
3457 (record_code_position, insert_code_for): Remove from here.
3458 * trans.c (toplev.h, tree-gimple.h): Now included.
3459 (discard_file_names): Deleted.
3460 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
3461 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
3462 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
3463 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
3464 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
3465 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
3466 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
3467 (set_block_for_group, add_stmt_list): Likewise.
3468 (start_stmt_group): Renamed from start_block_stmt.
3469 (end_stmt_group): Likewise, from end_block_stmt.
3470 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
3471 (gigi): Don't set discard_file_names or call set_lineno.
3472 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
3473 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
3474 Numerous changes throughout to reflect new names and complete
3475 function-at-a-time implementation.
3476 (gnat_expand_stmt): Delete or comment out all cases.
3477 (process_inlined_subprograms): Use add_stmt.
3478 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
3479 call set_lineno; also remove unneeded block handling.
3480 (process_type): Remove unneeded block handling.
3481 (build_unit_elab): Remove calls to deleted functions.
3482 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
3483 (tree-dump.h): Likewise.
3484 (struct ada_binding_level): Add field jmpbuf_decl.
3485 (gnat_define_builtin, gnat_install_builtins): New.
3486 (gnat_gimplify_function, gnat_finalize): Likewise.
3487 (gnat_poplevel): No longer return BLOCK, set it instead.
3488 Remove code dealing with nested functions.
3489 (gnat_init_decl_processing): Also set size_type_node.
3490 Call gnat_install_builtins.
3491 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
3492 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
3493 Remove special-case for "main".
3494 (end_subprog_body): Add arg and rework for tree-ssa.
3495 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
3496 Add case for BOOLEAN_TYPE.
3497 * utils2.c (rtl.h): Now include.
3498 (build_call_raise): Test Debug_Flag_NN directly.
3499 (build_call_alloc_dealloc): Don't use local stack allocation for now.
3500 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
3501 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
3502
0ab80019
AC
35032004-06-07 Robert Dewar <dewar@gnat.com>
3504
3505 * a-direct.ads, einfo.ads: Minor comment updates
3506
3507 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
3508 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
3509 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
3510 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
3511 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
3512
3513 * s-interr-sigaction.adb: Remove unreferenced variable
3514 (Attached_Interrupts). Minor reformatting.
3515 Avoid use of variable I (replace by J).
3516
3517 * par-ch10.adb: Fix text of one error message
3518
3519 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
3520 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
3521 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
3522 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
3523 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
3524 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
6615c446 3525 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
0ab80019
AC
3526 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
3527 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
3528 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
3529 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
3530 2005 support.
3531
35322004-06-07 Doug Rupp <rupp@gnat.com>
3533
3534 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
3535
3536 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
3537
3538 * mlib-tgt-vms-ia64.adb: New file.
3539
3540 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
3541 Add mlib-tgt-vms-ia64.adb
3542 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
3543 Move to alpha specific ifeq section.
3544 Add VMS specific versions of symbols.adb
3545 Renaming of 5q vms files.
3546
3547 * 5qsystem.ads renamed to system-vms_64.ads.
3548
35492004-06-07 Vincent Celier <celier@gnat.com>
3550
3551 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
3552 explain that when a time of day corresponding to the non existing hour
3553 on the day switching to DST is specified, Split may return a different
3554 value for Seconds.
3555
3556 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
3557 to GNAT PRETTY.
3558
3559 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
3560 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
3561
3562 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
3563 to False.
3564 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
3565 the linking options.
3566 (Build_Library.Check_Libs): On VMS, if there is a dependency on
3567 g-trasym.ads, set Gtrasymobj_Needed to True.
3568
3569 * prj-attr.adb: Add new package Metrics for gnatmetric
3570
3571 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
3572 canonical case to take into account files with upper case characters on
3573 Windows.
3574 (Ada_Check): Load the reference symbol file name in the name buffer to
3575 check it, not the symbol file name.
3576
3577 * snames.ads, snames.adb: Add standard name Metrics (name of project
3578 file package for gnatmetric).
3579
3580 * vms_conv.ads: Add Metric to Comment_Type
3581
3582 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
3583
3584 * vms_data.ads: Add qualifiers for GNAT METRIC
3585
3586 * makegpr.adb (Link_Executables): Take into account the switches
3587 specified in package Linker of the main project.
3588
35892004-06-07 Thomas Quinot <quinot@act-europe.fr>
3590
3591 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
3592 the index of the last element is Units.Last, not Units.Table'Last
3593 (which is usually not a valid index within the actually allocated
3594 storage for the table).
3595
3596 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
3597 determines whether to generate a call to a checked storage pool
3598 Dereference action.
3599 Generate such a call only for a dereference that either comes from
3600 source, or is the result of rewriting a dereference that comes from
3601 source.
3602
36032004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
3604
3605 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
3606
36072004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
3608
3609 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
3610 file level, elaborate the stride for inner dimensions in alignment
3611 units, not bytes.
3612
3613 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
3614 in a comment.
3615
36162004-06-07 Javier Miranda <miranda@gnat.com>
3617
3618 * exp_ch6.adb: Correct wrong modification in previous patch
3619
36202004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
3621
3622 * g-trasym.ads: Corrected comment to properly reflect level of support
3623 on VMS.
3624
36252004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
3626
3627 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
3628 includes case of a variable referenced on the left hand side of an
3629 assignment, therefore remove redundant code. Variables and prefixes of
3630 indexed or selected components are now marked as referenced on left
3631 hand side. Warnings are now properly emitted when variables or prefixes
3632 are assigned but not read.
3633
3634 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
3635 left hand side referenced variables. Private access types do not
3636 produce the warning "variable ... is assigned but never read".
3637 Add also additional checks to left hand side referenced variables.
3638 Aliased, renamed objects and access types do not produce the warning
3639 "variable ... is assigned but never read" since other entities may read
3640 the memory location.
3641
36422004-06-07 Jerome Guitton <guitton@act-europe.fr>
3643
3644 * Makefile.in: In the powerpc/vxworks-specific section, restore
3645 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
3646 by mistake).
3647
36482004-06-07 Ed Schonberg <schonberg@gnat.com>
3649
3650 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
3651 predefined operators.
3652 Removes spurious type errors from g-trasym-vms.adb.
3653
3654 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
3655 distinct from the operator appearing in the source, call appropriate
3656 routine to insert conversions when needed, and complete resolution of
3657 node.
3658 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
3659 interpretations for rewritten right operand.
3660 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
3661 the other operand is overloaded and the context is a type conversion.
3662
36632004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3664
3665 * ada-tree.def (BLOCK_STMT): Now has two operands.
3666 (BREAK_STMT): New.
3667
3668 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
3669
3670 * gigi.h: (gnat_poplevel): Now returns a tree.
3671
3672 * trans.c (end_block_stmt): Add arg; all callers changed.
3673 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
3674 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
3675 (add_stmt): Set TREE_TYPE.
3676 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
3677 (gnat_expand_stmt, case BREAK_STMT): New case.
3678
3679 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
3680
36812004-06-07 Jose Ruiz <ruiz@act-europe.fr>
3682
3683 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
3684 procedure Set_Stack_Size that is not needed.
3685
36862004-06-07 Sergey Rybin <rybin@act-europe.fr>
3687
3688 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
3689 used for gnatpp input file and for the files upon which it depends
3690
36912004-06-07 Ben Brosgol <brosgol@gnat.com>
3692
3693 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
3694
36952004-06-07 Arnaud Charlet <charlet@act-europe.fr>
3696
3697 * gnatvsn.ads: Bump version numbers appropriately.
3698 Add new build type.
3699
37002004-06-07 Pascal Obry <obry@gnat.com>
3701
3702 * gnat_ugn.texi: Improve comments about imported names and link names
3703 on Windows. Add a note about the requirement to use -k gnatdll's option
3704 when working with a DLL which has stripped stdcall symbols (no @nn
3705 suffix).
3706
8a36a0cc
AC
37072004-05-27 Vincent Celier <celier@gnat.com>
3708
3709 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
3710 COMMENTS_LAYOUT=UNTOUCHED
3711
3712 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
3713 symbols-vms-alpha.adb
3714
37152004-05-27 Thomas Quinot <quinot@act-europe.fr>
3716
3717 * sem.ads: Clarify documentation on checks suppression.
3718
3719 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
3720
37212004-05-27 Ed Schonberg <schonberg@gnat.com>
3722
3723 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
3724 the case of multiple derivations.
3725 (Is_Object_Reference): For a selected component, verify that the prefix
3726 is itself an object and not a value.
3727
3728 * sem_ch12.adb (Same_Instantiated_Constant): New name for
3729 Same_Instantiated_Entity.
3730 (Same_Instantiated_Variable): Subsidiary to
3731 Check_Formal_Package_Instance, to recognize actuals for in-out generic
3732 formals that are obtained from a previous formal package.
3733 (Instantiate_Subprogram_Body): Emit proper error when
3734 generating code and the proper body of a stub is missing.
3735
3736 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
3737 has a universal interpretation, do the disambiguation here.
3738
3739 * exp_ch4.adb (Expand_N_Type_Conversion,
3740 Expand_N_Unchecked_Type_Conversion): Special handling when target type
3741 is Address, to avoid typing anomalies when Address is a visible integer
3742 type.
3743
3744 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
3745 to determine whether a subprogram should not be marked Pure, even when
3746 declared in a pure package.
3747
37482004-05-27 Jose Ruiz <ruiz@act-europe.fr>
3749
3750 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
3751
3752 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
3753 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
3754 Update the documentation about the Ravenscar profile, following the
3755 definition found in AI-249.
3756
3757 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
3758 setting the Profile (Ravenscar). This must be done in addition to
3759 setting the required restrictions.
3760
3761 * rtsfind.ads: Add the set of operations defined in package
3762 Ada.Interrupts.
3763
3764 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
3765 restriction.
3766
37672004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
3768
3769 lang-specs.h: Always require -c or -S and always redirect to /dev/null
3770 if -gnatc or -gnats is passed.
3771
37722004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
3773
3774 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
3775 a significant reference. Warnings are now properly emitted when a
3776 discriminated type is not referenced.
3777
3778 * lib-xref.adb (Generate_Reference): A deferred constant completion,
3779 record representation clause or record type discriminant does not
3780 produce a reference to its corresponding entity. Warnings are now
3781 properly emitted when deferred constants and record types are not
3782 referenced.
3783
37842004-05-27 Geert Bosch <bosch@gnat.com>
3785
3786 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
3787 Fixes ACATS Annex G tests.
3788
37892004-05-27 Robert Dewar <dewar@gnat.com>
3790
3791 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
3792 handling WITH
3793
37942004-05-27 Arnaud Charlet <charlet@act-europe.fr>
3795
3796 * s-interr.adb (Server_Task): Take into account case of early return
3797 from sigwait under e.g. linux.
3798
37992004-05-27 Sergey Rybin <rybin@act-europe.fr>
3800
3801 * gnat_ugn.texi: Add description for the new gnatpp options:
3802 -rnb - replace the original source without creating its backup copy
3803 -c0 - do not format comments
3804
0fb2ea01
AC
38052004-05-24 Geert Bosch <bosch@gnat.com>
3806
3807 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
3808 with 192 bits of precision, sufficient to reduce a double-extended
3809 arguments X with a maximum relative error of T'Machine_Epsilon, for X
3810 in -2.0**32 .. 2.0**32.
3811 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
3812 reduction by the processor, which only uses a 68-bit approximation of
3813 Pi.
3814 (Tan): Always reduce arguments and compute function either using
3815 the processor's fptan instruction, or by dividing sin and cos as needed.
3816
38172004-05-24 Doug Rupp <rupp@gnat.com>
3818
3819 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
3820 gcc error on 32/64 bit VMS.
3821
38222004-05-24 Olivier Hainque <hainque@act-europe.fr>
3823
3824 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
3825 since this is what we get for stack overflows although not documented
3826 as such.
3827 Document the issues which may require adjustments to our signal
3828 handlers.
3829
38302004-05-24 Ed Schonberg <schonberg@gnat.com>
3831
3832 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
3833 enclosing dynamic scope if the instantiation is within a generic unit.
3834
38352004-05-24 Arnaud Charlet <charlet@act-europe.fr>
3836
3837 * exp_dbug.ads: Fix typo.
3838
3839 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
3840 Rename it to its proper name: system-linux-ia64.ads
3841 (stamp-gnatlib1): Remove extra target specific run time files when
3842 setting up the rts directory.
3843
38442004-05-24 Javier Miranda <miranda@gnat.com>
3845
3846 * einfo.ads, einfo.adb (Limited_Views): Removed.
3847 (Limited_View): New attribute that replaces the previous one. It is
3848 now a bona fide package with the limited-view list through the
3849 first_entity and first_private attributes.
3850
3851 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
3852 limited-private-with clause.
3853 (Install_Limited_Withed_Unit): Install the private declarations of a
3854 limited-private-withed package. Update the installation of the shadow
3855 entities according to the new structure (see Build_Limited_Views)
3856 (Build_Limited_Views): Replace the previous implementation of the
3857 limited view by a package entity that references the first shadow
3858 entity plus the first shadow private entity (required for limited-
3859 private-with clause)
3860 (New_Internal_Shadow_Entity): Code cleanup.
3861 (Remove_Limited_With_Clause): Update the implementation to undo the
3862 new work carried out by Build_Limited_Views.
3863 (Build_Chain): Complete documentation.
3864 Replace Ada0Y by Ada 0Y in comments
3865 Minor reformating
3866
3867 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
3868 types the level of accessibility depends on the enclosing type
3869 declaration.
3870
3871 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
3872 entities. Complete documentation of previous change.
3873
38742004-05-24 Robert Dewar <dewar@gnat.com>
3875
3876 * namet.adb: Minor reformatting
3877 Avoid use of name I (replace by J)
3878 Minor code restructuring
3879
3880 * sem_ch6.adb: Minor reformatting
3881
3882 * lib-writ.adb: Do not set restriction as active if this is a
3883 Restriction_Warning case.
3884
3885 * sem_prag.adb: Reset restriction warning flag if real pragma
3886 restriction encountered.
3887
3888 * s-htable.adb: Minor reformatting
3889 Change rotate count to 3 in Hash (improves hash for small strings)
3890
3891 * 5qsystem.ads: Add comments for type Address (no literals allowed).
3892
3893 * gnat_ugn.texi: Add new section of documentation "Code Generation
3894 Control", which describes the use of -m switches.
3895
38962004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
3897
a1db9d9c
AC
3898 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
3899 through the DECL_INITIAL for renamed variables.
0fb2ea01 3900
7599f1b0
AC
39012004-05-24 Arnaud Charlet <charlet@act-europe.fr>
3902
3903 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
3904
c37bb106
AC
39052004-05-19 Joel Brobecker <brobecker@gnat.com>
3906
3907 * exp_dbug.ads: Correct comments concerning handling of overloading,
3908 since we no longer use $ anymore.
3909
39102004-05-19 Sergey Rybin <rybin@act-europe.fr>
3911
3912 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
3913 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
3914 with illegal subunits.
3915
39162004-05-19 Ed Schonberg <schonberg@gnat.com>
3917
3918 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
3919 body with front-end inlining enabled, check whether an inline pragma
3920 appears immediately after the body and applies to it.
3921
3922 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
3923 enabled and the pragma appears after the body of the subprogram.
3924
b5e792e2
AC
39252004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3926
3927 Part of function-at-a-time conversion
3928
3929 * misc.c (adjust_decl_rtl): Deleted.
3930 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
3931 Define.
3932
3933 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
3934 (add_decl_stmt, add_stmt, block_has_vars): New functions.
3935 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
3936
3937 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
3938 when making a decl.
3939 (gnat_to_gnu_entity): Likewise.
3940 Use add_stmt to update setjmp buffer.
3941 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
3942 flush_addressof.
3943 No longer call adjust_decl_rtl.
3944 (DECL_INIT_BY_ASSIGN_P): New macro.
3945 (DECL_STMT_VAR): Likewise.
3946
3947 * trans.c (gigi): Call start_block_stmt to make the outermost
3948 BLOCK_STMT.
3949 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
3950 Call start_block_stmt and end_block_stmt temporarily.
3951 Use gnat_expand_stmt instead of expand_expr_stmt.
3952 (add_decl_stmt): New function.
3953 (tree_transform): Call it.
3954 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
3955 (end_block_stmt): Set type and NULL_STMT.
3956 (gnat_expand_stmt): Make recursize call instead of calling
3957 expand_expr_stmt.
3958 (gnat_expand_stmt, case DECL_STMT): New case.
3959 (set_lineno_from_sloc): Do nothing if global.
3960 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
3961 (start_block_stmt, add_stmt, end_block_stmt): New functions.
3962 (build_block_stmt): Call them.
3963 (gnat_to_code): Don't expand NULL_STMT.
3964 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
3965 args.
3966 (tree_transform): Likewise.
3967 (tree_transform, case N_Null_Statement): Return NULL_STMT.
3968 (gnat_expand_stmt, case NULL_STMT): New case.
3969 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
3970 IF_STMT_TRUE.
3971
3972 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
3973 TREE_ADDRESSABLE.
3974
3975 * utils.c (create_var_decl): Do not call expand_decl or
3976 expand_decl_init.
3977 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
3978 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
3979 here.
3980 (struct e_stack): Add chain_next to GTY.
3981 (struct binding_level): Deleted.
3982 (struct ada_binding_level): New struct.
3983 (free_block_chain): New.
3984 (global_binding_level, clear_binding_level): Deleted.
3985 (global_bindings_p): Rework to see if no chain.
3986 (kept_level_p, set_block): Deleted.
3987 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
3988 new data structure and work directly on BLOCK node.
3989 (gnat_poplevel): Similarly.
3990 (get_decls): Look at BLOCK_VARS.
3991 (insert_block): Work directly on BLOCK node.
3992 (block_has_var): New function.
3993 (pushdecl): Rework for new binding structures.
3994 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
3995 poplevel.
3996 (build_subprog_body): Likewise.
3997 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
3998
3999 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
4000
4001 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
4002 (DECL_STMT_VAR): Likewise.
4003
40042004-05-17 Robert Dewar <dewar@gnat.com>
4005
4006 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
4007 procedure
4008
4009 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
4010 of restriction synonyums by using
4011 Restrict.Process_Restriction_Synonyms.
4012
4013 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
4014
4015 * s-restri.ads (Tasking_Allowed): Correct missing comment
4016
4017 * s-rident.ads: Add entries for restriction synonyms
4018
4019 * ali.adb: Fix some problems with badly formatted ALI files that can
4020 result in infinite loops.
4021
4022 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
4023 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
4024 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
4025 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
4026 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
4027 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
4028 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
4029 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
4030 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
4031 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
4032 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
4033 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
4034 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
4035 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
4036 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
4037 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
4038 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
4039 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
4040 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
4041 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
4042 to Task_Id (minor cleanup).
4043
40442004-05-17 Vincent Celier <celier@gnat.com>
4045
4046 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
4047 directory separator.
4048
4049 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
4050 project being extended, if Languages is not declared in extending
4051 project.
4052
40532004-05-17 Javier Miranda <miranda@gnat.com>
4054
4055 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
4056 limited view of a visible sibling.
4057
9bc856dd
AC
40582004-05-14 Robert Dewar <dewar@gnat.com>
4059
4060 * gnat_ugn.texi: Minor change to -gnatS documentation
4061
4062 * sprint.adb: Remove some instances of Assert (False) and for this
4063 purpose replace them by output of a ??? string.
4064
4065 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
4066 Assert (False).
4067
4068 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
4069 flag processing. This was suppressing required dependencies in
4070 No_Run_Time mode and is not needed since the binder does not generate
4071 references for things in libgnat anyway.
4072
4073 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
4074 warning.
4075
40762004-05-14 Thomas Quinot <quinot@act-europe.fr>
4077
4078 * gnat_ugn.texi: Document AIX-specific issue with initialization of
4079 resolver library.
4080
4081 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
4082 action for the case of an actual parameter in an init proc call.
4083
40842004-05-14 Ed Schonberg <schonberg@gnat.com>
4085
4086 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
4087 subtype, check visible entities in base type.
4088
4089 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
4090 actions if the object is a renaming.
4091
4092 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
4093 Check_Formal_Package_Instance, to determine more precisely when the
4094 formal and the actual denote the same entity.
4095
40962004-05-14 Javier Miranda <miranda@gnat.com>
4097
4098 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
4099
4100 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
4101 corresponding to a private_with must be removed from visibility; it
4102 will be made visible later, just before we analyze the private part of
4103 the package.
4104 (Check_Private_Child_Unit): Allow private_with clauses in public
4105 siblings.
4106 (Install_Siblings): Make visible the private entities of private-withed
4107 siblings.
4108 (Install_Withed_Unit): Do not install the private withed unit if we
4109 are compiling a package declaration and the Private_With_OK flag was
4110 not set by the caller. These declarations will be installed later,
4111 just before we analyze the private part of the package.
4112
4113 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
4114 during the evaluation of the expression that initializes the object,
4115 decorate it with the expected type to avoid cascade errors.
4116 Code cleanup.
4117
4118 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
4119 subprogram we have to install the private_with clauses after its
4120 specification has been analyzed (as documented in AI-262.TXT).
4121
4122 * sem_ch8.adb (Has_Private_With): New function. Determines if the
4123 current compilation unit has a private with on a given entity.
4124 (Find_Direct_Name): Detect the Beaujolais problem described in
4125 AI-262.TXT
4126
4127 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
4128 provides the functionality of the function Is_Ancestor that was
4129 previously available in sem_ch10. It has been renamed to avoid
4130 overloading.
4131
4132 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
4133
41342004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4135
4136 * utils.c (build_vms_descriptor): Use SImode pointers.
4137
41382004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
4139
4140 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
4141
41422004-05-14 GNAT Script <nobody@gnat.com>
4143
4144 * Make-lang.in: Makefile automatically updated
4145
084c663c
AC
41462004-05-14 Arnaud Charlet <charlet@act-europe.fr>
4147
4148 Renaming of target specific files for clarity
4149
6615c446 4150 * Makefile.in: Rename GNAT target specific files.
084c663c
AC
4151
4152 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
4153 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
4154 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
4155 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
4156 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
4157 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
4158 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
4159 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
4160 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
4161 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
4162 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
4163 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
4164 51osinte.adb, 51osinte.ads, 51system.ads,
4165 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
4166 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
4167 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
4168 56tpopsp.adb, 57system.ads, 58system.ads,
4169 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
4170 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
4171 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
4172 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
4173 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
4174 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
4175 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
4176 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
4177 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
4178 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
4179 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
4180 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
4181 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
4182 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
4183 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
4184 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
4185 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
4186 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
4187 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
4188 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
4189 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
4190 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
4191 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
4192 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
4193 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
4194 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
4195 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
4196 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
4197 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
4198 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
4199 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
4200 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
4201 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
4202 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
4203 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
4204 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
4205 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
4206 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
4207 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
4208 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
4209
4210 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
4211 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
4212 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
4213 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
4214 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
4215 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
4216 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
4217 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
4218 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
4219 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
4220 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
4221 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
4222 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
4223 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
4224 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
4225 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
4226 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
4227 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
4228 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
4229 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
4230 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
4231 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
4232 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
4233 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
4234 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
4235 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
4236 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
4237 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
4238 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
4239 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
4240 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
4241 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
4242 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
4243 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
4244 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
4245 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
4246 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
4247 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
4248 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
4249 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
4250 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
4251 s-osinte-vms.ads, s-osinte-vxworks.adb,
4252 s-osinte-vxworks.ads, s-osprim-mingw.adb,
4253 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
4254 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
4255 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
4256 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
4257 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
4258 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
4259 s-stchop-vxworks.adb, s-taprop-dummy.adb,
4260 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
4261 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
4262 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
4263 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
4264 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
4265 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
4266 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
4267 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
4268 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
4269 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
4270 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
4271 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
4272 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
4273 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
4274 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
4275 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
4276 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
4277 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
4278 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
4279 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
4280 system-irix-o32.ads, system-linux-x86_64.ads,
4281 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
4282 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
4283 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
4284 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
4285 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
4286 system-vxworks-mips.ads, system-vxworks-ppc.ads,
4287 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
4288 above.
4289
90afe2c9
ZW
42902004-05-13 Zack Weinberg <zack@codesourcery.com>
4291
4292 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
4293
6de9cd9a
DN
42942004-05-13 Diego Novillo <dnovillo@redhat.com>
4295
4296 Merge from tree-ssa-20020619-branch.
4297
4298 * config-lang.in (boot_language, build_by_default): Set
4299 to no.
4300 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
4301 (max_size): Add static chain op for call_expr.
4302
f5657d67
RS
43032004-05-12 Richard Sandiford <rsandifo@redhat.com>
4304
4305 PR target/15331
4306 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
4307
4413b636
RS
43082004-05-11 Roger Sayle <roger@eyesopen.com>
4309
4310 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
4311 COND_EXPR.
4312
5950a3ac
AC
43132004-05-10 Doug Rupp <rupp@gnat.com>
4314
4315 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
4316 system.aux_dec.
4317
4318 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
4319
4320 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
4321
4322 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
4323 Fixes undefined symbols in IA64 gnatlib.
4324
4325 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
4326
4327 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
4328 Short_Address). This will be moved to system.auxdec.
4329
43302004-05-10 Thomas Quinot <quinot@act-europe.fr>
4331
4332 * sem_util.adb: Replace test for presence of a node that is always
4333 present with a call to Discard_Node.
4334
4335 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
4336 Analyze on the library unit node after generation of distribution stub
4337 constructs. The call was a no-op because Unit_Node has already been
4338 Analyzed, and the tree fragments for the distribution stubs are
4339 analyzed as they are inserted in Exp_Dist.
4340 Update comment regarding to distribution stubs to reflect that we
4341 do not generate stub in separate files anymore.
4342
4343 * einfo.ads: Clarify the fact that a tagged private type has the
4344 E_Record_Type_With_Private Ekind.
4345
4346 * erroutc.adb: Minor reformatting
4347
4348 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
4349 values if line length is increased using -gnatyM (noticed during code
4350 reading).
4351
4352 * eval_fat.adb: Minor reformatting
4353 Put spaces around exponentiation operator
4354
43552004-05-10 Ed Schonberg <schonberg@gnat.com>
4356
4357 PR ada/15005
4358 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
4359 has been rewritten as an explicit dereference, retrieve type of
4360 original node to check for possibly unconstrained record type.
4361
43622004-05-10 Ed Schonberg <schonberg@gnat.com>
4363
4364 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
4365 overriding, use the operation of the parent unconditionally.
4366
4367 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
4368 operation when either operand is a literal, to avoid further
4369 ambiguities.
4370
4371 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
4372 overridden by a previous explicit declaration, mark the previous entity
4373 as overriding.
4374
4375 * sem_disp.adb (Check_Dispatching_Operation): New predicate
4376 Is_Visibly_Controlled, to determine whether a declaration of a
4377 primitive control operation for a derived type overrides an inherited
4378 one. Add warning if the explicit declaration does not override.
4379
43802004-05-10 Vincent Celier <celier@gnat.com>
4381
4382 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
4383 some cases when the sources are no longer present.
4384
4385 * make.adb (Collect_Arguments): Fail if an external source, not part
4386 of any project need to be compiled, when switch -x has not been
4387 specified.
4388
4389 * makeusg.adb: Document new switch -x
4390
4391 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
4392 defaulted to False.
4393
4394 * switch-m.adb (Scan_Make_Switches): New switch -x
4395
4396 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
4397 gnatmake switch -x.
4398
4399 * gnat_ugn.texi: Document new gnatmake switch -x
4400
44012004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
4402
4403 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
4404
4405 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
4406 (process_attributes): Likewise.
4407
44082004-05-10 Joel Brobecker <brobecker@gnat.com>
4409
4410 * s-inmaop.ads: Fix spelling mistake in one of the comments.
4411
44122004-05-10 Robert Dewar <dewar@gnat.com>
4413
4414 * gnat_ugn.texi: Document that for config pragma files, the maximum
4415 line length is always 32767.
4416
4417 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
4418 literals is now allowed.
4419
4420 * gnat-style.texi: Remove statement about splitting long lines before
4421 an operator rather than after, since we do not follow this rule at all.
4422 Clarify rule (really lack of rule) for spaces around exponentiation
4423
4424 * sem_elim.adb: Allow concatenation of string literals as well as a
4425 single string literal for pragma arguments.
4426
4427 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
4428
4429 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
4430 written for append case.
4431
4432 * frontend.adb: Changes to avoid checking max line length in config
4433 pragma files.
4434
4435 * g-os_lib.ads: Minor reformatting
4436
4437 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
4438 wrong in any case. Instead use standard value. Noticed during code
4439 reading.
4440
4441 * opt.ads (Max_Line_Length): New field, used to implement removal of
4442 limitation on length of lines when scanning config pragma files.
4443
4444 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
4445 makeutl.ads, makeutl.adb: Minor reformatting
4446
4447 * scn.adb: Do not check line length while scanning config pragma files
4448 Do not check line length while scanning out license information
4449
4450 * scng.adb: Changes to avoid line length checks while parsing config
4451 pragma files.
4452
44532004-05-10 GNAT Script <nobody@gnat.com>
4454
4455 * Make-lang.in: Makefile automatically updated
4456
48664302
AC
44572004-05-05 Arnaud Charlet <charlet@act-europe.fr>
4458
4459 * osint.adb (Find_Program_Name): Fix handling of VMS version
4460 number.
4461
aa720a54
AC
44622004-05-05 Emmanuel Briot <briot@act-europe.fr>
4463
4464 * g-os_lib.ads (Invalid_Time): New constant
4465
4466 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
4467 return OS_Time instead of time_t to match what is imported by Ada.
4468 Now return -1 if the file doesn't exist, instead of a random value
4469
44702004-05-05 Robert Dewar <dewar@gnat.com>
4471
4472 * usage.adb: Add line for -gnatR?s switch
4473
4474 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
4475
4476 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
4477 and for Match (Data_First, Data_last)
4478
4479 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
4480 written when we are dealing with multi-unit files.
4481
44822004-05-05 Jerome Guitton <guitton@act-europe.fr>
4483
4484 * Makefile.in: Remove unused targets and variables.
4485
44862004-05-05 Vincent Celier <celier@gnat.com>
4487
4488 * switch-m.adb: New gnatmake switch -eI
4489
4490 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
4491 of new gnatmake switch -eInnn.
4492
4493 * makegpr.adb: Take into account new parameters Index and Src_Index in
4494 Prj.Util.
4495
4496 * clean.adb: Implement support for multi-unit sources, including new
4497 switch -i.
4498
4499 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
4500 Src_Index.
4501
4502 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
4503 (Extract_From_Q): New out parameter Index
4504 (Mark, Is_Marked): Subprograms moved to Makeutl
4505 (Switches_Of): New parameter Source_Index
4506 (Add_Switch): New parameter Index
4507 (Check): New parameter Source_Index
4508 (Collect_Arguments): New parameter Source_Index
4509 (Collect_Arguments_And_Compile): New parameter Source_Index
4510 (Compile): New parameter Source_Index
4511 Put subprograms in alphabetical order
4512 Add support for multi-source sources, including in project files.
4513
4514 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
4515 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
4516 Make.
4517
4518 * makeusg.adb: New gnatmake switch -eInnn
4519
4520 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
4521 Prj.Util.Value_Of.
4522
4523 * opt.ads (Main_Index): New variable, defaulted to 0.
4524
4525 * osint.ads, osinte.adb (Add_File): New parameter Index
4526 (Current_Source_Index): New function
4527
4528 * prj.adb: Take into account new components Index and Src_Index
4529
4530 * prj.ads (String_Element): New component Index
4531 (Variable_Value): New component Index
4532 (Array_Element): New component Src_Index
4533
4534 * prj-attr.adb: Indicate that optional index may be specified for
4535 attributes Main, Executable, Spec, Body and some of Switches.
4536
4537 * prj-attr.ads (Attribute_Kind): New values for optional indexes
4538 (Attribute_Record): New component Optional_Index
4539
4540 * prj-com.ads (File_Name_Data): New component Index
4541
4542 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
4543
4544 * prj-env.adb (Put): Output optional index
4545
4546 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
4547 attributes Spec and Body.
4548
4549 * prj-nmsc.adb: Process optional indexes
4550
4551 * prj-pp.adb: Ouput "at" for optional indexes
4552
4553 * prj-proc.adb: Take into account optional indexes
4554
4555 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
4556 Optional_Index. For string literal,
4557 process optional index when Optional_Index is True.
4558 (Parse_Expresion): New Boolean parameter Optional_Index
4559
4560 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
4561 (Set_Source_Index_Of): New procedure
4562
4563 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
4564 index.
4565
4566 * prj-util.ads (Executable_Of): New parameter Index
4567 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
4568 New parameter Src_Index, defaulted to 0.
4569
45702004-05-05 Ed Schonberg <schonberg@gnat.com>
4571
4572 PR ada/15257
4573 * sem_ch3.adb (Access_Definition): If this is an access parameter
4574 whose designated type is imported through a limited_with clause, do
4575 not add the enclosing subprogram to the list of private dependents of
4576 the type.
4577
45782004-05-05 Ed Schonberg <schonberg@gnat.com>
4579
4580 PR ada/15258
4581 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
4582 a limited_with clause, and the other is its non-limited view.
4583
45842004-05-05 Thomas Quinot <quinot@act-europe.fr>
4585
4586 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
4587
90afe2c9 4588 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
aa720a54
AC
4589 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
4590 Stand.Boolean_Literals to produce references to entities
4591 Standard_False and Standard_True from compile-time computed boolean
4592 values.
4593
4594 * stand.ads (Boolean_Literals): New variable, provides the entity
4595 values for False and True, for use by the expander.
4596
45972004-05-05 Doug Rupp <rupp@gnat.com>
4598
4599 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
4600 5vinmaop.adb: Unchecked convert Short_Address vice Address
4601
4602 * adaint.c, raise.c: Caste CRTL function return value
4603 to avoid gcc error on 32/64 bit IVMS.
4604
4605 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
4606 target = IA64/VMS.
4607
4608 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
4609
4610 * 5qsystem.ads (Address): Declare as Long_Integer
4611 (Short_Address): Declare as 32 bit subtype of Address
4612 Declare abstract address operations to avoid gratuitous ambiguities.
4613
46142004-05-05 Jose Ruiz <ruiz@act-europe.fr>
4615
4616 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
4617 instead of the old Boolean_Entry_Barriers.
4618 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
4619
46202004-05-05 GNAT Script <nobody@gnat.com>
4621
4622 * Make-lang.in: Makefile automatically updated
4623
1ab2888d
AC
46242004-05-03 Arnaud Charlet <charlet@act-europe.fr>
4625
4626 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
4627
9f4fd324
AC
46282004-05-03 Olivier Hainque <hainque@act-europe.fr>
4629
4630 PR ada/15152
4631
4632 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
4633 alone. Replacing object references by literals is inappropriate in a
4634 so low level context.
4635
46362004-05-03 Arnaud Charlet <charlet@act-europe.fr>
4637
4638 * a-exexpr.adb: Add comments
4639
46402004-05-03 Joel Brobecker <brobecker@gnat.com>
4641
4642 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
4643 declare the Ancestor_Tags array in Type_Specific_Data with a small size
4644 without risking a bounds check error when accessing one of its
4645 components.
4646 (Type_Specific_Data): Define Ancestor_Tags as a small array.
4647 This prevents us from hitting a limitation during the debug info
4648 generation when using stabs.
4649
4650 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
4651 small array.
4652 This prevents us from hitting a limitation during the debug info
4653 generation when using stabs.
4654
46552004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
4656
4657 lang-specs.h: Remove -gnatz* from specs.
4658
46592004-05-03 Vincent Celier <celier@gnat.com>
4660
4661 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
4662
4663 * Make-lang.in, Makefile.in: Add gprmake
4664
46652004-05-03 Thomas Quinot <quinot@act-europe.fr>
4666
4667 * sem_aggr.adb: Fix typo in comment.
4668
46692004-05-03 Robert Dewar <dewar@gnat.com>
4670
4671 * make.adb: Minor reformatting
4672
4673 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
4674
4675 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
4676 so that it works when address is not a private type.
4677
4678 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
4679 properly with rewritten unchecked conversions. This prevents
4680 order-of-elaboration issues that can otherwise arise.
4681 (Minimum_Size): Don't check size of access types under VMS
4682
4683 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
4684 interpretations of integer literals as type System.Address.
4685
4686 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
4687 (Is_Descendent_Of): New function
4688
46892004-05-03 Jose Ruiz <ruiz@act-europe.fr>
4690
4691 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
4692 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
4693 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
4694
4695 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
4696 of the old Max_Entry_Queue_Depth.
4697
4698 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
4699 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
4700 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
4701
4702 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
4703 New entry for proper handling of Max_Entry_Queue_Depth.
4704 New entry for proper handling of No_Dynamic_Interrupts.
4705
4706 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
4707 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
4708 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
4709 the GNAT specific restriction Max_Entry_Queue_Depth.
4710 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
4711 the GNAT specific restriction No_Dynamic_Interrupts.
4712
4713 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
4714 instead of the old Boolean_Entry_Barriers.
4715 Use the new restriction No_Dynamic_Attachment instead of the old
4716 No_Dynamic_Interrupts.
4717
4718 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
4719 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
4720
4721 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
4722 of the old Max_Entry_Queue_Depth.
4723
47242004-05-03 GNAT Script <nobody@gnat.com>
4725
4726 * Make-lang.in: Makefile automatically updated
4727
d935a36e
AC
47282004-04-29 Ed Schonberg <schonberg@gnat.com>
4729
4730 * checks.adb (Enable_Range_Check): If the prefix of an index component
4731 is an access to an unconstrained array, perform check unconditionally.
4732
47332004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4734
4735 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
4736 Component_Clause.
4737
47382004-04-29 Olivier Hainque <hainque@act-europe.fr>
4739
4740 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
4741 alternate stack setting. There was no support for the tasking cases
4742 and the changes eventually caused a number of side-effect failures in
4743 the non-tasking case too.
4744
47452004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
4746
4747 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
4748 -gnats is passed.
4749
47502004-04-29 Vincent Celier <celier@gnat.com>
4751
4752 * make.adb (Gnatmake): Increase max size of argument array for
4753 gnatbind for the potential addition of -F.
4754 If there are Stand-Alone Library projects, invoke gnatbind with -F to
4755 be sure that elaboration flags will be checked.
4756
4757 * switch-c.adb: Correct call to Scan_Pos for -gnateI
4758
47592004-04-29 Thomas Quinot <quinot@act-europe.fr>
4760
4761 * sem_warn.adb (Check_References): Move '<access-variable> may be
4762 null' warning out of under Warn_On_No_Value_Assigned.
4763
47642004-04-29 Ed Falis <falis@gnat.com>
4765
4766 * gnat_ugn.texi: Fixed texi error
4767
47682004-04-29 Robert Dewar <dewar@gnat.com>
4769
4770 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
4771 abstract operations if they come from predefined files.
4772
4773 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
4774 Dynamic, not RM).
4775
4776 * s-addope.adb: Correct obvious error in mod function
4777
47782004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
4779
4780 * Makefile.in: Add target pairs for powerpc darwin*
4781 tasking support.
4782
4783 * a-intnam-darwin.ads, s-osinte-darwin.adb,
4784 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
4785
ea16c81b
UW
47862004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
4787
4788 * Makefile.in: Add target macro definitions for s390*-linux*.
4789 * system-linux-s390.ads: New file.
4790 * system-linux-s390x.ads: New file.
4791
f0e6f845
JM
47922004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
4793
4794 * gnat_ugn.texi: Correct argument to @setfilename.
4795
e8c2eedc
UW
47962004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
4797
4798 * a-exexpr.adb (Unwind_Word): New data type.
4799 (Unwind_Exception): Use it as type of Private1 and Private2.
4800
4801 * raise.c (db_action_for): Fix debug printf.
4802
f2c9e65a
AC
48032004-04-27 Ed Schonberg <schonberg@gnat.com>
4804
4805 * a-wtmoio.ads: Formal type must be a modular type, not a signed
4806 integer type.
4807
48082004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4809
4810 * decl.c (gnat_to_gnu_entity, case object): Call
4811 __builtin_update_setjmp_buf.
4812
4813 * gigi.h (update_setjmp_buf): Deleted.
4814 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
4815
4816 * misc.c: (update_setjmp_buf): Deleted.
4817
4818 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
4819 around block of RTL.
4820
4821 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
4822
35b7fa6a
AC
48232004-04-26 Thomas Quinot <quinot@act-europe.fr>
4824
4825 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
4826 subprogram for which no pragma All_Calls_Remote applies, store the
4827 address of the real subprogram in the underlying record type, so local
4828 dereferences do not go through the PCS.
4829
48302004-04-26 Robert Dewar <dewar@gnat.com>
4831
4832 * i-c.ads: Add some type qualifications to avoid ambiguities when
4833 compiling with s-auxdec.ads and a non-private address type.
4834
48352004-04-26 Arnaud Charlet <charlet@act-europe.fr>
4836
4837 * Makefile.rtl: Fix error in previous check-in:
4838 Add s-addope.o to non tasking object list (rather than tasking object
4839 list).
4840
48412004-04-26 Javier Miranda <miranda@gnat.com>
4842
4843 * sem_aggr.adb: Fix typo in comments
4844 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
4845 Required to check the null-exclusion attribute.
4846
4847 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
4848 case of anonymous access types in record and array components. For a
4849 component definition the level is the same of the enclosing composite
4850 type.
4851
4852 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
4853 that are anonymous access types the level of accessibility depends on
4854 the enclosing type declaration. In order to have this information, set
4855 the scope of the anonymous access type to the enclosing record type
4856 declaration.
4857 (Array_Type_Declaration): In case of components that are anonymous
4858 access types the level of accessibility depends on the enclosing type
4859 declaration. In order to have this information, set the scope of the
4860 anonymous access type to the enclosing array type declaration.
4861
4862 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
4863 access type.
4864
4865 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
4866 renaming of anonymous access-to-constant types allowed if and only if
4867 the renamed object is access-to-constant.
4868
4869 * sem_util.adb (Type_Access_Level): In case of anonymous access types
4870 that are component_definition or discriminants of a nonlimited type,
4871 the level is the same as that of the enclosing component type.
4872
48732004-04-26 Sergey Rybin <rybin@act-europe.fr>
4874
4875 * sem_elim.adb: Some minor code reorganization from code reading. Fix
4876 misprint in the function name (File_Name_Match).
4877
5a944040
LG
48782004-04-23 Laurent GUERBY <laurent@guerby.net>
4879
90afe2c9 4880 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
5a944040 4881 install.
90afe2c9 4882
d0fd1344
RO
48832004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4884
4885 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
4886
cc4f0de1
AC
48872004-04-23 Emmanuel Briot <briot@act-europe.fr>
4888
4889 * adaint.c (__gnat_try_lock): No longer requires that the parent
4890 directory be writable, the directory itself is enough.
4891 (gnat_is_absolute_path): Change profile, so that the call from
4892 GNAT.OS_Lib can be made more efficient.
4893
4894 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
4895 from GNAT.OS_Lib can be made more efficient.
4896
4897 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
4898 one copy of the file name. Found by code reading.
4899
49002004-04-23 Vincent Celier <celier@gnat.com>
4901
4902 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
4903 Correct documentation on gnatmake switches transmitted to the compiler
4904
4905 * ali.ads: Minor comment fix
4906
49072004-04-23 Javier Miranda <miranda@gnat.com>
4908
4909 * sem_ch6.adb: (Confirming Types): Code cleanup
4910
4911 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
4912 subprogram types: E_Anonymous_Access_Subprogram_Type and
4913 E_Anonymous_Access_Protected_Subprogram_Type.
4914
49152004-04-23 Thomas Quinot <quinot@act-europe.fr>
4916
4917 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
4918 whether a pragma All_Calls_Remote applies to the subprogram on which
4919 'Access is taken.
4920 No functional change is introduced by this revision; the new parameter
4921 will be used to allow calls to local RCI subprograms to be optimized
4922 to not use the PCS in the case where no pragma All_Calls_Remote applies,
4923 as is already done in the PolyORB implementation of the DSA.
4924
4925 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
4926 whether a pragma All_Calls_Remote applies to the subprogram on which
4927 'Access is taken.
4928 No functional change is introduced by this revision; the new parameter
4929 will be used to allow calls to local RCI subprograms to be optimized
4930 to not use the PCS in the case where no pragma All_Calls_Remote applies,
4931 as is already done in the PolyORB implementation of the DSA.
4932
49332004-04-23 Robert Dewar <dewar@gnat.com>
4934
4935 * Makefile.rtl: Add entry for s-addope.o in run time library list
4936 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
4937 * s-addope.ads, s-addope.adb: New files.
4938
90afe2c9
ZW
4939 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
4940 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
cc4f0de1
AC
4941 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
4942 System.Address to be non-private and signed.
4943
4944 * sem_elim.adb: Minor reformatting (fairly extensive)
4945 Some minor code reorganization from code reading
4946 Add a couple of ??? comments
4947
49482004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4949
4950 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
90afe2c9 4951 (tree_transform, case N_If_Statement): Remove non-determinism.
cc4f0de1
AC
4952
4953 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
4954
49552004-04-23 Sergey Rybin <rybin@act-europe.fr>
4956
4957 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
4958 Eliminate' section.
4959
4960 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
4961 no longer used as a parameter name for Eliminate pragma).
4962
78bad775
LG
49632004-04-22 Laurent GUERBY <laurent@guerby.net>
4964
4965 PR optimization/14984
4966 PR optimization/14985
4967 * trans.c (gigi): Fix non determinism leading to bootstrap
4968 comparison failures.
4969
af4b9434
AC
49702004-04-21 Pascal Obry <obry@gnat.com>
4971
4972 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
4973 passed to spawnvp() to properly handle program pathname with spaces on
4974 Win32.
4975
49762004-04-21 Emmanuel Briot <briot@act-europe.fr>
4977
4978 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
4979 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
4980 unlocked in case of exceptions.
4981
49822004-04-21 Joel Brobecker <brobecker@gnat.com>
4983
4984 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
4985 This function does not exist anymore.
4986
49872004-04-21 Thomas Quinot <quinot@act-europe.fr>
4988
4989 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
4990
4991 * link.c: Move variables to the __gnat name space.
4992
4993 * Makefile.in: list link.o explicitly when needed.
4994
4995 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
4996
49972004-04-21 Javier Miranda <miranda@gnat.com>
4998
4999 * einfo.adb (Original_Access_Type): New subprogram
5000 (Set_Original_Access_Type): New subprogram
5001 (Write_Field21_Name): Write the name of the new field
5002
5003 * einfo.ads (Original_Access_Type): New field present in access to
5004 subprogram types.
5005 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
5006 E_Anonymous_Access_Protected_Subprogram_Type.
5007
5008 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
5009 subprogram types.
5010
5011 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
5012 to anonymous access to subprogram types.
5013
5014 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
5015 to subprogram types.
5016
5017 * sem_ch3.adb (Access_Definition): Complete decoration of entities
5018 corresponding to anonymous access to subprogram types.
5019 (Analyze_Component_Declaration): Add new actual to the call to
5020 subprogram replace_anonymous_access_to_protected_subprogram.
5021 (Array_Type_Declaration): Add new actual to the call to subprogram
5022 replace_anonymous_access_to_protected_subprogram.
5023 (Process_Discriminants): Add new actual to the call to subprogram
5024 replace_anonymous_access_to_protected_subprogram.
5025 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
5026
5027 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
5028 formal.
5029
5030 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
5031 access to subprogram types.
5032
5033 * sem_util.adb (Has_Declarations): Addition of package_specification
5034 nodes.
5035
50362004-04-21 Ed Schonberg <schonberg@gnat.com>
5037
5038 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
5039 inlined flags to renamed entity only if in current unit.
5040
50412004-04-21 Thomas Quinot <quinot@act-europe.fr>
5042
5043 * s-parint.ads: Add DSA implementation marker.
5044
5045 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
5046 value of System.Partition_Interface.DSA_Implementation to determine
5047 what version of the distributed systems annex is available (no
5048 implementation, GLADE, or PolyORB).
5049
50502004-04-21 Joel Brobecker <brobecker@gnat.com>
5051
5052 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
5053
50542004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5055
5056 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
5057 with new type if alias sets differ.
5058 Fixes ACATS c41103b.
5059
50602004-04-21 Vincent Celier <celier@gnat.com>
5061
5062 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
5063 Add array Lang_Args for the language specific compiling argument
5064 switches.
5065
5066 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
5067
50682004-04-21 Sergey Rybin <rybin@act-europe.fr>
5069
5070 * gnat_rm.texi: Update the descripton of the Eliminate pragma
5071 according to the recent changes in the format of the parameters of the
5072 pragma (replacing Homonym_Number with Source_Location).
5073
7324bf49
AC
50742004-04-19 Arnaud Charlet <charlet@act-europe.fr>
5075
5076 * 5isystem.ads: Removed, unused.
5077
5078 * gnat_rm.texi: Redo 1.13 change.
5079
50802004-04-19 Robert Dewar <dewar@gnat.com>
5081
5082 * s-stoele.ads: Clean up definition of Storage_Offset (the new
5083 definition is cleaner, avoids the kludge of explicit Standard operator
5084 references, and also is consistent with a visible System.Address with
5085 no visible operations.
5086
5087 * s-geveop.adb: Add declarations to avoid assumption of visible
5088 operations on type System.Address (since these might not be available
5089 if Address is a non-private type for which the operations
5090 are made abstract).
5091
5092 * sem_eval.adb: Minor reformatting
5093
5094 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
5095 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
5096 reformatting (new function spec format).
5097
5098 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
5099 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
5100 s-caun64.adb: Add declarations to avoid assumption of visible
5101 operations on type System.Address (since these might not be available
5102 if Address is a non-private type for which the operations are made
5103 abstract).
5104
5105 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
5106
5107 * exp_intr.adb: Minor comment update
5108
5109 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
5110
5111 * 5omastop.adb: Add declarations to avoid assumption of visible
5112 operations on type System.Address (since these might not be available
5113 if Address is a non-private type for which the operations
5114 are made abstract).
5115
51162004-04-19 Vincent Celier <celier@gnat.com>
5117
5118 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
5119
5120 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
5121 defaulted to Ada.
5122
5123 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
5124 defaulted to Ada.
5125 Call Check with Process_Languages.
5126 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
5127 with Process_Languages.
5128 (Recursive_Check): New Boolean parameter Process_Languages. Call
5129 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
5130 Process_Languages.
5131
5132 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
5133
5134 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
5135 parameter Ada_Main, defaulted to True.
5136 Check for Ada specific characteristics only when Ada_Main is True.
5137
5138 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
5139
5140 * prj.adb: (Project_Empty): Add new Project_Data components.
5141
5142 * prj.ads: New types and tables for non Ada languages.
5143 (Project_Data): New components Languages, Impl_Suffixes,
5144 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
5145 Include_Path, Include_Data_Set.
5146
5147 * prj-env.ads, prj-env.adb: Minor reformatting
5148
5149 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
5150 Put subprograms in alphabetical order
5151
5152 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
5153 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
5154 Opt.Follow_Links.
5155
5156 * mlib-prj.adb: Back out modification in last version, as they are
5157 incorrect.
5158 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
5159
5160 * make.adb: (Mains): Moved to package Makeutl
5161 (Linker_Opts): Moved to package Makeutl
5162 (Is_External_Assignment): Moved to package Makeutl
5163 (Test_If_Relative_Path): Moved to package Makeutl
5164 (Gnatmake): Move sorting of linker options to function
5165 Makeutl.Linker_Options_Switches.
5166
8f9df7d8
VC
5167 * makeutl.ads, makeutl.adb: New files.
5168
7324bf49
AC
5169 * Makefile.in: Add makeutl.o to the object files for gnatmake
5170
5171 * makeusg.adb: Add line for new switch -eL.
5172
5173 * gnatls.adb (Image): New function.
5174 (Output_Unit): If in verbose mode, output the list of restrictions
5175 specified by pragmas Restrictions.
5176
5177 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
5178 Text_IO.
5179
5180 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
5181 needed, to put it in the range 1970 (included) - 2026 (excluded).
5182 (Time_Of): Do not shift Unix_Min_Year (1970).
5183 Shift the date by multiple of 56 years, if needed, to put it in the
5184 range 1970 (included) - 2026 (excluded).
5185
5186 * adaint.h, adaint.c (__gnat_set_executable): New function.
5187
51882004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5189
5190 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
5191 and pop GC context.
5192 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
5193 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
5194 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
5195 (tree_transform, case N_Code_Statement): Likewise.
5196 (gnat_expand_stmt, case LABEL_STMT): Don't look at
5197 LABEL_STMT_FIRST_IN_EH.
5198 (gnat_expand_stmt, case ASM_STMT): New case.
5199
5200 * utils2.c (build_unary_op): Properly set TREE_READONLY of
5201 UNCONSTRAINED_ARRAY_REF.
5202
5203 * utils.c (poplevel): Temporarily push/pop GC context around inline
5204 function expansion.
5205
5206 * decl.c (maybe_variable): Properly set TREE_READONLY of
5207 UNCONSTRAINED_ARRAY_REF.
5208 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
5209
5210 * ada-tree.def: (ASM_STMT): New.
5211
5212 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
5213 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
5214 ASM_STMT_INPUT): New.
5215 (ASM_STMT_CLOBBER): Likewise.
5216
52172004-04-19 Thomas Quinot <quinot@act-europe.fr>
5218
5219 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
5220 general rcheck mechanism to raise Program_Error for E.4(18), instead
5221 of a custom raiser in System.Partition_Interface.
5222 Part of general cleanup work before PolyORB integration.
5223
5224 * snames.ads, snames.adb: Add new runtime library entities and names
5225 for PolyORB DSA.
5226
5227 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
5228 exp_dist.
5229 (Build_Subprogram_Id): New subprogram provided by exp_dist
5230 Code reorganisation in preparation for PolyORB integration.
5231
5232 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
5233 exp_dist.
5234 (Build_Subprogram_Id): New subprogram provided by exp_dist
5235
5236 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
5237 actual parameter types for call to dereference of an
5238 access-to-subprogram type.
5239
5240 * rtsfind.ads: Add new runtime library entities and names for PolyORB
5241 DSA.
5242
5243 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
5244 instead, which has the same behaviour here since we never pass it a
5245 NULL pointer.
5246
5247 * link.c (run_path_option, Solaris case): Use -Wl, as for other
5248 platforms.
5249
5250 * Makefile.in: adjust object file lists for gnatlink and gnatmake
5251 to account for new dependency upon Interfaces.C.Strings + link.o
5252 For x86 FreeBSD, use 86numaux.
5253
5254 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
5255 from Mlib.Tgt to Mlib.
5256
5257 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
5258 target-independent.
5259
5260 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
5261 target-specific versions of this subprogram, now implemented as a
5262 target-independent function in Mlib.
5263
5264 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
5265 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
5266 (Linker_Library_Path_Option): Remove target-specific versions of this
5267 subprogram, now implemented as a target-independent function in Mlib.
5268
5269 * atree.adb: (Allocate_Initialize_Node): New subprogram.
5270 Factors out node table slots allocation.
5271 (Fix_Parents): New subprogram.
5272 Encapsulate the pattern of fixing up parent pointers for syntactic
5273 children of a rewritten node.
5274 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
5275 (Rewrite): Use New_Copy when creating saved copy of original node.
5276 (Replace): Use Copy_Node to copy nodes.
5277
52782004-04-19 Javier Miranda <miranda@gnat.com>
5279
5280 * sprint.adb (Sprint_Node_Actual): Give support to the new
5281 Access_To_Subprogram node available in Access_Definition nodes. In
5282 addition, give support to the AI-231 node fields: null-exclusion,
5283 all-present, constant-present.
5284
5285 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
5286
90afe2c9 5287 * sinfo.ads, sinfo.adb:
7324bf49
AC
5288 New field Access_To_Subprogram_Definition in Access_Definition nodes
5289
5290 * sem_ch6.adb (Process_Formals): Move here the code that creates and
5291 decorates internal subtype declaration corresponding to the
5292 null-excluding formal. This code was previously in Set_Actual_Subtypes.
5293 In addition, carry out some code cleanup on this code. In case of
5294 access to protected subprogram call
5295 Replace_Anonymous_Access_To_Protected_Subprogram.
5296 (Set_Actual_Subtypes): Code cleanup.
5297
5298 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
5299 Find_Type in case of anonymous access renamings. Add warning in case of
5300 null-excluding attribute used in anonymous access renaming.
5301
5302 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
5303 subprogram
5304
5305 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
5306 subprogram.
5307 (Access_Definition): In case of anonymous access to subprograms call
5308 the corresponding semantic routine to decorate the node.
5309 (Access_Subprogram_Declaration): Addition of some comments indicating
5310 some code that probably should be added here. Detected by comparison
5311 with the access_definition subprogram.
5312 (Analyze_Component_Declaration): In case of access to protected
5313 subprogram call Replace_Anonymous_Access_To_Protected.
5314 (Array_Type_Declaration): In case of access to protected subprogram call
5315 Replace_Anonymous_Access_To_Protected_Subprogram.
5316 (Process_Discriminants): In case of access to protected subprogram call
5317 Replace_Anonymous_Access_To_Protected_Subprogram.
5318
5319 * par.adb (P_Access_Definition): New formal that indicates if the
5320 null-exclusion part was present.
5321 (P_Access_Type_Definition): New formal that indicates if the caller has
5322 already parsed the null-excluding part.
5323
5324 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
5325 (P_Identifier_Declarations): Code cleanup and give support to renamings
5326 of anonymous access to subprogram types.
5327 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
5328 (P_Array_Type_Definition): Give support to AI-254.
5329 (P_Component_Items): Give support to AI-254.
5330 (P_Access_Definition): New formal that indicates if the header was
5331 already parsed by the caller.
5332 (P_Access_Type_Definition): New formal that indicates if the caller has
5333 already parsed the null-excluding part.
5334
5335 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
5336 call to P_Access_Definition.
5337
53382004-04-19 Geert Bosch <bosch@gnat.com>
5339
5340 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
5341 the delicate semantics of floating-point to integer conversion.
5342 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
5343
5344 * eval_fat.adb (Machine_Mantissa): Moved to spec.
5345 (Machine_Radix): New function.
5346
5347 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
5348 conversion checks.
5349 (Machine_Radix): New function also for use in conversion checks.
5350
53512004-04-19 Ed Schonberg <schonberg@gnat.com>
5352
5353 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
5354
5355 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
5356 to decorate the access-to-protected subprogram and the equivalent type.
5357
5358 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
5359 to anonymous access to subprogram types.
5360
5361 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
5362 constant-folding, for legality checks in contexts that require an RM
5363 static expression.
5364
5365 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
5366 temporary but stack checking is not enabled, increment serial number
5367 to so that symbol generation is consistent with and without stack
5368 checking.
5369
5370 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
5371 independent on whether stack checking is enabled, caller must check
5372 the corresponding flag.
5373
5374 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
5375 range checks.
5376 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
5377 parent if it has discriminants.
5378 (Build_Derived_Private_Type): Constructed full view does
5379 not come from source.
5380 (Process_Discriminants): Default discriminants on a tagged type are
5381 legal if this is the internal completion of a private untagged
5382 derivation.
5383
5384 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
5385 no constraint checks, because it corresponds to an existing object.
5386
5387 * sem_prag.adb (Process_Convention): Pragma applies
5388 only to subprograms in the same declarative part, i.e. the same unit,
5389 not the same scope.
5390
5391 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
5392 ignore type mismatch on a numeric conversion if expression comes from
5393 expansion.
5394
53952004-04-19 Sergey Rybin <rybin@act-europe.fr>
5396
5397 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
5398 Homonym_Number parameter, add processing for Source_Location parameter
5399 corresponding.
5400 (Check_Eliminated): Remove the check for homonym numbers, add the check
5401 for source location traces.
5402
5403 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
5404 with Arg_Source_Location corresponding to the changes in the format of
5405 the pragma.
5406
5407 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
5408 Eliminate pragma corresponding to the changes in the format of the
5409 pragma: Homonym_Number is replaced with Source_Location, two ways of
5410 distinguishing homonyms are mutially-exclusive.
5411
54122004-04-19 Joel Brobecker <brobecker@gnat.com>
5413
5414 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
5415
5416 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
5417 No_Dollar_In_Label, no longer necessary, as it is always True.
5418 (Strip_Suffixes): Likewise.
5419
54202004-04-19 Gary Dismukes <dismukes@gnat.com>
5421
5422 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
5423 modulus for compatibility with size clause on targets with 16-bit
5424 Integer.
5425
5426 * layout.adb (Discrimify): In the case of private types, set Vtyp to
5427 full type to fix type mismatches on calls to size functions for
5428 discriminant-dependent array components.
5429
54302004-04-19 Jerome Guitton <guitton@act-europe.fr>
5431
5432 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
5433 lib.
5434
54352004-04-19 Pascal Obry <obry@gnat.com>
5436
5437 * mdll-utl.adb (Locate): New version is idempotent.
5438
54392004-04-17 Laurent Guerby <laurent@guerby.net>
fa795c69
LG
5440
5441 PR ada/14988 (partial)
5442 * impunit.adb: Fix typo.
90afe2c9 5443
cce0244b
NN
54442004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
5445
5446 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
5447 and install-rts-cert targets. Remove all gnatlib and gnattools
5448 targets and all other rts-* targets (moved to libada). Remove (now)
5449 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
5450 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
5451
af152989
AC
54522004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5453
5454 * trans.c (tree_transform): Shortcut returning error_mark_node for
5455 statements in annotate_only_mode.
5456 (tree_transform, case N_Label, case N_Return_Statement,
5457 N_Goto_Statement): Make statement tree instead of generating code.
5458 (tree_transform, case N_Assignment_Statement): No longer check
5459 type_annotate_only.
5460 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
5461 RETURN_STMT): New.
5462 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
5463 New fcns.
5464 (gnat_to_gnu): Collect any RTL generated and deal with it.
5465 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
5466 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
5467 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
5468
5469 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
5470
5471 * ada-tree.def (EXPR_STMT): Fix typo in name.
5472 (BLOCK_STMT, IF_STMT): New nodes.
5473
5474 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
5475 LABEL_STMT_FIRST_IN_EH): New macros.
5476 (RETURN_STMT_EXPR): Likewise.
5477
5478 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
5479 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
5480
54812004-04-08 Thomas Quinot <quinot@act-europe.fr>
5482
5483 * atree.ads: Correct documentation on extended nodes.
5484
5485 * link.c: Set run_path_option for FreeBSD.
5486
54872004-04-08 Vincent Celier <celier@gnat.com>
5488
5489 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
5490 one of the ALI file, do not link with DEC lib.
5491
5492 * par.adb Remove the last two characters ("%s" or "%b") when checking
5493 if a language defined unit may be recompiled.
5494
54952004-04-08 Ed Schonberg <schonberg@gnat.com>
5496
5497 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
5498 removal of abstract operation leaves no possible interpretation for
5499 expression.
5500
5501 * sem_eval.adb (Eval_Qualified_Expression): Use
5502 Set_Raises_Constraint_Error on node when needed, so that it does not
5503 get optimized away by subsequent optimizations.
5504
5505 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
5506 operands even when they are not wrapped in a type conversion.
5507
55082004-04-08 Olivier Hainque <hainque@act-europe.fr>
5509
5510 * sem_prag.adb (Set_Exported): Warn about making static as result of
5511 export only when the export is coming from source. This may be not
5512 be true e.g. on VMS where we expand export pragmas for exception codes
5513 together with imported or exported exceptions, and we don't want the
5514 user to be warned about something he didn't write.
5515
55162004-04-08 Thomas Quinot <quinot@act-europe.fr>
5517
5518 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
5519 duplication between normal entities and those declared as renamings.
5520 No functional change.
5521
90afe2c9 5522 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
af152989
AC
5523 inline functions returning an unconstrained result.
5524
55252004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
5526
5527 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
5528 conform to what other front-ends do.
5529
55302004-04-08 Doug Rupp <rupp@gnat.com>
5531
5532 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
5533 libraries.
5534
3984e89a
AC
55352004-04-06 Pascal Obry <obry@gnat.com>
5536
5537 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
5538
5539 * osint.adb (Program_Name): Do not look past a directory separator.
5540
55412004-04-06 Thomas Quinot <quinot@act-europe.fr>
5542
5543 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
5544
5545 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
5546 requirement for preserving a copy of the original assignment node.
5547
5548 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
5549
55502004-04-06 Olivier Hainque <hainque@act-europe.fr>
5551
5552 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
5553 when supported.
5554
55552004-04-06 Ed Schonberg <schonberg@gnat.com>
5556
5557 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
5558 operator calls in functional notation, and apply
5559 Universal_Interpretation to operands, not to their type.
5560
55612004-04-06 Robert Dewar <dewar@gnat.com>
5562
5563 * 5wdirval.adb: Minor reformatting
5564
55652004-04-06 Ed Falis <falis@gnat.com>
5566
5567 * gnat_rm.texi: Improve a reference to the GCC manual
5568
30c20106
AC
55692004-04-05 Vincent Celier <celier@gnat.com>
5570
5571 * adaint.h, adaint.c: Add function __gnat_named_file_length
5572
5573 * impunit.adb: Add Ada.Directories to the list
5574
5575 * Makefile.in: Add VMS and Windows versions of
5576 Ada.Directories.Validity package body.
5577
5578 * Makefile.rtl: Add a-direct and a-dirval
5579
5580 * mlib-tgt.ads: Minor comment update.
5581
5582 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
5583 a-direct.ads, a-direct.adb: New files.
5584
55852004-04-05 Vincent Celier <celier@gnat.com>
5586
5587 PR ada/13620
5588 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
5589 just to the compiler.
5590
55912004-04-05 Robert Dewar <dewar@gnat.com>
5592
5593 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
5594 returned string is 1.
5595
5596 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
5597
5598 * eval_fat.ads: Minor reformatting
5599
5600 * g-curexc.ads: Document that lower bound of returned string values
5601 is always one.
5602
5603 * gnatlink.adb: Add ??? comment for previous change
5604 (need to document why this is VMS specific)
5605
5606 * s-stoele.ads: Minor reformatting
5607
5608 * tbuild.ads: Minor reformatting throughout (new function specs)
5609
5610 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
5611 after WITH.
5612
5613 * scng.adb: Minor reformatting
5614
56152004-04-05 Geert Bosch <bosch@gnat.com>
5616
5617 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
5618 (Leading_Part): Still perform truncation to machine number if the
5619 specified radix_digits is greater or equal to machine_mantissa.
5620
56212004-04-05 Javier Miranda <miranda@gnat.com>
5622
5623 * par-ch3.adb: Complete documentation of previous change
5624 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
5625 (aliased must appear before constant).
5626
5627 * par-ch4.adb: Complete documentation of previous change.
5628
5629 * par-ch6.adb: Complete documentation of previous change.
5630
5631 * sinfo.ads: Fix typo in commment.
5632
56332004-04-05 Ed Schonberg <schonberg@gnat.com>
5634
5635 * sem_ch3.adb (Inherit_Components): If derived type is private and has
5636 stored discriminants, use its discriminants to constrain parent type,
5637 as is done for non-private derived record types.
5638
5639 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
5640 Ada 2005 AI-310: an abstract non-dispatching operation is not a
5641 candidate interpretation in an overloaded call.
5642
5643 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
5644 expression is Null and target type is not an access type (e.g. a
5645 non-private address type).
5646
56472004-04-05 Thomas Quinot <quinot@act-europe.fr>
5648
5649 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
5650 statement whose right-hand side is an inlined call, save a copy of the
5651 original assignment subtree to preserve enough consistency for
5652 Analyze_Assignment to proceed.
5653
5654 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
5655 complete assignment subtree which is now unnecessary, as the expansion
5656 of inlined call has been improved to preserve a consistent assignment
5657 tree. Note_Possible_Modification must be called only
5658 after checks have been applied, or else unnecessary checks will
5659 be generated.
5660
5661 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
5662 of explicit dereferences that do not Come_From_Source:
5663 - be selective on cases where we must go back to the dereferenced
5664 pointer (an assignment to an implicit dereference must not be
5665 recorded as modifying the pointer);
5666 - do not rely on Original_Node being present (Analyze_Assignment
5667 calls Note_Possible_Modification on a copied tree).
5668
5669 * sem_warn.adb (Check_References): When an unset reference to a pointer
5670 that is never assigned is encountered, prefer '<pointer> may be null'
5671 warning over '<pointer> is never assigned a value'.
5672
56732004-04-05 Ramon Fernandez <fernandez@gnat.com>
5674
5675 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
5676 the ABI.
5677
56782004-04-05 Olivier Hainque <hainque@act-europe.fr>
5679
5680 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
5681 libexc. We currently don't reference anything in this library and
5682 linking it in triggers linker warnings we don't want to see.
5683
5684 * init.c: Update comments.
5685
4f976745
RK
56862004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5687
5688 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
5689 * utils.c (create_field_decl): Likewise.
5690 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
5691
6da7d579
AC
56922004-04-02 Arnaud Charlet <charlet@act-europe.fr>
5693
5694 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
5695 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
5696 Add info directory entry and category.
5697
18c6ada9
JH
56982004-04-02 Jan Hubicka <jh@suse.cz>
5699
5700 * utils.c: Include function.h
5701 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
5702
7cd4527e
AC
57032004-04-01 Arnaud Charlet <charlet@act-europe.fr>
5704
5705 PR ada/14150
5706 * Make-lang.in: Clean up generation of documentation
5707
5708 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
5709
5710 * xgnatug.adb: Removed, replaced by xgnatugn.adb
5711
5712 * xgnatugn.adb: Replaces xgnatug.adb
5713
5714 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
5715
5716 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
5717
5718 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
5719 gnat_ug_wnt.texi: Removed.
5720
0c250f07
AC
57212004-04-01 Arnaud Charlet <charlet@act-europe.fr>
5722
5723 * utils2.c: Update copyright notice.
5724
6b6fcd3e
AC
57252004-04-01 Robert Dewar <dewar@gnat.com>
5726
5727 * checks.adb: Minor reformatting throughout
5728 Note that prev checkin added RM reference to alignment warning
5729
57302004-04-01 Ed Schonberg <schonberg@gnat.com>
5731
5732 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
5733 non-static when building aggregate for bit-packed array.
5734
5735 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
5736 function call that is itself the actual in a procedure call, build
5737 temporary for it.
5738
5739 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
5740 a string literal, create a temporary for it, constant folding only
5741 handles scalars here.
5742
57432004-04-01 Vincent Celier <celier@gnat.com>
5744
5745 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
5746 Error_Msg_SP): New empty procedures to instantiate the Scanner.
5747 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
5748 tokens.
5749 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
5750 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
5751 and get the checksum.
5752
5753 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
5754 already in the Q.
5755 Increase the Marking_Label at the end of the Multiple_Main_Loop,
5756 instead of at the beginning.
5757
5758 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
5759 directly.
5760 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
5761 on VMS.
5762
5763 * osint.ads (Multi_Unit_Index_Character): New Character global variable
5764
5765 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
5766 not '~' directly.
5767
5768 * par.adb: Remove test on file name to detect language defined units.
5769 Add test on unit name, after parsing, to detect language defined units
5770 that are not compiled with -gnatg (except System.RPC and its children)
5771
5772 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
5773 following units without style checking.
5774
5775 * switch-c.adb: Change -gnatC to -gnateI
5776
5777 * usage.adb: Document new switch -gnateInnn
5778
5779 * scng.adb (Accumulate_Token_Checksum): New procedure
5780 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
5781 word or literal number.
5782 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
5783 numbers.
5784
57852004-04-01 Thomas Quinot <quinot@act-europe.fr>
5786
5787 * a-tasatt.adb,
5788 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
5789 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
5790 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
5791 5vtpopde.adb: Add missing 'constant' keywords.
5792
57932004-04-01 Javier Miranda <miranda@gnat.com>
5794
5795 * par-ch4.adb: (P_Allocator): Code cleanup
5796
5797 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
5798 attribute.
5799
5800 * sinfo.ads: Complete documentation of previous change
5801
58022004-04-01 Pascal Obry <obry@gnat.com>
5803
5804 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
5805 only on VMS. This special handling was done because an old GNU/ld bug
5806 on Windows which has been fixed.
5807
58082004-04-01 GNAT Script <nobody@gnat.com>
5809
5810 * Make-lang.in: Makefile automatically updated
5811
8df83eae
RK
58122004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5813
5814 * decl.c (gnat_to_gnu_entity, make_type_from_size):
5815 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
5816 * trans.c (tree_transform, convert_with_check): Likewise.
5817 * utils.c (gnat_signed_or_unsigned_type): Likewise.
5818 (build_vms_descriptor, unchecked_convert): Likewise.
5819 * utils2.c (nonbinary_modular_operation): Likewise.
5820
2820d220
AC
58212004-03-29 Javier Miranda <miranda@gnat.com>
5822
5823 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
5824 (Install_Null_Excluding_Check): Local subprogram that determines whether
5825 an access node requires a runtime access check and if so inserts the
5826 appropriate run-time check.
5827 (Apply_Access_Check): Call Install_Null_Excluding check if required
5828 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
5829
5830 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
5831
5832 * einfo.ads: Fix typo in comment
5833
5834 * exp_ch3.adb (Build_Assignment): Generate conversion to the
5835 null-excluding type to force the corresponding run-time check.
5836 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
5837 type to force the corresponding run-time check.
5838
5839 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
5840 the null-excluding type to force the corresponding run-time check.
5841
5842 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
5843 case of access types unless they have the null-excluding attribute.
5844
5845 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
5846 part.
5847
5848 * exp_util.ads: Fix typo in comment
5849
5850 * par.adb (P_Null_Exclusion): New subprogram
5851 (P_Subtype_Indication): New formal that indicates if the null-excluding
5852 part has been scanned-out and it was present
5853
5854 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
5855
5856 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
5857 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
5858 type to force the corresponding run-time check
5859 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
5860 components
5861 (Resolve_Array_Aggregate): Carry out some static checks
5862 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
5863
5864 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
5865 attribute must be set only if specified by means of the null-excluding
5866 part. In addition, we must also propagate the access-constant attribute
5867 if present.
5868 (Access_Subprogram_Declaration, Access_Type_Declaration,
5869 Analyze_Component_Declaration, Analyze_Object_Declaration,
5870 Array_Type_Declaration, Process_Discriminants,
5871 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
5872 and carry out some static checks.
5873 (Build_Derived_Access_Type): Set the null-excluding attribute
5874 (Derived_Type_Declaration, Process_Subtype): Carry out some static
5875 checks.
5876
5877 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
5878
5879 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
5880
5881 * sem_ch6.adb (Process_Formals): Carry out some static checks.
5882 (Set_Actual_Subtypes): Generate null-excluding subtype if the
5883 null-excluding part was present; it is not required to be done here in
5884 case of anonymous access types.
5885 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
5886 value.
5887
5888 * sem_res.adb (Resolve_Actuals): Carry out some static check
5889 (Resolve_Null): Allow null in anonymous access
5890
5891 * sinfo.adb: New subprogram Null_Exclusion_Present
5892 All_Present and Constant_Present available on access_definition nodes
5893
5894 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
5895 object_declaration, derived_type_definition, component_definition,
5896 discriminant_specification, access_to_object_definition,
5897 access_function_definition, allocator, access_procedure_definition,
5898 access_definition, parameter_specification, All_Present and
5899 Constant_Present flags available on access_definition nodes.
5900
59012004-03-29 Robert Dewar <dewar@gnat.com>
5902
5903 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
5904 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
5905 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
5906 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
5907 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
5908 sem_prag.adb: Updates to handle multiple units/file
5909
5910 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
5911
5912 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
5913 sem_util.adb: Minor reformatting
5914
5915 * sem_ch12.adb: Add comment for previous change
5916
59172004-03-29 Laurent Pautet <pautet@act-europe.fr>
5918
5919 * osint.adb (Executable_Prefix): Set Exec_Name to the current
5920 executable name when not initialized. Otherwise, use its current value.
5921
5922 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
5923 initialize it to another executable name than the current one. This
5924 allows to configure paths for an executable name (gnatmake) different
5925 from the current one (gnatdist).
5926
59272004-03-29 Ed Schonberg <schonberg@gnat.com>
5928
5929 * exp_ch6.adb (Expand_Call): A call to a function declared in the
5930 current unit cannot be inlined if it appears in the body of a withed
5931 unit, to avoid order of elaboration problems in gigi.
5932
5933 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
5934 information for protected (wrapper) operation as well, to simplify gdb
5935 use.
5936
5937 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
5938 protected body, indicate that the entity for the generated spec comes
5939 from source, to ensure that references are properly generated for it.
5940 (Build_Body_To_Inline): Do not inline a function that returns a
5941 controlled type.
5942
5943 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
5944 apply convention to homonyms that are declared explicitly.
5945
5946 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
5947 that renames an equality operator and the operands are overloaded,
5948 resolve them with the declared formal types, before rewriting as an
5949 operator.
5950
59512004-03-29 GNAT Script <nobody@gnat.com>
5952
5953 * Make-lang.in: Makefile automatically updated
5954
6d11af89
AC
59552004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
5956
5957 * memtrack.adb: Log realloc calls, which are treated as free followed
5958 by alloc.
5959
59602004-03-25 Vincent Celier <celier@gnat.com>
5961
5962 * prj-makr.adb (Process_Directories): Detect when a file contains
5963 several units. Do not include such files in the config pragmas or
5964 in the naming scheme.
5965
5966 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
5967 Resolve links only when not in Trusted_Mode.
5968 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
5969 Do not resolve links for the display names.
5970
5971 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
5972 resolve links when computing the display names.
5973
59742004-03-25 Thomas Quinot <quinot@act-europe.fr>
5975
5976 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
5977 attribute reference does not denote a subtype, it can be any
5978 expression that has a classwide type, potentially after an implicit
5979 dereference. In particular, the prefix can be a view conversion for
5980 a classwide type (for which Is_Object_Reference holds), but it can
5981 also be a value conversion for an access-to-classwide type. In the
5982 latter case, there is an implicit dereference, and the original node
5983 for the prefix does not verify Is_Object_Reference.
5984
5985 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
5986 conversion of a discriminant-dependent component of a mutable object
5987 is one itself.
5988
59892004-03-25 Ed Schonberg <schonberg@gnat.com>
5990
5991 * freeze.adb (Freeze_Entity): When an inherited subprogram is
5992 inherited, has convention C, and has unconstrained array parameters,
5993 place the corresponding warning on the derived type declaration rather
5994 than the original subprogram.
5995
5996 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
5997 indication on renaming declaration, if formal has a box and actual
5998 is absent.
5999
6000 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
6001 determine whether to generate an implicit or explicit reference to
6002 the renamed entity.
6003
6004 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
6005 subprogram renaming comes from a defaulted formal subprogram in an
6006 instance.
6007
60082004-03-25 Gary Dismukes <dismukes@gnat.com>
6009
6010 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
6011 value expressions to ensure that calls within a component definition
6012 will be checked (since those are evaluated during the record type's
6013 elaboration).
6014
60152004-03-25 Arnaud Charlet <charlet@act-europe.fr>
6016
6017 * s-tpobop.adb: Code clean up:
6018 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
6019 code.
6020 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
6021
60222004-03-25 Jose Ruiz <ruiz@act-europe.fr>
6023
6024 * Makefile.in: Clean up in the ravenscar run time.
6025
22421b79
RK
60262004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6027
6028 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
6029 of No_Strict_Aliasing to build_pointer_type_for_mode.
6030 * utils.c (update_pointer_to): Walk pointer and ref chains.
6031
24105bab
AC
60322004-03-22 Cyrille Comar <comar@act-europe.fr>
6033
6034 * ali.ads: Fix Comment about Dynamic_Elab.
6035
6036 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
6037 Has_RACW, Is_Generic, etc.)
6038 (Output_Object, Gnatls): Take into account ALI files not attached to
6039 an object.
6040
60412004-03-22 Vincent Celier <celier@gnat.com>
6042
6043 * gprep.adb: Change all String_Access to Name_Id
6044 (Is_ASCII_Letter): new function
6045 (Double_File_Name_Buffer): New procedure
6046 (Preprocess_Infile_Name): New procedure
6047 (Process_Files): New procedure
6048 (Gnatprep): Check if output and input are existing directories.
6049 Call Process_Files to do the real job.
6050
60512004-03-22 Robert Dewar <dewar@gnat.com>
6052
6053 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
6054 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
6055
60562004-03-22 Sergey Rybin <rybin@act-europe.fr>
6057
6058 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
6059 case when the source contains only comments.
6060
60612004-03-22 Ed Schonberg <schonberg@gnat.com>
6062
6063 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
6064 declaration for a child subprogram body that acts as a spec, indicate
6065 that the entity in the declaration needs debugging information.
6066
6067 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
6068 full view if the subtype is created for a constrained record component;
6069 gigi has enough information to construct the record, and there is no
6070 place in the tree for the declaration.
6071
6072 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
6073 serial number for the dummy body that is built for analysis, to avoid
6074 inconsistencies in the generation of internal names when compiling
6075 with -gnatN.
6076
60772004-03-22 Thomas Quinot <quinot@act-europe.fr>
6078
6079 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
6080 object.
6081
60822004-03-22 GNAT Script <nobody@gnat.com>
6083
6084 * Make-lang.in: Makefile automatically updated
6085
6fce44af
RK
60862004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6087
6088 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
6089 * trans.c (tree_transform, emit_index_check): Likewise.
6090 * utils.c (build_template): Likewise.
6091 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
6092 (maybe_unconstrained_array, unchecked_convert): Likewise.
6093 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
6094 (build_unary_op): Likewise.
6095 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
6096 (fill_vms_descriptor): Likewise.
6097 (build_call_alloc_dealloc): Likewise.
6098 ALIGN is unsigned.
6099 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
6100
802f6d4b
JM
61012004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
6102
6103 PR other/14630
6104 * gnat_ug.texi: Add info directory category and entry.
6105 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
6106 gnat_ug_wnt.texi: Regenerate.
6107
30f3b32b
AC
61082004-03-19 Arnaud Charlet <charlet@act-europe.fr>
6109
6110 * ada-tree.h: Update copyright notice.
6111 Minor reformatting.
6112
61132004-03-19 Olivier Hainque <hainque@act-europe.fr>
6114
6115 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
6116 as regular exception objects and not as mere integers representing the
6117 condition code. The latter approach required some dynamics to mask off
6118 severity bits, which did not fit well into the GCC table based model.
6119 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
6120 exception data objects. We don't it and it would conflict with the other
6121 external symbol we have to generate for such exceptions.
6122
6123 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
6124 the special code for VMS exceptions, since these are now represented
6125 as regular exceptions objects.
6126
7548281d
RK
61272004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6128
6129 * decl.c (debug_no_type_hash): Remove.
6130 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
6131 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
6132
7324bf49 61332004-03-19 Laurent Guerby <laurent@guerby.net>
dbee7ab9 6134
90afe2c9 6135 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
dbee7ab9 6136 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
90afe2c9 6137
eb34af89
RK
61382004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6139
6140 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
6141 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
6142 (TYPE_RM_SIZE_INT): Directly use type.values.
6143 (TREE_LOOP_ID): Clean up check.
6144 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
6145 TYPE_VALUES, not TYPE_FIELDS.
6146 * trans.c (convert_with_check): Delay access of bounds of basetype
6147 until sure is numeric.
6148
a336eaca
AC
61492004-03-18 Arnaud Charlet <charlet@act-europe.fr>
6150
6151 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
6152
6153 Code clean up:
6154 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
6155 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
6156 Specific.Set instead of direct call to e.g pthread_setspecific.
6157
61582004-03-18 Thomas Quinot <quinot@act-europe.fr>
6159
6160 * adaint.c: Update comments.
6161
6162 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
6163 GNATLIB_SHARED for FreeBSD.
6164
61652004-03-18 Jose Ruiz <ruiz@act-europe.fr>
6166
6167 * init.c [VxWorks]: Do not fix the stack size for the environment task.
6168 When needed (stack checking) the stack size is retrieved
6169 from the VxWorks kernel.
6170
6171 * Makefile.in: Flag -nostdinc is required when building the run time
6172 for avoiding looking for files in the base compiler.
6173 Add the VxWorks specific version of the package body for
6174 System.Stack_checking.Operations (5zstchop.adb).
6175
6176 * Make-lang.in: Add the object file for
6177 System.Stack_Checking.Operations.
6178
6179 * Makefile.rtl: Add object file for the package
6180 System.Stack_Checking.Operations.
6181
6182 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
6183
6184 * s-stache.ads, s-stache.adb: Move the operations related to stack
6185 checking from this package to package System.Stack_Checking.Operations.
6186 This way, stack checking operations are only linked in the final
6187 executable when using the -fstack-check flag.
6188
61892004-03-18 Doug Rupp <rupp@gnat.com>
6190
6191 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
6192 Reorganize ifeq's.
6193
6194 * 5qsystem.ads, 5xcrtl.ads: New files.
6195
61962004-03-18 Vincent Celier <celier@gnat.com>
6197
6198 * prj.adb (Reset): Reset hash table Files_Htable
6199
6200 * prj-env.adb (Source_Paths, Object_Paths): New tables.
6201 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
6202 the procedures Add_To_Path_File.
6203 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
6204 making sure that each directory is present only once and, for object
6205 dirs, when a directory already present is added, the duplicate is
6206 removed and the directory is always put as the last in the table.
6207 Write the path files at the end of these accumulations.
6208
6209 * prj-nmsc.adb (Record_Source): Add source file name in hash table
6210 Files_Htable for all sources.
6211
6212 * prj-proc.adb (Process): Remove restrictions between not directly
6213 related extending projects.
6214
62152004-03-18 Emmanuel Briot <briot@act-europe.fr>
6216
6217 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
6218 (Find_Sources): Minor speed optimization.
6219
6220 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
6221 parameter Trusted_Mode.
6222
62232004-03-18 Sergey Rybin <rybin@act-europe.fr>
6224
6225 * scn.adb (Determine_License): Take into account a degenerated case
6226 when the source contains only comments.
6227
62282004-03-18 Ed Schonberg <schonberg@gnat.com>
6229
6230 * sem_warn.adb (Check_References): For a warning on a selected
6231 component that does not come from source, locate an uninitialized
6232 component of the record type to produce a more precise error message.
6233
e6f69614
AC
62342004-03-15 Jerome Guitton <guitton@act-europe.fr>
6235
6236 * 3zsoccon.ads: Fix multicast options.
6237
6238 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
6239 in the spec.
6240
62412004-03-15 Robert Dewar <dewar@gnat.com>
6242
6243 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
6244 pragma used for a private type.
6245
6246 * lib-xref.adb (Generate_Reference): Do not generate warning if
6247 reference is in a different unit from the pragma Unreferenced.
6248
6249 * 5vtpopde.adb: Minor reformatting
6250 Fix casing of To_Task_ID
6251
6252 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
6253 flag if we have an unchecked conversion to an access type in the same
6254 unit.
6255
62562004-03-15 Geert Bosch <bosch@gnat.com>
6257
6258 * a-ngcoty.adb (Modulus): In alternate formula for large real or
6259 imaginary parts, use Double precision throughout.
6260
6261 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
6262 we want to be able to compile run-time with -gnata for testing, but
6263 this may also be instantiated in user code that is compiled with -gnata.
6264
62652004-03-15 Olivier Hainque <hainque@act-europe.fr>
6266
6267 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
6268 codes. Having a separate type for this is useful to enforce consistency
6269 throughout the various run-time units.
6270 (Exception_Data): Use Exception_Code for Import_Code.
6271
6272 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
6273 Natural and Integer in various places.
6274 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
6275 with the severity bits masked off.
6276 (Register_VMS_Exception): Handle the additional exception data pointer
6277 argument.
6278
6279 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
6280 component, now reflected by an exported accessor.
6281 (is_handled_by): New routine to compute whether the propagated
6282 occurrence matches some handler choice specification. Extracted out of
6283 get_action_description_for, and expanded to take care of the VMS
6284 specifities.
6285 (get_action_description_for): Use is_handled_by instead of an explicit
6286 complex condition to decide if the current choice at hand catches the
6287 propagated occurrence.
6288
6289 * raise.h (Exception_Code): New type for C.
6290
6291 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
6292 System.Standard_Library.Exception_Code, to allow references from the
6293 pragma import/export expander.
6294
6295 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
6296 New accessors to allow easy access to GNAT exception data
6297 characteristics.
6298 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
6299 redundant Handled_By_Others component, helper for the personality
6300 routine which will now be able to call the appropriate exception data
6301 accessor instead.
6302
6303 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
6304 component of Standard_Exception_Type to be the closest possible to
6305 Exception_Code in System.Standard_Library, that we cannot get at this
6306 point. Expand a ??? comment to notify that this type node should
6307 probably be rewritten later on.
6308
6309 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
6310 registration call to include a pointer to the exception object in the
6311 arguments.
6312
6313 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
6314 instead of int and explicit bitmasks.
6315
63162004-03-15 Vincent Celier <celier@gnat.com>
6317
6318 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
6319 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
6320
6321 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
6322 longer needed now that it is in the spec of
6323 System.Tasking.Task_Attributes.
6324
6325 * adaint.h, adaint.c: (__gnat_create_output_file): New function
6326
6327 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
6328
6329 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
6330
6331 * make.adb (Gnatmake): Do not check the executable suffix; it is being
6332 taken care of in Scan_Make_Arg.
6333 (Scan_Make_Arg): Add the executable suffix only if the argument
6334 following -o, in canonical case, does not end with the executable
6335 suffix. When in verbose mode and executable file name does not end
6336 with executable suffix, output the executable name, in canonical case.
6337
6338 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
6339 to avoid warnings when instantiating Ada.Task_Attributes.
6340 Minor reformating.
6341
6342 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
6343 in the correct order.
6344
6345 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
6346 redirect standard output and error to a file for the invocation of the
6347 compiler, then read the file.
6348
6349 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
6350 directory, instead of the Value.
6351 (Find_Source_Dirs): Remove useless code & comments.
6352
63532004-03-15 Ed Schonberg <schonberg@gnat.com>
6354
6355 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
6356 tagged type is inherited, and the parent operation is not frozen yet,
6357 force generation of a freeze node for the inherited operation, so the
6358 corresponding dispatch entry is properly initialized.
6359 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
6360 when looking for user-defined equality operation.
6361
6362 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
6363 boolean when locating primitive equality of tagged component.
6364
6365 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
6366 bit-aligned field and the right-hand side a string literal, introduce
6367 a temporary before expanding assignment into a loop.
6368
6369 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
6370 priority in full, to ensure that any expanded subepxressions of it are
6371 elaborated in the scope of the init_proc.
6372
6373 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
6374 after object declaration, skipping over code that may have been
6375 generated for validity checks.
6376
6377 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
6378 discriminants, ignore the known discriminants of its full view, if
6379 any, to check legality.
6380
6381 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
6382 component if type has unknown discriminants.
6383 (Analyze_Private_Extension_Declaration): Discriminant constraint is
6384 null if type has unknown discriminants.
6385
6386 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
6387 for end label when present.
6388
6389 * s-fileio.adb (Open): When called with a C_Stream, use given name for
6390 temporary file, rather than an empty string.
6391
63922004-03-15 Ed Falis <falis@gnat.com>
6393
6394 * s-thread.adb: Removed, no longer used.
6395
63962004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6397
6398 * decl.c (target.h): Now include.
6399 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
6400 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
6401 (validate_size): For POINTER_TYPE, get smallest size permitted on
6402 machine.
6403
6404 * fe.h: Sort Einfo decls and add Set_Mechanism.
6405
6406 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
6407 (ada/decl.o): Depends on target.h.
6408
6409 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
6410 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
6411
64122004-03-15 Thomas Quinot <quinot@act-europe.fr>
6413
6414 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
6415
6416 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
6417 Insert_Dereference_Action when rewriting an implicit dereference into
6418 an explicit one, this will be taken care of during expansion of the
6419 explicit dereference.
6420 (Expand_N_Slice): Same. Always do the rewriting, even for the case
6421 of non-packed slices, since the dereference action generated by
6422 expansion of the explicit dereference is needed in any case.
6423 (Expand_N_Selected_Component): When rewriting an implicit dereference,
6424 analyze and resolve the rewritten explicit dereference so it is seen
6425 by the expander.
6426 (Insert_Dereference_Action): This procedure is now called only for the
6427 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
6428 dereferences that do not come from source (including explicit
6429 dereferences resulting from rewriting implicit ones), but do not
6430 recursively insert a check for the dereference nodes contained within
6431 the check.
6432 (Insert_Dereference_Action): Clarify and correct comment.
6433
e4c9c075
PB
64342004-03-08 Paolo Bonzini <bonzini@gnu.org>
6435
6436 PR ada/14131
6437 Move language detection to the top level.
6438 * config-lang.in: Build by default.
6439
8a6a52dc
AC
64402004-03-05 Robert Dewar <dewar@gnat.com>
6441
6442 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
6443
6444 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
6445 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
90afe2c9 6446 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
8a6a52dc
AC
6447 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
6448 unchecked conversion to spec to avoid warnings.
6449
6450 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
6451 to Task_ID
6452
6453 * 7stpopsp.adb: Correct casing in To_Task_ID call
6454
6455 * a-strsea.ads, a-strsea.adb: Minor reformatting
6456
6457 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
6458
6459 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
6460 Adjust Max_Msg_Length to be clearly large enough.
6461
6462 * fe.h: Define In_Same_Source_Unit
6463
6464 * osint.adb: Add pragma Warnings Off to suppress warnings
6465 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
6466 aliasing warnings.
6467
6468 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
6469
6470 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
6471
6472 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
6473
6474 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
6475
6476 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
6477
6478 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
6479 node. We now do generate them for gcc back end.
6480
6481 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
6482 warning.
6483
6484 * sinput-c.adb: Fix bad name in header.
6485 Add pragma Warnings Off to suppress aliasing warning.
6486
6487 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
6488
6489 * snames.h, snames.ads, snames.adb: Add entry for pragma
6490 No_Strict_Aliasing.
6491
64922004-03-05 Vincent Celier <celier@gnat.com>
6493
6494 * prj-com.ads: Add hash table Files_Htable to check when a file name
6495 is already a source of another project.
6496
6497 * prj-nmsc.adb (Record_Source): Before recording a new source, check
6498 if its file name is not already a source of another project. Report an
6499 error if it is.
6500
6501 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
6502 source file name, call gnatpp with all the sources of the main project.
6503
6504 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
6505 of file names.
6506
6507 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
6508 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
6509 /RUNTIME_SYSTEM=, converted to --RTS=
6510 /NOTABS, converted to -notabs
6511
65122004-03-05 Pascal Obry <obry@gnat.com>
6513
6514 * make.adb: Minor reformatting.
6515
65162004-03-05 Ed Schonberg <schonberg@gnat.com>
6517
6518 Part of implemention of AI-262.
6519 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
6520
6521 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
6522 procedure.
6523
6524 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
6525 when component type is a partially constrained class-wide subtype.
6526 (Constrain_Discriminated_Type): If parent type has unknown
6527 discriminants, a constraint is illegal, even if full view has
6528 discriminants.
6529 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
6530 with unknown discriminants whose full view is a discriminated record.
6531
6532 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
6533 flag, to handle properly derivations of tagged types with unknown
6534 discriminants.
6535 (Analyze_Package_Spec, Analyze_Package_Body): Install
6536 Private_With_Clauses before analyzing private part or body.
6537
6538 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
6539 Has_Discriminants can be true for a given type (documentation).
6540
65412004-03-05 Arnaud Charlet <charlet@act-europe.fr>
6542
6543 * s-restri.ads: Fix license (GPL->GMGPL).
6544
6545 * s-tassta.adb: Minor reformatting.
6546
6547 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
6548 by calls to Exit_One_ATC_Level, since additional clean up is performed
6549 by this function.
6550
6551 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
6552 by calls to Exit_One_ATC_Level, since additional clean up is performed
6553 by this function.
6554
65552004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6556
6557 * trans.c: Reflect GCC changes to fix bootstrap problem.
6558 Add warning for suspicious aliasing unchecked conversion.
6559
65602004-03-05 GNAT Script <nobody@gnat.com>
6561
6562 * Make-lang.in: Makefile automatically updated
6563
555360a5
AC
65642004-03-02 Emmanuel Briot <briot@act-europe.fr>
6565
6566 * ali.adb (Read_Instantiation_Instance): Do not modify the
6567 current_file_num when reading information about instantiations, since
6568 this corrupts files in later references.
6569
65702004-03-02 Vincent Celier <celier@gnat.com>
6571
6572 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
6573 before checking if it is read-only.
6574
6575 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
6576 of SRC_DIRS and eliminate duplicates.
6577
6578 * gprcmd.adb: Replace command "path" with command "path_sep" to return
6579 the path separator.
6580 (Usage): Document path_sep
6581
6582 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
6583 C++ compiler. No need for a script.
6584 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
6585 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
6586 subst.
6587
6588 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
6589 where there are Ada sources.
6590 (Set_Ada_Paths): Only add to the include path the source dirs of project
6591 with Ada sources.
6592 (Add_To_Path): Add the Display_Values of the directories, not their
6593 Values.
6594
6595 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
6596 data.
6597
6598 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
6599 is not No_Name.
6600 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
6601 Value is canonicalized.
6602 (Language_Independent_Check): Do not copy Value to Display_Value when
6603 canonicalizing Value.
6604
6605 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
6606 path to find limited with cycles.
6607 (Parse_Single_Project): Use canonical cased path to find the end of a
6608 with cycle.
6609
66102004-03-02 Ed Schonberg <schonberg@gnat.com>
6611
6612 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
6613 and not a child unit.
6614
6615 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
6616 appear in a with_clause.
6617
6618 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
6619 only happen in type_annotate mode, do not try to elaborate it.
6620
6621 * exp_util.adb (Force_Evaluation): If expression is a selected
6622 component on the left of an assignment, use a renaming rather than a
6623 temporary to remove side effects.
6624
6625 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
6626 inlined instance body, which is analyzed before the end of the
6627 enclosing scope.
6628
66292004-03-02 Robert Dewar <dewar@gnat.com>
6630
6631 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
6632 sem_ch4.adb: Use new feature for substitution of keywords in VMS
6633
6634 * errout.ads, errout.adb: Implement new circuit for substitution of
6635 keywords in VMS.
6636
6637 * sem_case.adb (Analyze_Choices): Place message properly when case is
6638 a subtype reference rather than an explicit range.
6639
6640 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
6641
66422004-03-02 Doug Rupp <rupp@gnat.com>
6643
6644 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
6645
66462004-03-02 Thomas Quinot <quinot@act-europe.fr>
6647
6648 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
6649
66502004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6651
6652 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
6653 BLKmode bitfield.
6654
8a7988f5
AC
66552004-02-25 Robert Dewar <dewar@gnat.com>
6656
6657 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
6658 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
6659 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
6660 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
6661 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
6662 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
6663 the defining instance of the type to avoid aliasing problems.
6664 Fix copyright header. Fix bad comments in package header.
6665
6666 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
6667
66682004-02-25 Ed Schonberg <schonberg@gnat.com>
6669
6670 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
6671 rewritten as references when aliased through an address clause.
6672
6673 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
6674 whether call can be interpreted as an indirect call to the result of a
6675 parameterless function call returning an access subprogram.
6676
66772004-02-25 Arnaud Charlet <charlet@act-europe.fr>
6678
6679 Code clean up:
6680 * exp_ch7.adb (Make_Clean): Remove generation of calls to
6681 Unlock[_Entries], since this is now done by Service_Entries directly.
6682
6683 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
6684
6685 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
6686 Requeue_Call for better code readability. Change spec and update calls:
6687 PO_Service_Entries now unlock the PO on exit.
6688 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
6689 PO_Service_Entries.
6690
6691 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
6692
6693 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
6694
66952004-02-25 Sergey Rybin <rybin@act-europe.fr>
6696
6697 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
6698 protected subprogram call and analyzing the result of such expanding
6699 in case when the called protected subprogram is eliminated.
6700
6701 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
6702 names.
6703
67042004-02-25 Jerome Guitton <guitton@act-europe.fr>
6705
6706 * Makefile.in: Clean ups.
6707
6871ba5f
AC
67082004-02-23 Ed Schonberg <schonberg@gnat.com>
6709
6710 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
6711 protected operations if original subprogram is flagged as eliminated.
6712 (Expand_N_Subprogram_Body): For a protected operation, create
6713 discriminals for next operation before checking whether the operation
6714 is eliminated.
6715
6716 * exp_ch9.adb (Expand_N_Protected_Body,
6717 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
6718 for internal protected operations if the original subprogram is
6719 eliminated.
6720
6721 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
6722 declared in a single protected object.
6723
67242004-02-23 Vincent Celier <celier@gnat.com>
6725
6726 * prj-attr.adb: Make attribute Builder'Executable an associative array,
6727 case insensitive if file names are case insensitive, instead of a
6728 standard associative array.
6729
6730 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
6731 them as case insensitive on platforms where the file names are case
6732 sensitive.
6733
6734 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
6735 project file has already been parsed that canonical path are compared.
6736
67372004-02-23 Robert Dewar <dewar@gnat.com>
6738
6739 * sinput-c.ads: Correct bad unit title in header
6740
6741 * freeze.adb: Minor reformatting
6742
67432004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6744
6745 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
6746 nonaddressable COMPONENT_REF that is removing padding that we are
6747 taking the address of, take the address of the padded record instead
6748 if item is variable size.
6749
6e059adb
AC
67502004-02-20 Robert Dewar <dewar@gnat.com>
6751
6752 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
6753
67542004-02-20 Ed Schonberg <schonberg@gnat.com>
6755
6756 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
6757 itype references for the constrained designated type of a component
6758 whose base type is already frozen.
6759
67602004-02-20 Arnaud Charlet <charlet@act-europe.fr>
6761
6762 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
6763 avoid GCC warnings.
6764
67652004-02-20 Sergey Rybin <rybin@act-europe.fr>
6766
6767 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
6768 identifier for a phantom package that rewrites the formal package
6769 declaration with a box. The Add semantic decorations for the defining
6770 identifier from the original node (that represents the formal package).
6771
88e3a2a3
MK
67722004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
6773
6774 * Make-lang.in (ada/stamp-sdefault): Use the top level
6775 move-if-change.
6776
4221057e
RH
67772004-02-19 Richard Henderson <rth@redhat.com>
6778
6779 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
6780
5c1c8a03
AC
67812004-02-18 Emmanuel Briot <briot@act-europe.fr>
6782
6783 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
6784 Scan_ALI can be used for multiple ALI files without reinitializing
6785 between calls.
6786
67872004-02-18 Robert Dewar <dewar@gnat.com>
6788
6789 * debug.adb: Minor reformatting.
6790
67912004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6792
6793 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
6794 to zero if there is an address clause.
6795
67962004-02-18 Thomas Quinot <quinot@act-europe.fr>
6797
6798 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
6799
68002004-02-18 Gary Dismukes <dismukes@gnat.com>
6801
6802 * layout.adb (Layout_Component_List): Revise generation of call to
6803 discriminant-checking function to pass selections of all of the type's
6804 discriminants rather than just the variant-controlling discriminant.
6805
68062004-02-18 Olivier Hainque <hainque@act-europe.fr>
6807
6808 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
6809 fail in the current setup and triggers spurious system error messages.
6810 Pretend it occurred and failed instead.
6811
68122004-02-18 Vincent Celier <celier@gnat.com>
6813
6814 * bld.adb: Mark FLDFLAGS as saved
6815 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
6816 it is not the root project. Put each directory to be
6817 extended between double quotes to prevent it to be expanded on Windows.
6818 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
6819 the project file. Set them back to their initial values if they have not
6820 been set in the project file.
6821
6822 * gprcmd.adb: (Gprdebug, Debug): New global variables
6823 (Display_Command): New procedure
6824 (Usage): Document new command "linkopts"
6825 Call Display_Command when env var GPRDEBUG has the value "TRUE"
6826 Implement new command "linkopts"
6827 Remove quotes that may be around arguments for "extend"
6828 Always call Normalize_Pathname with arguments formatted for the platform
6829
6830 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
6831 Change @echo to @$(display) in target clean to be able to clean silently
6832
6833 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
6834
6835 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
6836 canonical case.
6837
6838 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
6839 = Extending_All when current project is an extending all project.
6840
6841 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
6842 set to True only for LINK command, after Unix switch -o.
6843 (Process_Arguments): Set Output_File_Expected to True for LINK command
6844 after Unix switch -o. When Output_File_Expected is True, never add an
6845 extension to a file name.
6846
6847 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
6848 option file name, only to the --for-linker= switch.
6849 (Option_File_Name): If option file name do not end with ".opt", append
6850 "/OPTIONS".
6851
68522004-02-18 GNAT Script <nobody@gnat.com>
6853
6854 * Make-lang.in: Makefile automatically updated
6855
80bcb4d2
MK
68562004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
6857
6858 * Make-lang.in (stamp-sdefault): Do not depend on
6859 move-if-change.
6860
1daa84b6
ZW
68612004-02-12 Zack Weinberg <zack@codesourcery.com>
6862
6863 * config-lang.in: Disable Ada by default until probe logic for
6864 a bootstrap Ada compiler can be moved to the top level configure
6865 script.
6866
18c0ecbe
AC
68672004-02-12 Olivier Hainque <hainque@act-europe.fr>
6868
6869 * decl.c (components_to_record): Don't claim that the internal fields
6870 we make to hold the variant parts are semantically addressable, because
6871 they are not.
6872
6873 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
6874 adjust the comment describing the modular type form when we can use it.
6875 (Install_PAT): Account for the Esiz renaming.
6876
6877 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
6878 sc_onstack context indication before raising the exception to which
6879 the signal is mapped. Allows better handling of later signals possibly
6880 triggered by the resumed user code if the exception is handled.
6881
68822004-02-12 Arnaud Charlet <charlet@act-europe.fr>
6883
6884 * 5zinit.adb: Removed, no longer used.
6885
68862004-02-12 Robert Dewar <dewar@gnat.com>
6887
6888 * ali.adb: Remove separating space between parameters on R line. Makes
6889 format consistent with format used by the binder for Set_Globals call.
6890
6891 * atree.ads, atree.adb: Minor reformatting (new function header format)
6892
6893 * bindgen.adb: Add Run-Time Globals documentation section containing
6894 detailed documentation of the globals passed from the binder file to
6895 the run time.
6896
6897 * gnatls.adb: Minor reformatting
6898
6899 * init.c (__gnat_set_globals): Add note pointing to documentation in
6900 bindgen.
6901
6902 * lib-writ.ads, lib-writ.adb: Remove separating space between
6903 parameters on R line.
6904 Makes format consistent with format used by the binder for Set_Globals
6905 call.
6906
6907 * osint.ads: Add 2004 to copyright notice
6908 Minor reformatting
6909
6910 * snames.ads: Correct capitalization of FIFO_Within_Priorities
6911 Noticed during code reading, documentation issue only
6912
6913 * usage.adb: Remove junk line for obsolete C switch
6914 Noticed during code reading
6915
69162004-02-12 Vincent Celier <celier@gnat.com>
6917
6918 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
6919 extend for each directory, so that multiple /** directories are
6920 extended individually.
6921 (Recursive_Process): Set the default for LANGUAGES to ada
6922
6923 * gprcmd.adb: Define new command "ignore", to do nothing.
6924 Implement new comment "path".
6925
6926 * Makefile.generic: Suppress output when SILENT is set
6927 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
6928 used, so that the correct compiler is invoked.
6929 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
6930 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
6931
69322004-02-12 Jerome Guitton <guitton@act-europe.fr>
6933
6934 * Makefile.in: Clean ups and remove obsolete targets.
6935
69362004-02-12 Ed Schonberg <schonberg@gnat.com>
6937
6938 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
6939 predicate declared in exp_util.
6940
6941 * exp_util.adb: Add comments.
6942
6943 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
6944 visibility before compiling context of the subunit.
6945
6946 * sem_res.adb (Check_Parameterless_Call): If the context expects a
6947 value but the name is a procedure, do not attempt to analyze as a call,
6948 in order to obtain more telling diagnostics.
6949
6950 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
6951 'Access on parameterless function calls.
6952 (Normalize_Actuals): For a parameterless function call with missing
6953 actuals, defer diagnostic until resolution of enclosing call.
6954
6955 * sem_util.adb (Wrong_Type): If the context type is an access to
6956 subprogram and the expression is a procedure name, suggest a missing
6957 'attribute.
6958
c1dcfa14
AC
69592004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
6960 Nathanael Nerode <neroden@gcc.gnu.org>
6961
6962 PR ada/6637, PR ada/5911
6963 Merge with libada-branch:
90afe2c9 6964 * config-lang.in: Build libada only when ada is built.
c1dcfa14 6965
2e071734
AC
69662004-02-09 Ed Schonberg <schonberg@gnat.com>
6967
6968 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
6969 for a tagged type, verify that both formals have the same type.
6970
6971 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
6972 temporary when the formal is an in-parameter and the actual a possibly
6973 unaligned slice.
6974
6975 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
6976 when expansion is disabled, to ensure proper name capture with
6977 overloaded literals. Condition can be of any boolean type, resolve
6978 accordingly.
6979
6980 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
6981 renaming is for a formal subprogram with a default operator name, and
6982 there is a usable operator that is visible at the point of
6983 instantiation.
6984
69852004-02-09 Robert Dewar <dewar@gnat.com>
6986
6987 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
6988 rewrite to ignore errors in ali files, intended to allow tools downward
6989 compatibility with new versions of ali files.
6990
6991 * ali.ads: Add new parameter Ignore_Errors
6992
6993 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
6994 duplicating the error message giving the file with restrictions.
6995
6996 * debug.adb: Add debug flag I for gnatbind
6997
6998 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
6999 operators for the case where the operator is a defining operator.
7000
7001 * exp_ch3.adb: Minor reformatting (new function spec format).
7002
7003 * exp_ch4.adb: Add comment for previous change, and make minor
7004 adjustment to loop to always check for improper loop termination.
7005 Minor reformatting throughout (new function spec format).
7006
7007 * gnatbind.adb: Implement -di debug flag for gnatbind
7008
7009 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
7010
7011 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
7012
7013 * lib-load.adb: Fix bad assertion.
7014 Found by testing and code reading.
7015 Minor reformatting.
7016
7017 * lib-load.ads: Minor reformatting.
7018
7019 * lib-writ.adb: There is only one R line now.
7020
7021 * lib-writ.ads: Add documentation on making downward compatible changes
7022 to ali files so old tools work with new ali files.
7023 There is only one R line now.
7024 Add documentation on format incompatibilities (with special GPS note)
7025
7026 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
7027
7028 * par-load.adb: Minor reformatting
7029
7030 * sem_ch8.adb: Fix to error message from last update
7031 Minor reformatting and restructuring of code from last update
7032
7033 * par-prag.adb, snames.adb, snames.ads, snames.h,
7034 sem_prag.adb: Implement pragma Profile.
7035
7036 * stylesw.adb: Implement -gnatyN switch to turn off all style check
7037 options.
7038
7039 * usage.adb: Add line for -gnatyN switch
7040
7041 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
7042
a41ea816
AC
70432004-02-09 Albert Lee <lee@gnat.com>
7044
7045 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
7046
70472004-02-09 Ed Schonberg <schonberg@gnat.com>
7048
7049 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
7050 slices.
7051
7052 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
7053 is nested in an instance that is not frozen yet, to avoid
7054 order-of-elaboration problems in gigi.
7055
7056 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
7057 body the attribute is legal.
7058
70592004-02-09 Robert Dewar <dewar@gnat.com>
7060
7061 * s-rident.ads: Minor comment correction
7062
7063 * targparm.adb: Remove dependence on uintp completely. There was
7064 always a bug in Make in that it called Targparm before initializing
7065 the Uint package. The old code appeared to get away with this, but
7066 the new code did not! This caused an assertion error in gnatmake.
7067
7068 * targparm.ads: Fix bad comment, restriction pragmas with parameters
7069 are indeed fully supported.
7070
725c60f8
AM
70712004-02-06 Alan Modra <amodra@bigpond.net.au>
7072
7073 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
7074
136e64db
KH
70752004-02-05 Kazu Hirata <kazu@cs.umass.edu>
7076
7077 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
7078 with targetm.calls.promote_prototypes.
7079
06effe87
AC
70802004-02-04 Robert Dewar <dewar@gnat.com>
7081
7082 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
7083 ali.ads, gprcmd.adb: Minor reformatting
7084
7085 * bindgen.adb: Output restrictions string for new style restrictions
7086 handling
7087
7088 * impunit.adb: Add s-rident.ads (System.Rident) and
7089 s-restri (System.Restrictions)
7090
7091 * lib-writ.adb: Fix bug in writing restrictions string (last few
7092 entries wrong)
7093
7094 * s-restri.ads, s-restri.adb: Change name Restrictions to
7095 Run_Time_Restrictions to avoid conflict with package name.
7096 Add circuit to read and acquire run time restrictions.
7097
70982004-02-04 Jose Ruiz <ruiz@act-europe.fr>
7099
7100 * restrict.ads, restrict.adb: Use the new restriction
7101 No_Task_Attributes_Package instead of the old No_Task_Attributes.
7102
7103 * sem_prag.adb: No_Task_Attributes is a synonym of
7104 No_Task_Attributes_Package.
7105
7106 * snames.ads, snames.adb: New entry for proper handling of
7107 No_Task_Attributes.
7108
7109 * s-rident.ads: Adding restriction No_Task_Attributes_Package
7110 (AI-00249) that supersedes the GNAT specific restriction
7111 No_Task_Attributes.
7112
71132004-02-04 Ed Schonberg <schonberg@gnat.com>
7114
90afe2c9 7115 * sem_prag.adb:
06effe87
AC
7116 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
7117 body, an identifier may be wrapped in an unchecked conversion.
7118
71192004-02-04 Vincent Celier <celier@gnat.com>
7120
7121 * lib-writ.ads: Comment update for the W lines
7122
7123 * bld.adb: (Expression): An empty string list is static
7124
7125 * fname-uf.adb: Minor comment update
7126
7127 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
7128
7129 * gnatbind.adb: Initialize Cumulative_Restrictions with the
7130 restrictions on the target.
7131
2fb00d7f
KH
71322004-02-03 Kazu Hirata <kazu@cs.umass.edu>
7133
7134 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
7135 gen_rtx.
7136
5ed23e25
AC
71372004-02-02 Arnaud Charlet <charlet@gnat.com>
7138
7139 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
7140
6e937c1c
AC
71412004-02-02 Vincent Celier <celier@gnat.com>
7142
7143 * gprcmd.adb (Check_Args): If condition is false, print the invoked
7144 comment before the usage.
7145 Gprcmd: Fail when command is not recognized.
7146 (Usage): Document command "prefix"
7147
7148 * g-md5.adb (Digest): Process last block.
7149 (Update): Do not process last block. Store remaining characters and
7150 length in Context.
7151
7152 * g-md5.ads (Update): Document that several call to update are
7153 equivalent to one call with the concatenated string.
7154 (Context): Add fields to allow new Update behaviour.
7155
7156 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
7157 defaulted to False.
7158 When May_Fail is True and no existing file can be found, return No_File.
7159
7160 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
7161 functions.
7162
7163 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
7164 spec file name instead on the W line.
7165
71662004-02-02 Robert Dewar <dewar@gnat.com>
7167
7168 * ali.adb: Read and acquire info from new format restrictions lines
7169
7170 * bcheck.adb: Add circuits for checking restrictions with parameters
7171
7172 * bindgen.adb: Output dummy restrictions data
7173 To be changed later
7174
7175 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
7176 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
7177 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
7178 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
7179 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
7180
7181 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
7182 the warning message on access to possibly uninitialized variable S)
7183 Minor changes for new restrictions handling.
7184
7185 * gnatbind.adb: Minor reformatting
7186 Minor changes for new restrictions handling
7187 Move circuit for -r processing here from bcheck (cleaner)
7188
7189 * gnatcmd.adb, gnatlink.adb: Minor reformatting
7190
7191 * lib-writ.adb: Output new format restrictions lines
7192
7193 * lib-writ.ads: Document new R format lines for new restrictions
7194 handling.
7195
7196 * s-restri.ads/adb: New files
7197
7198 * Makefile.rtl: Add entry for s-restri.ads/adb
7199
7200 * par-ch3.adb: Fix bad error messages starting with upper case letter
7201 Minor reformatting
7202
7203 * restrict.adb: Major rewrite throughout for new restrictions handling
7204 Major point is to handle restrictions with parameters
7205
7206 * restrict.ads: Major changes in interface to handle restrictions with
7207 parameters. Also generally simplifies setting of restrictions.
7208
7209 * snames.ads/adb: New entry for proper handling of No_Requeue
7210
7211 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
7212 restriction counting.
7213 Other minor changes for new restrictions handling
7214
7215 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
7216 Restriction_Warnings now allows full parameter notation
7217 Major rewrite of Restrictions for new restrictions handling
7218
72192004-02-02 Javier Miranda <miranda@gnat.com>
7220
7221 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
7222 syntax rule for object renaming declarations.
7223 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
7224 component definitions.
7225
7226 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
7227 components.
7228 (Array_Type_Declaration): Give support to access components. In addition
7229 it was also modified to reflect the name of the object in anonymous
7230 array types. The old code did not take into account that it is possible
7231 to have an unconstrained anonymous array with an initial value.
7232 (Check_Or_Process_Discriminants): Allow access discriminant in
7233 non-limited types.
7234 (Process_Discriminants): Allow access discriminant in non-limited types
7235 Initialize the new Access_Definition field in N_Object_Renaming_Decl
7236 node. Change Ada0Y to Ada 0Y in comments
7237
7238 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
7239 equality operators.
7240 Change Ada0Y to Ada 0Y in comments
7241
7242 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
7243 renamings Change Ada0Y to Ada 0Y in comments
7244
7245 * sem_type.adb (Find_Unique_Type): Give support to the equality
7246 operators for universal access types
7247 Change Ada0Y to Ada 0Y in comments
7248
7249 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
7250
7251 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
7252 field.
7253 (N_Object_Renaming_Declaration): Addition of Access_Definition field
7254 Change Ada0Y to Ada 0Y in comments
7255
7256 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
7257 component definition and object renaming nodes
7258 Change Ada0Y to Ada 0Y in comments
7259
72602004-02-02 Jose Ruiz <ruiz@act-europe.fr>
7261
7262 * restrict.adb: Use the new restriction identifier
7263 No_Requeue_Statements instead of the old No_Requeue for defining the
7264 restricted profile.
7265
7266 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
7267 No_Requeue_Statements.
7268
7269 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
7270 that supersedes the GNAT specific restriction No_Requeue. The later is
7271 kept for backward compatibility.
7272
72732004-02-02 Ed Schonberg <schonberg@gnat.com>
7274
7275 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
7276 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
7277 pragma and fix incorrect ones.
7278
7279 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
7280 warning if the pragma is redundant.
7281
72822004-02-02 Thomas Quinot <quinot@act-europe.fr>
7283
7284 * 5staprop.adb: Add missing 'constant' keywords.
7285
7286 * Makefile.in: use consistent value for SYMLIB on
7287 platforms where libaddr2line is supported.
7288
72892004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7290
7291 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
7292 annotating types.
7293
72942004-02-02 Olivier Hainque <hainque@act-europe.fr>
7295
7296 * init.c (__gnat_install_handler): Setup an alternate stack for signal
7297 handlers in the environment thread. This allows proper propagation of
7298 an exception on stack overflows in this thread even when the builtin
7299 ABI stack-checking scheme is used without support for a stack reserve
7300 region.
7301
7302 * utils.c (create_field_decl): Augment the head comment about bitfield
7303 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
7304 here, because the former is not accurate enough at this point.
7305 Let finish_record_type decide instead.
7306 Don't make a bitfield if the field is to be addressable.
7307 Always set a size for the field if the record is packed, to ensure the
7308 checks for bitfield creation are triggered.
7309 (finish_record_type): During last pass over the fields, clear
7310 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
7311 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
7312 from DECL_BIT_FIELD.
7313
71cbe2c1
KC
73142004-01-30 Kelley Cook <kcook@gcc.gnu.org>
7315
90afe2c9 7316 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
71cbe2c1
KC
7317 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
7318 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
7319
7f996f90
RO
73202004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7321
7322 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
7323
7324 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
7325 (ZCX_By_Default): Likewise.
7326 (Front_End_ZCX_Support): Likewise.
7327
7328 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
7329 (Initialize_Lock): Mark Level unreferenced.
7330 (Sleep): Mark Reason unreferenced.
7331 (Timed_Sleep): Likewise.
7332 (Wakeup): Likewise.
7333 (Exit_Task): Use Result.
7334 (Check_No_Locks): Mark Self_ID unreferenced.
90afe2c9 7335
7f996f90
RO
7336 * 5gtasinf.adb (New_Sproc): Make Attr constant.
7337 (Bound_Thread_Attributes): Make Sproc constant.
7338 (New_Bound_Thread_Attributes): Likewise.
7339
26fd4eae
AC
73402004-01-26 Ed Schonberg <schonberg@gnat.com>
7341
7342 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
7343 one-dimensional array an slice assignments, when component type is
7344 controlled.
7345
7346 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
7347 component type is controlled, and control_actions are in effect, use
7348 TSS procedure rather than generating inline code.
7349
7350 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
7351 arrays with controlled components.
7352
73532004-01-26 Vincent Celier <celier@gnat.com>
7354
7355 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
7356 command line for the non VMS case.
7357
7358 * gnatlink.adb (Process_Binder_File): When building object file, if
7359 GNU linker is used, put all object paths between quotes, to prevent ld
7360 error when there are unusual characters (such as '!') in the paths.
7361
7362 * Makefile.generic: When there are sources in Ada and the main is in
7363 C/C++, invoke gnatmake with -B, instead of -z.
7364
7365 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
7366 from VMS_Conversion.
7367 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
7368 specification of argument file on the command line.
7369
73702004-01-26 Bernard Banner <banner@gnat.com>
7371
7372 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
7373
73742004-01-26 Ed Schonberg <schonberg@gnat.com>
7375
7376 * snames.adb: Update copyright notice.
7377 Add info on slice assignment for controlled arrays.
7378
b7e429ab
AC
73792004-01-23 Robert Dewar <dewar@gnat.com>
7380
7381 * exp_aggr.adb: Minor reformatting
7382
7383 * exp_ch9.adb: Minor code clean up
7384 Minor reformatting
7385 Fix bad character in comment
7386
7387 PR ada/13471
7388 * targparm.adb (Get_Target_Parameters): Give clean abort error on
7389 unexpected end of file, along with more detailed message.
7390
73912004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7392
7393 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
7394 PAT.
7395
7396 * decl.c (copy_alias_set): New function.
7397 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
7398
73992004-01-23 Doug Rupp <rupp@gnat.com>
7400
7401 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
7402 lib$${file} in case subsequent character is not a separator.
7403
74042004-01-23 Vincent Celier <celier@gnat.com>
7405
7406 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
7407 when the GCC version is at least 3.
7408
7409 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
7410 Remove all "Opt.", to prepare for opt split
7411
7412 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
7413 Extends_All. Set to True when the project parsed is an extending all
7414 project. Fails for importing an extending all project only when the
7415 imported project is an extending all project.
7416 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
7417 depending on the value of Extends_All returned.
7418
7419 * prj-proc.adb (Process): Check that no project shares its object
7420 directory with a project that extends it, directly or indirectly,
7421 including a virtual project.
7422 Check that no project extended by another project shares its object
7423 directory with another also extended project.
7424
7425 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
7426 Kind = N_With_Clause
7427
7428 * prj-tree.ads: Minor reformatting
7429 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
7430
74312004-01-23 Ed Schonberg <schonberg@gnat.com>
7432
7433 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
7434 applies to a type with an incomplete view, use full view in Name of
7435 clause, for consistency with uses of Get_Attribute_Definition_Clause.
7436
74372004-01-23 Arnaud Charlet <charlet@act-europe.fr>
7438
7439 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
7440 SCHED_RR, since other values are not supported by this policy.
7441 (Initialize): Move initialization of mutex attribute to package
7442 elaboration, to prevent early access to this variable.
7443
7444 * Makefile.in: Remove mention of Makefile.adalib, unused.
7445
b291953f
AC
7446 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
7447 1ssecsta.ads: Removed, unused.
b7e429ab 7448
adc04486
AC
74492004-01-21 Javier Miranda <miranda@gnat.com>
7450
7451 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
7452 entity if already built in the current scope.
7453
7454 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
7455 reminder in internal scopes. Required for nested limited aggregates.
7456
74572004-01-21 Doug Rupp <rupp@gnat.com>
7458
7459 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
7460 VMS. Replace all occurences of libgnat- and libgnarl- with
7461 libgnat$(hyphen) and libgnarl$(hyphen).
7462 Fixed shared library build problem on VMS.
7463
74642004-01-21 Robert Dewar <dewar@gnat.com>
7465
7466 * mlib-prj.adb: Minor reformatting
7467
74682004-01-21 Thomas Quinot <quinot@act-europe.fr>
7469
7470 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
7471 'constant' keywords for declaration of pointers that are not modified.
7472
7473 * exp_pakd.adb: Fix English in comment.
7474
74752004-01-21 Ed Schonberg <schonberg@gnat.com>
7476
7477 PR ada/10889
7478 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
7479 copy all attributes of the parent, including the foreign language
7480 convention.
7481
74822004-01-21 Sergey Rybin <rybin@act-europe.fr>
7483
7484 PR ada/10565
7485 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
7486 for 'delay until' statement.
7487
a541f69d
KC
74882004-01-20 Kelley Cook <kcook@gcc.gnu.org>
7489
7490 * Make-lang.in: Replace $(docdir) with doc.
7491 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
7492 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
7493 to use consistent MAKEINFO rule.
7494 (ada.man, ada.srcman): Dummy entry.
7495 (ADA_INFOFILES): Define.
7496 (ada.info, ada.srcinfo): New rules.
7497
c01a9391
AC
74982004-01-19 Arnaud Charlet <charlet@act-europe.fr>
7499
7500 * utils.c: Update copyright notice, missed in previous change.
7501
75022004-01-19 Vincent Celier <celier@gnat.com>
7503
7504 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
7505 args if Bind is True. Set First_ALI, if not already done.
7506 (Build_Library): For Stand Alone Libraries, extract from one ALI file
7507 an eventual --RTS switch, for gnatbind, and all backend switches +
7508 --RTS, for linking.
7509
75102004-01-19 Robert Dewar <dewar@gnat.com>
7511
7512 * sem_attr.adb, memtrack.adb: Minor reformatting
7513
75142004-01-19 Ed Schonberg <schonberg@gnat.com>
7515
7516 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
7517 that rename enumeration literals. This is properly done in sem_eval.
7518
7519 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
7520 to functions that rename enumeration literals.
7521
7522 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
7523 functions that rename enumeration literals.
7524
510d1e80
KH
75252004-01-16 Kazu Hirata <kazu@cs.umass.edu>
7526
7527 * Make-lang.in (utils.o): Depend on target.h.
7528 * utils.c: Include target.h.
7529 (process_attributes): Use targetm.have_named_sections instead
7530 of ASM_OUTPUT_SECTION_NAME.
7531
fbf3e0dd
AJ
75322004-01-16 Andreas Jaeger <aj@suse.de>
7533
7534 * Makefile.in: Add $(DESTDIR).
7535
acd47d2a
AC
75362004-01-15 Olivier Hainque <hainque@act-europe.fr>
7537
7538 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
7539 also when not defining if a Size clause applies. That information is
7540 not to be ignored.
7541
75422004-01-15 Arnaud Charlet <charlet@act-europe.fr>
7543
7544 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
7545 symbolic links for the shared gnat run time when needed.
7546
75472004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
7548
7549 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
7550 for writing, and terminate with an error message if not.
7551
75522004-01-15 Ed Schonberg <schonberg@gnat.com>
7553
7554 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
7555 warning on an access to subprogram in an instance, when the target
7556 type is declared in the same generic unit.
7557 (Eval_Attribute): If 'access is known to fail accessibility check,
7558 rewrite as a raise statement.
7559
75602004-01-15 GNAT Script <nobody@gnat.com>
7561
7562 * Make-lang.in: Makefile automatically updated
7563
03787dfd
KC
75642004-01-15 Kelley Cook <kcook@gcc.gnu.org>
7565
7566 * Make-lang.in (ada.srcextra): Dummy entry.
7567
73e232f0
KC
75682004-01-14 Kelley Cook <kcook@gcc.gnu.org>
7569
7570 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
7571
9bc43c53
AC
75722004-01-13 Ed Schonberg <schonberg@gnat.com>
7573
7574 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
7575 components that are initialized with aggregates.
7576
75772004-01-13 Vincent Celier <celier@gnat.com>
7578
7579 * gnatlink.adb (Process_Binder_File): To find directory of shared
7580 libgcc, if "gcc-lib" is not a subdirectory, look for the last
7581 subdirectory "lib" in the path of the shared libgnat or libgnarl.
7582
7583 * make.adb (Gnatmake): If GCC version is at least 3, link with
7584 -shared-libgcc, when there is at least one shared library project.
7585
7586 * opt.ads (GCC_Version): New integer constant.
7587
7588 * adaint.c (get_gcc_version): New function.
7589
75902004-01-13 Robert Dewar <dewar@gnat.com>
7591
7592 * sem_dist.adb, sem_res.adb, sem_util.adb,
7593 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
7594 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
7595
75962004-01-13 Thomas Quinot <quinot@act-europe.fr>
7597
7598 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
7599 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
7600 declarations.
7601
8b52de7b
AC
76022004-01-12 Arnaud Charlet <charlet@act-europe.fr>
7603
f6ea0188
AC
7604 * misc.c: Remove trailing spaces.
7605 Update copyright notice missed in previous change.
7606
8b52de7b
AC
7607 PR ada/13572
7608 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
7609 prefix/share/make
7610
7611 * Makefile.generic: Update copyright.
7612 Add license notice.
7613
7614 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
7615 of prefix/share/make.
7616
7617 * Makefile.prolog: Update copyright.
7618 Add license notice.
7619
76202004-01-12 Laurent Pautet <pautet@act-europe.fr>
7621
7622 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
7623 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
7624 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
7625 instead of String.
7626
7627 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
7628 signature.
7629
76302004-01-12 Javier Miranda <miranda@gnat.com>
7631
7632 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
7633 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
7634 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
7635 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
7636 Component_Definition node.
7637
76382004-01-12 Ed Falis <falis@gnat.com>
7639
7640 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
7641
76422004-01-12 Thomas Quinot <quinot@act-europe.fr>
7643
7644 * link.c: Change default libgnat kind to STATIC for FreeBSD.
7645
76462004-01-12 Bernard Banner <banner@gnat.com>
7647
7648 * Makefile.in: map 86numaux to a-numaux for x86_64
7649
76502004-01-12 Ed Schonberg <schonberg@gnat.com>
7651
7652 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
7653 generated to rename a generic actual, go to the actual itself, the
7654 subtype is not a user-visible entity.
7655
7656 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
7657 part is a private subtype, reset the visibility of its full view, if
7658 any, to be consistent.
7659
7660 PR ada/13417
7661 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
7662 to use a generic package G as a formal package for another generic
7663 declared within G.
7664
76652004-01-12 Robert Dewar <dewar@gnat.com>
7666
7667 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
7668
7669 * usage.adb: Remove mention of obsolete -gnatwb switch
7670 Noticed during code reading
7671
76722004-01-12 Jerome Guitton <guitton@act-europe.fr>
7673
7674 * 1ssecsta.adb: Minor changes for -gnatwa warnings
7675
76762004-01-12 GNAT Script <nobody@gnat.com>
7677
7678 * Make-lang.in: Makefile automatically updated
7679
0fab64a3
MM
76802004-01-09 Mark Mitchell <mark@codesourcery.com>
7681
7682 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
7683
47527624
RO
76842004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7685
7686 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
7687
dedebde1
KC
76882004-01-05 Kelley Cook <kcook@gcc.gnu.org>
7689
fbf3e0dd 7690 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
dedebde1
KC
7691 Update comment and copyright date.
7692 * stamp-xgnatug: Delete.
7693
91b1417d
AC
76942004-01-05 Robert Dewar <dewar@gnat.com>
7695
7696 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
7697 be modified by the binder generated main program if the -D switch is
7698 used.
7699
7700 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
7701 imported functions (since now we expect this to be done for imported
7702 functions)
7703
7704 * 5vtaprop.adb: Add several ??? for sections requiring more comments
7705 Minor reformatting throughout
7706
7707 * 5zinit.adb: Minor reformatting
7708 Add 2004 to copyright date
7709 Minor changes to avoid -gnatwa warnings
7710 Correct some instances of using OR instead of OR ELSE (noted while
7711 doing reformatting)
7712
7713 * sprint.adb: Minor updates to avoid -gnatwa warnings
7714
fbf3e0dd 7715 * s-secsta.ads, s-secsta.adb:
91b1417d
AC
7716 (SS_Get_Max): New function to obtain high water mark for ss stack
7717 Default_Secondary_Stack is not a constant since it may be modified by
7718 the binder generated main program if the -D switch is used.
7719
7720 * switch-b.adb: New -Dnnn switch for binder
7721
fbf3e0dd 7722 * switch-c.adb:
91b1417d
AC
7723 Make -gnatg imply all warnings currently in -gnatwa
7724
7725 * vms_conv.adb: Minor reformatting
7726 Add 2004 to copyright notice
7727 Add 2004 to printed copyright notice
7728
7729 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
7730 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
7731 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
7732 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
7733 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
7734 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
7735 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
7736 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
7737 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
7738 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
7739 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
7740 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
7741 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
7742 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
7743 checks.adb, clean.adb, cstand.adb, einfo.ads,
7744 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
7745 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
7746 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
7747 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
7748 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
7749 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
7750 Minor reformatting and code clean ups.
7751 Minor changes to prevent -gnatwa warnings
7752
7753 * ali.adb: Minor reformatting and cleanup of code
7754 Acquire new SS indication of secondary stack use from ali files
7755
7756 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
7757 (since now we expect this to be done for imported functions)
7758
7759 * bindgen.adb: Generate call to modify default secondary stack size if
7760 -Dnnn switch given
7761
7762 * bindusg.adb: Add line for new -D switch
7763
7764 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
7765 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
7766 Add circuitry for both records and arrays to avoid gigi
7767 processing if the type involved has non-bit-aligned components
7768
7769 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
7770 N_String_Literal node always references an E_String_Literal_Subtype
7771 entity. This may not be true in the future.
7772 (Possible_Bit_Aligned_Component): Move processing of
7773 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
7774
7775 * exp_ch6.adb (Expand_Thread_Body): Pick up
7776 Default_Secondary_Stack_Size as variable so that we get value modified
7777 by possible -Dnnn binder parameter.
7778
7779 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
7780 (Type_May_Have_Bit_Aligned_Components): New function.
7781
7782 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
7783 (Type_May_Have_Bit_Aligned_Components): New function.
7784
7785 * fe.h: (Set_Identifier_Casing): Fix prototype.
7786 Add declaration for Sem_Elim.Eliminate_Error_Msg.
7787 Minor reformatting.
7788
7789 * freeze.adb (Freeze_Entity): Add RM reference to error message about
7790 importing constant atomic/volatile objects.
7791 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
7792 unless explicit Pure_Function pragma given, to avoid insidious bug of
7793 call to non-pure imported function getting eliminated.
7794
7795 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
7796 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
7797 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
7798 Add 2004 to printed copyright notice
7799
7800 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
7801 stack used.
7802
7803 * Makefile.rtl: Add entry for g-sestin.o
7804 g-sestin.ads: New file.
7805
7806 * mdll.adb: Minor changes to avoid -gnatwa warnings
7807
7808 * mlib-tgt.adb: Minor reformatting
7809
7810 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
7811 New switch Sec_Stack_Used (GNAT, GNATBIND)
7812 Make Default_Secondary_Stack_Size a variable instead of a constant,
7813 so that it can be modified by the new -Dnnn bind switch.
7814
7815 * rtsfind.adb (Load_Fail): Give full error message in configurable
7816 run-time mode if all_errors mode is set. This was not done in the case
7817 of a file not found, which was an oversight.
7818 Note if secondary stack unit is used by compiler.
7819
7820 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
7821 ineffective elaborate all pragmas on non-visible packages (this
7822 happened when a renamed subprogram was called). Now the elaborate all
7823 always goes on the package containing the renaming rather than the one
7824 containing the renamed subprogram.
7825
7826 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
7827 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
7828
7829 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
7830 has an Etype that references an E_String_Literal.
7831 (Eval_String_Literal): Avoid assumption that N_String_Literal node
7832 always references an E_String_Literal_Subtype entity. This may not
7833 be true in the future.
7834
7835 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
7836 pragma location.
7837
7838 * sem_res.adb (Resolve): Specialize msg for function name used in proc
7839 call.
7840
78412004-01-05 Ed Falis <falis@gnat.com>
7842
7843 * g-debuti.adb: Replaced direct boolean operator with short-circuit
7844 form.
7845
78462004-01-05 Vincent Celier <celier@gnat.com>
7847
7848 * bld.adb: Minor comment updates
7849 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
7850 of Item_Name).
7851
7852 * make.adb (Gnatmake): Special process for files to compile/check when
7853 -B is specified. Fail when there are only foreign mains in attribute
7854 Main of the project file and -B is not specified. Do not skip bind/link
7855 steps when -B is specified.
7856
7857 * makeusg.adb: Document new switch -B
7858
7859 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
7860
7861 * switch-m.adb: (Scan_Make_Switches): Process -B switch
7862
7863 * vms_data.ads: Add new GNAT PRETTY qualifier
7864 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
7865
78662004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7867
7868 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
7869 case.
7870
7871 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
7872 Set_Identifier_Casing.
7873
7874 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
7875 has size that overflows.
7876
78772004-01-05 Gary Dismukes <dismukes@gnat.com>
7878
7879 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
7880 -gnatwa warning on static condition.
7881
78822004-01-05 Doug Rupp <rupp@gnat.com>
7883
7884 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
7885
78862004-01-05 Arnaud Charlet <charlet@act-europe.fr>
7887
7888 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
7889 all attributes, including read-only attribute.
7890
78912004-01-05 Pascal Obry <obry@gnat.com>
7892
7893 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
7894 library naming scheme.
7895
7896 * mlib-prj.adb (Build_Library): Generate different names for the static
7897 or dynamic version of the GNAT runtime. This is needed to support the
7898 new shared library naming scheme.
7899 (Process_Binder_File): Add detection of shared library in binder file
7900 based on the new naming scheme.
7901
7902 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
7903 scheme for the shared runtime libraries.
7904
7905 * Makefile.in:
7906 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
7907 scheme.
7908 (install-gnatlib): Do not create symlinks for shared libraries.
7909 (gnatlib-shared-default): Idem.
7910 (gnatlib-shared-dual-win32): New target. Not used for now as the
7911 auto-import feature does not support arrays/records.
7912 (gnatlib-shared-win32): Do not create copy for the shared libraries.
7913 (gnatlib-shared-vms): Fix shared runtime libraries names.
7914
7915 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
7916 dependent runtime shared library name.
7917
79182004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
7919
7920 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
7921 than the object.
7922
79232004-01-05 Ed Schonberg <schonberg@gnat.com>
7924
7925 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
7926 protected objects when allocator has a subtype indication, not a
7927 qualified expression. Note that qualified expressions may have to be
7928 checked when limited aggregates are implemented.
7929
7930 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
7931 pure, emit warning.
7932 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
7933 subprogram is imported, remove warning.
7934
79352004-01-05 Geert Bosch <bosch@gnat.com>
7936
7937 * s-poosiz.adb: Update copyright notice.
7938 (Allocate): Use Task_Lock to protect against concurrent access.
7939 (Deallocate): Likewise.
7940
79412004-01-05 Joel Brobecker <brobecker@gnat.com>
7942
7943 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
7944 comment.
7945
2ab127f3
KC
79462003-12-23 Kelley Cook <kcook@gcc.gnu.org>
7947
7948 * gnat_ug.texi: Force a CVS commit by updating copyright.
7949 * gnat_ug_vxw.texi: Regenerate.
7950 * gnat_ug_wnt.texi: Regenerate.
7951 * gnat_ug_vms.texi: Regenerate.
7952 * gnat_ug_unx.texi: Regenerate.
7953
aed8bfdc
KH
79542003-12-20 Kazu Hirata <kazu@cs.umass.edu>
7955
7956 * trans.c: Remove uses of "register" specifier in
7957 declarations of local variables.
7958
90c2f1de
KC
79592003-12-18 Kelley Cook <kcook@gcc.gnu.org>
7960
7961 * stamp-xgnatug: New stamp file.
7962 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
7963 (ada/doctools/xgnatug): Add $(build_exeext).
7964 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
7965 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
7966
891a6e79
AC
79672003-12-17 Ed Falis <falis@gnat.com>
7968
7969 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
7970 eliminate warning.
7971
7972 * a-exextr.adb: Add context clause for
7973 Ada.Exceptions.Last_Chance_Handler.
7974
79752003-12-17 Sergey Rybin <rybin@act-europe.fr>
7976
7977 * cstand.adb (Create_Standard): Change the way how the declaration of
7978 the Duration type is created (making it the same way as it is for all
7979 the other standard types).
7980
79812003-12-17 Robert Dewar <dewar@gnat.com>
7982
7983 * s-crtl.ads: Fix header format
7984 Change Pure to Preelaborate
7985
79862003-12-17 Ed Schonberg <schonberg@gnat.com>
7987
7988 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
7989 the expression type only if it is declared in the current unit.
7990
7991 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
7992 are universal and already analyzed, as can occur in constrained
7993 subcomponents that depend on discriminants, when one constraint is a
7994 subtype mark.
7995
7996 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
7997 type Any_Fixed is legal as the argument of a conversion, if only one
7998 fixed-point type is in context.
7999
80002003-12-17 GNAT Script <nobody@gnat.com>
8001
8002 * Make-lang.in: Makefile automatically updated
8003
209db2bf
AC
80042003-12-15 Robert Dewar <dewar@gnat.com>
8005
8006 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
8007 sec stack size.
8008
80092003-12-15 Vincent Celier <celier@gnat.com>
8010
8011 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
8012 (Gnatchop): Do not set failure status when reporting the number of
8013 warnings.
8014
80152003-12-15 Doug Rupp <rupp@gnat.com>
8016
8017 * s-ctrl.ads: New file.
8018
8019 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
8020
8021 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
8022 (GNATBIND_OBJS): Add ada/s-crtl.o.
8023
8024 * Makefile.in [VMS]: Clean up ifeq rules.
8025
8026 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
8027 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
8028 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
8029 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
8030 s-tasdeb.adb: Update copyright.
8031 Import System.CRTL.
8032 Make minor modifications to use System.CRTL declared functions instead
8033 of importing locally.
8034
80352003-12-15 GNAT Script <nobody@gnat.com>
8036
8037 * Make-lang.in: Makefile automatically updated
8038
a9f4e3d2
AC
80392003-12-11 Ed Falis <falis@gnat.com>
8040
8041 * 5zinit.adb: Clean up.
8042
8043 * 5zintman.adb (Notify_Exception): replaced case statement with a call
8044 to __gnat_map_signal, imported from init.c to support
8045 signal -> exception mappings that depend on the vxWorks version.
8046
fbf3e0dd 8047 * init.c:
a9f4e3d2
AC
8048 Created and exported __gnat_map_signal to support signal -> exception
8049 mapping that is dependent on the VxWorks version.
8050 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
8051
80522003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
8053
8054 * 5wosinte.ads: Link with -mthreads switch.
8055
80562003-12-11 Arnaud Charlet <charlet@act-europe.fr>
8057
8058 * init.c (__gnat_install_handler [NetBSD]): Set
8059 __gnat_handler_installed, as done on all other platforms.
8060 Remove duplicated code.
8061
80622003-12-11 Jerome Guitton <guitton@act-europe.fr>
8063
8064 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
8065
80662003-12-11 Thomas Quinot <quinot@act-europe.fr>
8067
8068 * sinfo.ads: Fix inconsistent example code in comment.
8069
80702003-12-11 Robert Dewar <dewar@gnat.com>
8071
8072 * a-tiinau.adb: Add a couple of comments
8073
8074 * sem_ch3.adb: Minor reformatting
8075
fbf3e0dd 8076 * sem_prag.adb:
a9f4e3d2
AC
8077 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
8078 Minor reformatting throughout
8079
80802003-12-11 Ed Schonberg <schonberg@gnat.com>
8081
8082 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
8083 bounds of a loop, create a separate block in order to generate proper
8084 cleanup actions to prevent memory leaks.
8085
8086 * sem_res.adb (Resolve_Call): After a call to
8087 Establish_Transient_Scope, the call may be rewritten and relocated, in
8088 which case no further processing is needed.
8089
8090 * sem_util.adb: (Wrong_Type): Refine previous fix.
8091 Fixes ACATS regressions.
8092
8093 PR ada/13353
8094
8095 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
8096 be inlined.
8097
c45b6ae0
AC
80982003-12-08 Jerome Guitton <guitton@act-europe.fr>
8099
8100 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
8101 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
8102 obsolete files.
8103
8104 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
8105 (rts-zfp): Ditto.
8106
81072003-12-08 Robert Dewar <dewar@gnat.com>
8108
8109 * 7sintman.adb: Minor reformatting
8110
8111 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
8112 standard linker options to get standard libraries linked. We now plan
8113 to provide dummy versions of these libraries to match the appropriate
8114 configurable run-time (e.g. if a library is not needed at all, provide
8115 a dummy empty library).
8116
8117 * targparm.ads: Configurable_Run_Time mode no longer affects linker
8118 options (-L parameters and standard libraries). What we plan to do is
8119 to provide dummy libraries where the libraries are not required.
8120
8121 * gnatbind.adb: Minor comment improvement
8122
81232003-12-08 Javier Miranda <miranda@gnat.com>
8124
8125 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
8126 aggregate in the parent. Otherwise constants with limited aggregates
8127 are not supported. Add new formal to pass the component type (Ctype).
8128 It is required to call the corresponding IP subprogram in case of
8129 default initialized components.
8130 (Gen_Assign): In case of default-initialized component, generate a
8131 call to the IP subprogram associated with the component.
8132 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
8133 of aggregate with default initialized components.
8134 (Has_Default_Init_Comps): Improve implementation to recursively check
8135 all the present expressions.
8136
8137 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
8138 to indicate that the initialization call corresponds to a
8139 default-initialized component of an aggregate.
8140 In case of default initialized aggregate with tasks this parameter is
8141 used to generate a null string (this is just a workaround that must be
8142 improved later). In case of discriminants, this parameter is used to
8143 generate a selected component node that gives access to the discriminant
8144 value.
8145
8146 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
8147 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
8148 allocated aggregates with default-initialized components.
8149
8150 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
8151 the box notation is used in positional aggregates.
8152
81532003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
8154
8155 * lib.ads: Fix typo in comment
8156
81572003-12-08 Vincent Celier <celier@gnat.com>
8158
8159 * prj.adb (Project_Empty): New component Unkept_Comments
8160 (Scan): Remove procedure; moved to Prj.Err.
8161
8162 * prj.ads (Project_Data): New Boolean component Unkept_Comments
8163 (Scan): Remove procedure; moved to Prj.Err.
8164
8165 * prj-dect.adb: Manage comments for the different declarations.
8166
8167 * prj-part.adb (With_Record): New component Node
8168 (Parse): New Boolean parameter Store_Comments, defaulted to False.
8169 Set the scanner to return ends of line and comments as tokens, if
8170 Store_Comments is True.
8171 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
8172 comments are associated with these nodes. Store the node IDs in the
8173 With_Records.
8174 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
8175 With_Records.
8176 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
8177 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
8178 current project. Call Tree.Restore afterwards. Set the various nodes
8179 for comment storage (Next_End, End_Of_Line, Previous_Line,
8180 Previous_End).
8181
8182 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
8183 defaulted to False.
8184
8185 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
8186 to False. When Truncated is True, truncate the string, never go to the
8187 next line.
8188 (Write_End_Of_Line_Comment): New procedure
8189 (Print): Process comments for nodes N_With_Clause,
8190 N_Package_Declaration, N_String_Type_Declaration,
8191 N_Attribute_Declaration, N_Typed_Variable_Declaration,
8192 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
8193 Process nodes N_Comment.
8194
8195 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
8196 without comments and there are some comments, set the flag
8197 Unkept_Comments to True.
8198 (Scan): If there are comments, set the flag Unkept_Comments to True and
8199 clear the comments.
8200 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
8201 (Next_End_Nodes: New table
8202 (Comment_Zones_Of): New function
8203 (Scan): New procedure; moved from Prj. Accumulate comments in the
8204 Comments table and set end of line comments, comments after, after end
8205 and before end.
8206 (Add_Comments): New procedure
8207 (Save, Restore, Seset_State): New procedures
8208 (There_Are_Unkept_Comments): New function
8209 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
8210 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
8211 procedures.
8212 (First_Comment_After, First_Comment_After_End): New functions
8213 (First_Comment_Before, First_Comment_Before_End): New functions
8214 (Next_Comment): New function
8215 (End_Of_Line_Comment, Follows_Empty_Line,
8216 Is_Followed_By_Empty_Line): New functions
8217 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
8218 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
8219 (Set_Next_Comment): New procedure
8220 (Default_Project_Node): Associate comment before if the node can store
8221 comments.
8222
8223 * scans.ads (Token_Type): New enumeration value Tok_Comment
8224 (Comment_Id): New global variable
8225
8226 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
8227 defaulted to False.
8228 (Scan): Store position of start of comment. If comments are tokens, set
8229 Comment_Id and set Token to Tok_Comment when scanning a comment.
8230 (Set_Comment_As_Token): New procedure
8231
8232 * sinput-p.adb: Update Copyright notice
8233 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
8234 that no longer exists.
8235
82362003-12-08 Javier Miranda <miranda@gnat.com>
8237
8238 * sem_aggr.adb: Add dependence on Exp_Tss package
8239 Correct typo in comment
8240 (Resolve_Aggregate): In case of array aggregates set the estimated
8241 type of the aggregate before calling resolve. This is needed to know
8242 the name of the corresponding IP in case of limited array aggregates.
8243 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
8244 in case of default initialized array components.
8245
8246 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
8247 types. Required to give support to limited aggregates in generic
8248 formals.
8249
82502003-12-08 Ed Schonberg <schonberg@gnat.com>
8251
8252 * sem_ch3.adb (Check_Initialization): For legality purposes, an
8253 inlined body functions like an instantiation.
8254 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
8255 until bounds are analyzed, to diagnose premature use of type.
8256
8257 * sem_util.adb (Wrong_Type): Improve error message when the type of
8258 the expression is used prematurely.
8259
82602003-12-08 GNAT Script <nobody@gnat.com>
8261
8262 * Make-lang.in: Makefile automatically updated
8263
0875a894
AC
82642003-12-08 Arnaud Charlet <charlet@act-europe.fr>
8265
7618d510
AC
8266 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
8267 they are automatically generated by Make-lang.in and cause nothing but
0875a894
AC
8268 maintenance troubles.
8269
5b4994bc
AC
82702003-12-05 Thomas Quinot <quinot@act-europe.fr>
8271
8272 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
8273 version of this unit).
8274
82752003-12-05 Olivier Hainque <hainque@act-europe.fr>
8276
8277 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
8278 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
8279 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
8280 the body of System.Interrupt_Management common to several targets.
8281 Update copyright notice when appropriate.
8282
8283 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
8284 constant.
8285
8286 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
8287 to ensure that the kernel fills in the interrupted context structure
8288 before calling a signal handler, which is necessary to be able to
8289 unwind past it. Update the copyright notice.
8290
82912003-12-05 Jerome Guitton <guitton@act-europe.fr>
8292
8293 * a-elchha.ads: New file.
8294
8295 * a-elchha.adb: New default last chance handler. Contents taken from
8296 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
8297
8298 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
8299 is moved to a-elchha.adb to provide a target-independent default last
8300 chance handler.
8301
8302 * Makefile.rtl: Add a-elchha.o
8303
8304 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
8305
83062003-12-05 Ed Schonberg <schonberg@gnat.com>
8307
8308 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
8309 declared in an instance, do not inline the call if the instance is not
8310 frozen yet, to prevent order of elaboration problems.
8311
8312 * sem_prag.adb: Add comments for previous fix.
8313
83142003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
8315
8316 * g-table.adb: Use the right variable in Set_Item.
8317 Update copyright notice.
8318
83192003-12-05 Arnaud Charlet <charlet@act-europe.fr>
8320
8321 * Makefile.in: Remove unused rules.
8322
83232003-12-05 Vincent Celier <celier@gnat.com>
8324
8325 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
8326 -nostdlib. Not needed here after all.
8327
efdfd311
AC
83282003-12-03 Thomas Quinot <quinot@act-europe.fr>
8329
8330 PR ada/11724
8331
fbf3e0dd 8332 * adaint.h, adaint.c, g-os_lib.ads:
efdfd311
AC
8333 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
8334 on some platforms (including FreeBSD), it is a 64 bit value.
8335 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
8336
83372003-12-03 Arnaud Charlet <charlet@act-europe.fr>
8338
8339 * gnatvsn.ads (Library_Version): Now contain only the relevant
8340 version info.
8341 (Verbose_Library_Version): New constant.
8342
8343 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
8344 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
8345 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
8346
8347 * gnatlbr.adb: Clean up: replace Library_Version by
8348 Verbose_Library_Version.
8349
fbf3e0dd 8350 * make.adb, lib-writ.adb, exp_attr.adb:
efdfd311
AC
8351 Clean up: replace Library_Version by Verbose_Library_Version.
8352
8353 * 5lintman.adb: Removed.
8354
fbf3e0dd 8355 * Makefile.in:
efdfd311
AC
8356 Update and simplify computation of LIBRARY_VERSION.
8357 Fix computation of GSMATCH_VERSION.
8358 5lintman.adb is no longer used: replaced by 7sintman.adb.
8359
83602003-12-03 Robert Dewar <dewar@gnat.com>
8361
fbf3e0dd 8362 * exp_ch5.adb:
efdfd311
AC
8363 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
8364 name. Modified to consider small non-bit-packed arrays as troublesome
8365 and in need of component-by-component assigment expansion.
8366
83672003-12-03 Vincent Celier <celier@gnat.com>
8368
8369 * lang-specs.h: Process nostdlib as nostdinc
8370
8371 * back_end.adb: Update Copyright notice
8372 (Scan_Compiler_Arguments): Process -nostdlib directly.
8373
83742003-12-03 Jose Ruiz <ruiz@act-europe.fr>
8375
fbf3e0dd 8376 * Makefile.in:
efdfd311
AC
8377 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
8378 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
8379 included in HIE_NONE_TARGET_PAIRS.
8380
83812003-12-03 Ed Schonberg <schonberg@gnat.com>
8382
fbf3e0dd 8383 * sem_attr.adb:
efdfd311
AC
8384 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
8385 is legal in an instance, because legality is cheched in the template.
8386
fbf3e0dd 8387 * sem_prag.adb:
efdfd311
AC
8388 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
8389 appplied to an unchecked conversion of a formal parameter.
8390
fbf3e0dd 8391 * sem_warn.adb:
efdfd311
AC
8392 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
8393 variables.
8394
83952003-12-03 Olivier Hainque <hainque@act-europe.fr>
8396
8397 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
8398 routines. The second one is new functionality to deal with backtracing
8399 through signal handlers.
8400 (unwind): Split into the two separate subroutines above.
8401 Update the documentation, and deal properly with sizeof (REG) different
8402 from sizeof (void*).
8403
08aa9a4a
AC
84042003-12-01 Nicolas Setton <setton@act-europe.fr>
8405
8406 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
8407 so that the debugger can reliably access the value of the parameter,
8408 and therefore is able to display the exception name when an exception
8409 breakpoint is reached.
8410
84112003-12-01 Thomas Quinot <quinot@act-europe.fr>
8412
8413 * fmap.adb: Fix typo in warning message.
8414
8415 * g-socket.ads, g-socket.adb: Make Free a visible instance of
8416 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
8417
84182003-12-01 Vincent Celier <celier@gnat.com>
8419
8420 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
8421 ther is no Afile.
8422 (Build_Library): Get the switches only if Default_Switches is declared
8423 in package Binder.
8424
84252003-12-01 Ed Schonberg <schonberg@gnat.com>
8426
8427 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
8428 actuals that are indexed components, reanalyze actual to ensure that
8429 packed array references are properly expanded.
8430
8431 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
8432 attempted assignment to a discriminant.
8433
84342003-12-01 Robert Dewar <dewar@gnat.com>
8435
8436 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
8437 reformatting.
8438
8439 * switch-c.adb: Minor reformatting of comments
8440
84412003-12-01 Arnaud Charlet <charlet@act-europe.fr>
8442
8443 * Makefile.in: Clean ups.
8444
84452003-12-01 GNAT Script <nobody@gnat.com>
8446
8447 * Make-lang.in: Makefile automatically updated
8448
c6135994
AC
84492003-12-01 Arnaud Charlet <charlet@act-europe.fr>
8450
8451 * 5wsystem.ads: Disable zero cost exception, not ready yet.
8452
51a30506
UW
84532003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
8454
8455 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
8456 to force serialization.
8457
81a5b587
AC
84582003-11-26 Thomas Quinot <quinot@act-europe.fr>
8459
fbf3e0dd 8460 * g-socket.ads, g-socket.adb:
81a5b587
AC
8461 Clarify documentation of function Stream. Introduce a Free procedure
8462 to release the returned Stream once it becomes unused.
8463
8464 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
8465
84662003-11-26 Arnaud Charlet <charlet@act-europe.fr>
8467
8468 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
8469 since NT 4 cannot handle timeout values that are too large,
8470 e.g. DWORD'Last - 1.
8471
84722003-11-26 Ed Schonberg <schonberg@gnat.com>
8473
fbf3e0dd 8474 * exp_ch4.adb:
81a5b587
AC
8475 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
8476 in procedure calls and whose expansion must be deferred.
8477
8478 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
8479 is in exp_ch4.
8480
fbf3e0dd 8481 * sem_ch3.adb:
81a5b587
AC
8482 (Build_Derived_Array_Type): Create operator for unconstrained type
8483 if ancestor is unconstrained.
8484
84852003-11-26 Vincent Celier <celier@gnat.com>
8486
8487 * make.adb (Project_Object_Directory): New global variable
8488 (Change_To_Object_Directory): New procedure
8489 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
8490 of Change_Dir directly. Do not change working directory to object
8491 directory of main project after each compilation.
8492 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
8493 directly.
8494 Change to object directory of main project before binding step.
8495 (Initialize): Initialize Project_Object_Directory to No_Project
8496
fbf3e0dd 8497 * mlib-prj.adb:
81a5b587
AC
8498 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
8499 binding a Stand-Alone Library.
8500
8501 * output.adb: Update Copyright notice
8502 (Write_Char): Output buffer when full
8503
85042003-11-26 Robert Dewar <dewar@gnat.com>
8505
8506 * sem_ch13.adb: (Check_Size): Reset size if size is too small
8507
fbf3e0dd 8508 * sem_ch13.ads:
81a5b587
AC
8509 (Check_Size): Fix documentation to include bit-packed array case
8510
8511 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
8512
8513 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
8514
8515 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
8516
d4c47b51
AC
85172003-11-24 Arnaud Charlet <charlet@act-europe.fr>
8518
8519 PR ada/13142
8520 * utils.c (init_gigi_decls): Change name of built-in setjmp to
8521 __builtin_setjmp, since this is apparently needed by recent
8522 non Ada changes.
8523
7677e9e0
RO
85242003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8525
d4c47b51 8526 * adadecode.c: Only include ctype.h if not IN_GCC.
7677e9e0
RO
8527 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
8528
6c1e24d3
AC
85292003-11-24 Jose Ruiz <ruiz@act-europe.fr>
8530
fbf3e0dd 8531 * Makefile.in:
6c1e24d3
AC
8532 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
8533 signals and interrupts.
8534
8535 * 5zintman.ads: New File.
8536
8537 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
8538 add exception signals to the set of unmasked signals.
8539
fbf3e0dd 8540 * 5ztaprop.adb:
6c1e24d3
AC
8541 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
8542 between signals and interrupts.
8543 Add to Unblocked_Signal_Mask the set of signals that are in
8544 Keep_Unmasked.
8545
fbf3e0dd 8546 * 7sinmaop.adb:
6c1e24d3
AC
8547 Adding a check to see whether the Interrupt_ID we want to unmask is in
8548 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
8549 reason is that the index type of the Keep_Unmasked array is not always
8550 Interrupt_ID; it may be a subtype of Interrupt_ID.
8551
85522003-11-24 Gary Dismukes <dismukes@gnat.com>
8553
fbf3e0dd 8554 * exp_util.adb:
6c1e24d3
AC
8555 (Remove_Side_Effects): Condition constantness of object created for a
8556 an unchecked type conversion on the constantness of the expression
8557 to ensure the correct value for 'Constrained when passing components
8558 of view-converted class-wide objects.
8559
85602003-11-24 Robert Dewar <dewar@gnat.com>
8561
8562 * par-load.adb (Load): Improve handling of misspelled and missing units
8563 Removes several cases of compilation abandoned messages
8564
8565 * lib.adb: (Remove_Unit): New procedure
8566
8567 * lib.ads: (Remove_Unit): New procedure
8568
8569 * lib-load.adb: Minor reformatting
8570
85712003-11-24 Vincent Celier <celier@gnat.com>
8572
fbf3e0dd 8573 * make.adb:
6c1e24d3
AC
8574 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
8575 (Marking_Label): Label to mark processed source files. Incremented for
8576 each executable.
8577 (Gnatmake): Increase Marking_Labet for each executable
8578 (Is_Marked): Compare against marking label
8579 (Mark): Mark with marking label
8580
85812003-11-24 Jerome Guitton <guitton@act-europe.fr>
8582
fbf3e0dd 8583 * s-thread.ads:
6c1e24d3
AC
8584 Move the declaration of the TSD for System.Threads to System.Soft_Links.
8585 Add some comments.
8586
8587 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
8588 (rts-cert): build a single relocatable object for the run-time lib.
8589 Fix perms.
8590
85912003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
8592
fbf3e0dd 8593 * Make-lang.in:
6c1e24d3
AC
8594 Use gnatls rather than gcc to obtain the location of GNAT RTL for
8595 crosstools build.
8596
85972003-11-24 Sergey Rybin <rybin@act-europe.fr>
8598
8599 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
8600 can not use it as before (that is, as a variable) when dumping it into
8601 the tree file. Add a local variable to store the result of this
8602 function and to be used as the string to be written into the tree.
8603
8604 * scn.adb (Initialize_Scanner): Add comments explaining the recent
8605 changes.
8606
8607 * sinput.adb (Source_First, Source_Last): In case of
8608 Internal_Source_File, replace returning attributes of
8609 Internal_Source_Ptr (which is wrong) with returning attributes of
8610 Internal_Source.
8611
86122003-11-24 Ed Schonberg <schonberg@gnat.com>
8613
fbf3e0dd 8614 * sem_ch3.adb:
6c1e24d3
AC
8615 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
8616 used for implicit concatenation operators.
8617 Code cleanup.
8618
fbf3e0dd 8619 * sem_elab.adb:
6c1e24d3
AC
8620 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
8621 task bodies that are in the scope of a Suppress pragma.
8622 (Check_A Call): Use the flag to prevent spurious elaboration checks.
8623
fbf3e0dd 8624 * sinfo.ads, sinfo.adb:
6c1e24d3
AC
8625 New flag No_Elaboration_Check on function/procedure calls, to properly
8626 suppress checks on calls in task bodies that are within a local suppress
8627 pragma.
8628
fbf3e0dd 8629 * exp_ch4.adb:
6c1e24d3
AC
8630 (Expand_Concatenate_Other): Use the proper integer type for the
8631 expression for the upper bound, to avoid universal_integer computations
8632 when possible.
8633
6f2aeb72
KC
86342003-11-21 Kelley Cook <kcook@gcc.gnu.org>
8635
8636 * .cvsignore: Delete.
8637
e9f85cd6
AS
86382003-11-21 Andreas Schwab <schwab@suse.de>
8639
8640 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
8641
4e074baf
VF
86422003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
8643
8644 * 5wsystem.ads: Enable zero cost exception.
8645
f1f9fe30
AC
86462003-11-21 Jerome Guitton <guitton@act-europe.fr>
8647
8648 * 5ztiitho.adb: Remove an unreferenced variable.
8649
86502003-11-21 Thomas Quinot <quinot@act-europe.fr>
8651
8652 * adaint.c: For FreeBSD, use mkstemp.
8653
86542003-11-21 Arnaud Charlet <charlet@act-europe.fr>
8655
8656 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
8657
86582003-11-21 Robert Dewar <dewar@gnat.com>
8659
8660 * bld.adb: Remove useless USE of gnatvsn
8661
8662 * gnatchop.adb: Minor reformatting
8663 Clean up version handling to be more consistent
8664
8665 * gnatxref.adb: Minor reformatting
8666
8667 * gprcmd.adb: Minor reformatting
8668 Fix output of copyright to be more consistent with other tools
8669
86702003-11-21 Vincent Celier <celier@gnat.com>
8671
8672 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
8673
86742003-11-21 Sergey Rybin <rybin@act-europe.fr>
8675
8676 * atree.adb (Initialize): Add initializations for global variables
8677 used in New_Copy_Tree.
8678
8679 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
8680 Internal_Source_File as the actual).
8681 Put the set of statements creating Any_Character before the set of
8682 statements creating Any_Array to have Any_Character fully initialized
8683 when it is used in creating Any_Array.
8684
8685 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
8686 not call Scan in case if the actual is Internal_Source_File
8687 Add 2003 to copyright note.
8688
8689 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
8690 processing Internal_Source_File.
8691
8692 * types.ads: Add the constant Internal_Source_File representing the
8693 source buffer for artificial source-code-like strings created within
8694 the compiler (the definition of Source_File_Index is changed).
8695
c5b2a8ae
AC
86962003-11-20 Arnaud Charlet <charlet@act-europe.fr>
8697
8698 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
8699 56system.ads: New file, FreeBSD version.
8700
a03ad584
JM
87012003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
8702
8703 * Make-lang.in (ada.extraclean): Delete.
8704
19f0526a
AC
87052003-11-19 Arnaud Charlet <charlet@act-europe.fr>
8706
8707 * gnatmem.adb: Clean up verbose output.
8708
8709 * gprcmd.adb: Change copyright to FSF.
8710
87112003-11-19 Vincent Celier <celier@gnat.com>
8712
8713 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
8714 and Version (ignored).
8715
8716 * symbols.ads: (Policy): New type
8717 (Initialize): New parameter Reference, Symbol_Policy and
8718 Library_Version.
8719 Remove parameter Force.
8720 Minor reformatting.
8721
8722 * snames.ads, snames.adbadb: New standard names
8723 Library_Reference_Symbol_File and Library_Symbol_Policy
8724
fbf3e0dd 8725 * mlib-prj.adb:
19f0526a
AC
8726 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
8727 project.
8728
fbf3e0dd 8729 * mlib-tgt.adb:
19f0526a
AC
8730 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
8731
8732 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
8733
8734 * prj.adb: (Project_Empty): New component Symbol_Data
8735
8736 * prj.ads: (Policy, Symbol_Record): New types
8737 (Project_Data): New component Symbol_Data
8738
fbf3e0dd 8739 * prj-attr.adb:
19f0526a
AC
8740 New attributes Library_Symbol_File, Library_Symbol_Policy and
8741 Library_Reference_Symbol_File.
8742
fbf3e0dd 8743 * prj-nmsc.adb:
19f0526a
AC
8744 (Ada_Check): When project is a Stand-Alone library project, process
8745 attribute Library_Symbol_File, Library_Symbol_Policy and
8746 Library_Reference_Symbol_File.
8747
8748 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
8749 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
8750 5sml-tgt.adb (Build_Dynamic_Library): New parameter
8751 Symbol_Data (ignored).
8752
8753 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
8754 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
8755 functions Option_File_Name and Version_String. Set new options of
8756 gnatsym related to symbol file, symbol policy and reference symbol
8757 file.
8758
fbf3e0dd 8759 * 5vsymbol.adb:
19f0526a
AC
8760 Extensive modifications to take into account the reference symbol file,
8761 the symbol policy, the library version and to put in the symbol file the
8762 minor and major IDs.
8763
8764 * bld.adb (Process_Declarative_Items): Put second argument of
8765 gprcmd to_absolute between single quotes, to avoid problems with
8766 Windows.
8767
8768 * bld-io.adb: Update Copyright notice.
8769 (Flush): Remove last character of a line, if it is a back slash, to
8770 avoid make problems.
8771
fbf3e0dd 8772 * gnatsym.adb:
19f0526a
AC
8773 Implement new scheme with reference symbol file and symbol policy.
8774
8775 * g-os_lib.ads: (Is_Directory): Clarify comment
8776
87772003-11-19 Robert Dewar <dewar@gnat.com>
8778
8779 * atree.adb: Move New_Copy_Tree global variables to head of package
8780
8781 * errout.adb: Minor reformatting
8782
87832003-11-19 Javier Miranda <miranda@gnat.com>
8784
8785 * sem_ch4.adb: (Diagnose_Call): Improve error message.
8786 Add reference to Ada0Y (AI-50217)
8787
8788 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
8789 sem_util.adb: Add reference to AI-50217
8790
8791 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
8792
8793 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
8794
8795 * sem_aggr.adb: Complete documentation of AI-287 changes
8796
8797 * par-ch4.adb: Document previous changes.
8798
8799 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
8800 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
8801 Ada0Y (AI-50217)
8802
8803 * exp_aggr.adb: Add references to AI-287 in previous changes
8804
88052003-11-19 Ed Schonberg <schonberg@gnat.com>
8806
fbf3e0dd 8807 * exp_ch6.adb:
19f0526a
AC
8808 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
8809 in the rewriting is the result of an inlined call.
8810
8811 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
8812 parameter is a type conversion, use original node to construct the
8813 post-call assignment, because expression may have been rewritten, e.g.
8814 if it is a packed array.
8815
fbf3e0dd 8816 * sem_attr.adb:
19f0526a
AC
8817 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
8818 body, just as it is in an instance.
8819 Categorization routines
8820
8821 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
8822 Instantiate_Object): Set proper sloc reference for message on missing
8823 actual.
8824
88252003-11-19 Thomas Quinot <quinot@act-europe.fr>
8826
8827 * Makefile.in: Add FreeBSD libgnat pairs.
8828
8829 * usage.adb: Fix typo in usage message.
8830
88312003-11-19 Jerome Guitton <guitton@act-europe.fr>
8832
8833 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
8834 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
8835 pragma Thread_Body.
8836 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
8837
8838 * s-thread.adb: This file is now a dummy implementation of
8839 System.Thread.
8840
88412003-11-19 Sergey Rybin <rybin@act-europe.fr>
8842
8843 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
8844
88452003-11-19 Emmanuel Briot <briot@act-europe.fr>
8846
8847 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
8848 instanciation references in the parent type description.
8849
0d77ab84
AC
88502003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8851
8852 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
8853
8854 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
8855 TYPE_PRECISION directly from esize.
8856
88572003-11-18 Thomas Quinot <quinot@act-europe.fr>
8858
fbf3e0dd 8859 * cstreams.c:
0d77ab84
AC
8860 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
8861
8862 * init.c: Initialization routines for FreeBSD
8863
8864 * link.c: Link info for FreeBSD
8865
8866 * sysdep.c: Add the case of FreeBSD
8867
cb7a5092
AC
88682003-11-17 Jerome Guitton <guitton@act-europe.fr>
8869
8870 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
8871 already called in System.Threads.
8872
8873 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
8874 environment task, as it has been moved to System.Threads.Initialization.
8875
88762003-11-17 Arnaud Charlet <charlet@act-europe.fr>
8877
8878 * adaint.c (__gnatlib_install_locks): Only reference
8879 __gnat_install_locks on VMS, since other platforms can avoid using
8880 --enable-threads=gnat
8881
88822003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8883
8884 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
8885
8886 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
8887 TYPE_PACKED_ARRAY_TYPE_P.
8888 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
8889
8890 Part of PR ada/12806
8891 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
8892 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
8893
88942003-11-17 Vincent Celier <celier@gnat.com>
8895
8896 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
8897 to False.
8898 Do not set exit status to Failure when Warning is True.
8899 (Gnatchop): Make errors "no compilation units found" and
8900 "no source files written" warnings only.
8901
8902 * make.adb (Gnatmake): When using a project file, set
8903 Look_In_Primary_Dir to False.
8904 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
8905 and Local_Configuration_Pragmas in the project where they are declared
8906 not an extending project which might have inherited them.
8907
8908 * osint.adb (Locate_File): If Name is already an absolute path, do not
8909 look for a directory.
8910
8911 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
8912 -gnats (Check_Syntax) is used, issue only a warning, not an error.
8913
8914 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
8915 in objects of type Variable_Value.
8916
8917 * prj.ads: (Variable_Value): New component Project
8918
8919 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
8920 is in a project extended by Project.
8921
8922 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
8923 Project of Variable_Values to this new parameter value.
8924 (Expression): Set component Project of Variable_Values.
8925 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
8926 Set the component Project in array elements.
8927
89282003-11-17 Sergey Rybin <rybin@act-europe.fr>
8929
8930 * errout.adb: (Initialize): Add initialization for error nodes.
8931
8932 * sem_ch12.adb (Initialize): Add missing initializations for
8933 Exchanged_Views and Hidden_Entities.
8934
89352003-11-17 Ed Schonberg <schonberg@gnat.com>
8936
8937 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
8938 already instantiated tree for use in subsequent inlining.
8939 (Analyze_Associations, Instantiate_Formal_Subprogram,
8940 Instantiate_Object): improve error message for mismatch in
8941 instantiations.
8942
8943 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
8944 instantiations of subprograms declared in instances.
8945
89462003-11-17 Javier Miranda <miranda@gnat.com>
8947
8948 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
8949 executed only under the Extensions_Allowed flag.
8950
89512003-11-17 Robert Dewar <dewar@gnat.com>
8952
8953 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
8954 zeroes suppressed.
8955 (Address_Image): Fix bug of returning 0x instead of 0x0
8956 Minor reformatting (function specs).
8957
8958 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
8959 (missed case of 33-63)
8960
8961 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
8962
8963 * s-thread.adb: Add comments for pragma Restriction
8964
8965 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
8966 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
8967
89682003-11-17 Ed Falis <falis@gnat.com>
8969
8970 * s-thread.adb: Added No_Tasking restriction for this implementation.
8971
89722003-11-17 Emmanuel Briot <briot@act-europe.fr>
8973
8974 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
8975 instanciation references in the parent type description.
8976
89772003-11-17 GNAT Script <nobody@gnat.com>
8978
8979 * Make-lang.in: Makefile automatically updated
8980
7d60db05
JM
89812003-11-16 Jason Merrill <jason@redhat.com>
8982
8983 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
8984 and TAGS files that include them for each front end.
8985
c0040397
AJ
89862003-11-14 Andreas Jaeger <aj@suse.de>
8987
a477ab83 8988 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
fbf3e0dd 8989 is the canonical version.
a477ab83
AJ
8990 * misc.c (gnat_handle_option): Likewise.
8991
c0040397
AJ
8992 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
8993
8994 * 5nsystem.ads: New file for x86_64-linux-gnu.
8995
95a6aaf9
AC
89962003-11-14 Arnaud Charlet <charlet@act-europe.fr>
8997
262cc585 8998 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
95a6aaf9 8999
4a4fe537
AC
9000 * comperr.adb: Fix logic in previous change.
9001
65356e64
AC
90022003-11-13 Vincent Celier <celier@gnat.com>
9003
9004 * 5bml-tgt.adb (Build_Dynamic_Library): Use
9005 Osint.Include_Dir_Default_Prefix instead of
9006 Sdefault.Include_Dir_Default_Name.
9007
9008 * gnatlbr.adb: Update Copyright notice
9009 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
9010 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
9011 instead of Sdefault.Object_Dir_Default_Name
9012
c0040397 9013 * gnatlink.adb:
65356e64
AC
9014 (Process_Binder_File): Never suppress the option following -Xlinker
9015
c0040397 9016 * mdll-utl.adb:
65356e64
AC
9017 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
9018 Sdefault.Object_Dir_Default_Name.
9019
c0040397 9020 * osint.ads, osint.adb:
65356e64
AC
9021 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
9022 Minor reformatting.
9023
9024 * vms_conv.ads: Minor reformating
9025 Remove GNAT STANDARD and GNAT PSTA
9026
c0040397 9027 * vms_conv.adb:
65356e64
AC
9028 Allow GNAT MAKE to have several files on the command line.
9029 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
9030 Sdefault.Object_Dir_Default_Name.
9031 Minor Reformating
9032 Remove data for GNAT STANDARD
9033
c0040397 9034 * vms_data.ads:
65356e64
AC
9035 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
9036 Remove data for GNAT STANDARD
9037 Remove options and documentation for -gnatwb/-gnatwB: these warning
9038 options no longer exist.
9039
90402003-11-13 Ed Falis <falis@gnat.com>
9041
9042 * 5zthrini.adb: (Init_RTS): Made visible
9043
c0040397 9044 * 5zthrini.adb:
65356e64
AC
9045 (Register): Removed unnecessary call to taskVarGet that checked whether
9046 an ATSD was already set as a task var for the argument thread.
9047
c0040397 9048 * s-thread.adb:
65356e64
AC
9049 Updated comment to reflect that this is a VxWorks version
9050 Added context clause for System.Threads.Initialization
9051 Added call to System.Threads.Initialization.Init_RTS
9052
90532003-11-13 Jerome Guitton <guitton@act-europe.fr>
9054
c0040397 9055 * 5zthrini.adb:
65356e64
AC
9056 (Init_RTS): New procedure, for the initialization of the run-time lib.
9057
c0040397 9058 * s-thread.adb:
65356e64
AC
9059 Remove dependancy on System.Init, so that this file can be used in the
9060 AE653 sequential run-time lib.
9061
90622003-11-13 Robert Dewar <dewar@gnat.com>
9063
9064 * bindgen.adb: Minor reformatting
9065
90662003-11-13 Ed Schonberg <schonberg@gnat.com>
9067
c0040397 9068 * checks.adb:
65356e64
AC
9069 (Apply_Discriminant_Check): Do no apply check if target type is derived
9070 from source type with no applicable constraint.
9071
c0040397 9072 * lib-writ.adb:
65356e64
AC
9073 (Ensure_System_Dependency): Do not apply the style checks that may have
9074 been specified for the main unit.
9075
c0040397 9076 * sem_ch8.adb:
65356e64
AC
9077 (Find_Selected_Component): Further improvement in error message, with
9078 RM reference.
9079
c0040397 9080 * sem_res.adb:
65356e64
AC
9081 (Resolve): Handle properly the case of an illegal overloaded protected
9082 procedure.
9083
90842003-11-13 Javier Miranda <miranda@gnat.com>
9085
c0040397 9086 * exp_aggr.adb:
65356e64
AC
9087 (Has_Default_Init_Comps): New function to check the presence of
9088 default initialization in an aggregate.
9089 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
9090 extension aggregate of a limited record. In addition, a new formal
9091 was added to do not initialize the record controller (if any) during
9092 this recursive expansion of ancestors.
9093 (Init_Controller): Add support for limited record components.
9094 (Expand_Record_Aggregate): In case of default initialized components
9095 convert the aggregate into a set of assignments.
9096
9097 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
9098 describing the new syntax.
9099 Nothing else needed to be done because this subprogram delegates part of
9100 its work to P_Precord_Or_Array_Component_Association.
9101 (P_Record_Or_Array_Component_Association): Give support to the new
9102 syntax for default initialization of components.
9103
c0040397 9104 * sem_aggr.adb:
65356e64
AC
9105 (Resolve_Aggregate): Relax the strictness of the frontend in case of
9106 limited aggregates.
9107 (Resolve_Record_Aggregate): Give support to default initialized
9108 components.
9109 (Get_Value): In case of default initialized components, duplicate
9110 the corresponding default expression (from the record type
9111 declaration). In case of default initialization in the *others*
9112 choice, do not check that all components have the same type.
9113 (Resolve_Extension_Aggregate): Give support to limited extension
9114 aggregates.
9115
c0040397 9116 * sem_ch3.adb:
65356e64
AC
9117 (Check_Initialization): Relax the strictness of the front-end in case
9118 of aggregate and extension aggregates. This test is now done in
9119 Get_Value in a per-component manner.
9120
9121 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
9122 expression corresponds to a limited aggregate. This test is now done
9123 in Get_Value.
9124
9125 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
9126 Box_Present flag.
9127
9128 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
9129 present in an N_Component_Association node
9130
91312003-11-13 Thomas Quinot <quinot@act-europe.fr>
9132
9133 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
9134 type-conformant entry only if they are homographs.
9135
91362003-11-13 GNAT Script <nobody@gnat.com>
9137
9138 * Make-lang.in: Makefile automatically updated
9139
49add53f
RO
91402003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9141
9142 * adadecode.c: Use <> form of include for ctype.h.
9143 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
9144
94bae1cc
RO
91452003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9146
9147 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
9148 Works around PR middle-end/6552.
9149
463f452c
AC
91502003-11-10 Ed Falis <falis@gnat.com>
9151
9152 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
9153
9154 * 5zinit.adb: (Install_Handler): Moved back to spec
9155 (Install_Signal_Handlers): Deleted
9156
9157 * 5zthrini.adb: Added context clause for System.Storage_Elements
9158 (Register): Only handles creation of taskVar; initialization moved to
9159 Thread_Body_Enter.
9160 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
9161 Added declaration of environment task secondary stack and
9162 initialization.
9163
9164 * s-thread.adb: Implement bodies for thread body processing
9165
c0040397 9166 * s-thread.ads:
463f452c
AC
9167 Added comment identifying supported targets for pragma Thread_Body.
9168
91692003-11-10 Pascal Obry <obry@gnat.com>
9170
9171 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
9172 GNAT_MAX_PATH_LEN.
9173
c0040397 9174 * s-fileio.adb:
463f452c
AC
9175 (Open): Properly check for string length before copying into the buffer.
9176 Raises Name_Error if buffer is too small. Note that this was a potential
9177 buffer overflow.
9178
91792003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
9180
9181 * bindgen.adb, comperr.adb: Code clean ups.
9182 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
9183
91842003-11-10 Sergey Rybin <rybin@act-europe.fr>
9185
9186 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
9187
91882003-11-10 Vincent Celier <celier@gnat.com>
9189
c0040397 9190 * gprcmd.adb:
463f452c
AC
9191 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
9192 installation.
9193
9194 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
9195
9196 * prj.adb: (Project_Empty): Add new boolean component Virtual
9197
9198 * prj.ads: (Virtual_Prefix): New constant string
9199 (Project_Data): New boolean component Virtual
9200
9201 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
9202 a library project is extended by a virtual extending project.
9203
c0040397 9204 * prj-part.adb:
463f452c
AC
9205 Modifications throughout to implement extending-all project, including:
9206 (Virtual_Hash, Processed_Hash): New hash tables
9207 (Create_Virtual_Extending_Project): New procedure
9208 (Look_For_Virtual_Projects_For): New procedure
9209
c0040397 9210 * prj-proc.adb:
463f452c
AC
9211 (Process): After checking the projects, if main project is an
9212 extending-all project, set the object directory of all virtual extending
9213 project to the object directory of the main project.
9214 Adjust error message when a virtual extending project has the same
9215 object directory as an project being extended.
9216 (Recursive_Process): If name starts with the virtual prefix, set Virtual
9217 to True in the project data.
9218
c0040397 9219 * prj-tree.adb:
463f452c
AC
9220 (Default_Project_Node): Add new boolean component Extending_All
9221 (Is_Extending_All): New function
9222 (Set_Is_Extending_All): New procedure
9223
9224 * prj-tree.ads: (Is_Extending_All): New function
9225 (Set_Is_Extending_All): New procedure
9226 (Project_Node_Record): New boolean component Extending_All
9227
9228 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
9229
c0040397 9230 * vms_data.ads:
463f452c
AC
9231 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
9232
9233 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
9234 "gprcmd prefix" to define it.
9235
92362003-11-10 Thomas Quinot <quinot@act-europe.fr>
9237
9238 * einfo.ads: Fix a typo and remove an extraneous word in comments.
9239
c0040397 9240 * lib-load.adb:
463f452c
AC
9241 (Create_Dummy_Package_Unit): Set the scope of the entity for the
9242 created dummy package to Standard_Standard, not to itself, to
9243 defend other parts of the front-end against encoutering a cycle in
9244 the scope chain.
9245
c0040397 9246 * sem_ch10.adb:
463f452c
AC
9247 (Analyze_With_Clause): When setting the entities for the successive
9248 N_Expanded_Names that constitute the name of a child unit, do not
9249 attempt to go further than Standard_Standard in the chain of scopes.
9250 This case arises from the placeholder units created by
9251 Create_Dummy_Package_Unit in the case of a with_clause for a
9252 nonexistent child unit.
9253
92542003-11-10 Ed Schonberg <schonberg@gnat.com>
9255
c0040397 9256 * exp_ch6.adb:
463f452c
AC
9257 (Expand_Thread_Body): Place subprogram on scope stack, so that new
9258 declarations are given the proper scope.
9259
c0040397 9260 * sem_ch13.adb:
463f452c
AC
9261 (Check_Expr_Constants): Reject an expression that contains a constant
9262 created during expansion, and that appears after the object to which
9263 the address clause applies.
9264
9265 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
9266 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
9267 that uses 'Range of a function call with controlled components, so
9268 that the function result can be finalized before starting the loop.
9269
c0040397 9270 * sem_ch8.adb:
463f452c
AC
9271 (Find_Selected_Component): Improve error message when prefix is
9272 an implicit dereference of an incomplete type.
9273
92742003-11-10 Robert Dewar <dewar@gnat.com>
9275
9276 * opt.ads: New Print_Standard flag for -gnatS switch
9277
9278 * sem_ch13.adb: Remove some additional checks for unaligned arrays
9279
9280 * cstand.adb (Create_Standard): Print out package standard if -gnatS
9281 switch set
9282
9283 * debug.adb: Update doc for -gnatds to discuss relationship with new
9284 -gnatS flag
9285
9286 * sinfo.adb: Add new field Entity_Or_Associated_Node
9287
9288 * sinfo.ads: Add new field Entity_Or_Associated_Node
9289 Update documentation for Associated_Node and Entity fields to clarify
9290 relationship and usage.
9291
c0040397 9292 * sprint.adb:
463f452c
AC
9293 (Write_Id): Properly process Associated_Node field in generic template
9294
c0040397 9295 * switch-c.adb:
463f452c
AC
9296 Recognize new -gnatS switch for printing package Standard
9297 This replaces gnatpsta
9298
c0040397 9299 * usage.adb:
463f452c
AC
9300 Add line for new -gnatS switch for printing package Standard
9301 This replaces gnatpsta
9302
c77c5f2e
AJ
93032003-11-10 Andreas Jaeger <aj@suse.de>
9304
9305 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
9306 integer.
9307
5c90f17f
AC
93082003-11-10 Arnaud Charlet <charlet@act-europe.fr>
9309
9310 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
9311 by gnat1.
9312
139f0d1e
AC
93132003-11-10 Arnaud Charlet <charlet@act-europe.fr>
9314
9315 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
9316 no longer needed.
9317
9318 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
9319
9320 * sysdep.c: Add handling of cygwin.
9321
f3e4c05c
GS
93222003-11-10 GNAT Script <nobody@gnat.com>
9323
9324 * Make-lang.in: Makefile automatically updated
9325
2cdc8909
AC
93262003-11-10 Arnaud Charlet <charlet@act-europe.fr>
9327
9328 PR 12950
9329 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
9330 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
9331 Replace GNAT_ROOT by GCC_ROOT.
9332
9333 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
9334
37783865
ZW
93352003-11-06 Zack Weinberg <zack@codesourcery.com>
9336
9337 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
9338 and update for changed meaning of GET_MODE_BITSIZE.
9339
6bc1c519
AC
93402003-11-04 Doug Rupp <rupp@gnat.com>
9341
9342 * sysdep.c: Problem discovered during IA64 VMS port.
9343 [VMS] #include <unixio.h> to get proper prototypes.
9344
37783865 9345 * adaint.c:
6bc1c519
AC
9346 Issues discovered/problems fixed during IA64 VMS port.
9347 [VMS] #define _POSIX_EXIT for proper semantics.
9348 [VMS] #include <unixio.h> for proper prototypes.
9349 [VMS] (fork): #define IA64 version.
9350 (__gnat_os_exit): Remove unnecessary VMS specific code.
9351
93522003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9353
9354 Part of PR ada/12806
9355
9356 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
9357 tree, not integer.
9358
37783865 9359 * decl.c:
6bc1c519
AC
9360 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
9361 not integer.
9362
9363 * targtyps.c, decl.c, misc.c,
9364 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
9365 routines to work around change in FP sizing semantics in GCC.
9366
37783865 9367 * utils.c:
6bc1c519
AC
9368 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
9369
9370 * gigi.h: (enumerate_modes): New function.
9371
9372 * Make-lang.in: (ada/misc.o): Add real.h.
9373
9374 * misc.c: (enumerate_modes): New function.
9375
93762003-11-04 Robert Dewar <dewar@gnat.com>
9377
9378 * 3vtrasym.adb: Minor reformatting
9379 Use terminology encoded/decoded name, rather than C++ specific notion
9380 of mangling (this is the terminology used throughout GNAT).
9381
9382 * einfo.h: Regenerated
9383
9384 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
9385
37783865 9386 * exp_ch6.adb:
6bc1c519
AC
9387 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
9388
9389 * par-prag.adb: Add dummy entry for Thread_Body pragma
9390
37783865 9391 * rtsfind.ads:
6bc1c519
AC
9392 Add entries for System.Threads entities for thread body processing
9393
37783865 9394 * sem_attr.adb:
6bc1c519
AC
9395 (Analyze_Pragma, Access attributes): Check these are not applied to a
9396 thread body, since this is not permitted
9397
9398 * sem_prag.adb: Add processing for Thread_Body pragma.
9399 Minor comment fix.
9400
37783865 9401 * sem_res.adb:
6bc1c519
AC
9402 (Resolve_Call): Check for incorrect attempt to call a thread body
9403 procedure with a direct call.
9404
9405 * snames.ads, snames.adb: Add entry for Thread_Body pragma
9406 Add names associated with thread body expansion
9407
9408 * snames.h: Add entry for Thread_Body pragma
9409
9410 * s-thread.adb: Add entries for thread body processing
9411 These are dummy bodies so far
9412
9413 * s-thread.ads: Add documentation on thread body handling.
9414 Add entries for thread body processing.
9415
94162003-11-04 Javier Miranda <miranda@gnat.com>
9417
37783865 9418 * sem_ch10.adb:
6bc1c519
AC
9419 (Build_Limited_Views): Return after posting an error in case of limited
9420 with_clause on subprograms, generics, instances or generic renamings
9421 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
9422 on subprograms, generics, instances or generic renamings
9423
94242003-11-04 Arnaud Charlet <charlet@act-europe.fr>
9425
9426 * raise.c (setup_to_install): Correct mistake in last revision; two
9427 arguments out of order.
9428
9429 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
9430 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
9431 notice, missed in previous change.
9432 Remove trailing blanks and other style errors introduced in previous
9433 change.
9434
94352003-11-04 Olivier Hainque <hainque@act-europe.fr>
9436
9437 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
9438 rid of the wrapper for a LJM type, ensuring we don't do that if the
9439 field is addressable. This avoids potential low level type view
9440 mismatches later on, for instance in a by-reference argument passing
9441 process.
9442
94432003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9444
9445 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
9446 aligned at byte boundary.
9447
94482003-11-04 Joel Brobecker <brobecker@gnat.com>
9449
9450 * decl.c (components_to_record): Do not delete the empty variants from
9451 the end of the union type.
9452
94532003-11-04 Ed Schonberg <schonberg@gnat.com>
9454
9455 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
9456 operation for a derived type, an explicit declaration may use a local
9457 subtype of Boolean.
9458
94592003-11-04 Vincent Celier <celier@gnat.com>
9460
9461 * make.adb (Gnatmake): Allow main sources on the command line with a
9462 library project when it is only for compilation (no binding or
9463 linking).
9464
487e9fff
RO
94652003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9466
9467 * Makefile.in: Remove many duplicate variables.
9468
63069342
KC
94692003-11-03 Kelley Cook <kcook@gcc.gnu.org>
9470
9471 * Make-lang.in (dvi): Move targets to $(docobjdir).
9472 (gnat_ug_vms.dvi): Simplify rule and adjust target.
9473 (gnat_ug_wnt.dvi): Likewise.
9474 (gnat_ug_unx.dvi): Likewise.
9475 (gnat_ug_vxw.dvi): Likewise.
9476 (gnat_rm.dvi): Likewise.
9477 (gnat-style.dvi): Likewise.
9478
c2edc52b
KC
94792003-10-31 Kelley Cook <kcook@gcc.gnu.org>
9480
9481 * gigi.h: Missed commit from update for C90.
9482
14df9585
KC
94832003-10-31 Kelley Cook <kcook@gcc.gnu.org>
9484
9485 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
9486
acd8e984
AS
94872003-10-31 Andreas Schwab <schwab@suse.de>
9488
9489 * raise.c (get_action_description_for): Fix typo in last change.
9490
b2c62c45
NN
94912003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
9492
9493 PR ada/12761
9494 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
9495 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
9496
9373164a
KC
94972003-10-30 Kelley Cook <kcook@gcc.gnu.org>
9498
9499 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
9500 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
9501 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
9502 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
9503 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
9504
bde58e32
AC
95052003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
9506
37783865 9507 * 3vtrasym.adb:
bde58e32
AC
9508 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
9509 numbers when symbol name is too long.
9510
95112003-10-30 Ed Falis <falis@gnat.com>
9512
9513 * g-signal.ads, g-signal.adb: New files
9514
9515 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
9516
9517 * Makefile.rtl: Introduce GNAT.Signals
9518
95192003-10-30 Robert Dewar <dewar@gnat.com>
9520
9521 * freeze.adb: Minor reformatting
9522
9523 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
9524
37783865
ZW
9525 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
9526 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
bde58e32
AC
9527 New handling of Id_Check parameter to improve recognition of keywords
9528 used as identifiers.
9529 Update copyright notice to include 2003
9530
657a9dd9
AC
95312003-10-29 Robert Dewar <dewar@gnat.com>
9532
9533 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
9534 sem_ch10.adb: Minor reformatting
9535
9536 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
9537 (Expand_Assign_Record): Test right hand side for bit unaligned as well
9538
95392003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
9540
37783865 9541 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
657a9dd9
AC
9542 Support for TBK$SYMBOLIZE-based symbolic traceback.
9543
95442003-10-29 Jose Ruiz <ruiz@act-europe.fr>
9545
37783865 9546 * exp_disp.adb:
657a9dd9
AC
9547 Revert previous change, that did not work well when pragma No_Run_Time
9548 was used in conjunction with a run-time other than ZFP.
9549
95502003-10-29 Vincent Celier <celier@gnat.com>
9551
37783865 9552 * make.adb:
657a9dd9
AC
9553 (Gnatmake): When there are no Ada mains in attribute Main, disable the
9554 bind and link steps only is switch -z is not used.
9555
95562003-10-29 Arnaud Charlet <charlet@act-europe.fr>
9557
9558 * Makefile.generic: Remove duplicated setting of CC.
9559
9560 * Makefile.prolog: Set CC to gcc by default, to override make's
9561 default (cc).
9562
9563 * einfo.h: Regenerated.
9564
95652003-10-29 Ed Schonberg <schonberg@gnat.com>
9566
9567 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
9568 current body, after compiling subunit.
9569
9570 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
9571 when in deleted code, because gigi needs properly ordered freeze
9572 actions to annotate types.
9573
9574 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
9575 prevent the premature freezing of record type that contains
9576 subcomponents with a private type that does not yet have a completion.
9577
95782003-10-29 Javier Miranda <miranda@gnat.com>
9579
37783865 9580 * sem_ch12.adb:
657a9dd9
AC
9581 (Analyze_Package_Instantiation): Check that instances can not be used in
9582 limited with_clauses.
9583
37783865 9584 * sem_ch8.adb:
657a9dd9
AC
9585 (Analyze_Package_Renaming): Check that limited withed packages cannot
9586 be renamed. Improve text on error messages related to limited
9587 with_clauses.
9588
9589 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
9590
9591 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
9592 Update copyright notice.
9593
9594 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
9595 (Install_Limited_Context_Clauses): New subprogram that isolates all the
9596 checks required for limited context_clauses and installs the limited
9597 view.
9598 (Install_Limited_Withed_Unit): Complete its documentation.
9599 (Analyze_Context): Check that limited with_clauses are only allowed in
9600 package specs.
9601 (Install_Context): Call Install_Limited_Context_Clauses after the
9602 parents have been installed.
9603 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
9604 package as 'From_With_Type'; this mark indicates that the limited view
9605 is installed. Used to check bad usages of limited with_clauses.
9606 (Build_Limited_Views): Do not add shadow entities to the scope's list
9607 of entities. Do not add real entities to the Non_Limited_Views chain.
9608 Improve error notification.
9609 (Remove_Context_Clauses): Remove context clauses in two phases:
9610 limited views first and regular views later (to maintain the
9611 stack model).
9612 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
9613 its visible entities.
9614
96152003-10-29 Thomas Quinot <quinot@act-europe.fr>
9616
9617 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
9618 with any type that Is_Fixed_Point_Type.
9619
9620 * sinfo.ads: Fix documentation for Associated_Node attribute.
9621
96222003-10-29 Sergey Rybin <rybin@act-europe.fr>
9623
9624 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
9625 both '-gnatc' and '-gnatt' are specified.
9626
9627 * atree.adb (Initialize): Add initialization for Node_Count (set to
9628 zero).
9629
96302003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9631
9632 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
9633 do not consider as Pure.
9634
9635 Part of implementation of function-at-a-time:
9636
9637 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
9638 (tree_transform): Add new argument to build_component_ref.
9639 (tree_transform, case N_Assignment_Statement): Make and return an
9640 EXPR_STMT.
9641 (tree_transform): If result IS_STMT, set flags and return it.
9642 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
9643
9644 * utils2.c (build_simple_component_ref, build_component_ref): Add new
9645 arg, NO_FOLD_P.
9646 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
9647 (build_allocator): Likewise.
9648
9649 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
9650 Add new arg to build_component_ref.
9651 (maybe_unconstrained_array, unchecked_convert): Likewise.
9652
9653 * ada-tree.def (EXPR_STMT): New code.
9654
9655 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
9656
9657 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
9658 build_component_ref calls.
9659
9660 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
9661
9662 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
9663 (build_component_ref): Add new argument, NO_FOLD_P.
9664
ecad994d
AC
96652003-10-27 Arnaud Charlet <charlet@act-europe.fr>
9666
9667 * Makefile.generic: Add missing substitution on object_deps handling.
9668
9669 PR ada/5909:
9670 * Make-lang.in (check-ada): Enable ACATS test suite.
9671
96722003-10-27 Robert Dewar <dewar@gnat.com>
9673
37783865 9674 * exp_ch3.adb:
ecad994d
AC
9675 (Freeze_Array_Type): We do not need an initialization routine for types
9676 derived from String or Wide_String. They should be treated the same
9677 as String and Wide_String themselves. This caused problems with the
9678 use of Initialize_Scalars.
9679
37783865 9680 * exp_ch5.adb:
ecad994d
AC
9681 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
9682 composites. This allows use of component clauses that are not byte
9683 aligned.
9684
37783865 9685 * sem_prag.adb:
ecad994d
AC
9686 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
9687 is an attempt to pack an array of atomic objects.
9688
9689 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
9690
96912003-10-27 Pascal Obry <obry@gnat.com>
9692
37783865 9693 * g-dirope.adb:
ecad994d
AC
9694 (Basename): Check for drive letters in a pathname only on DOS based OS.
9695
96962003-10-27 Vincent Celier <celier@gnat.com>
9697
37783865 9698 * make.adb:
ecad994d
AC
9699 (Gnatmake): When unable to change dir to the object dir, display the
9700 content of the parent dir of the obj dir, to try to understand why this
9701 happens.
9702
97032003-10-27 GNAT Script <nobody@gnat.com>
9704
9705 * Make-lang.in: Makefile automatically updated
9706
97072003-10-27 Ed Schonberg <schonberg@gnat.com>
9708
37783865 9709 * sem_ch12.adb:
ecad994d
AC
9710 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
9711 should not be done in Save/Restore_Scope_Stack, because it is performed
9712 locally.
9713
37783865 9714 * sem_ch8.adb:
ecad994d
AC
9715 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
9716 whether use clauses should be removed/restored.
9717
37783865 9718 * sem_ch8.ads:
ecad994d
AC
9719 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
9720 whether use clauses should be removed/restored.
9721
b6b3c138
AJ
97222003-10-26 Andreas Jaeger <aj@suse.de>
9723
9724 * Makefile.in: Remove duplicated lines.
9725
b6d83931
AC
97262003-10-24 Arnaud Charlet <charlet@act-europe.fr>
9727
9728 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
9729 minimize the differences with ACT tree.
9730
9731 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
9732 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
9733 Gnatvsn.Gnat_Static_Version_String to reduce differences between
9734 ACT and FSF trees.
9735
97362003-10-24 Pascal Obry <obry@gnat.com>
9737
9738 * adadecode.c (ostrcpy): New function.
9739 (__gnat_decode): Use ostrcpy of strcpy.
9740 (has_prefix): Set first parameter a const.
9741 (has_suffix): Set first parameter a const.
9742 Update copyright notice. Fix source name in header.
9743 Removes a trailing space.
9744 PR ada/12014.
9745
97462003-10-24 Jose Ruiz <ruiz@act-europe.fr>
9747
b6b3c138 9748 * exp_disp.adb:
b6d83931
AC
9749 Remove the test against being in No_Run_Time_Mode before generating a
9750 call to Register_Tag. It is redundant with the test against the
9751 availability of the function Register_Tag.
9752
97532003-10-24 Vincent Celier <celier@gnat.com>
9754
9755 * g-catiio.adb: (Month_Name): Correct spelling of February
9756
9757 * make.adb: (Mains): New package
9758 (Initialize): Call Mains.Delete
9759 (Gnatmake): Check that each main on the command line is a source of a
9760 project file and, if there are several mains, each of them is a source
9761 of the same project file.
9762 (Gnatmake): When a foreign language is specified in attribute Languages,
9763 no main is specified on the command line and attribute Mains is not
9764 empty, only build the Ada main. If there is no Ada main, just compile
9765 the Ada sources and their closure.
9766 (Gnatmake): If a main is specified on the command line with directory
9767 information, check that the source exists and, if it does, that the path
9768 is the actual path of a source of a project.
9769
b6b3c138 9770 * prj-env.adb:
b6d83931
AC
9771 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
9772 Full_Path is True, return the full path instead of the simple file name.
9773 (Project_Of): New function
9774
b6b3c138 9775 * prj-env.ads:
b6d83931
AC
9776 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
9777 defaulted to False.
9778 (Project_Of): New function
9779
97802003-10-24 Arnaud Charlet <charlet@act-europe.fr>
9781
b6b3c138 9782 * Makefile.generic:
b6d83931
AC
9783 Ensure objects of main project are always checked and rebuilt if needed.
9784 Set CC to gcc by default.
9785 Prepare new handling of link by creating a global archive (not activated
9786 yet).
9787
9788 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
9789 stringt.h: Update copyright notice. Remove trailing blanks.
9790 Fix source name in header.
9791
97922003-10-24 Robert Dewar <dewar@gnat.com>
9793
9794 * sem_ch12.adb: Minor reformatting
9795
b6b3c138 9796 * sem_ch3.adb:
b6d83931
AC
9797 Minor reformatting (including new function return style throughout)
9798
b6b3c138 9799 * sem_ch3.ads:
b6d83931
AC
9800 Minor reformatting (including new function return style throughout)
9801
98022003-10-24 Arnaud Charlet <charlet@act-europe.fr>
9803
9804 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
9805 stringt.h: Update copyright notice. Remove trailing blanks.
9806 Fix source name in header.
9807
98082003-10-24 GNAT Script <nobody@gnat.com>
9809
9810 * Make-lang.in: Makefile automatically updated
9811
b4e2d709
NN
98122003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
9813
9814 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
9815 stringt.h: Convert to ISO C90 declarations and definitions.
9816
9d7d51be
AC
98172003-10-23 Thomas Quinot <quinot@act-europe.fr>
9818
9819 PR ada/11978:
9820 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
9821 External_Tag attribute definition clauses.
9822
98232003-10-23 Ed Schonberg <schonberg@gnat.com>
9824
9825 PR ada/7613:
9826 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
9827 child unit, generate a fully qualified name to avoid spurious errors
9828 when the context contains renamings of different child units with
9829 the same simple name.
9830
9831 * exp_dbug.ads: Add documentation on name qualification for renamings
9832 of child units.
9833
98342003-10-23 Robert Dewar <dewar@gnat.com>
9835
9836 * g-regpat.ads, g-regpat.adb: Minor reformatting
9837
98382003-10-23 Jose Ruiz <ruiz@act-europe.fr>
9839
9840 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
9841
98422003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9843
9844 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
9845 Machine call.
9846
9847 * urealp.h: (Machine): Update to proper definition.
9848
6d244bbe
AC
98492003-10-23 Arnaud Charlet <charlet@act-europe.fr>
9850
9851 * init.c, adaint.c: Minor reformatting.
9852
8f4eb34b
DS
98532003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
9854
6d244bbe 9855 * adaint.c (w32_epoch_offset): Define static const at file level.
8f4eb34b
DS
9856 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
9857 rather than t_create, t_access in call to GetFileTime. Use union
9858 to convert between FILETIME and unsigned long long.
9859 (__gnat_file_time_name): Test for invalid file handle.
9860 (__gnat_set_filetime_name): Support win32 targets using
9861 w32api SetFileTime.
9862
25412599
DS
98632003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
9864
9865 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
9866
9867 * ctrl_c.c (__gnat_int_handler): Remove declaration.
9868
9869 * decl.c (creat_concat_name): Const-ify prefix.
9870
9871 * adaint.c: Include ctype.h if __MINGW32__.
9872 (__gnat_readlink): Mark arguments as possibly unused.
9873 (__gnat_symlink): Likewise.
9874 (__gnat_is_symbolic_link): Likewise.
9875 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
9876 declaration
b6b3c138 9877 (__gnat_file_time_name): Don't declare struct stat statbuf when
25412599
DS
9878 not needed.
9879 (__gnat_is_absolute_path): Add parenthesis around condition of
9880 'if' statement to avoid warning.
9881 (__gnat_plist_init): Specify void as parameter.
9882 (plist_enter): Likewise.
9883 (plist_leave): Likewise.
9884 (remove_handle): Make static. Initialize prev.
9885
698a5e79
AC
98862003-10-22 Arnaud Charlet <charlet@act-europe.fr>
9887
6d244bbe 9888 * Makefile.in: Disable build of gnatpsta. PR ada/10110.
698a5e79
AC
9889 * cstreams.c (__gnat_full_name): Minor improvements and clean up
9890 of previous change.
9891
e97c30aa
RO
98922003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9893
9894 * tracebak.c (MAX): Avoid redefinition warning.
9895
9896 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
9897 Change msg to const char *.
9898 (__gnat_install_handler): Remove ss, unused.
9899 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
9900 to const char *.
9901 * cstreams.c (__gnat_full_name): Declare p only when used.
9902 (__gnat_full_name) [sgi] Return buffer.
9903
65f1ebd1
AC
99042003-10-22 Arnaud Charlet <charlet@act-europe.fr>
9905
9906 * mingw32.h: New file.
0c644933
AC
9907 * gnat_wrapper.adb: New file.
9908
6d244bbe 99092003-10-22 Jerome Roussel <roussel@act-europe.fr>
0c644933
AC
9910
9911 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
9912 string match a pre compiled regular expression (the corresponding
9913 version of the function working on a raw regular expression)
9914 Fix typos in various comments
9915 Update copyright notice in spec
9916
6d244bbe 99172003-10-21 Gary Dismukes <dismukes@gnat.com>
0c644933 9918
b6b3c138 9919 * exp_ch3.adb:
0c644933
AC
9920 (Component_Needs_Simple_Initialization): Return False when the type is a
9921 packed bit array. Revise spec comments to document this case.
9922
b6b3c138 9923 * exp_prag.adb:
0c644933
AC
9924 (Expand_Pragma_Import): Set any expression on the imported object to
9925 empty to avoid initializing imported objects (in particular this
9926 covers the case of zero-initialization of bit arrays).
9927 Update copyright notice.
9928
6d244bbe 99292003-10-21 Ed Schonberg <schonberg@gnat.com>
0c644933 9930
b6b3c138 9931 * sem_ch12.adb:
0c644933
AC
9932 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
9933 a subunit is missing.
9934 (Instantiate_Subprogram_Body): If body of function is missing, set type
9935 of return expression explicitly in dummy body, to prevent cascaded
9936 errors when a subunit is missing.
9937 Fixes PR 5677.
9938
b6b3c138 9939 * sem_ch3.adb:
0c644933
AC
9940 (Access_Subprogram_Declaration): Verify that return type is valid.
9941 Fixes PR 8693.
9942
b6b3c138 9943 * sem_elab.adb:
0c644933
AC
9944 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
9945 generic.
9946 Fixes PR 12318.
9947
b6b3c138 9948 * sem_util.adb:
0c644933
AC
9949 (Corresponding_Discriminant): If the scope of the discriminant is a
9950 private type without discriminant, use its full view.
9951 Fixes PR 8247.
65f1ebd1 9952
fbf5a39b
AC
99532003-10-21 Arnaud Charlet <charlet@act-europe.fr>
9954
9955 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
9956 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
9957 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
9958 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
9959 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
9960 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
9961 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
9962 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
9963 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
9964 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
9965 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
9966 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
9967 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
9968 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
9969 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
9970 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
9971 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
9972 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
9973 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
9974 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
9975 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
9976 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
9977 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
9978 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
9979 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
9980 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
9981 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
9982 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
9983 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
9984 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
9985 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
9986 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
9987 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
9988 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
9989 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
9990 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
9991 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
9992 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
9993 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
9994 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
9995 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
9996 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
9997 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
9998 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
9999 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
10000 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
10001 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
10002 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
10003 vms_conv.ads, vms_conv.adb, vms_data.ads,
10004 vxaddr2line.adb: Files added. Merge with ACT tree.
10005
10006 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
10007 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
10008 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
10009 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
10010 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
10011 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
10012 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
10013 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
10014 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
10015 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
10016
10017 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
10018 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
10019 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
10020 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
10021 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
10022 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
10023 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
10024 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
10025 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
10026 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
10027 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
10028 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
10029 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
10030 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
10031 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
10032 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
10033 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
10034 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
10035 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
10036 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
10037 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
10038 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
10039 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
10040 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
10041 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
10042 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
10043 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
10044 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
10045 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
10046 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
10047 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
10048 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
10049 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
10050 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
10051 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
10052 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
10053 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
10054 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
10055 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
10056 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
10057 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
10058 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
10059 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
10060 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
10061 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
10062 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
10063 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
10064 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
10065 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
10066 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
10067 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
10068 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
10069 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
10070 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
10071 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
10072 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
10073 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
10074 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
10075 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
10076 checks.adb, checks.ads, cio.c, comperr.adb,
10077 comperr.ads, csets.adb, cstand.adb, cstreams.c,
10078 debug_a.adb, debug_a.ads, debug.adb, decl.c,
10079 einfo.adb, einfo.ads, errout.adb, errout.ads,
10080 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
10081 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
10082 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
10083 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
10084 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
10085 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
10086 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
10087 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
10088 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
10089 fe.h, fmap.adb, fmap.ads, fname.adb,
10090 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
10091 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
10092 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
10093 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
10094 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
10095 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
10096 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
10097 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
10098 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
10099 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
10100 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
10101 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
10102 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
10103 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
10104 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
10105 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
10106 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
10107 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
10108 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
10109 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
10110 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
10111 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
10112 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
10113 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
10114 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
10115 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
10116 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
10117 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
10118 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
10119 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
10120 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
10121 layout.adb, lib.adb, lib.ads, lib-list.adb,
10122 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
10123 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
10124 link.c, live.adb, make.adb, make.ads,
10125 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
10126 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
10127 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
10128 misc.c, mkdir.c, mlib.adb, mlib.ads,
10129 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
10130 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
10131 namet.adb, namet.ads, namet.h, nlists.ads,
10132 nlists.h, nmake.adt, opt.adb, opt.ads,
10133 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
10134 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
10135 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
10136 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
10137 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
10138 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
10139 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
10140 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
10141 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
10142 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
10143 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
10144 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
10145 prj-util.adb, prj-util.ads, raise.c, raise.h,
10146 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
10147 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
10148 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
10149 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
10150 scans.ads, scn.adb, scn.ads, s-crc32.adb,
10151 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
10152 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
10153 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
10154 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
10155 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
10156 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
10157 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
10158 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
10159 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
10160 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
10161 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
10162 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
10163 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
10164 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
10165 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
10166 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
10167 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
10168 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
10169 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
10170 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
10171 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
10172 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
10173 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
10174 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
10175 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
10176 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
10177 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
10178 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
10179 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
10180 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
10181 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
10182 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
10183 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
10184 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
10185 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
10186 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
10187 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
10188 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
10189 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
10190 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
10191 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
10192 stringt.adb, stringt.ads, stringt.h, style.ads,
10193 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
10194 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
10195 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
10196 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
10197 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
10198 table.adb, table.ads, targparm.adb, targparm.ads,
10199 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
10200 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
10201 ttypes.ads, types.ads, types.h, uintp.adb,
10202 uintp.ads, uintp.h, uname.adb, urealp.adb,
10203 urealp.ads, urealp.h, usage.adb, utils2.c,
10204 utils.c, validsw.adb, validsw.ads, widechar.adb,
10205 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
10206 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
10207 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
10208 gnatvsn.ads: Merge with ACT tree.
10209
10210 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
10211
97ae108d
MM
102122003-10-20 Mark Mitchell <mark@codesourcery.com>
10213
de696511
MM
10214 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
10215 (gnat_ug_vmx.info): Likewise.
10216 (gnat_ug_vxw.info): Likewise.
10217 (gnat_ug_wnt.info): Likewise.
10218 (gnat_rm.info): Likewise.
10219 (gnat-style.info): Likewise.
10220
97ae108d
MM
10221 * Make-lang.in (ada.install-info): Remove target.
10222 (info): New target.
10223 (install-info): Likewise.
10224 (gnat_ug_unx.info): Simplify rule.
10225 (gnat_ug_vmx.info): Likewise.
10226 (gnat_ug_vxw.info): Likewise.
10227 (gnat_ug_wnt.info): Likewise.
10228 (gnat_rm.info): Likewise.
10229 (gnat-style.info): Likewise.
10230
43aba518
NN
102312003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
10232
10233 * Make-lang.in: Replace uses of $(target_alias) with
10234 $(target_noncanonical).
10235 * ada/Makefile.in: Remove unused mention of $(target_alias).
10236
62b81e45
MM
102372003-10-06 Mark Mitchell <mark@codesourcery.com>
10238
10239 * Make-lang.in (ada.info): Replace with ...
10240 (info): ... this.
10241 (ada.dvi): Replace with ...
10242 (dvi): ... this.
10243
783be936
ZW
102442003-09-29 Zack Weinberg <zack@codesourcery.com>
10245
10246 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
10247 initialize dconstp5 and dconstmp5.
10248
177560b2
RH
102492003-09-28 Richard Henderson <rth@redhat.com>
10250
10251 * trans.c (tree_transform): Update call to expand_asm_operands.
10252
f31686a3
RH
102532003-09-21 Richard Henderson <rth@redhat.com>
10254
10255 * trans.c, utils.c: Revert.
10256
7e2af53a
RH
102572003-09-21 Richard Henderson <rth@redhat.com>
10258
10259 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
10260 change to const.
10261
5f1e32fa
MM
102622003-09-04 Michael Matz <matz@suse.de>
10263
10264 * misc.c: Include "target.h".
10265 * Make-lang.in (misc.o): Add dependency on target.h.
10266
61f71b34
DD
102672003-09-03 DJ Delorie <dj@redhat.com>
10268
10269 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
10270 hook.
10271
2ed26f6b
ZW
102722003-08-30 Zack Weinberg <zack@codesourcery.com>
10273
10274 * Makefile.in: Update substitutions to match changes to
10275 configure. Use include directives instead of @-insertions
10276 to read in host and target fragments. Add a rule to
10277 regenerate ada/Makefile.
10278
b2e608ca
NB
102792003-07-18 Neil Booth <neil@daikokuya.co.uk>
10280
10281 * lang-options.h: Remove.
10282 * lang.opt: Add help text.
10283
0cea056b
NS
102842003-07-07 Nathan Sidwell <nathan@codesourcery.com>
10285
10286 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
10287 calls.
10288
cb66e385
NB
102892003-07-06 Neil Booth <neil@daikokuya.co.uk>
10290
10291 * misc.c (gnat_handle_option): Don't handle filenames.
10292
8c90b13a
L
102932003-07-04 H.J. Lu <hongjiu.lu@intel.com>
10294
10295 * Make-lang.in: Replace PWD with PWD_COMMAND.
10296 * Makefile.adalib: Likewise.
10297 * Makefile.in: Likewise.
10298
9c286213
MK
102992003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
10300
10301 * misc.c (gnat_argv): Revert last change.
10302 (gnat_handle_option, gnat_init_options): Copy arguments.
10303
b9add449
NB
103042003-07-03 Neil Booth <neil@daikokuya.co.uk>
10305
9c286213 10306 * misc.c (gnat_argv): Make const.
b9add449 10307
836d77a9
NB
103082003-07-02 Neil Booth <neil@daikokuya.co.uk>
10309
10310 * misc.c (save_argc, save_argv): Keep non-static!
10311
b86f6cd9
NB
103122003-07-02 Neil Booth <neil@daikokuya.co.uk>
10313
10314 * misc.c (save_argc, save_argv): Make static.
10315 (gnat_init_options): New prototype.
10316 (gnat_init_options): Update.
10317
6344b1f1
MK
103182003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
10319
10320 * gnat_ug.texi: Remove unlikely characters from @vars.
10321 * gnat_ug_vms.texi: Regenerate.
10322
2e040219
NS
103232003-06-27 Nathan Sidwell <nathan@codesourcery.com>
10324
10325 * misc.c (record_code_position): Adjust emit_note call.
10326
9eee5e72
NB
103272003-06-26 Neil Booth <neil@daikokuya.co.uk>
10328
10329 * misc.c (gnat_handle_option): Don't check for missing arguments.
10330
1f9cc6db
NS
103312003-06-20 Nathan Sidwell <nathan@codesourcery.com>
10332
10333 * utils.c (end_subprog_body): Adjust expand_function_end call.
10334
23d6baa3
MK
103352003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
10336
10337 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
10338 Bind_Main_Program.
10339
be43ab4e
NB
103402003-06-15 Neil Booth <neil@daikokuya.co.uk>
10341
10342 * lang.opt: Declare Ada.
10343 * misc.c (gnat_init_options): Update.
10344
ee6b0296
NS
103452003-06-14 Nathan Sidwell <nathan@codesourcery.com>
10346
10347 * utils.c (begin_subprog_body): Adjust init_function_start call.
10348
d7b42618
NB
103492003-06-14 Neil Booth <neil@daikokuya.co.uk>
10350
10351 * Make-lang.in: Update to use options.c and options.h.
10352 * misc.c: Include options.h not aoptions.h.
10353 (gnat_handle_option): Abort on unrecognized switch.
10354 (gnat_init_options): Request Ada switches.
10355
57eb6503
NB
103562003-06-14 Neil Booth <neil@daikokuya.co.uk>
10357
10358 * lang.opt: Add -Wall.
10359 * misc.c (gnat_handle_option): Handle it.
10360
70fd6569
NB
103612003-06-12 Neil Booth <neil@daikokuya.co.uk>
10362
10363 * misc.c (gnat_handle_option): Fix warnings.
10364
8cdea5a1
MK
103652003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
10366
10367 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
10368
3c900cb5
NB
103692003-06-11 Neil Booth <neil@daikokuya.co.uk>
10370
10371 * Make-lang.in: Update to handle command-line options.
10372 * lang.opt: New file.
10373 * misc.c: Include aoptions.h.
10374 (cl_options_count, cl_options): Remove.
10375 (gnat_handle_option): New.
10376 (gnat_decode_option): Remove.
10377 (LANG_HOOKS_DECODE_OPTION): Remove.
10378 (LANG_HOOKS_HANDLE_OPTION): Override.
10379
e8face4c
NN
103802003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
10381
10382 * init.c, misc.c, trans.c, utils.c: Remove dead code.
10383
4665e56c
NN
103842003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
10385
10386 * Makefile.in: Replace "host_canonical" with "host" for autoconf
10387 substitution.
10388
a165c302
NB
103892003-06-08 Neil Booth <neil@daikokuya.co.uk>
10390
10391 * Make-lang.in: Update.
10392 * misc.c: Include opts.h. Define cl_options_count and cl_options.
10393
2772ef3e
NB
103942003-06-07 Neil Booth <neil@daikokuya.co.uk>
10395
10396 * misc.c (gnat_init_options): Update.
10397
d8277a55
MK
103982003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
10399
10400 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
10401 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
10402 __attribute__ ((__unused__)).
10403
602a82f3 104042003-06-05 Jan Hubicka <jh@suse.cz>
8f231b5d
JH
10405
10406 * Make-lang.in: Add support for stageprofile and stagefeedback
10407
3aa07c6d
MK
104082003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
10409
10410 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
10411 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
10412
f1093866
MK
104132003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
10414
10415 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
10416 Remove non-VMS directive.
10417 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
10418 alternatives.
10419 (Examples of gnatls Usage): Remove VMS alternative.
dee2df72
OH
10420
104212003-06-04 Olivier Hainque <hainque@act-europe.fr>
10422
2ed26f6b
ZW
10423 PR ada/9953:
10424 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
10425 and turn ZCX_By_Default back to False since the underlying support
10426 is not quite there yet.
dee2df72 10427
80eaf415
AJ
104282003-06-01 Andreas Jaeger <aj@suse.de>
10429
10430 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
10431 and ROUND_TYPE_SIZE_UNIT.
10432
36f9020c
GB
104332003-05-22 Geert Bosch <bosch@gnat.com>
10434
10435 * gnat_rm.texi : Remove reference to Ada Core Technologies.
10436
e7b5f0c9
NS
104372003-05-03 Nathan Sidwell <nathan@codesourcery.com>
10438
10439 * trans.c (tree_transform): Use location_t and input_location
10440 directly.
10441 (build_unit_elab): Likewise.
10442 * utils.c (create_label_decl): Likewise.
10443
d479d37f
NS
104442003-05-01 Nathan Sidwell <nathan@codesourcery.com>
10445
561712fe
NS
10446 * trans.c (tree_transform, build_unit_elab,
10447 set_lineno): Rename lineno to input_line.
d479d37f
NS
10448 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
10449 end_subprog_body): Likewise.
10450 * utils2.c (build_call_raise): Likewise.
10451
4f9335cd
LG
104522003-05-01 Laurent Guerby <guerby@acm.org>
10453
2ed26f6b
ZW
10454 PR ada/10546
10455 * 5iosinte.ads: Increase pthread_cond_t size to match recent
10456 LinuxThread and NPTL version, merge from ACT.
80eaf415 10457
0864034e
ZW
104582003-04-28 Zack Weinberg <zack@codesourcery.com>
10459
10460 * utils.c (convert): No need to clear TREE_CST_RTL.
10461
bcea76b6
GB
104622003-04-23 Geert Bosch <bosch@gnat.com>
10463
10464 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
10465 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
10466 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
10467 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
10468 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
10469 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
10470 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
10471 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
10472 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
10473 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
10474 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
10475 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
10476 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
10477 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
10478 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
10479 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
10480 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
10481 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
10482 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
10483 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
10484 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
10485 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
10486 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
10487 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
10488 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
10489 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
10490 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
10491 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
10492 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
10493 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
10494 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
10495 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
10496 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
10497 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
10498 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
10499 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
10500 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
10501 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
10502 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
10503 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
10504 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
10505 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
10506 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
10507 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
10508 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
10509 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
10510 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
10511 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
10512 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
10513 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
10514 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
10515 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
10516 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
10517 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
10518 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
10519 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
10520 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
10521 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
10522 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
10523 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
10524 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
10525 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
10526 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
10527 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
10528 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
10529 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
10530 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
10531 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
10532 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
10533 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
10534 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
10535 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
10536 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
10537 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
10538 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
10539 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
10540 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
10541 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
10542 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
10543 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
10544 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
10545 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
10546 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
10547 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
10548 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
10549 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
10550 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
10551 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
10552 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
10553 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
10554 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
10555 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
10556 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
10557 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
10558 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
10559 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
10560 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
10561 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
10562 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
10563 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
10564 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
10565 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
10566 ali.adb, ali.ads, alloc.ads, argv.c,
10567 atree.adb, atree.ads, atree.h, aux-io.c,
10568 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
10569 binde.adb, binde.ads, binderr.adb, binderr.ads,
10570 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
10571 butil.adb, butil.ads, cal.c, calendar.ads,
10572 casing.adb, casing.ads, ceinfo.adb, checks.adb,
10573 checks.ads, cio.c, comperr.adb, comperr.ads,
10574 config-lang.in, csets.adb, csets.ads, csinfo.adb,
10575 cstand.adb, cstand.ads, cuintp.c, debug.adb,
10576 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
10577 dec-io.ads, dec.ads, deftarg.c, directio.ads,
10578 einfo.adb, einfo.ads, elists.adb, elists.ads,
10579 elists.h, errno.c, errout.adb, errout.ads,
10580 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
10581 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
10582 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
10583 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
10584 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
10585 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
10586 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
10587 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
10588 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
10589 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
10590 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
10591 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
10592 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
10593 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
10594 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
10595 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
10596 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
10597 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
10598 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
10599 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
10600 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
10601 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
10602 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
10603 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
10604 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
10605 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
10606 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
10607 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
10608 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
10609 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
10610 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
10611 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
10612 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
10613 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
10614 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
10615 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
10616 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
10617 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
10618 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
10619 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
10620 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
10621 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
10622 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
10623 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
10624 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
10625 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
10626 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
10627 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
10628 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
10629 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
10630 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
10631 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
10632 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
10633 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
10634 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
10635 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
10636 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
10637 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
10638 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
10639 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
10640 lib.adb, lib.ads, live.adb, live.ads,
10641 machcode.ads, make.adb, make.ads, makeusg.adb,
10642 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
10643 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
10644 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
10645 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
10646 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
10647 mlib.ads, namet.adb, namet.ads, nlists.adb,
10648 nlists.ads, opt.adb, opt.ads, osint-b.adb,
10649 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
10650 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
10651 osint.ads, output.adb, output.ads, par-ch10.adb,
10652 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
10653 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
10654 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
10655 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
10656 par-tchk.adb, par-util.adb, par.adb, par.ads,
10657 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
10658 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
10659 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
10660 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
10661 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
10662 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
10663 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
10664 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
10665 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
10666 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
10667 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
10668 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
10669 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
10670 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
10671 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
10672 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
10673 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
10674 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
10675 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
10676 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
10677 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
10678 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
10679 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
10680 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
10681 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
10682 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
10683 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
10684 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
10685 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
10686 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
10687 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
10688 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
10689 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
10690 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
10691 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
10692 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
10693 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
10694 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
10695 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
10696 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
10697 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
10698 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
10699 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
10700 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
10701 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
10702 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
10703 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
10704 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
10705 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
10706 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
10707 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
10708 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
10709 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
10710 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
10711 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
10712 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
10713 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
10714 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
10715 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
10716 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
10717 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
10718 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
10719 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
10720 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
10721 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
10722 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
10723 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
10724 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
10725 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
10726 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
10727 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
10728 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
10729 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
10730 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
10731 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
10732 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
10733 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
10734 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
10735 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
10736 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
10737 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
10738 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
10739 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
10740 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
10741 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
10742 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
10743 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
10744 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
10745 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
10746 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
10747 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
10748 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
10749 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
10750 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
10751 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
10752 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
10753 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
10754 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
10755 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
10756 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
10757 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
10758 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
10759 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
10760 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
10761 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
10762 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
10763 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
10764 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
10765 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
10766 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
10767 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
10768 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
10769 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
10770 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
10771 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
10772 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
10773 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
10774 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
10775 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
10776 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
10777 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
10778 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
10779 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
10780 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
10781 snames.ads, sprint.adb, sprint.ads, stand.adb,
10782 stand.ads, stringt.adb, stringt.ads, style.adb,
10783 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
10784 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
10785 switch-m.ads, switch.adb, switch.ads, system.ads,
10786 table.adb, table.ads, targparm.adb, targparm.ads,
10787 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
10788 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
10789 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
10790 ttypef.ads, ttypes.ads, types.adb, types.ads,
10791 uintp.adb, uintp.ads, uname.adb, uname.ads,
10792 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
10793 usage.adb, usage.ads, validsw.adb, validsw.ads,
10794 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
10795 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
10796 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
10797 formatting and other trivial changes from ACT.
10798
dcf92453
ZW
107992003-04-12 Zack Weinberg <zack@codesourcery.com>
10800
10801 * gigi.h, utils2.c (build_constructor):
10802 Rename gnat_build_constructor. Use build_constructor.
10803 * decl.c (gnat_to_gnu_entity)
10804 * trans.c (tree_transform, pos_to_constructor, extract_values)
10805 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
10806 (unchecked_convert)
10807 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
10808 (fill_vms_descriptor):
10809 Update to match.
10810
d78e771d
ZW
108112003-04-06 Zack Weinberg <zack@codesourcery.com>
10812
10813 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
10814 * misc.c (gnat_tree_size): New function.
10815 (LANG_HOOKS_TREE_SIZE): Override.
10816
78d55cc8
JM
108172003-04-03 Jason Merrill <jason@redhat.com>
10818
10819 * misc.c (gnat_adjust_rli): #if 0.
10820
b174e2d4
GB
108212003-03-31 Geert Bosch <bosch@gnat.com>
10822
10823 PR ada/10020
10824 * link.c : Fix misspelled "const" keyword
10825
f29a2bd1
MM
108262003-03-23 Mark Mitchell <mark@codesourcery.com>
10827
10828 PR c++/7086
10829 * utils2.c: Adjust calls to put_var_into_stack.
10830
08e247b1
NN
108312003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
10832
10833 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
10834
4bfec483
NB
108352003-03-08 Neil Booth <neil@daikokuya.co.uk>
10836
10837 * misc.c (gnat_init): Update for new prototype.
10838
3d713bb8
GB
108392003-03-05 Olivier Hainque <hainque@gnat.com>
10840
10841 ada/9961
78d55cc8
JM
10842 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
10843 warning, and fix return type for the IN_RTS && !SJLJ case.
3d713bb8 10844
8b89fcdf
TT
108452003-03-04 Tom Tromey <tromey@redhat.com>
10846
10847 * Make-lang.in (ada.tags): New target.
10848
3d713bb8 108492003-03-04 Olivier Hainque <hainque@act-europe.fr>
23cae84f
OH
10850
10851 ada/9911
10852 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
10853 wrapper, which name remains constant whatever underlying GCC
10854 scheme.
10855
10856 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
10857 the stable interface needed for a-except.
10858
f4ae98be
AJ
108592003-03-02 Andreas Jaeger <aj@suse.de>
10860
10861 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
10862 gnat_ug_wnt.texi: Regenerate.
10863
5348742b
LG
108642003-03-02 Laurent Guerby <guerby@acm.org>
10865
f4ae98be 10866 * Makefile.in (install-gnatlib): Match previous change there
5348742b 10867 so it works.
f4ae98be 10868
8c108db2
AS
108692003-02-28 Andreas Schwab <schwab@suse.de>
10870
10871 * Make-lang.in (install-gnatlib): Change to ada directory before
10872 running make instead of using ada/Makefile directly.
10873
601d71bc
BE
108742003-02-18 Ben Elliston <bje@redhat.com>
10875
10876 Part of fix for PR ada/9406
10877 * gnat_ug.texi (Binder output file): Grammar fix.
10878
bf7c02dd
BE
108792003-02-18 Ben Elliston <bje@redhat.com>
10880
10881 PR other/7350
10882 * 5qtaprop.adb (Sleep): Fix typo in comment.
10883
b3a8389d
JM
108842003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
10885
10886 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
10887 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
10888 gnat_ug_wnt.texi: Regenerate.
10889
5da14cb5
CC
108902003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
10891
10892 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
10893 be created if necessary.
10894 (ada.install-common): Let $(DESTDIR)$(bindir) be created
10895 if necessary. Remove erroneous and redundant gnatchop
10896 installation commands. Test for gnatdll before attempting
10897 to install it.
10898 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
10899 and gnatdll from all plausible locations.
10900
271bd540
RS
109012003-02-01 Richard Sandiford <rsandifo@redhat.com>
10902
10903 * utils2.c (build_unary_op): Don't check flag_volatile.
10904 * gnat_ug.texi: Remove -fvolatile from example.
10905 * gnat_ug_vxw.texi: Likewise.
10906
c1cc6a51
LG
109072003-01-29 Laurent Guerby <guerby@acm.org>
10908
d78e771d
ZW
10909 PR ada/8344
10910 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
10911 * Makefile.in: match previous change.
10912 * Make-lang.in: match previous change.
c1cc6a51 10913
c4039eb0
JS
109142003-01-29 Joel Sherrill <joel@OARcorp.com>
10915
10916 * 5rosinte.ads: Add SIGXCPU.
10917 * 5rtpopsp.adb: New file.
10918 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
10919 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
10920 specific file 5rtpopsp.adb.
10921 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
10922 is likely needed for all newlib targets.
10923 * init.c: Add RTEMS specific version of __gnat_initialize().
10924
00d29f7d
RO
109252003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10926
10927 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
10928
437026ef
RO
109292003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10930
10931 * init.c (__gnat_error_handler): Make msg const.
10932
10933 * gmem.c (convert_addresses): Move declaration ...
10934 * adaint.h: ... here.
10935 * adaint.c (convert_addresses): Adapt addrs type to match
10936 prototype.
10937
10938 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
10939
e12825cd
AS
109402003-01-24 Andreas Schwab <schwab@suse.de>
10941
10942 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
10943 size_t to avoid warning.
10944
a8729406
ZW
109452003-01-21 Zack Weinberg <zack@codesourcery.com>
10946
b09b91b9 10947 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
a8729406 10948
17211ab5
GK
109492003-01-09 Geoffrey Keating <geoffk@apple.com>
10950
10951 * gnat_rm.texi: Remove RCS version number.
10952
10953 * ada-tree.h (union lang_tree_node): Add chain_next option.
10954
1d27195c
CC
109552003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
10956
10957 * Make-lang.in (ada.install-info, ada.install-common,
10958 ada.uninstall): Prepend $(DESTDIR) to the destination
10959 directory in all (un)installation commands.
10960 * Makefile.in (install-gnatlib, install-rts): Ditto.
10961
bdefb2ab
JM
109622002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
10963
10964 * gnat_rm.texi, gnat_ug.texi: Use @copying.
10965 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
10966 gnat_ug_wnt.texi: Regenerate.
10967
46d40353
JM
109682002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
10969
10970 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
10971 only.
10972 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
10973 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
10974 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
10975 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
10976 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
10977 $(srcdir)/doc/include/gcc-common.texi.
10978
d2f97d3e
GB
109792002-12-15 Geert Bosch <bosch@gnat.com>
10980
10981 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
10982
93a81b02
GB
109832002-12-14 Geert Bosch <bosch@gnat.com>
10984
4977bab6
ZW
10985 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
10986 case of a body created for a Renaming_As_Body, on which
10987 conformance checks are not performed. Fixes PR ada/5690.
10988
109892002-11-30 Zack Weinberg <zack@codesourcery.com>
10990
10991 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
10992 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
10993 not already included.
10994 * Make-lang.in: Update dependencies.
93a81b02 10995
dfc15546
NN
109962002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
10997 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
4977bab6 10998 solution to buffer overflow bug on GNU/Linux.
dfc15546 10999
8b54424d
NN
110002002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
11001 Closes PR ada/5856 and PR ada/6919 !
11002 * bindgen.adb: Remove all references to Public_Version.
11003 * comperr.adb: Remove all references to Public_Version and
11004 GNATPRO_Version; correct bug reporting instructions.
11005 * comperr.ads: Change to match bug box.
11006 * gnatvsn.ads: Remove all references to Public version and
11007 GNATPRO version.
11008
cc41268d 110092002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
1a083c0e
NN
11010 PR ada/6919
11011 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
11012 GNU/Linux.
11013
cc41268d
NN
11014 PR ada/6558
11015 * config-lang.in: Remove diff_excludes.
11016
1c7b0712
GS
110172002-11-05 Graham Stott <graham.stott@btinternet.com>
11018 PR ada/8358
11019 * trans.c (gnu_pending_elaboration_lists): New GC root.
4977bab6 11020 (build_unit_elab): Use..
1c7b0712 11021
1c4048ca
GB
110222002-10-30 Geert Bosch <bosch@gnat.com>
11023 PR ada/6558
11024 * misc.c : Include optabs.h
11025
11026 * Make-lang.in (misc.o): Add dependency on optabs.h
11027
f0d96f9c 110282002-10-29 Geert Bosch <bosch@gnat.com>
4977bab6 11029 PR ada/6558
f0d96f9c
GB
11030 * Make-lang.in (gnatbind): Depend on CONFIG_H
11031
a7512dec 110322002-10-29 Geert bosch <bosch@gnat.com>
4977bab6
ZW
11033 PR ada/6558
11034 * misc.c: Unrevert misc.c (1.13)
a7512dec 11035
c6362f4f
NN
110362002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
11037
11038 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
11039 maintainership comments.
11040
110412002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
91ed4b19 11042 PR ada/5904
4977bab6
ZW
11043 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
11044 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
11045 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
11046 7staprop.adb: Correct statements in comments about
91ed4b19
NN
11047 maintainership of GNAT.
11048
1f02b6af 11049 PR ada/5904
4977bab6
ZW
11050 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
11051 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
11052 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
11053 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
11054 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
11055 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
11056 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
1f02b6af
NN
11057 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
11058 comments about maintainership of GNAT.
11059
71ff80dc 11060 PR ada/6919 (forward port of patch for PR ada/5904)
4977bab6
ZW
11061 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
11062 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
11063 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
11064 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
11065 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
11066 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
11067 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
11068 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
11069 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
11070 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
11071 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
11072 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
11073 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
11074 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
11075 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
11076 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
11077 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
11078 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
11079 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
11080 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
11081 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
11082 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
11083 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
11084 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
11085 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
11086 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
11087 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
11088 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
11089 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
11090 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
11091 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
11092 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
11093 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
11094 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
11095 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
11096 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
11097 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
11098 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
11099 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
11100 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
11101 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
11102 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
11103 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
11104 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
11105 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
11106 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
11107 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
11108 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
11109 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
11110 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
11111 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
11112 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
11113 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
11114 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
11115 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
11116 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
11117 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
11118 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
11119 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
11120 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
11121 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
11122 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
11123 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
11124 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
11125 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
11126 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
11127 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
11128 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
11129 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
11130 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
11131 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
11132 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
11133 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
11134 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
11135 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
11136 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
11137 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
11138 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
11139 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
11140 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
11141 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
11142 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
11143 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
11144 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
11145 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
11146 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
11147 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
11148 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
11149 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
11150 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
11151 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
11152 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
11153 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
11154 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
11155 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
11156 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
11157 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
11158 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
11159 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
11160 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
11161 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
11162 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
11163 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
11164 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
11165 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
11166 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
11167 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
11168 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
11169 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
11170 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
11171 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
11172 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
11173 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
11174 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
11175 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
11176 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
11177 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
11178 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
11179 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
11180 par-endh.adb par-labl.adb par-load.adb par-prag.adb
11181 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
11182 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
11183 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
11184 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
11185 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
11186 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
11187 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
11188 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
11189 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
11190 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
11191 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
11192 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
11193 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
11194 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
11195 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
11196 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
11197 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
11198 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
11199 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
11200 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
11201 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
11202 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
11203 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
11204 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
11205 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
11206 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
11207 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
11208 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
11209 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
11210 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
11211 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
11212 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
11213 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
11214 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
11215 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
11216 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
11217 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
11218 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
11219 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
11220 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
11221 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
11222 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
11223 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
11224 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
11225 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
11226 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
11227 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
11228 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
11229 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
11230 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
11231 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
11232 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
11233 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
11234 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
11235 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
11236 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
11237 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
11238 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
11239 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
11240 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
11241 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
11242 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
11243 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
11244 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
11245 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
11246 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
11247 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
11248 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
11249 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
11250 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
11251 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
11252 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
11253 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
11254 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
11255 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
11256 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
11257 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
11258 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
11259 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
11260 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
11261 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
11262 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
11263 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
11264 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
11265 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
11266 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
11267 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
11268 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
11269 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
11270 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
11271 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
11272 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
11273 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
11274 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
11275 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
11276 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
11277 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
11278 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
11279 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
11280 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
11281 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
11282 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
11283 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
11284 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
11285 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
11286 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
11287 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
11288 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
11289 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
11290 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
11291 stringt.ads stringt.h style.adb style.ads stylesw.adb
11292 stylesw.ads switch.adb switch.ads sysdep.c system.ads
11293 table.adb table.ads targparm.adb targparm.ads targtyps.c
11294 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
11295 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
11296 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
11297 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
11298 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
11299 usage.ads utils.c utils2.c validsw.adb validsw.ads
11300 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
11301 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
71ff80dc
NN
11302 xtreeprs.adb: Correct statements in comments about maintainership
11303 of GNAT.
11304
b4f94ac1
ZW
113052002-09-23 Zack Weinberg <zack@codesourcery.com>
11306
11307 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
11308 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
11309 * gnatvsn.ads: Gnat_Version_String is now a function.
11310 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
11311 copy the C version_string into a String and return it.
11312 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
11313 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
11314 Remove pragma Ident (Gnat_Version_String). If this was the
11315 sole use of package Gnatvsn, remove the with statement too.
11316 * gnat1drv.adb: Tweak -gnatv output.
11317
eaff3bf8
RH
113182002-09-17 Richard Henderson <rth@redhat.com>
11319
11320 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
11321 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
11322 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
11323 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
11324 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
11325 and real_2expN instead of a loop.
11326 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
11327 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
11328
d241f75b 113292002-08-25 Andre Leis <a.leis@gmx.net>
f4ae98be 11330 David Billinghurst (David.Billinghurst@riotinto.com>
d241f75b 11331
f4ae98be 11332 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
d241f75b 11333
4320085a
RO
113342002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11335
11336 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
11337 Remove $(CONFIG_H) dependency.
11338
22aa533e
NS
113392002-08-08 Nathan Sidwell <nathan@codesourcery.com>
11340
11341 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
11342
1dcd444b
KG
113432002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11344
11345 * adadecode.c (ada_demangle): Use xstrdup in lieu of
11346 xmalloc/strcpy.
11347 * misc.c (gnat_decode_option): Likewise.
11348
7bc7d27b
FW
113492002-07-15 Florian Weimer <fw@deneb.enyo.de>
11350
11351 * make.adb (Add_Switch): Make Generic_Position a procedure. The
11352 function approach did not work well because of a side effect (the
11353 function call could reallocate the table which was being indexed
11354 using its result). Fixes ada/4851. [RESURRECTED]
11355
6a2dd09a
RS
113562002-07-01 Roger Sayle <roger@eyesopen.com>
11357
11358 * ada/utils.c (builtin_function): Accept an additional parameter.
11359
c168bbd7
AJ
113602002-06-28 Andreas Jaeger <aj@suse.de>
11361
11362 PR ada/7144
11363 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
11364 <adi@thur.de>.
11365
b41e09a7
KG
113662002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11367
11368 * Makefile.in (SHELL): Set to @SHELL@.
11369
62c71f4b
KG
113702002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11371
11372 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
11373 array size calculation.
11374
94213cff
AJ
113752002-06-04 Andreas Jaeger <aj@suse.de>
11376
11377 * Make-lang.in (gnatbind): Readd rule that has been lost in last
11378 patch.
11379
e2500fed
GK
113802002-06-03 Geoffrey Keating <geoffk@redhat.com>
11381
11382 Merge from pch-branch:
11383
11384 * config-lang.in (gtfiles): Add ada-tree.h.
11385 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
11386 (SET_TYPE_MODULUS): New.
11387 (SET_TYPE_INDEX): New.
11388 (SET_TYPE_DIGITS_VALUE): New.
11389 (SET_TYPE_RM_SIZE): New.
11390 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
11391 (SET_TYPE_ADA_SIZE): New.
11392 (SET_TYPE_ACTUAL_BOUNDS): New.
11393 (SET_DECL_CONST_CORRESPONDING_VAR): New.
11394 (SET_DECL_ORIGINAL_FIELD): New.
11395 (TREE_LOOP_ID): Correct typo.
11396 * decl.c: Use new macros.
11397 * utils.c: Include debug.h, use new macros.
94213cff 11398 * utils2.c: Use new macros.
e2500fed
GK
11399
11400 * ada-tree.h: Update all macros for new tree description.
11401 (struct tree_loop_id): New.
11402 (union lang_tree_node): New.
11403 (struct lang_decl): New.
11404 (struct lang_type): New.
11405 * misc.c (gnat_mark_tree): Delete.
11406 (LANG_HOOKS_MARK_TREE): Delete.
11407 * trans.c (tree_transform): No longer any need to cast
11408 for TREE_LOOP_ID.
11409
11410 * utils.c (struct language_function): New dummy structure.
11411
11412 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
11413 (misc.o): Likewise.
11414 (utils.o): Likewise; also gtype-ada.h.
11415 * Make-lang.in (gnat1): Add dependency on s-gtype.
11416 (gnatbind): Add dependency on $(CONFIG_H).
11417 * utils.c: Correct last #include.
11418 (stuct e_stack): Remove unnecessary 'static'.
11419 (mark_e_stack): Remove unused prototype.
11420
11421 * scn-nlit.adb: Remove whitespace after version number to
11422 keep lines under 80 chars.
11423 * snames.adb: Likewise.
11424 * treepr.ads: Likewise.
94213cff 11425
e2500fed
GK
11426 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
11427 (misc.o): Likewise.
11428 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
11429 * config-lang.in (gtfiles): New.
11430 * decl.c: Use gengtype for roots.
11431 * gigi.h: Use gengtype for roots.
11432 * trans.c: Use gengtype for roots.
11433 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
11434
27e511e0
GDR
114352002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
11436
11437 * misc.c (gnat_init): Adjust setting of internal_error_function.
11438
113dc143
JM
114392002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
11440
11441 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
11442 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
11443 gnat_ug_wnt.texi: Regenerate.
11444
5321fb3e
FW
114452002-05-31 Florian Weimer <fw@deneb.enyo.de>
11446
15e6136e
FW
11447 * 5ntaprop.adb (with System.OS_Primitives): Remove.
11448
019310ac
FW
11449 * cstreams.c (max_path_len): Move from here ...
11450 * adaint.c (__gnat_max_path_len): ... to here.
11451 * adaint.c (__gnat_max_path_len): Declare.
11452 * g-dirope.adb (Max_Path): Adjust.
11453 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
94213cff 11454 * i-cstrea.ads (max_path_len): Adjust.
019310ac
FW
11455 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
11456 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
11457
5321fb3e
FW
11458 * Makefile.in, Make-lang.in: Documentation is now built in
11459 Make-lang.in. Store Info and generated Texinfo files in the
11460 source directory.
11461 * gnat_ug.texi: Remove CVS keywords, correct version number.
11462 Set file name correctly.
11463
11464 * gnat_ug_*.texi: Add.
11465 * .cvsignore: Ignore generated Texinfo files.
11466
b1c12c4b
ZW
114672002-05-30 Zack Weinberg <zack@codesourcery.com>
11468
11469 * ada.h: Add MI guard macro.
11470 (SUBTYPE): Define constants with an anonymous enum, not static
11471 const variables.
11472 (IN): Cast constants to appropriate type before use.
11473
ead33da9
JM
114742002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
11475
11476 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
11477 (experimental)".
11478
7d600178
RO
114792002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11480
11481 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
11482 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
11483 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
11484 (ALL_ADA_CFLAGS): Likewise.
11485 (ADA_INCLUDES): Likewise.
11486 Adapt for new working dir.
11487 (GNATBIND): Use Makefile.in version.
11488 (.SUFFIXES): Copy from Makefile.in.
11489 (ada-warn): Define.
11490 (.adb.o, .ads.o): Copy from Makefile.in.
11491 Added $(OUTPUT_OPTION).
11492 (GNAT1_C_OBJS): Moved from Makefile.in.
11493 Prefix with ada subdir.
11494 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
11495 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
11496 Adapt for new working dir.
11497 (EXTRA_GNATBIND_OBJS): Likewise.
11498 (ADA_BACKEND): Moved from Makefile.in.
11499 Renamed to avoid conflict with global BACKEND.
11500 Use that one.
11501 (TARGET_ADA_SRCS): Moved from Makefile.in.
11502 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
11503 Use ADA_BACKEND.
11504 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
11505 (ada_extra_files): Moved from Makefile.in.
11506 Prefix with ada subdir.
11507 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
11508 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
11509 (ada/nmake.ads): Likewise.
11510 (update-sources): Moved from Makefile.in.
11511 Prefix with ada subdir.
11512 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
11513 (ADA_TREE_H): Likewise.
11514 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
11515 (ada/memtrack.o): Likewise.
11516 (ada/adadecode.o): Likewise.
11517 Update dependencies.
11518 (ada/adaint.o): New.
11519 (ada/argv.o): Moved from Makefile.in.
11520 Prefix with ada subdir.
94213cff 11521 Update dependencies.
7d600178
RO
11522 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
11523 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
11524 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
11525 Prefix with ada subdir.
11526 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
11527 (GNAT DEPENDENCIES): Regenerate.
11528 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
11529 toplevel Makefile.in.
11530 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
11531 (TARGET_ADA_SRCS): Removed.
11532 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
11533 (GNATBIND_OBJS): Likewise.
11534 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
11535 (BACKEND): Removed.
11536 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
11537 (TREE_H): Likewise.
11538 (ada_extra_files): Likewise.
11539 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
11540 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
11541 (update-sources): Likewise.
11542 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
11543 (ADA_TREE_H): Likewise.
11544 (adadecoce.o): Likewise.
11545 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
11546 (GNAT DEPENDENCIES): Likewise.
11547
1e6347d8
RO
115482002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11549
11550 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
11551 * Makefile.in: Likewise.
11552
db80834f
RO
115532002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11554
11555 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
11556 Restore $(CONFIG_H) and prefix.o dependencies.
11557 (ada.stage[1-4]): Depend on stage?-start.
11558
11559 * Makefile.in (b_gnatb.c): Depend on interfac.o.
11560
ac293f98
JW
115612002-05-02 Jim Wilson <wilson@redhat.com>
11562
11563 * utils.c (finish_record_type): Change record_size to record_type.
11564
b303008e
JDA
115652001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
11566
11567 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
11568 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
11569 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
94213cff 11570
ff45c01e
NB
115712002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
11572
11573 * misc.c (gnat_parse_file): Update.
11574
349ae713
NB
115752002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
11576
11577 * misc.c (gnat_init): Don't set lang_attribute_common.
11578
ace133aa
JM
115792002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
11580
11581 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
11582
5c558dd9
FW
115832002-04-21 Florian Weimer <fw@deneb.enyo.de>
11584
b4f94ac1 11585 * gnat_ug.texi: New file.
88e1739c 11586
5c558dd9
FW
11587 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
11588 instead of gfdl.texi
11589
11590 * xgnatug.adb, ug_words: New files.
11591
11592 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
b4f94ac1 11593 gnat_rm and gnat-style manuals.
5c558dd9 11594
7a228918
NB
115952002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
11596
11597 * gigi.h (incomplete_type_error): Remove.
11598 * utils.c (incomplete_type_error): Remove.
11599
b2123dc0
MM
116002002-04-16 Mark Mitchell <mark@codesourcery.com>
11601
11602 * trans.c (tree_transform): Add has_scope argument to
11603 expand_start_stmt_expr.
11604
78ef5b89
NB
116052002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
11606
11607 * gigi.h (truthvalue_conversion): Rename.
11608 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
11609 * trans.c (tree_transform): Update.
11610 * utils2.c (truthvalue_conversion): Rename, update.
11611 (build_binary_op, build_unary_op): Update.
11612
a71742a8
LG
116132002-04-04 Laurent Guerby <guerby@acm.org>
11614
11615 * make.adb: Implement -margs, remove restriction about file name placement.
11616 * makeusg.adb: Documentation update.
11617 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
11618 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
11619
82a4b025
NB
116202002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
11621
11622 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
11623 (builtin_function): Similarly.
11624
dffd7eb6
NB
116252002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
11626
11627 * decl.c (gnat_to_gnu_entity): Update.
11628 * gigi.h (mark_addressable): Rename.
11629 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
11630 * trans.c (tree_transform): Update.
11631 * utils.c (create_var_decl): Update.
11632 * util2.c (build_binary_op, build_unary_op,
11633 fill_vms_descriptor): Update.
11634 (mark_addressable): Rename, update.
11635
ceef8ce4
NB
116362002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
11637
11638 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
11639 Rename.
11640 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
11641 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
11642 * trans.c (tree_transform, convert_with_check): Update.
11643 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
11644 Rename.
11645
48a7a235
NB
116462002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
11647
11648 * gigi.h (finish_incomplete_decl): Rename.
11649 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
11650 * utils.c (gnat_init_decl_processing): Don't set hook.
11651 (finish_incomplete_decl): Rename.
11652
1d5af871
AS
116532002-03-29 Andreas Schwab <schwab@suse.de>
11654
11655 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
11656 directory.
11657
8cbb664e
MG
116582001-03-28 Robert Dewar <dewar@gnat.com>
11659
11660 * checks.ads:
11661 (Remove_Checks): New procedure
11662
11663 * checks.adb:
11664 (Remove_Checks): New procedure
11665
11666 * exp_util.adb:
11667 Use new Duplicate_Subexpr functions
11668 (Duplicate_Subexpr_No_Checks): New procedure
11669 (Duplicate_Subexpr_No_Checks_Orig): New procedure
11670 (Duplicate_Subexpr): Restore original form (checks duplicated)
11671 (Duplicate_Subexpr): Call Remove_Checks
11672
82a4b025 11673 * exp_util.ads:
8cbb664e
MG
11674 (Duplicate_Subexpr_No_Checks): New procedure
11675 (Duplicate_Subexpr_No_Checks_Orig): New procedure
11676 Add 2002 to copyright notice
11677
11678 * sem_util.adb: Use new Duplicate_Subexpr functions
11679
82a4b025 11680 * sem_eval.adb:
8cbb664e
MG
11681 (Eval_Indexed_Component): This is the place to call
11682 Constant_Array_Ref and to replace the value. We simply merge
11683 the code of this function in here, since it is now no longer
11684 used elsewhere. This fixes the problem of the back end not
11685 realizing we were clever enough to see that this was
11686 constant.
11687 (Expr_Val): Remove call to Constant_Array_Ref
11688 (Expr_Rep_Val): Remove call to Constant_Array_Ref
11689 Minor reformatting
11690 (Constant_Array_Ref): Deal with string literals (patch
11691 suggested by Zack Weinberg on the gcc list)
11692
116932001-03-28 Ed Schonberg <schonber@gnat.com>
11694
82a4b025 11695 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
8cbb664e
MG
11696 Duplicate_Subexpr_Move_Checks.
11697
82a4b025 11698 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
8cbb664e
MG
11699 Duplicate_Subexpr_Move_Checks.
11700
82a4b025
NB
11701 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
11702 value of array exists before retrieving it (it may a private
8cbb664e
MG
11703 protected component in a function).
11704
792c4e74
GB
117052002-03-28 Geert Bosch <bosch@gnat.com>
11706
11707 * prj-pp.adb : New file.
11708
11709 * prj-pp.ads : New file.
11710
915e8bad
AJ
117112002-03-28 Andreas Jaeger <aj@suse.de>
11712
11713 * Makefile.in (stamp-sdefault): Fix path for Makefile.
11714
0840811c
NB
117152002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
11716
11717 * misc.c (gnat_expand_expr): Move prototype.
11718
7ffb4fd2
NB
117192002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
11720
11721 * misc.c (insert_default_attributes): Remove.
11722
c9d892a8
NB
117232002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
11724
11725 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
11726 (gnat_init): Don't set hook.
11727 (gnat_expand_expr): Fix prototype.
11728
31c816cf
NB
117292002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
11730
11731 * misc.c (ggc_p): Remove.
11732
ef83161c
GB
117332002-03-27 Geert Bosch <bosch@gnat.com>
11734
11735 * prj-makr.ads, prj-makr.adb : New files.
11736
4f0ade92
NB
117372002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
11738
11739 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
11740 (lang_mark_tree): Make static, rename.
11741
c88770e9
NB
117422002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
11743
11744 * misc.c (maybe_build_cleanup): Remove.
11745
05671968
NB
117462002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
11747
11748 * gigi.h (yyparse): Remove.
11749
ad42149c
FW
117502002-03-23 Florian Weimer <fw@deneb.enyo.de>
11751
82a4b025 11752 * gnat_rm.texi: Sync with ACT version.
b4f94ac1 11753 (From Ben Brosgol <brosgol@gnat.com>)
ad42149c 11754
7afff7cf
NB
117552002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
11756
11757 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
11758 (gnat_init): Remove old hook.
11759
52dabb6c
NB
117602002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
11761
11762 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
11763 (yyparse): Rename gnat_parse_file.
11764
6cbcc541
GK
117652002-03-14 Geoffrey Keating <geoffk@redhat.com>
11766
11767 Delete all lines containing "$Revision:".
11768 * xeinfo.adb: Don't look for revision numbers.
11769 * xnmake.adb: Likewise.
11770 * xsinfo.adb: Likewise.
11771 * xsnames.adb: Likewise.
11772 * xtreeprs.adb: Likewise.
11773
2f9834e8
KG
117742002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11775
11776 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
11777 gnat_tree_code_name): Delete.
11778 (tree_code_type, tree_code_length, tree_code_name): Define.
11779 (gnat_init): Don't try to copy into the various tree_code
11780 arrays.
11781
63adb4ff
RH
117822002-03-11 Richard Henderson <rth@redhat.com>
11783
11784 * Makefile.in (.NOTPARALLEL): Add fake tag.
11785
43ff4547
GB
117862002-03-07 Geert Bosch <bosch@gnat.com>
11787
82a4b025
NB
11788 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
11789 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
11790 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
43ff4547
GB
11791 switch-m.adb, switch-m.ads : New files.
11792
07fc65c4
GB
117932002-03-07 Geert Bosch <bosch@gnat.com>
11794
11795 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
11796 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
11797 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
11798 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
11799 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
11800 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
11801 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
11802 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
11803 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
11804 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
11805 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
11806 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
11807 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
11808 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
11809 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
11810 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
11811 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
11812 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
11813 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
11814 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
11815 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
11816 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
11817 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
11818 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
11819 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
11820 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
11821 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
11822 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
11823 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
11824 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
11825 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
11826 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
11827 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
11828 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
11829 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
11830 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
11831 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
11832 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
11833 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
11834 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
11835 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
11836 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
11837 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
11838 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
11839 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
11840 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
11841 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
11842 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
11843 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
11844 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
11845 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
11846 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
11847 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
11848 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
11849 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
11850 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
11851 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
11852 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
11853 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
11854 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
11855 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
11856 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
11857 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
11858 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
11859 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
11860 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
11861 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
11862 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
11863 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
11864 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
11865 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
11866 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
11867 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
11868 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
11869 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
11870 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
11871 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
11872 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
11873 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
11874 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
11875 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
11876 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
11877 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
11878 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
11879 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
11880 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
11881 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
11882 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
11883 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
11884 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
11885 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
11886 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
11887 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
11888 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
11889 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
11890 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
11891 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
11892
11893 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
11894 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
11895 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
11896 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
11897
11898 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
11899 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
11900
11901 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
11902 to mdll-fil.ad[bs] and mdll-util.ad[bs]
11903
11904 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
11905 from mdllfile.ad[bs] and mdlltool.ad[bs]
11906
ca7558fc
KG
119072002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11908
11909 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
11910 lieu of explicit sizeof/sizeof.
11911
63e1b1c4
NB
119122002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
11913
11914 * misc.c (copy_lang_decl): Remove.
11915
f458d1d5
ZW
119162002-02-27 Zack Weinberg <zack@codesourcery.com>
11917
11918 * misc.c: Delete traditional-mode-related code copied from the
11919 C front end but not used, or used only to permit the compiler
11920 to link.
11921
21e09952
RH
119222002-02-07 Richard Henderson <rth@redhat.com>
11923
11924 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
11925 * adaint.h (__gnat_to_gm_time): Update prototype.
11926
ead39bdf 119272002-01-30 Richard Henderson <rth@redhat.com>
e803a64b
RH
11928
11929 * trans.c (tree_transform) [N_Loop_Statement]: Use
11930 expand_exit_loop_top_cond.
11931
72ac12bf
RH
119322001-12-23 Richard Henderson <rth@redhat.com>
11933
11934 * utils.c (end_subprog_body): Push GC context around
11935 rest_of_compilation for nested functions.
11936
14aacce7
RH
119372001-12-23 Richard Henderson <rth@redhat.com>
11938
11939 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
11940
b3d45d87
FW
119412001-12-23 Florian Weimer <fw@deneb.enyo.de>
11942
ece2d1b8
FW
11943 * gnat-style.texi (Declarations and Types): Remove ancient style
11944 rule which was mandated by code generation issues.
82a4b025 11945
b3d45d87
FW
11946 * gnat-style.texi (header): Add @dircategory, @direntry.
11947 (title page): Remove date.
11948 (general) Add @./@: where approriate, and two spaces after the
11949 full stop at the end of a sentence. Use @samp markup when
11950 referring concrete lexical entities (keywords, attribute names
11951 etc.), and @syntax for ARM grammar elements. Use @r for English
11952 text in comments. Use @emph for emphasis. Change "if-statements"
11953 etc. to "if statements" (without @samp). Break long lines. Make
11954 casing of section names consistent.
11955 (Identifiers): Use @samp markup for variable names.
11956 (Comments): Use @samp markup for comment characters. Line-end
11957 comments may follow any Ada code, not just statements. Fix
11958 misspelling of "Integer" as "integer".
11959 (Loop statements): Do not use variable name "I", use "J".
11960 (Subprogram Declarations): Document alignment.
11961 (Subprogram Bodies, Block statements): Document empty line before
11962 "begin".
11963
7a73ad55
FW
119642001-12-22 Florian Weimer <fw@deneb.enyo.de>
11965
11966 * make.adb (Add_Switch): Make Generic_Position a procedure. The
11967 function approach did not work well because of a side effect (the
11968 function call could reallocate the table which was being indexed
11969 using its result). Fixes ada/4851.
11970
17c5c8a5
GB
119712001-12-19 Robert Dewar <dewar@gnat.com>
11972
11973 * bindgen.adb: Minor reformatting
82a4b025 11974
17c5c8a5 11975 * cstand.adb: Minor reformatting
82a4b025 11976
17c5c8a5
GB
11977 * fmap.adb: Minor reformatting
11978 Change name from Add for Add_To_File_Map (Add is much too generic)
11979 Change Path_Name_Of to Mapped_Path_Name
11980 Change File_Name_Of to Mapped_File_Name
11981 Fix copyright dates in header
82a4b025 11982
17c5c8a5
GB
11983 * fmap.ads:
11984 Change name from Add for Add_To_File_Map (Add is much too generic)
11985 Change Path_Name_Of to Mapped_Path_Name
11986 Change File_Name_Of to Mapped_File_Name
11987 Fix copyright dates in header
82a4b025 11988
17c5c8a5
GB
11989 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
11990 Add use clause for Fmap.
82a4b025 11991
17c5c8a5 11992 * make.adb: Minor reformatting
82a4b025 11993
17c5c8a5
GB
11994 * osint.adb: Minor reformatting. Change of names in Fmap.
11995 Add use clause for Fmap.
82a4b025 11996
17c5c8a5 11997 * prj-env.adb: Minor reformatting
82a4b025 11998
17c5c8a5 11999 * prj-env.ads: Minor reformatting
82a4b025 12000
07fc65c4
GB
12001 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
12002 error found (there were odd exceptions to this general rule in
17c5c8a5 12003 -gnatec/-gnatem processing)
82a4b025 12004
17c5c8a5
GB
120052001-12-19 Olivier Hainque <hainque@gnat.com>
12006
07fc65c4
GB
12007 * raise.c (__gnat_eh_personality): Exception handling personality
12008 routine for Ada. Still in rough state, inspired from the C++ version
17c5c8a5 12009 and still containing a bunch of debugging artifacts.
07fc65c4 12010 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
17c5c8a5 12011 inspired from the C++ library.
82a4b025 12012
07fc65c4 12013 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
17c5c8a5 12014 exception handling integration.
82a4b025 12015
17c5c8a5
GB
120162001-12-19 Arnaud Charlet <charlet@gnat.com>
12017
12018 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
12019 (HIE_SOURCES): Add s-secsta.ad{s,b}.
12020 (HIE_OBJS): Add s-fat*.o
07fc65c4 12021 (RAVEN_SOURCES): Remove files that are no longer required. Add
17c5c8a5
GB
12022 interrupt handling files.
12023 (RAVEN_MOD): Removed, no longer needed.
82a4b025 12024
17c5c8a5
GB
120252001-12-19 Robert Dewar <dewar@gnat.com>
12026
12027 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
12028 Add 2001 to copyright date
82a4b025 12029
07fc65c4 12030 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
17c5c8a5 12031 need to force universal inlining for these cases.
82a4b025 12032
17c5c8a5
GB
120332001-12-19 Arnaud Charlet <charlet@gnat.com>
12034
07fc65c4 12035 * s-taprob.adb: Minor clean ups so that this unit can be used in
17c5c8a5 12036 Ravenscar HI.
82a4b025 12037
17c5c8a5
GB
12038 * exp_ch7.adb: Allow use of secondary stack in HI mode.
12039 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
82a4b025 12040
17c5c8a5
GB
120412001-12-19 Vincent Celier <celier@gnat.com>
12042
07fc65c4 12043 * prj-tree.ads (Project_Node_Record): Add comments for components
17c5c8a5 12044 Pkg_Id and Case_Insensitive.
82a4b025 12045
17c5c8a5
GB
120462001-12-19 Pascal Obry <obry@gnat.com>
12047
12048 * g-socket.adb: Minor reformatting. Found while reading code.
82a4b025 12049
17c5c8a5
GB
120502001-12-19 Robert Dewar <dewar@gnat.com>
12051
12052 * prj-tree.ads: Minor reformatting
12053
38be19f6
JM
120542001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
12055
12056 * config-lang.in (diff_excludes): Remove.
12057
6510f4c9
GB
120582001-12-17 Ed Schonberg <schonber@gnat.com>
12059
07fc65c4
GB
12060 * sem_res.adb (Resolve_Selected_Component): do not generate a
12061 discriminant check if the selected component is a component of
6510f4c9
GB
12062 the argument of an initialization procedure.
12063
07fc65c4
GB
12064 * trans.c (tree_transform, case of arithmetic operators): If result
12065 type is private, the gnu_type is the base type of the full view,
6510f4c9 12066 given that the full view itself may be a subtype.
82a4b025 12067
6510f4c9
GB
120682001-12-17 Robert Dewar <dewar@gnat.com>
12069
12070 * sem_res.adb: Minor reformatting
82a4b025 12071
07fc65c4
GB
12072 * trans.c (tree_transform, case N_Real_Literal): Add missing third
12073 parameter in call to Machine (unknown horrible effects from this
6510f4c9 12074 omission).
82a4b025 12075
6510f4c9
GB
12076 * urealp.h: Add definition of Round_Even for call to Machine
12077 Add third parameter for Machine
82a4b025 12078
6510f4c9
GB
120792001-12-17 Ed Schonberg <schonber@gnat.com>
12080
07fc65c4 12081 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
6510f4c9 12082 predefined units in No_Run_Time mode.
82a4b025 12083
6510f4c9
GB
120842001-12-17 Richard Kenner <kenner@gnat.com>
12085
12086 * misc.c (insn-codes.h): Now include.
82a4b025 12087
6510f4c9
GB
120882001-12-17 Olivier Hainque <hainque@gnat.com>
12089
07fc65c4 12090 * a-except.adb: Preparation work for future integration of the GCC 3
6510f4c9
GB
12091 exception handling mechanism
12092 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
12093 to factorize previous code sequences and make them externally callable,
12094 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
12095 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
12096 Use the new notification routines.
82a4b025 12097
6510f4c9
GB
120982001-12-17 Emmanuel Briot <briot@gnat.com>
12099
12100 * prj-tree.ads (First_Choice_Of): Document the when others case
82a4b025 12101
6510f4c9
GB
121022001-12-17 Arnaud Charlet <charlet@gnat.com>
12103
07fc65c4 12104 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
6510f4c9 12105 HI-E mode, in order to support Ravenscar profile properly.
82a4b025 12106
07fc65c4 12107 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
6510f4c9 12108 mode on 32 bits targets.
82a4b025 12109
6510f4c9
GB
121102001-12-17 Vincent Celier <celier@gnat.com>
12111
12112 * fmap.adb: Initial version.
82a4b025 12113
6510f4c9 12114 * fmap.ads: Initial version.
82a4b025 12115
6510f4c9
GB
12116 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
12117 If search is successfully done, add to mapping.
82a4b025 12118
6510f4c9 12119 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
82a4b025 12120
6510f4c9
GB
12121 * make.adb:
12122 (Gnatmake): Add new local variable Mapping_File_Name.
12123 Create mapping file when using project file(s).
12124 Delete mapping file before exiting.
82a4b025 12125
6510f4c9 12126 * opt.ads (Mapping_File_Name): New variable
82a4b025 12127
6510f4c9 12128 * osint.adb (Find_File): Use path name found in mapping, if any.
82a4b025 12129
6510f4c9 12130 * prj-env.adb (Create_Mapping_File): New procedure
82a4b025 12131
6510f4c9 12132 * prj-env.ads (Create_Mapping_File): New procedure.
82a4b025 12133
07fc65c4 12134 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
6510f4c9 12135 (Mapping_File)
82a4b025 12136
6510f4c9 12137 * usage.adb: Add entry for new switch -gnatem.
82a4b025 12138
6510f4c9 12139 * Makefile.in: Add dependencies for fmap.o.
82a4b025 12140
6510f4c9
GB
121412001-12-17 Ed Schonberg <schonber@gnat.com>
12142
07fc65c4 12143 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
6510f4c9
GB
12144 is a package instantiation rewritten as a package body.
12145 (Install_Withed_Unit): Undo previous change, now redundant.
82a4b025 12146
6510f4c9
GB
121472001-12-17 Gary Dismukes <dismukes@gnat.com>
12148
12149 * layout.adb:
12150 (Compute_Length): Move conversion to Unsigned to callers.
12151 (Get_Max_Size): Convert Len expression to Unsigned after calls to
12152 Compute_Length and Determine_Range.
12153 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
12154 Compute_Length and Determine_Range.
12155 Above changes fix problem with length computation for supernull arrays
07fc65c4 12156 where Max (Len, 0) wasn't getting applied due to the Unsigned
6510f4c9 12157 conversion used by Compute_Length.
82a4b025 12158
6510f4c9
GB
121592001-12-17 Arnaud Charlet <charlet@gnat.com>
12160
12161 * rtsfind.ads:
12162 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
12163 System.Secondary_Stack.
12164 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
12165 in HI-E mode.
12166 Remove unused entity RE_Exception_Data.
82a4b025 12167
6510f4c9 12168 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
82a4b025 12169
6510f4c9
GB
12170 * rident.ads (No_Secondary_Stack): New restriction.
12171
3a77b68d
GB
121722001-12-17 Joel Brobecker <brobecke@gnat.com>
12173
07fc65c4 12174 * gnat_rm.texi: Fix minor typos. Found while reading the section
3a77b68d
GB
12175 regarding "Bit_Order Clauses" that was sent to a customer.
12176 Very interesting documentation!
82a4b025 12177
3a77b68d
GB
121782001-12-17 Robert Dewar <dewar@gnat.com>
12179
07fc65c4
GB
12180 * sem_case.adb (Choice_Image): Avoid creating improper character
12181 literal names by using the routine Set_Character_Literal_Name. This
3a77b68d 12182 fixes bombs in certain error message cases.
82a4b025 12183
3a77b68d
GB
121842001-12-17 Arnaud Charlet <charlet@gnat.com>
12185
12186 * a-reatim.adb: Minor reformatting.
82a4b025 12187
3a77b68d
GB
121882001-12-17 Ed Schonberg <schonber@gnat.com>
12189
07fc65c4
GB
12190 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
12191 case where the formal is an extension of another formal in the current
3a77b68d 12192 unit or in a parent generic unit.
82a4b025 12193
3a77b68d
GB
121942001-12-17 Arnaud Charlet <charlet@gnat.com>
12195
07fc65c4 12196 * s-tposen.adb: Update comments. Minor reformatting.
3a77b68d 12197 Minor code clean up.
82a4b025 12198
3a77b68d 12199 * s-tarest.adb: Update comments. Minor code reorganization.
82a4b025 12200
3a77b68d
GB
122012001-12-17 Gary Dismukes <dismukes@gnat.com>
12202
07fc65c4 12203 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
3a77b68d 12204 when Java_VM.
82a4b025 12205
3a77b68d
GB
122062001-12-17 Robert Dewar <dewar@gnat.com>
12207
12208 * exp_attr.adb: Minor reformatting
82a4b025 12209
3a77b68d
GB
122102001-12-17 Ed Schonberg <schonber@gnat.com>
12211
07fc65c4 12212 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
3a77b68d
GB
12213 derivations nested within a child unit: verify that the parent
12214 type is declared in an outer scope.
82a4b025 12215
3a77b68d
GB
122162001-12-17 Robert Dewar <dewar@gnat.com>
12217
12218 * sem_ch12.adb: Minor reformatting
82a4b025 12219
3a77b68d
GB
122202001-12-17 Ed Schonberg <schonber@gnat.com>
12221
07fc65c4
GB
12222 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
12223 warning if current unit is a predefined one, from which bodies may
3a77b68d 12224 have been deleted.
82a4b025 12225
3a77b68d
GB
122262001-12-17 Robert Dewar <dewar@gnat.com>
12227
12228 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
12229 Fix header format. Add 2001 to copyright date.
82a4b025 12230
07fc65c4 12231 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
3a77b68d
GB
12232 which caused CE during compilation if checks were enabled.
12233
79503fdd
GB
122342001-12-17 Vincent Celier <celier@gnat.com>
12235
12236 * make.adb:
12237 (Switches_Of): New function
12238 (Test_If_Relative_Path): New procedure
12239 (Add_Switches): Use new function Switches_Of
12240 (Collect_Arguments_And_Compile): Use new function Switches_Of.
12241 When using a project file, test if there are any relative
12242 search path. Fail if there are any.
07fc65c4
GB
12243 (Gnatmake): Only add switches for the primary directory when not using
12244 a project file. When using a project file, change directory to the
12245 object directory of the main project file. When using a project file,
12246 test if there are any relative search path. Fail if there are any.
12247 When using a project file, fail if specified executable is relative
12248 path with directory information, and prepend executable, if not
12249 specified as an absolute path, with the exec directory. Make sure
79503fdd 12250 that only one -o switch is transmitted to the linker.
82a4b025 12251
79503fdd 12252 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
82a4b025 12253
79503fdd
GB
12254 * prj-nmsc.adb:
12255 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
12256 when using a non standard naming scheme.
12257 (Check_Ada_Naming_Scheme): Make sure that error messages
12258 do not raise exceptions.
12259 (Is_Illegal_Append): Return True if there is no dot in the suffix.
12260 (Language_Independent_Check): Check the exec directory.
82a4b025 12261
79503fdd 12262 * prj.adb (Project_Empty): Add new component Exec_Directory
82a4b025 12263
79503fdd
GB
12264 * prj.ads:
12265 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
12266 (Project_Data): Add component Exec_Directory
82a4b025 12267
79503fdd 12268 * snames.adb: Updated to match snames.ads revision 1.215
82a4b025 12269
79503fdd 12270 * snames.ads: Added Exec_Dir
82a4b025 12271
79503fdd
GB
122722001-12-17 Robert Dewar <dewar@gnat.com>
12273
12274 * make.adb: Minor reformatting
82a4b025 12275
79503fdd 12276 * prj-nmsc.adb: Minor reformatting
82a4b025 12277
79503fdd 12278 * snames.adb: Updated to match snames.ads
82a4b025 12279
79503fdd
GB
12280 * snames.ads: Alphebetize entries for project file
12281
122822001-12-17 Ed Schonberg <schonber@gnat.com>
12283
07fc65c4 12284 * trans.c (process_freeze_entity): Do nothing if the entity is a
79503fdd 12285 subprogram that was already elaborated.
82a4b025 12286
79503fdd 122872001-12-17 Richard Kenner <kenner@gnat.com>
82a4b025 12288
07fc65c4 12289 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
79503fdd
GB
12290 and Esize if object is referenced via pointer.
12291
855ff2e1
GB
122922001-12-17 Ed Schonberg <schonber@gnat.com>
12293
07fc65c4 12294 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
855ff2e1 12295 is discrete before analyzing choices.
82a4b025 12296
855ff2e1
GB
122972001-12-17 Joel Brobecker <brobecke@gnat.com>
12298
07fc65c4
GB
12299 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
12300 containing the name of the Ada Main Program. This string is mainly
855ff2e1
GB
12301 intended for the debugger.
12302 (Gen_Output_File_C): Do the equivalent change when generating a C file.
82a4b025 12303
855ff2e1
GB
123042001-12-17 Robert Dewar <dewar@gnat.com>
12305
12306 * ali.adb: Set new Dummy_Entry field in dependency entry
82a4b025 12307
855ff2e1 12308 * ali.ads: Add Dummy_Entry field to source dependency table
82a4b025 12309
855ff2e1 12310 * bcheck.adb (Check_Consistency): Ignore dummy D lines
82a4b025 12311
855ff2e1 12312 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
82a4b025 12313
855ff2e1 12314 * lib-writ.ads: Document dummy D lines for missing files.
82a4b025 12315
855ff2e1
GB
12316 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
12317
c1c22e7a
GB
123182001-12-17 Robert Dewar <dewar@gnat.com>
12319
12320 * ali.adb: Type reference does not reset current file.
82a4b025 12321
c1c22e7a 12322 * ali.adb: Recognize and scan renaming reference
82a4b025 12323
c1c22e7a 12324 * ali.ads: Add spec for storing renaming references.
82a4b025 12325
c1c22e7a 12326 * lib-xref.ads: Add documentation for handling of renaming references
82a4b025 12327
c1c22e7a 12328 * lib-xref.adb: Implement output of renaming reference.
82a4b025 12329
c1c22e7a
GB
12330 * checks.adb:
12331 (Determine_Range): Document local variables
12332 (Determine_Range): Make sure Hbound is initialized. It looks as though
12333 there could be a real problem here with an uninitialized reference
12334 to Hbound, but no actual example of failure has been found.
82a4b025 12335
c1c22e7a
GB
123362001-12-17 Laurent Pautet <pautet@gnat.com>
12337
12338 * g-socket.ads:
12339 Fix comment of Shutdown_Socket and Close_Socket. These functions
12340 should not fail silently because if they are called twice, this
12341 probably means that there is a race condition in the user program.
12342 Anyway, this behaviour is consistent with the rest of this unit.
12343 When an error occurs, an exception is raised with the error message
12344 as exception message.
12345
7eb7bb07
RD
123462001-12-17 Robert Dewar <dewar@gnat.com>
12347
07fc65c4 12348 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
7eb7bb07 12349 that it happens before modification of Sloc values for -gnatD.
82a4b025 12350
07fc65c4 12351 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
7eb7bb07 12352 so that it happens before modification of Sloc values for -gnatD.
82a4b025 12353
7eb7bb07
RD
12354 * switch.adb: Minor reformatting
12355
b6434700
RH
123562001-12-15 Richard Henderson <rth@redhat.com>
12357
12358 * sem_ch7.adb: Wrap comment.
12359
44d6a706
JM
123602001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
12361
12362 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
12363 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
12364 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
12365 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
12366 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
12367 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
12368 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
12369 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
12370 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
12371 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
12372 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
12373 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
12374 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
12375 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
12376 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
12377 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
12378 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
12379 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
12380 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
12381 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
12382 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
12383 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
12384 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
12385 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
12386 spelling errors.
12387
226ada7a
GB
123882001-12-14 Vincent Celier <celier@gnat.com>
12389
07fc65c4 12390 * osint.adb(Create_Debug_File): When an object file is specified,
226ada7a 12391 put the .dg file in the same directory as the object file.
82a4b025 12392
226ada7a
GB
123932001-12-14 Robert Dewar <dewar@gnat.com>
12394
12395 * osint.adb: Minor reformatting
82a4b025 12396
07fc65c4 12397 * lib-xref.adb (Output_Instantiation): New procedure to generate
226ada7a 12398 instantiation references.
82a4b025 12399
226ada7a 12400 * lib-xref.ads: Add documentation of handling of generic references.
82a4b025 12401
07fc65c4 12402 * ali.adb (Read_Instantiation_Ref): New procedure to read
226ada7a 12403 instantiation references
82a4b025 12404
226ada7a 12405 * ali.ads: Add spec for storing instantiation references
82a4b025 12406
226ada7a 12407 * bindusg.adb: Minor reformatting
82a4b025 12408
226ada7a 12409 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
82a4b025 12410
226ada7a 12411 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
82a4b025 12412
226ada7a 12413 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
82a4b025 12414
226ada7a 12415 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
82a4b025 12416
226ada7a
GB
12417 * csets.ads:
12418 Fix header format
12419 Add 2001 to copyright date
12420 Add entry for Latin-5 (Cyrillic ISO-8859-5)
82a4b025 12421
226ada7a
GB
124222001-12-14 Matt Gingell <gingell@gnat.com>
12423
07fc65c4 12424 * adaint.c: mktemp is a macro on Lynx and can not be used as an
226ada7a 12425 expression.
82a4b025 12426
226ada7a
GB
124272001-12-14 Richard Kenner <kenner@gnat.com>
12428
07fc65c4 12429 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
226ada7a 12430 if operand is CONSTRUCTOR.
82a4b025 12431
226ada7a
GB
124322001-12-14 Ed Schonberg <schonber@gnat.com>
12433
07fc65c4
GB
12434 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
12435 before emiting check on right-hand side, so that exception information
226ada7a
GB
12436 is correct.
12437
124382001-12-14 Richard Kenner <kenner@gnat.com>
82a4b025 12439
07fc65c4 12440 * utils.c (create_var_decl): Throw away initializing expression
226ada7a 12441 if just annotating types and non-constant.
82a4b025 12442
226ada7a
GB
124432001-12-14 Vincent Celier <celier@gnat.com>
12444
12445 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
12446 Default_Ada_...
82a4b025 12447
07fc65c4 12448 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
226ada7a
GB
12449 Remove functions.
12450 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
82a4b025 12451
07fc65c4 12452 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
226ada7a
GB
12453 Remove functions.
12454 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
12455
9b94bf9e
JM
124562001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
12457
12458 * ChangeLog: Remove piece of diff output.
12459
449d2be3
GB
124602001-12-14 Geert Bosch <bosch@gnat.com>
12461
12462 * config-lang.in: Update copyright notice
12463
12464 * layout.adb: Remove commented out code.
12465
12466 * mdllfile.ads: Update copyright notice. Fix header format.
12467
12468 * sem_case.ads: Likewise.
12469
12470 * sem_ch3.adb: Minor reformatting.
12471
e5bd5cb4
GB
124722001-12-12 Geert Bosch <bosch@gnat.com>
12473
12474 * freeze.ads: Update copyright date.
12475
12476 * g-comlin.ads: Minor reformatting.
12477
12478 * gnat-style.texi: Fix typo.
12479
b468d8ec
GB
124802001-12-12 Geert Bosch <bosch@gnat.com>
12481
12482 * einfo.h: Regenerate.
12483
ed7da216
GB
124842001-12-12 Ed Schonberg <schonber@gnat.com>
12485
07fc65c4 12486 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
ed7da216 12487 on known node types, rather than untyped fields. Further cleanups.
82a4b025 12488
ed7da216
GB
124892001-12-12 Robert Dewar <dewar@gnat.com>
12490
12491 * sem_ch12.adb:
12492 (Save_Entity_Descendant): Minor comment update.
12493 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
07fc65c4 12494 of an N_Attribute_Reference node. As per note below, this does not
ed7da216 12495 eliminate need for Associated_Node in attribute ref nodes.
07fc65c4 12496 (Associated_Node): Documentation explicitly mentions attribute
ed7da216 12497 reference nodes, since this field is used in such nodes.
82a4b025 12498
ed7da216
GB
12499 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
12500
de76a39c
GB
125012001-12-12 Robert Dewar <dewar@gnat.com>
12502
12503 * s-stalib.adb: Add more comments on with statements being needed
82a4b025 12504
de76a39c 12505 * par-ch12.adb: Minor reformatting
82a4b025 12506
de76a39c 12507 * prj-dect.ads: Fix copyright header
82a4b025 12508
07fc65c4 12509 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
de76a39c 12510 inputs fit in 32 bits, but the result still overflows.
82a4b025 12511
de76a39c 12512 * s-fatgen.ads: Minor comment improvement
82a4b025 12513
de76a39c
GB
125142001-12-12 Ed Schonberg <schonber@gnat.com>
12515
07fc65c4
GB
12516 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
12517 formal derived type, look for an inherited component from the full
de76a39c 12518 view of the parent, if any.
82a4b025 12519
de76a39c
GB
125202001-12-12 Robert Dewar <dewar@gnat.com>
12521
12522 * checks.ads (Apply_Alignment_Check): New procedure.
82a4b025 12523
07fc65c4
GB
12524 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
12525 ensure that the alignment of objects with address clauses is
de76a39c
GB
12526 appropriate, and raise PE if not.
12527
07fc65c4 12528 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
de76a39c 12529 Exp_Pakd.Known_Aligned_Enough
82a4b025 12530
de76a39c
GB
12531 * mdllfile.ads: Minor reformatting
12532
12533 * mlib-fil.ads: Minor reformatting
82a4b025 12534
de76a39c
GB
125352001-12-12 Ed Schonberg <schonber@gnat.com>
12536
07fc65c4
GB
12537 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
12538 fix to any component reference if enclosing record has non-standard
de76a39c 12539 representation.
82a4b025 12540
de76a39c
GB
125412001-12-12 Vincent Celier <celier@gnat.com>
12542
07fc65c4 12543 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
de76a39c 12544 Iteration
82a4b025 12545
de76a39c
GB
125462001-12-12 Ed Schonberg <schonber@gnat.com>
12547
07fc65c4 12548 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
de76a39c 12549 sem_attr.
82a4b025 12550
de76a39c
GB
125512001-12-12 Robert Dewar <dewar@gnat.com>
12552
12553 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
82a4b025 12554
de76a39c
GB
125552001-12-12 Emmanuel Briot <briot@gnat.com>
12556
12557 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
12558 and it adds dependencies to system.io.
82a4b025 12559
de76a39c
GB
125602001-12-12 Pascal Obry <obry@gnat.com>
12561
07fc65c4 12562 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
de76a39c
GB
12563 variable name.
12564
0b09835f
ES
125652001-12-11 Ed Schonberg <schonber@gnat.com>
12566
12567 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
07fc65c4
GB
12568 that is the parent of other generics, the instance body replaces the
12569 instance node. Retrieve the instance of the spec, which is the one
0b09835f
ES
12570 that is visible in clients and within the body.
12571
598c3446
GB
125722001-12-11 Vincent Celier <celier@gnat.com>
12573
12574 * gnatmain.adb: Initial version.
82a4b025 12575
598c3446 12576 * gnatmain.ads: Initial version.
82a4b025 12577
598c3446 12578 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
82a4b025 12579
598c3446 12580 * snames.adb: Updated to match snames.ads.
82a4b025 12581
598c3446 12582 * snames.ads: Added Gnatstub.
82a4b025 12583
598c3446
GB
125842001-12-11 Vincent Celier <celier@gnat.com>
12585
07fc65c4 12586 * prj-attr.adb (Initialization_Data): Change name from
598c3446 12587 Initialisation_Data.
82a4b025 12588
598c3446
GB
125892001-12-11 Emmanuel Briot <briot@gnat.com>
12590
12591 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
12592 + and * applied to backslashed expressions like \r.
82a4b025 12593
598c3446
GB
125942001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
12595
07fc65c4 12596 * g-os_lib.ads: String_List type added, Argument_List type is now
598c3446 12597 subtype of String_List.
82a4b025 12598
598c3446
GB
125992001-12-11 Robert Dewar <dewar@gnat.com>
12600
12601 * g-os_lib.ads: Change copyright to FSF
12602 Add comments for String_List type
82a4b025 12603
598c3446
GB
126042001-12-11 Vincent Celier <celier@gnat.com>
12605
07fc65c4 12606 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
598c3446
GB
12607 string to the buffer).
12608
7fb754a1
GB
126092001-12-11 Ed Schonberg <schonber@gnat.com>
12610
12611 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
12612 sem_attr.
82a4b025 12613
7fb754a1 12614 * sem_attr.adb: Simplify previous fix for Address.
07fc65c4
GB
12615 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
12616 to avoid anomalies where the bound of the type appears to raise
7fb754a1
GB
12617 constraint error.
12618
126192001-12-11 Robert Dewar <dewar@gnat.com>
12620
07fc65c4 12621 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
7fb754a1 12622 handled.
82a4b025 12623
7fb754a1
GB
126242001-12-11 Ed Schonberg <schonber@gnat.com>
12625
07fc65c4 12626 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
7fb754a1 12627 renamed unit before checking for recursive instantiations.
82a4b025 12628
7fb754a1
GB
126292001-12-11 Emmanuel Briot <briot@gnat.com>
12630
12631 * prj.ads: Add comments for some of the fields.
12632
0873bafc
GB
126332001-12-11 Robert Dewar <dewar@gnat.com>
12634
07fc65c4 12635 * lib-xref.adb (Output_Refs): Don't output type references outside
0873bafc 12636 the main unit if they are not otherwise referenced.
82a4b025 12637
0873bafc
GB
126382001-12-11 Ed Schonberg <schonber@gnat.com>
12639
07fc65c4 12640 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
0873bafc 12641 code and diagnose additional illegal uses
82a4b025 12642
07fc65c4 12643 * sem_util.adb (Is_Object_Reference): An indexed component is an
0873bafc 12644 object only if the prefix is.
82a4b025 12645
0873bafc
GB
126462001-12-11 Vincent Celier <celier@gnat.com>
12647
12648 * g-diopit.adb: Initial version.
82a4b025 12649
0873bafc 12650 * g-diopit.ads: Initial version.
82a4b025 12651
0873bafc
GB
12652 * g-dirope.adb:
12653 (Expand_Path): Avoid use of Unbounded_String
12654 (Find, Wildcard_Iterator): Moved to child package Iteration
82a4b025 12655
0873bafc 12656 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
82a4b025 12657
7fb754a1 126582001-12-11 Robert Dewar <dewar@gnat.com>
0873bafc
GB
12659
12660 * sem_attr.adb: Minor reformatting
12661
d087cd96
GB
126622001-12-11 Ed Schonberg <schonber@gnat.com>
12663
12664 * sem_ch3.adb: Clarify some ???.
82a4b025 12665
d087cd96
GB
126662001-12-11 Robert Dewar <dewar@gnat.com>
12667
07fc65c4 12668 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
d087cd96 12669 Exp_Pakd.Known_Aligned_Enough
82a4b025 12670
07fc65c4 12671 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
d087cd96
GB
12672 version is moved to Exp_Ch13.
12673
126742001-12-11 Robert Dewar <dewar@gnat.com>
12675
12676 * einfo.ads: Minor reformatting
82a4b025 12677
d087cd96 12678 * exp_ch5.adb: Add comment for previous.change
82a4b025 12679
d087cd96 12680 * ali.adb: New interface for extended typeref stuff.
82a4b025 12681
d087cd96 12682 * ali.ads: New interface for typeref stuff.
82a4b025 12683
d087cd96 12684 * checks.adb (Apply_Alignment_Check): New procedure.
82a4b025 12685
d087cd96 12686 * debug.adb: Add -gnatdM for modified ALI output
82a4b025 12687
d087cd96 12688 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
82a4b025 12689
07fc65c4
GB
12690 * lib-xref.adb: Extend generation of <..> notation to cover
12691 subtype/object types. Note that this is a complete rewrite,
12692 getting rid of the very nasty quadratic algorithm previously
d087cd96 12693 used for derived type output.
82a4b025 12694
07fc65c4
GB
12695 * lib-xref.ads: Extend description of <..> notation to cover
12696 subtype/object types. Uses {..} for these other cases.
d087cd96 12697 Also use (..) for pointer types.
82a4b025 12698
d087cd96 12699 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
82a4b025 12700
07fc65c4 12701 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
d087cd96
GB
12702 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
12703
290986ed
GB
127042001-12-11 Vincent Celier <celier@gnat.com>
12705
12706 * gnatcmd.adb:
12707 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
12708 Changed /BIND_ONLY to /ACTIONS=BIND
12709 Changed /LINK_ONLY to /ACTIONS=LINK
82a4b025 12710
290986ed
GB
127112001-12-11 Ed Schonberg <schonber@gnat.com>
12712
12713 * sem_ch8.adb (Find_Selected_Component): improved search for a
12714 candidate package in case of error.
82a4b025 12715
290986ed
GB
12716 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
12717 chain back on scope stack before reinstalling use clauses.
82a4b025 12718
290986ed
GB
12719 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
12720 is enabled, do not kill the code for the condition, to preserve
12721 warning.
12722
84157f51
GB
127232001-12-11 Robert Dewar <dewar@gnat.com>
12724
07fc65c4 12725 * checks.adb (Insert_Valid_Check): Apply validity check to expression
84157f51
GB
12726 of conversion, not to result of conversion.
12727
127282001-12-11 Ed Schonberg <schonber@gnat.com>
82a4b025 12729
07fc65c4
GB
12730 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
12731 before freezing parent. If the declarations are mutually recursive,
12732 an access to the current record type may be frozen before the
84157f51
GB
12733 derivation is complete.
12734
7ffa903f
VC
127352001-12-05 Vincent Celier <celier@gnat.com>
12736
07fc65c4 12737 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
7ffa903f 12738 -c /COMPILE_ONLY, -l /LINK_ONLY
82a4b025 12739
7ffa903f
VC
12740 * opt.ads:
12741 (Bind_Only): New Flag
12742 (Link_Only): New flag
82a4b025 12743
07fc65c4 12744 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
7ffa903f 12745 and -l (Link_Only)
82a4b025 12746
7ffa903f 12747 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
82a4b025 12748
7ffa903f
VC
12749 * make.adb:
12750 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
12751 (Gnatmake): Set the step flags. Only perform a step if the
12752 corresponding step flag is True.
12753 (Scan_Make_Arg): Reset the bind and link step flags when -u
12754 or -gnatc has been specified.
12755
f91b40db
GB
127562001-12-05 Ed Schonberg <schonber@gnat.com>
12757
07fc65c4 12758 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
f91b40db 12759 get bounds from right operand.
82a4b025 12760
f91b40db 12761 * sem_eval.adb: Minor reformatting
82a4b025 12762
07fc65c4 12763 * exp_util.adb (Make_Literal_Range): use bound of literal rather
f91b40db 12764 than Index'First, its lower bound may be different from 1.
82a4b025 12765
07fc65c4 12766 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
f91b40db 12767 and C48009J
82a4b025 12768
f91b40db
GB
127692001-12-05 Vincent Celier <celier@gnat.com>
12770
12771 * prj-nmsc.adb Minor reformatting
82a4b025 12772
07fc65c4 12773 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
f91b40db 12774 set and libraries are not supported.
82a4b025 12775
f91b40db
GB
127762001-12-05 Ed Schonberg <schonber@gnat.com>
12777
07fc65c4
GB
12778 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
12779 private view explicitly, so the back-end can treat as a global
f91b40db
GB
12780 when appropriate.
12781
45d04cbb
GB
127822001-12-05 Ed Schonberg <schonber@gnat.com>
12783
12784 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
12785 unit, always replace instance node with new body, for ASIS use.
12786
127872001-12-05 Vincent Celier <celier@gnat.com>
82a4b025 12788
07fc65c4
GB
12789 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
12790 libraries are not supported and both attributes Library_Name and
45d04cbb 12791 Library_Dir are specified.
82a4b025 12792
07fc65c4 12793 * prj-proc.adb (Expression): Set location of Result to location of
45d04cbb 12794 first term.
82a4b025 12795
45d04cbb
GB
12796 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
12797 (prj-nmsc is now importing MLib.Tgt)
82a4b025 12798
45d04cbb
GB
12799 * prj-proc.adb: Put the change indicated above that was forgotten.
12800
84436014
RD
128012001-12-05 Robert Dewar <dewar@gnat.com>
12802
12803 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
12804
7ae0dcd8
ES
128052001-12-05 Ed Schonberg <schonber@gnat.com>
12806
12807 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
12808 constraint, introduce explicit subtype declaration and derive from it.
82a4b025 12809
7ae0dcd8
ES
12810 * sem_ch3.adb: Minor reformatting
12811
c9a4817d
RD
128122001-12-05 Robert Dewar <dewar@gnat.com>
12813
07fc65c4 12814 * checks.adb (Determine_Range): Increase cache size for checks.
c9a4817d 12815 Minor reformatting
82a4b025 12816
c9a4817d
RD
12817 * exp_ch6.adb: Minor reformatting
12818 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
12819 a parameter whose root type is System.Address, since treating such
12820 subprograms as pure in the code generator is almost surely a mistake
12821 that will lead to unexpected results.
82a4b025 12822
07fc65c4 12823 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
c9a4817d 12824 change handling of conversions.
82a4b025 12825
c9a4817d
RD
12826 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
12827
2514b839
ES
128282001-12-05 Ed Schonberg <schonber@gnat.com>
12829
07fc65c4
GB
12830 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
12831 aggregate with static wrong size, attach generated Raise node to
2514b839
ES
12832 declaration.
12833
457b6274
RD
128342001-12-05 Robert Dewar <dewar@gnat.com>
12835
07fc65c4 12836 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
457b6274
RD
12837 Fixes compilation abandoned bomb in B24009B.
12838
19349925
ES
128392001-12-05 Ed Schonberg <schonber@gnat.com>
12840
12841 * sem_ch12.adb:
12842 Document use of Associated_Node on Selected_Components.
12843 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
12844 to clarify use of untyped descendant fields.
12845
6663c393
RD
128462001-12-05 Robert Dewar <dewar@gnat.com>
12847
12848 * prj-dect.ads: Add ??? comment
12849 Add 2001 to copyright notice (was not done in after all)
82a4b025 12850
6663c393 12851 * prj-part.adb: Minor reformatting. Reword one awkward error message.
82a4b025 12852
6663c393 12853 * prj.ads: Minor reformatting throughout, and add some ??? comments
82a4b025 12854
6663c393
RD
12855 * snames.ads: Minor reformatting
12856
d7b2a6af
GB
128572001-12-05 Geert Bosch <bosch@gnat.com>
12858
12859 * snames.adb: Autoupdate
12860
fbc9a404
VC
128612001-12-05 Vincent Celier <celier@gnat.com>
12862
12863 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
82a4b025 12864
fbc9a404 12865 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
82a4b025 12866
fbc9a404 12867 * prj-env.adb: Minor comment changes (modifying -> extends).
82a4b025 12868
fbc9a404 12869 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
82a4b025 12870
07fc65c4 12871 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
fbc9a404 12872 Tok_Extends.
82a4b025 12873
fbc9a404 12874 * prj.adb (Initialize): Change Modifying to Extends.
82a4b025 12875
fbc9a404 12876 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
82a4b025 12877
fbc9a404 12878 * prj.ads: Minor comment change (Modifying -> extending).
82a4b025 12879
fbc9a404
VC
12880 * snames.ads: Change modifying to extends.
12881
7cff0b1b
RD
128822001-12-05 Robert Dewar <dewar@gnat.com>
12883
07fc65c4 12884 * sem_warn.adb: Remove stuff for conditionals, we are not going to
7cff0b1b 12885 do this after all.
82a4b025 12886
07fc65c4 12887 * sem_warn.ads: Remove stuff for conditionals, we are not going to
7cff0b1b
RD
12888 do this after all. Add 2001 to copyright notice
12889
4f56ebb7
GB
128902001-12-04 Geert Bosch <bosch@gnat.com>
12891
12892 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
12893
053defdf
RD
128942001-12-04 Robert Dewar <dewar@gnat.com>
12895
07fc65c4
GB
12896 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
12897 location if we already have errors. Stops some cases of cascaded
053defdf 12898 errors.
82a4b025 12899
053defdf
RD
12900 * errout.adb: Improve comment.
12901
f311e166
RD
129022001-12-04 Robert Dewar <dewar@gnat.com>
12903
12904 * sem_ch12.adb:
12905 (Analyze_Formal_Type_Definition): Defend against Error.
12906 (Analyze_Formal_Subprogram): Defend against Error.
82a4b025 12907
07fc65c4 12908 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
f311e166
RD
12909 remove following semicolon if present. Removes cascaded error.
12910
d61bd65a
DR
129112001-12-04 Douglas B. Rupp <rupp@gnat.com>
12912
12913 * bindgen.adb:
12914 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
12915 exceptions equals 0.
12916 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
12917 Fixes PIWG E tests (which have to be run with -gnatL).
12918
4ba603e2
RD
129192001-12-04 Robert Dewar <dewar@gnat.com>
12920
12921 * einfo.ads: Minor reformatting
12922
57568d91
ES
129232001-12-04 Ed Schonberg <schonber@gnat.com>
12924
07fc65c4
GB
12925 * einfo.ads: Block_Node points to the identifier of the block, not to
12926 the block node itself, to preserve the link when the block is
12927 rewritten, e.g. within an if-statement with a static condition.
82a4b025 12928
07fc65c4 12929 * inline.adb (Cleanup_Scopes): recover block statement from block
57568d91 12930 entity using new meaning of Block_Node.
82a4b025 12931
07fc65c4 12932 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
57568d91
ES
12933 identifier of block node, rather than to node itself.
12934
0815d36a 129352001-12-04 Gary Dismukes <dismukes@gnat.com>
82a4b025 12936
0815d36a
GD
12937 * layout.adb:
12938 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
12939 (Discrimify): Go back to setting the Etypes of the selected component
07fc65c4 12940 because the Vname component does not exist at this point and will
0815d36a
GD
12941 fail name resolution. Also set Analyzed.
12942 Remove with and use of Sem_Res.
12943
edc0f304
AC
129442001-12-04 Arnaud Charlet <charlet@gnat.com>
12945
12946 * Makefile.in: (HIE_SOURCES): add s-fat*.
12947
32213142
RD
129482001-12-04 Robert Dewar <dewar@gnat.com>
12949
12950 * sem_attr.adb:
12951 (Compile_Time_Known_Attribute): New procedure.
12952 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
12953 proper range check.
12954
c0def2ad
ES
129552001-12-04 Ed Schonberg <schonber@gnat.com>
12956
07fc65c4 12957 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
c0def2ad
ES
12958 processing discriminants to diagnose illegal default values.
12959
ee0a48c5
ES
129602001-12-04 Ed Schonberg <schonber@gnat.com>
12961
07fc65c4
GB
12962 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
12963 access discriminant within a type extension that constrains its
ee0a48c5
ES
12964 parent discriminants.
12965
dd5875a6
ES
129662001-12-04 Ed Schonberg <schonber@gnat.com>
12967
07fc65c4 12968 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
dd5875a6 12969 is malformed, use instance of Any_Id to allow analysis to proceed.
82a4b025 12970
07fc65c4 12971 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
dd5875a6
ES
12972 type definition is illegal.
12973 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
12974 misplaced.
12975
c2a41e57
ES
129762001-12-04 Ed Schonberg <schonber@gnat.com>
12977
07fc65c4 12978 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
c2a41e57
ES
12979 constants.
12980
0ae84753
RD
129812001-12-04 Robert Dewar <dewar@gnat.com>
12982
12983 * errout.adb: Minor reformatting
12984
63db260e
RD
129852001-12-04 Robert Dewar <dewar@gnat.com>
12986
12987 * exp_util.adb: Minor reformatting from last change
82a4b025 12988
07fc65c4
GB
12989 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
12990 which is a rewriting of an expression, traverse the original
63db260e
RD
12991 expression to remove warnings that may have been posted on it.
12992
c6d289f4
ES
129932001-12-04 Ed Schonberg <schonber@gnat.com>
12994
07fc65c4 12995 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
c6d289f4
ES
12996 record that has other packed components.
12997
5917e80d
DR
129982001-12-04 Douglass B. Rupp <rupp@gnat.com>
12999
13000 * adaint.c: Minor cleanups.
13001
2c70f9dd
DR
130022001-12-04 Douglass B. Rupp <rupp@gnat.com>
13003
13004 * adaint.c: Do not use utime.h on vxworks.
13005
e59b3387
AC
130062001-12-04 Arnaud Charlet <charlet@gnat.com>
13007
07fc65c4 13008 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
e59b3387
AC
13009 more confusion than it solves.
13010
e288604a
GB
130112001-12-04 Geert bosch <bosch@gnat.com>
13012
13013 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
13014
5ac21013
GB
130152001-12-04 Geert Bosch <bosch@gnat.com>
13016
07fc65c4 13017 * Makefile.in (update-sources): New target.
5ac21013
GB
13018 For use by gcc_release script.
13019
7dd5bd5e
ES
130202001-12-04 Ed Schonberg <schonber@gnat.com>
13021
07fc65c4 13022 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
7dd5bd5e
ES
13023 a configuration pragma, it is now legal wherever a pragma can appear.
13024
a078a589
ZW
130252001-12-04 Zack Weinberg <zack@codesourcery.com>
13026
13027 * Makefile.in: Don't set ALL. Delete @cross_defines@,
13028 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
13029 is now @CROSS@ -DIN_GCC; update comment.
13030
0839863c
GB
130312001-12-04 Robert Dewar <dewar@gnat.com>
13032
13033 * einfo.adb (Has_Pragma_Pure_Function): New flag.
13034 Fix problem that stopped ceinfo from working
82a4b025 13035
0839863c 13036 * einfo.ads (Has_Pragma_Pure_Function): New flag.
82a4b025 13037
0839863c
GB
13038 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
13039
130402001-12-04 Douglas B. Rupp <rupp@gnat.com>
9678de49
DR
13041
13042 * gnatchop.adb:
13043 (File_Time_Stamp): New procedure.
13044 (Preserve_Mode): New boolean.
13045 (Write_Unit): Pass time stamp.
13046 Implement -p switch (preserve time stamps).
82a4b025 13047
9678de49 13048 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
82a4b025 13049
9678de49 13050 * gnatchop.adb: Do usage info for -p switch
82a4b025 13051
9678de49 13052 * adaint.h (__gnat_set_file_time_name): New function
82a4b025 13053
9678de49 13054 * adaint.c (__gnat_set_file_time_name): Implement
82a4b025 13055
9678de49
DR
13056 * adaint.h: Fix typo
13057
3b9a13c4
RD
130582001-12-03 Robert Dewar <dewar@gnat.com>
13059
667e5c5d 13060 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
b4f94ac1 13061 have Associated_Node.
3b9a13c4 13062
767b404e
RD
130632001-12-03 Robert Dewar <dewar@gnat.com>
13064
13065 * prj-proc.adb: Minor reformatting
667e5c5d 13066
767b404e
RD
13067 * make.adb: Minor reformatting
13068
11ac71ba
GB
130692001-12-03 Geert Bosch <bosch@gnat.com>
13070
667e5c5d 13071 * make.adb: Minor reformatting.
11ac71ba 13072
ef3d4d6e 130732001-12-03 Robert Dewar <dewar@gnat.com>
b1446533
RD
13074
13075 * sem_ch12.adb: Minor reformatting
13076
d6d32b24
ES
130772001-12-03 Ed Schonberg <schonber@gnat.com>
13078
667e5c5d
AJ
13079 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
13080 push Standard on the stack before analyzing the instance body,
d6d32b24 13081 in order to have a clean visibility environment.
667e5c5d
AJ
13082
13083 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
d6d32b24 13084
13f08f03
ES
130852001-12-03 Ed Schonberg <schonber@gnat.com>
13086
667e5c5d 13087 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
13f08f03
ES
13088 instantiation of a body that contains an inlined body.
13089
3bd6c100
ES
130902001-12-03 Ed Schonberg <schonber@gnat.com>
13091
13092 * sem_ch12.adb:
13093 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
13094 to prevent freezing within formal packages.
13095 (Freeze_Subprogram_Body): If body comes from another instance that
13096 appeared before its own body, place freeze node at end of current
13097 declarative part, to prevent a back-end crash.
13098 (Inline_Instance_Body): Handle properly a package instance within
13099 a subprogram instance that is a child unit.
13100
58d07d8f
GS
131012001-12-01 Graham Stott <grahams@redhat.com>
13102
13103 * Makefile.in (misc.o): Add missing $(srcdir) prefix
13104 and add optabs.h dependency.
13105
13106 * misc.c: Include optabs.h
13107 (gnat_tree_code_type): Make static and const.
13108 (gnat_tree_code_length): Likewise.
13109 (gnat_tree_code_name): Likewise.
13110 (update_setjmp_buf): Obtain operands mode from insn_data.
13111
c87222f0
RH
131122001-11-29 Richard Henderson <rth@redhat.com>
13113
13114 * init.c: Remove obsolete dwarf2 frame.h section.
13115
d3945f0a
JM
131162001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
13117
13118 * Make-lang.in (ada.generated-manpages): New dummy target.
13119
9f639397
ES
131202001-11-29 Ed Schonberg <schonber@gnat.com>
13121
667e5c5d
AJ
13122 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
13123 into Command, an array conversion is illegal here. Uncovered by
9f639397
ES
13124 ACATS B460005.
13125
c835e5c6
GB
131262001/11/28 Geert Bosch <bosch@gnat.com>
13127
13128 * init.c: Minor whitespace changes.
13129
49bb4548
DR
131302001-11-28 Doug Rupp <rupp@gnat.com>
13131
667e5c5d 13132 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
49bb4548
DR
13133 signal stack.
13134
ea2417e5
ZW
131352001-11-28 Zack Weinberg <zack@codesourcery.com>
13136
13137 * misc.c (gnat_expand_constant): Move declaration above
13138 definition of lang_hooks.
13139 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
13140 (gnat_init): lang_expand_constant no longer exists.
13141
13142 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
13143 always have vprintf.
13144 (gnat_init): Always call set_internal_error_function.
13145
f8e0aa73
AJ
131462001-11-27 Andreas Jaeger <aj@suse.de>
13147
13148 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
13149
d99b0e79
LG
131502001-11-27 Laurent Guerby <guerby@acm.org>
13151
13152 * Makefile.in: Regenerate Ada dependencies.
13153
3f0496e5
RH
131542001-11-26 Richard Henderson <rth@redhat.com>
13155
13156 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
13157 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
13158 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
13159
92fa4733
LG
131602001-11-25 Laurent Guerby <guerby@acm.org>
13161
13162 * sysdep.c (rts_get_*): Fix style.
13163
07626501
LG
131642001-11-19 Laurent Guerby <guerby@acm.org>
13165
13166 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
13167 since it is of no apparent use and cause warnings.
13168
22703ccc
NB
131692001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
13170
13171 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
13172 static too.
13173 (gnat_init): Don't return NULL.
13174 (finish_parse): Remove.
13175
b0df4321
LG
131762001-11-17 Laurent Guerby <guerby@acm.org>
13177
13178 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
13179 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
13180 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
13181 * lang-spec.h: Add missing struct field to silence warnings.
13182 * sysdep.c (rts_get_*): Provide K&R prototype.
13183 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
13184 * traceback.c (Unlock_Task, Lock_Task): Likewise.
13185 * tracebak.c (__gnat_backtrace): Remove unused variable.
13186 * utils.c (end_subprog_body): Move to K&R style.
13187
d215024f
RK
13188Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13189
13190 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
13191
f5e99456
NB
131922001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
13193
13194 * misc.c (gnat_init): Change prototype. Include the
13195 functionality of the old init_parse and init_decl_processing.
13196 (gnat_init_decl_processing): New prototype.
13197 (init_parse): Remove.
13198 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
13199
5d69f816
NB
132002001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
13201
13202 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
13203 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
13204 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
13205 set_yydebug): Remove.
13206
3ac88239
NB
132072001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
13208
13209 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
13210 (struct lang_hooks): Constify.
13211 (language_string, lang_identify): Remove.
13212 * utils.c (init_decl_processing): Update.
13213
d23c55c2
NB
132142001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
13215
13216 * misc.c: Include langhooks-def.h.
13217 * Makefile.in: Update.
13218
04a1b79c
RD
132192001-10-30 Robert Dewar <dewar@gnat.com>
13220
13221 * style.adb:
13222 (Check_Identifier): Rewrite circuit to be compatible with use of letters
13223 in the upper half of ASCII.
13224 (Check_Identifier): Minor reformatting
13225
81fa2d39
GB
132262001-10-30 Geert Bosch <bosch@gnat.com>
13227
f8e0aa73 13228 * (Associated_Node, Set_Associated_Node): Do not check for
81fa2d39
GB
13229 Freeze_Entity.
13230
ffc5527f
RD
132312001-10-30 Robert Dewar <dewar@gnat.com>
13232
13233 * a-reatim.ads: Minor reformatting
13234
865335eb
RD
132352001-10-30 Robert Dewar <dewar@gnat.com>
13236
f8e0aa73 13237 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
865335eb
RD
13238 undocumented declarations.
13239
5e257178
PO
132402001-10-30 Pascal Obry <obry@gnat.com>
13241
f8e0aa73 13242 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
5e257178
PO
13243 to the binder and linker.
13244 Minor style fix.
f8e0aa73 13245
5e257178
PO
13246 * mdll.ads: Fix layout. Update copyright notice.
13247
13248 * mdll.adb: Fix layout. Update copyright notice.
13249
1753e0ad
RD
132502001-10-30 Robert Dewar <dewar@gnat.com>
13251
13252 * usage.adb: Minor fix to output for -gnaty.
13253
84bfdde0
ES
132542001-10-30 Ed Schonberg <schonber@gnat.com>
13255
f8e0aa73
AJ
13256 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
13257 to accommodate all its possible values.
84bfdde0 13258
f8e0aa73 13259 * a-reatim.adb (Split): Special-case handling of Time_Span_First
84bfdde0
ES
13260 and of small absolute values of T.
13261
c296e5fc
RK
132622001-10-30 Richard Kenner <kenner@gnat.com>
13263
f8e0aa73
AJ
13264 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
13265 set_mem_attributes since not needed and wrong if RESULT if a REG;
c296e5fc
RK
13266 fixes ACATS failures.
13267
07c809df
GB
132682001-10-30 Geert Bosch <bosch@gnat.com>
13269
13270 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
13271 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
13272
54d22416 132732001-10-30 Robert Dewar <dewar@gnat.com>
f8e0aa73 13274
54d22416 13275 * bindusg.adb: Undocument -f switch.
f8e0aa73 13276
54d22416 13277 * gnatcmd.adb: Remove /FULL_ELABORATION.
f8e0aa73
AJ
13278
13279 * opt.ads (Force_RM_Elaboration_Order): Document that this is
54d22416 13280 obsolescent.
f8e0aa73 13281
54d22416 13282 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
f8e0aa73 13283
54d22416
RD
13284 * gnatbind.adb: Minor update of warning msg.
13285
af5cf6f8
VC
132862001-10-30 Vincent Celier <celier@gnat.com>
13287
f8e0aa73 13288 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
af5cf6f8 13289 for project file switches (-P (/PROJECT_FILE=),
f8e0aa73 13290 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
af5cf6f8
VC
13291 or MEDIUM or HIGH)
13292
984bc4c3
GB
132932001-10-30 Geert Bosch <bosch@gnat.com>
13294
13295 * decl.c: Minor whitespace fixes.
13296
5dece937
RK
132972001-10-30 Richard Kenner <kenner@gnat.com>
13298
13299 * utils2.c (build_allocator): Test for SIZE overflow in array case too
13300
de4bf6cb
GB
133012001-10-30 Geert Bosch <bosch@gnat.com>
13302
f8e0aa73 13303 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
de4bf6cb 13304 Found due to GCC 3.0 warning of using uninitialized value.
f8e0aa73 13305
de4bf6cb
GB
13306 * layout.adb:
13307 (Get_Max_Size): Use variant record for tracking value/expression.
13308 Makes logic clearer and prevents warnings for uninitialized variables.
13309 (Layout_Array_Type): Use variant record for tracking value/expression.
13310 Makes logic clearer and prevents warnings for uninitialized variables.
13311
f5e44987
RD
133122001-10-30 Robert Dewar <dewar@gnat.com>
13313
13314 * lib.adb: Minor reformatting
13315
13316 * s-taprop.ads: Minor reformatting
13317
45659035 133182001-10-29 Laurent Guerby <guerby@acm.org>
f8e0aa73 13319
45659035
GB
13320 * init.c:
13321 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
13322 const.
13323 (_gnat_error_handler): Make MSG const.
13324
133252001-10-29 Richard Kenner <kenner@gnat.com>
13326
13327 * sysdep.c: Fix localtime_r problem on LynxOS.
13328 Also remove #elif to avoid warnings.
f8e0aa73
AJ
13329
13330 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
45659035 13331 used by this.
f8e0aa73 13332
45659035
GB
13333 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
13334
638e383e
JM
133352001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
13336
13337 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
13338 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
13339 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
13340 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
13341 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
13342 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
13343 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
13344 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
13345 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
13346 types.ads, urealp.adb: Fix spelling errors.
13347
97f6baa0
LG
133482001-10-27 Laurent Guerby <guerby@acm.org>
13349
13350 * trans.c (gigi): Fix non determinism leading to bootstrap
13351 comparison failures for debugging information.
13352
46b58b8c
FW
133532001-10-26 Florian Weimer <fw@deneb.enyo.de>
13354
13355 * gnat_rm.texi: Use @./@: where appropriate.
13356
30151c7b
RD
133572001-10-26 Robert Dewar <dewar@gnat.com>
13358
13359 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
13360
c0b1738d
RK
133612001-10-26 Richard Kenner <kenner@gnat.com>
13362
13363 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
13364
5b09c153
RK
133652001-10-26 Richard Kenner <kenner@gnat.com>
13366
f8e0aa73 13367 * decl.c (validate_size): Modify message for bad size to avoid
5b09c153
RK
13368 implication that compiler is modifying the size.
13369
4d553668
RD
133702001-10-26 Robert Dewar <dewar@gnat.com>
13371
13372 * prj-util.adb: Minor reformatting. Fix bad header format.
13373
3e542a58
RD
133742001-10-26 Robert Dewar <dewar@gnat.com>
13375
13376 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
f8e0aa73 13377
3e542a58 13378 * sinfo.ads: Clarify use of Associated_Node (documentation only).
f8e0aa73
AJ
13379
13380 * sem_ch12.adb: Change Node4 to Associated_Node. Change
13381 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
3e542a58
RD
13382 much more narrowly in places where needed. These are cleanups.
13383
0bf08bfe
JB
133842001-10-26 Joel Brobecker <brobecke@gnat.com>
13385
13386 * 5zosinte.ads (null_pthread): new constant.
f8e0aa73 13387
0bf08bfe
JB
13388 * 5ztaprop.adb:
13389 (Initialize_TCB): Initialize thread ID to null, to be able to verify
13390 later that this field has been set.
13391 (Finalize_TCB): ditto.
13392 (Suspend_Task): Verify that the thread ID is not null before using it.
13393 (Resume_Task): ditto.
f8e0aa73 13394
0bf08bfe
JB
13395 * s-tasdeb.adb:
13396 (Resume_All_Tasks): Lock the tasks list before using it.
13397 (Suspend_All_Tasks): ditto.
13398
7a3a8c06
RK
133992001-10-26 Richard Kenner <kenner@gnat.com>
13400
f8e0aa73 13401 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
7a3a8c06
RK
13402 Make constant variant of designated type for Is_Access_Constant.
13403 Call update_pointer_to with main variant.
f8e0aa73
AJ
13404
13405 * trans.c (process_freeze_entity, process_type):
7a3a8c06 13406 Call update_pointer_to on main variant.
f8e0aa73 13407
7a3a8c06
RK
13408 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
13409 If main variant, update all other variants.
f8e0aa73
AJ
13410
13411 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
7a3a8c06
RK
13412 TREE_STATIC.
13413
a160babb
RD
134142001-10-26 Robert Dewar <dewar@gnat.com>
13415
13416 * prj-util.adb: Minor reformatting
13417
b403bd17
RD
134182001-10-26 Robert Dewar <dewar@gnat.com>
13419
13420 * prj-util.adb: Minor reformatting
13421
5fc3b4c7
RD
134222001-10-26 Robert Dewar <dewar@gnat.com>
13423
13424 * prj-attr.adb: Minor reformatting throughout
13425
8c736034
RD
134262001-10-26 Robert Dewar <dewar@gnat.com>
13427
13428 * prj-attr.ads: Minor reformatting
13429 Add ??? comment (this whole spec has almost no comments)
13430
47d5b6ed
VC
134312001-10-26 Vincent Celier <celier@gnat.com>
13432
f8e0aa73 13433 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
b4f94ac1 13434 ("//") that precede the drive letter on Interix.
47d5b6ed 13435
41af791f
GB
134362001-10-26 Geert Bosch <bosch@gnat.com>
13437
13438 * gnat_rm.texi: Add GNAT Reference Manual.
13439
ed4a1468
RD
134402001-10-25 Robert Dewar <dewar@gnat.com>
13441
f8e0aa73 13442 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
b4f94ac1 13443 is Error. Similar change for other renaming cases.
ed4a1468 13444
24377ae4
RD
134452001-10-25 Robert Dewar <dewar@gnat.com>
13446
13447 * s-atacco.ads: Add pragma Inline_Always for functions.
13448 Fix header format. Add copyright 2001
13449
fef3204e
ES
134502001-10-25 Ed Schonberg <schonber@gnat.com>
13451
f8e0aa73 13452 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
b4f94ac1 13453 return Error rather than Empty so that analysis can proceed.
fef3204e 13454
dfc69d80
ES
134552001-10-25 Ed Schonberg <schonber@gnat.com>
13456
f8e0aa73 13457 * sem_util.adb (Enter_Name): better handling of cascaded error
b4f94ac1 13458 messages when a unit appears in its own context.
dfc69d80 13459
5a15af62
ES
134602001-10-25 Ed Schonberg <schonber@gnat.com>
13461
f8e0aa73 13462 * sem_util.adb (Defining_Entity): in case of error, attach created
b4f94ac1 13463 entity to specification, so that semantic analysis can proceed.
5a15af62 13464
2b881d53
RD
134652001-10-25 Robert Dewar <dewar@gnat.com>
13466
f8e0aa73 13467 * sem_util.adb
b4f94ac1 13468 (Defining_Entity): Deal with Error.
2b881d53
RD
13469 (Process_End_Label): Deal with bad end label for.
13470
578053f2
ES
134712001-10-25 Ed Schonberg <schonber@gnat.com>
13472
f8e0aa73 13473 * sem_elab.adb (Check_A_Call): refine message when call is in an
578053f2
ES
13474 instance but callee is not declared in the generic unit.
13475
0597ce0b 134762001-10-25 Ed Schonberg <schonber@gnat.com>
f8e0aa73
AJ
13477
13478 * sem_elab.adb (Check_A_Call): check for renaming before finding the
0597ce0b
ES
13479 enclosing unit, which may already be different from the calling unit.
13480
3de6e6da
GB
134812001-10-25 Geert Bosch <bosch@gnat.com>
13482
13483 * 4gintnam.ads: fix header format.
13484
6f311316
ES
134852001-10-25 Ed Schonberg <schonber@gnat.com>
13486
f8e0aa73 13487 * sem_res.adb (Resolve_Call): if the call is actually an indexing
b4f94ac1
ZW
13488 operation on the result of a parameterless call, perform elaboration
13489 check after the node has been properly rewritten.
f8e0aa73
AJ
13490
13491 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
b4f94ac1
ZW
13492 inlined within the generic tree, the defining identifier is not a
13493 compilation_unit.
6f311316 13494
17be0cdf
ES
134952001-10-25 Ed Schonberg <schonber@gnat.com>
13496
f8e0aa73 13497 * sem_res.adb (Resolve): special-case resolution of Null in an
b4f94ac1 13498 instance or an inlined body to avoid view conflicts.
f8e0aa73
AJ
13499
13500 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
b4f94ac1 13501 compatibility by retrieving the access type of the generic copy.
17be0cdf 13502
ce9e9122
RD
135032001-10-25 Robert Dewar <dewar@gnat.com>
13504
13505 * sem_ch3.adb:
13506 (Analyze_Number_Declaration): Handle error expression.
13507 (Signed_Integer_Type_Declaration): Handle error bound.
13508 (Analyze_Subtype_Indication): Handle error range.
f8e0aa73 13509
ce9e9122
RD
13510 * sem_util.adb (Get_Index_Bounds): Check for Error.
13511
e12fbc9e
RD
135122001-10-25 Robert Dewar <dewar@gnat.com>
13513
f8e0aa73 13514 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
e12fbc9e
RD
13515 in no run time mode.
13516
52b80488
PO
135172001-10-25 Pascal Obry <obry@gnat.com>
13518
f8e0aa73 13519 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
b4f94ac1 13520 mode case for ALLOC case.
f8e0aa73
AJ
13521
13522 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
b4f94ac1 13523 all platforms. Improvement of last change.
52b80488 13524
316ad9c5
RD
135252001-10-25 Robert Dewar <dewar@gnat.com>
13526
13527 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
13528
1a7e4df4
GB
135292001-10-25 Geert Bosch <bosch@gnat.com>
13530
13531 * osint.adb (Is_Relative): Remove duplicate.
13532
90a9fff2
PO
135332001-10-25 Pascal Obry <obry@gnat.com>
13534
f8e0aa73 13535 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
b4f94ac1 13536 pathnames in UNIX and DOS style with drive letter.
90a9fff2 13537 (Is_Relative): new routine.
f8e0aa73 13538
90a9fff2 13539 * osint.adb: Minor reformatting
f8e0aa73
AJ
13540
13541 * osint.adb (Is_Relative): implementation using
b4f94ac1 13542 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
90a9fff2 13543
5c1ba4cc
PO
135442001-10-25 Pascal Obry <obry@gnat.com>
13545
f8e0aa73 13546 * g-dirope.adb (Basename): correctly compute offset between the
b4f94ac1 13547 original Path and the translated one.
f8e0aa73 13548
5c1ba4cc
PO
13549 * g-dirope.adb: (Base_Name): add some comments.
13550
a7fb206d
RD
135512001-10-25 Robert Dewar <dewar@gnat.com>
13552
f8e0aa73 13553 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
b4f94ac1 13554 in HIE mode, avoids compilation abandoned message
f8e0aa73 13555
a7fb206d 13556 * exp_imgv.adb: Correct typo in previous change
f8e0aa73 13557
a7fb206d
RD
13558 * exp_imgv.adb: Correct typo in previous change (not my day!)
13559
e6a7e62e
RD
135602001-10-25 Robert Dewar <dewar@gnat.com>
13561
13562 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
13563
0d2b8e0b 135642001-10-25 Pascal Obry <obry@gnat.com>
75c09e7d 13565
f8e0aa73 13566 * g-awk.ads: Move all pragma inlines next to the routine
0d2b8e0b 13567 declarations. This is more uniform with other GNAT spec.
75c09e7d 13568
0d2b8e0b 135692001-10-22 Geert Bosch <bosch@gnat.com>
d2740a69
GB
13570
13571 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
13572
0d2b8e0b 135732001-10-19 Geert Bosch <bosch@gnat.com>
d7ac9bdd
GB
13574
13575 * Makefile.in (tools, gnattools): Remove gnatmem.
13576
17ed6335
RH
135772001-10-17 Richard Henderson <rth@redhat.com>
13578
13579 * Makefile.in (misc.o): Depend on langhooks.h.
13580 * misc.c: Include it.
13581 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
13582 (LANG_HOOKS_DECODE_OPTION): New.
13583 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
13584
f2436274
FW
135852001-10-16 Florian Weimer <fw@deneb.enyo.de>
13586
13587 * trans.c (tree_transform): Adjust to recent change in
13588 expand_asm_operands to implement named asm operands.
13589
b14127e6
ES
135902001-10-11 Ed Schonberg <schonber@gnat.com>
13591
f8e0aa73 13592 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
b14127e6
ES
13593 renaming of discriminant for mutable record type.
13594
e70ee92a
RD
135952001-10-11 Robert Dewar <dewar@gnat.com>
13596
13597 * validsw.adb: Properly save -gnatVn status.
13598
9a5621d7 135992001-10-11 Robert Dewar <dewar@gnat.com>
f8e0aa73 13600
9a5621d7
RD
13601 * usage.adb: Add lines for V switch.
13602
f8e0aa73 13603 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
9a5621d7
RD
13604 (/VALIDITY_CHECKING).
13605
45667f04
ES
136062001-10-11 Ed Schonberg <schonber@gnat.com>
13607
f8e0aa73 13608 * sem_type.adb (Add_One_Interp): an operator for a type declared in
45667f04
ES
13609 an extension of System is known to be visible.
13610
c3de5c4c
ES
136112001-10-11 Ed Schonberg <schonber@gnat.com>
13612
f8e0aa73 13613 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
c3de5c4c
ES
13614 properly. Fixes regression on ACATS C34005G.
13615
4fa964a6
RD
136162001-10-11 Robert Dewar <dewar@gnat.com>
13617
f8e0aa73 13618 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
4fa964a6
RD
13619 loop in generic instance, since this is likely not very useful.
13620
0868e09c
RD
136212001-10-11 Robert Dewar <dewar@gnat.com>
13622
f8e0aa73 13623 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
0868e09c 13624 the error message for high integrity mode.
f8e0aa73
AJ
13625
13626 * rtsfind.adb (RTE): Give message if we try to find an entity that
0868e09c 13627 is not available in high integrity mode.
f8e0aa73 13628
0868e09c
RD
13629 * rtsfind.ads:
13630 (OK_To_Use_In_HIE_Mode): New array.
13631 (RTE): May return Empty in high integrity mode.
f8e0aa73
AJ
13632
13633 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
13634 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
13635
13636 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
13637 unit if not inlined always and in no runtime mode. Fixes problem
0868e09c 13638 caused by new Rtsfind changes.
f8e0aa73
AJ
13639
13640 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
0868e09c 13641 body is deleted.
f8e0aa73
AJ
13642
13643 * rtsfind.adb (RTE): Make sure we do not try to load unit after
0868e09c
RD
13644 giving message for entity not available in high integrity mode.
13645
934abf9c 136462001-10-11 Pascal Obry <obry@gnat.com>
f8e0aa73 13647
934abf9c
PO
13648 * impunit.adb: Add GNAT.CRC32.
13649
3c72bea4
ES
136502001-10-11 Ed Schonberg <schonber@gnat.com>
13651
f8e0aa73
AJ
13652 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
13653 properly the case where one universal operand in a non-static
3c72bea4
ES
13654 exponentiation of a real literal.
13655
44d8d2bb
ES
136562001-10-11 Ed Schonberg <schonber@gnat.com>
13657
f8e0aa73
AJ
13658 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
13659 clause, return the gobal finalization list, for lack of anthing else.
44d8d2bb 13660
9e2b9627
ES
136612001-10-11 Ed Schonberg <schonber@gnat.com>
13662
f8e0aa73
AJ
13663 * exp_ch7.adb (Make_Transient_Block): if statement is within
13664 exception handler, always use new transient scope to place Clean
9e2b9627
ES
13665 procedure.
13666
cfac6e9f
PO
136672001-10-11 Pascal Obry <obry@gnat.com>
13668
13669 * Makefile.in:
13670 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
13671 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
13672 (GNATLS_RTL_OBJS): add g-crc32.o
13673 (GNATMAKE_RTL_OBJS): add g-crc32.o
f8e0aa73 13674
cfac6e9f
PO
13675 * ali-util.adb:
13676 (CRC_Match): new function.
f8e0aa73 13677 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
cfac6e9f
PO
13678 instead of the previous simple checksum algorithm.
13679 (Time_Stamp_Mismatch): use CRC_Match for comparison.
13680 (Set_Source_Table): idem.
f8e0aa73 13681
cfac6e9f 13682 * ali-util.ads:
f8e0aa73 13683 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
cfac6e9f
PO
13684 instead of simple checksum.
13685 (CRC_Match): new function.
13686 (CRC_Error): new constant.
f8e0aa73
AJ
13687
13688 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
13689 a CRC now and not a simple checksum. A CRC uses lower-case hex
cfac6e9f 13690 letters, fixes ambiguity in parsing.
f8e0aa73
AJ
13691
13692 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
cfac6e9f 13693 is what this variable will store.
f8e0aa73 13694
cfac6e9f 13695 * bcheck.adb: Change reference to chechsum in comments by CRC.
f8e0aa73
AJ
13696 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
13697 rename All_Checksum_Match to All_CRC_Match. Change due to API
13698 renaming since now GNAT does not use a simple checksum but a
cfac6e9f 13699 CRC using GNAT.CRC32.
f8e0aa73
AJ
13700
13701 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
cfac6e9f 13702 now and not anymore a simple checksum.
f8e0aa73
AJ
13703
13704 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
cfac6e9f 13705 places.
f8e0aa73 13706
cfac6e9f 13707 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
f8e0aa73 13708
cfac6e9f
PO
13709 * scans.adb:
13710 (Restore_Scan_State): rename Checksum to CRC.
13711 (Save_Scan_State): idem.
f8e0aa73 13712
cfac6e9f
PO
13713 * scans.ads:
13714 With GNAT.CRC32.
13715 (Checksum): rename to CRC.
13716 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
f8e0aa73
AJ
13717
13718 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
cfac6e9f 13719 GNAT.CRC32). Update copyright notice.
f8e0aa73
AJ
13720
13721 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
cfac6e9f 13722 GNAT.CRC32). Update copyright notice.
f8e0aa73 13723
cfac6e9f
PO
13724 * scn.adb:
13725 (Accumulate_Checksum): removed.
13726 (Update): new procedure. Add a wide-character into the CRC.
f8e0aa73 13727
cfac6e9f
PO
13728 * sinput-l.adb:
13729 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
f8e0aa73 13730 (Load_File): fix initialization of S (change Source_Checksum to
cfac6e9f 13731 Source_CRC)
f8e0aa73
AJ
13732
13733 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
cfac6e9f 13734 Source_CRC in S initialization.
f8e0aa73 13735
cfac6e9f 13736 * sinput.adb (Source_Checksum): renamed to Source_CRC.
f8e0aa73 13737
cfac6e9f
PO
13738 * sinput.ads (Source_Checksum): renamed to Source_CRC.
13739 Update comments for the CRC.
f8e0aa73 13740
cfac6e9f 13741 * types.adb (Hex): Use lowercase for the letter part.
f8e0aa73
AJ
13742
13743 * types.ads (Get_Hex_String): Returns the hexadecimal representation
13744 for a word. This is currently used only for CRC. In previous version,
13745 the checksum was using a representation with all letter being
13746 upper-case. With the new implementation (using CRC) we do not remove
13747 the 32th bit of the CRC, so we can have an upper-case starting letter
13748 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
13749 It is ambigous since the CRC was optional and could be followed by
13750 options like EB, EE. So now this routines uses lower-case letter for
13751 the hexadecimal representation. Strange enough only lower case letters
cfac6e9f 13752 where checked in Scan_ALI (even if this was not a possible case).
f8e0aa73 13753
cfac6e9f 13754 * gnatvsn.ads (Library_Version): changed to 3.15a.
f8e0aa73
AJ
13755
13756 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
cfac6e9f 13757 for the compiler.
f8e0aa73
AJ
13758
13759 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
cfac6e9f 13760 for the compiler.
f8e0aa73 13761
cfac6e9f
PO
13762 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
13763 Add 2001 to copyright notice
13764 (Accumulate_Checksum): Modify to use System.CRC32.
f8e0aa73
AJ
13765
13766 * ali-util.ads: Redo changes of previous revision to continue to use
cfac6e9f 13767 the word Checksum. Add 2001 to copyright notice.
f8e0aa73 13768
cfac6e9f
PO
13769 * ali.adb: Undo some of previous changes, not needed.
13770 Keep the change for lower case letters in the checksum.
f8e0aa73 13771
cfac6e9f
PO
13772 * ali.ads: Undo previous change not needed.
13773
13774 * bcheck.adb: Undo most of previous change, not needed.
13775 But do use Checksums_Match for checksum comparison.
f8e0aa73 13776
cfac6e9f
PO
13777 * gnatls.adb: Undo most of previous change, not needed.
13778 But do use Checksums_Match for comparing checksums.
f8e0aa73 13779
cfac6e9f 13780 * lib-load.adb: Undo previous change, not needed.
f8e0aa73 13781
cfac6e9f 13782 * lib-writ.adb: Undo previous change, not needed.
f8e0aa73
AJ
13783
13784 * lib-writ.ads: Document that checksums use lower case,
cfac6e9f 13785 not upper case letters.
f8e0aa73 13786
cfac6e9f 13787 * scans.adb: Undo previous change, not needed
f8e0aa73 13788
cfac6e9f 13789 * scans.ads: Undo previous change, not needed.
f8e0aa73 13790
cfac6e9f 13791 * scn-nlit.adb: Undo previous changes, not needed.
f8e0aa73 13792
cfac6e9f 13793 * scn-slit.adb: Undo previous change, not needed. Fix header format.
f8e0aa73 13794
cfac6e9f
PO
13795 * scn.adb:
13796 (Accumulate_Checksum): Use System.CRC32.
13797 (Initialize_Checksum): New procedure.
13798 Remove other changes of previous revision.
f8e0aa73 13799
cfac6e9f 13800 * sinput-p.adb: Undo previous change, not needed.
f8e0aa73 13801
cfac6e9f
PO
13802 * sinput.adb: Undo previous change, not needed.
13803
13804 * sinput-l.adb: Undo previous change, not needed.
f8e0aa73
AJ
13805
13806 * sinput.ads: Undo previous change, not needed. Keep only comment
cfac6e9f 13807 on new checksum algorithm
f8e0aa73 13808
cfac6e9f
PO
13809 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
13810 Also remove a-tags and a-stream from GNAT sources.
f8e0aa73 13811
cfac6e9f 13812 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
f8e0aa73 13813
cfac6e9f
PO
13814 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
13815
4d6d06a5
GB
138162001-10-11 Geert Bosch <bosch@gnat.com>
13817
13818 * einfo.h: Regenerate.
13819
13820 * nmake.ads: Regenerate.
13821
13822 * nmake.adb: Regenerate.
13823
13824 * sinfo.h: Regenerate.
13825
13826 * treeprs.adb: Regenerate.
13827
c97412e2
GB
138282001-10-10 Geert Bosch <bosch@gnat.com>
13829
13830 * gnat-style.texi: New file describing coding guidelines for Ada.
f8e0aa73 13831
b83018ca
ES
138322001-10-10 Ed Schonberg <schonber@gnat.com>
13833
f8e0aa73 13834 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
b83018ca
ES
13835 is Flag174.
13836
e834fe1f
GB
138372001-10-10 Geert Bosch <bosch@gnat.com>
13838
13839 * snames.ads: Add new names for project facility.
13840
13841 * snames.adb: Update to reflect snames.ads changes.
13842
13843 * snames.h: Update to reflect snames.ads changes.
13844
b30668b7
VC
138452001-10-10 Vincent Celier <celier@gnat.com>
13846
13847 * make.adb:
13848 (Add_Switches): reflect the changes for the switches attributes
13849 Default_Switches indexed by the programming language,
13850 Switches indexed by the file name.
13851 (Collect_Arguments_And_Compile): Idem.
13852 Reflect the attribute name changes.
f8e0aa73 13853
b30668b7
VC
13854 * prj-attr.adb:
13855 (Initialisation_Data): Change the names of some packages and
13856 attributes.
13857 (Initialize): process case insensitive associative arrays.
f8e0aa73 13858
b30668b7
VC
13859 * prj-attr.ads:
13860 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
f8e0aa73 13861
b30668b7
VC
13862 * prj-dect.adb:
13863 (Parse_Attribute_Declaration): For case insensitive associative
13864 arrays, set the index string to lower case.
f8e0aa73 13865
b30668b7
VC
13866 * prj-env.adb:
13867 Reflect the changes of the project attributes.
f8e0aa73 13868
b30668b7
VC
13869 * prj-nmsc.adb:
13870 Replace Check_Naming_Scheme by Ada_Check and
13871 Language_Independent_Check.
f8e0aa73 13872
b30668b7
VC
13873 * prj-nmsc.ads:
13874 Replaced Check_Naming_Scheme by 2 procedures:
13875 Ada_Check and Language_Independent_Check.
f8e0aa73 13876
b30668b7
VC
13877 * prj-proc.adb:
13878 (Process_Declarative_Items): For case-insensitive associative
13879 arrays, set the index string to lower case.
13880 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
13881 Prj.Nmsc.Check_Naming_Scheme.
f8e0aa73 13882
b30668b7
VC
13883 * prj-tree.adb:
13884 (Case_Insensitive): New function
13885 (Set_Case_Insensitive): New procedure
f8e0aa73 13886
b30668b7
VC
13887 * prj-tree.ads:
13888 (Case_Insensitive): New function
13889 (Set_Case_Insensitive): New procedure
13890 (Project_Node_Record): New flag Case_Insensitive.
f8e0aa73 13891
b30668b7
VC
13892 * prj-util.adb:
13893 (Value_Of): new function to get the string value of a single
13894 string variable or attribute.
f8e0aa73 13895
b30668b7
VC
13896 * prj-util.ads:
13897 (Value_Of): new function to get the string value of a single
13898 string variable or attribute.
f8e0aa73 13899
b30668b7
VC
13900 * prj.adb:
13901 (Ada_Default_Spec_Suffix): New function
13902 (Ada_Default_Impl_Suffix): New function
13903 Change definitions of several constants to reflect
13904 new components of record types.
f8e0aa73 13905
b30668b7
VC
13906 * prj.ads:
13907 (Naming_Data): Change several components to reflect new
13908 elements of naming schemes.
13909 (Project_Data): New flags Sources_Present and
13910 Language_Independent_Checked.
13911 (Ada_Default_Spec_Suffix): New function.
13912 (Ada_Default_Impl_Suffix): New function.
f8e0aa73 13913
b30668b7
VC
13914 * snames.ads:
13915 Modification of predefined names for project manager: added
13916 Implementation, Specification_Exceptions, Implementation_Exceptions,
13917 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
13918 Default_Switches, _Languages, Builder, Cross_Reference,
13919 Finder. Removed Body_Part, Specification_Append, Body_Append,
13920 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
13921 Gnatlink.
f8e0aa73 13922
b30668b7
VC
13923 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
13924 Add comments.
f8e0aa73 13925
b30668b7
VC
13926 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
13927 not that it is Nil_Variable_Value.
f8e0aa73 13928
b30668b7
VC
13929 * prj.ads: Add ??? for uncommented declarations
13930
662e57b4
ES
139312001-10-10 Ed Schonberg <schonber@gnat.com>
13932
f8e0aa73
AJ
13933 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
13934 constant, do not indicate possible modification, so that gigi can
662e57b4
ES
13935 treat it as a bona fide constant.
13936
72e4357f
RD
139372001-10-10 Robert Dewar <dewar@gnat.com>
13938
13939 * sem_prag.adb: Add processing for pragma External.
f8e0aa73 13940
72e4357f 13941 * snames.ads: Add entry for pragma External.
f8e0aa73 13942
72e4357f 13943 * par-prag.adb: Add pragma External.
f8e0aa73 13944
72e4357f
RD
13945 * snames.adb: Updated to match snames.ads.
13946
7bc1c7df
ES
139472001-10-10 Ed Schonberg <schonber@gnat.com>
13948
13949 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
13950 a dynamic task if the allocator appears in an indexed assignment
13951 or selected component assignment.
f8e0aa73
AJ
13952
13953 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
13954 For a dynamic task in an assignment statement, use target of
7bc1c7df
ES
13955 assignment to generate meaningful name.
13956
c84700e7
ES
139572001-10-10 Ed Schonberg <schonber@gnat.com>
13958
f8e0aa73 13959 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
c84700e7
ES
13960 a generic package.
13961
13962 * einfo.ads: Body_Entity is also defined for generic package.
13963 Documentation change only
f8e0aa73
AJ
13964
13965 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
13966 others_choice for a discriminated component initialization,
13967 convert discriminant references into the corresponding discriminals.
13968
13969 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
13970 only if original type is private and expression has to be wrapped
c84700e7 13971 in a conversion.
f8e0aa73
AJ
13972
13973 * checks.adb:
13974 (Apply_Constraint_Check): Do not perform length check
c84700e7 13975 if expression is an aggregate with only an others_choice.
f8e0aa73 13976 (Length_N_Cond): two references to the same in_parameter
c84700e7
ES
13977 (typically the discriminal in an init_proc) denote the same value.
13978 Two useful optimization uncovered by bugfixes above.
13979
d8d80dcd
RD
139802001-10-10 Robert Dewar <dewar@gnat.com>
13981
f8e0aa73 13982 * xeinfo.adb: Change int to char in translation of enumeration types.
d8d80dcd
RD
13983 This fixes a problem in the C representation of component alignment.
13984 Add 2001 to copyright notice
13985
a8fee948
RK
139862001-10-10 Richard Kenner <kenner@gnat.com>
13987
f8e0aa73 13988 * decl.c: (validate_size): Do check size of object of integral type
a8fee948
RK
13989 if it is a packed array type.
13990
c2d7fe59
RK
139912001-10-10 Richard Kenner <kenner@gnat.com>
13992
f8e0aa73 13993 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
c2d7fe59
RK
13994 VAR_DECL for constant if not Is_Public but -O0.
13995
fb75e100
RK
139962001-10-10 Richard Kenner <kenner@gnat.com>
13997
13998 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
13999
1724557a
GB
140002001-10-10 Geert Bosch <bosch@gnat.com>
14001
f8e0aa73 14002 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
1724557a
GB
14003 use '/' as switch character, allowing for absolute file names.
14004
9f2f9eb6
JM
140052001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
14006
14007 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
14008 FSF address.
14009
8fecf41d
GB
140102001-10-08 Geert Bosch <bosch@gnat.com>
14011
14012 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
14013 Automatically build utilities when files need to be regenerated.
14014
589f1edf
GB
140152001-10-08 Geert Bosch <bosch@gnat.com>
14016
14017 * xsnames.adb: New utility for updating snames.ads and snames.adb
14018
67f28219
ZW
140192001-10-08 Zack Weinberg <zack@codesourcery.com>
14020
14021 * Make-lang.in (ADAFLAGS): Add -W -Wall.
14022 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
14023 (gnat1): Also depend on attribs.o.
14024 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
14025 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
14026 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
14027 (ADAFLAGS): Add -W -Wall.
14028 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
14029 take out CFLAGS.
14030
14031 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
14032 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
14033 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
14034 Use $(ADAC), not $(CC), as compilation command.
14035
14036 (gnattools): Depend directly on tools to build, don't use
14037 recursive make.
14038 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
14039
14040 * einfo.h, sinfo.h: New files (autogenerated).
14041
295ef2bb
RH
140422001-10-08 Richard Henderson <rth@redhat.com>
14043
14044 * comperr.adb (Abort_In_Progress): New.
14045 (Compiler_Abort): Use it to prevent recursion.
14046
5c736541
RD
140472001-10-08 Robert Dewar <dewar@gnat.com>
14048
14049 * atree.adb: Set Error_Posted in Error node, helps error recovery.
67f28219
ZW
14050
14051 * par-endh.adb (Output_End_Expected): We should also not test
5c736541 14052 Error_Posted on the Error node, since now it is always set.
67f28219
ZW
14053
14054 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
5c736541 14055 to help error recovery. Part of general work on 9407-004.
67f28219 14056
5c736541 14057 * par.adb: Add ??? for misuse of error
67f28219 14058
5c736541
RD
14059 * sem_res.adb:
14060 (Resolve): Defend against Error, fixes 9407-003.
14061 (Resolve_Discrete_Subtype_Indication): Defend against Error.
67f28219
ZW
14062
14063 * sinfo.ads (N_Error): Now has Etype field (which will be set
5c736541
RD
14064 to Any_Type to help error recovery).
14065
a153ae15
RK
140662001-10-08 Richard Kenner (kenner@gnat.com)
14067
14068 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
14069 Consistently set MEM attributes from expression; fixes
14070 bootstrap failure on x86.
14071
743f3c7b
GB
140722001-10-08 Geert Bosch (bosch@gnat.com)
14073
14074 * 5oosinte.adb: Add 2001 to copyright notice.
14075
210c4ef4
GB
140762001-10-08 Geert Bosch (bosch@gnat.com)
14077
14078 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
14079
14080 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
14081
cc712abf
JM
140822001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
14083
14084 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
14085
4c4abc0f
GB
140862001-10-05 Geert Bosch (bosch@gnat.com)
14087
14088 * adaint.h: Small formatting fix.
14089
7f50e2e3
GB
140902001-10-04 Geert Bosch <bosch@gnat.com>
14091
14092 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
14093 Arg is int, not FILE *, in dummy version of functions.
67f28219 14094
7f50e2e3
GB
14095 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
14096 Arg is int, not FILE *.
14097
5d1a9698
GB
140982001-10-04 Geert Bosch <bosch@gnat.com>
14099
14100 * 3lsoccon.ads: Added file, missed with initial check ins.
67f28219 14101
5d1a9698
GB
14102 * 4lintnam.ads: Fix header format.
14103 Change Linux to GNU/Linux.
67f28219 14104
5d1a9698
GB
14105 * 5iosinte.adb: Change Linux to GNU/Linux.
14106
14107 * 5iosinte.ads: Change Linux to GNU/Linux.
67f28219 14108
5d1a9698 14109 * 5itaprop.adb: Change Linux to GNU/Linux.
67f28219 14110
5d1a9698
GB
14111 * 5itaspri.ads: Change Linux to GNU/Linux.
14112 Update copyright notice.
67f28219 14113
5d1a9698 14114 * 5lintman.adb: Change Linux to GNU/Linux.
67f28219 14115
5d1a9698 14116 * 5lml-tgt.adb: Change Linux to GNU/Linux.
67f28219 14117
5d1a9698 14118 * 5losinte.ads: Change Linux to GNU/Linux.
67f28219 14119
5d1a9698 14120 * 5lsystem.ads: Change Linux to GNU/Linux.
67f28219 14121
5d1a9698 14122 * 5qosinte.adb: Change Linux to GNU/Linux.
67f28219 14123
5d1a9698 14124 * 5qosinte.ads: Change Linux to GNU/Linux.
67f28219 14125
5d1a9698 14126 * 5qparame.ads: Change Linux to GNU/Linux.
67f28219 14127
5d1a9698 14128 * 5qtaprop.adb: Change Linux to GNU/Linux.
67f28219 14129
5d1a9698
GB
14130 * 5qtaspri.ads: Change Linux to GNU/Linux.
14131 Add 2001 to copyright notice.
67f28219 14132
5d1a9698
GB
14133 * 5vintman.ads: Change Linux to GNU/Linux.
14134 Fix header format. Add 2001 to copyright notice.
67f28219 14135
5d1a9698 14136 * g-soccon.ads: Change Linux to GNU/Linux.
67f28219 14137
5d1a9698
GB
14138 * g-trasym.ads: Change Linux to GNU/Linux.
14139 Add 2001 to copyright notice.
67f28219 14140
5d1a9698 14141 * memtrack.adb: Change Linux to GNU/Linux.
67f28219 14142
5d1a9698
GB
14143 * s-intman.ads: Change Linux to GNU/Linux.
14144 Add 2001 to copyright notice. Fix header format.
67f28219 14145
5d1a9698 14146 * s-stache.adb: Change Linux to GNU/Linux.
67f28219 14147
5d1a9698 14148 * adaint.c: Change Linux to GNU/Linux.
67f28219 14149
5d1a9698 14150 * cio.c: Change Linux to GNU/Linux.
67f28219 14151
5d1a9698 14152 * cstreams.c: Change Linux to GNU/Linux.
67f28219 14153
5d1a9698 14154 * init.c: Change Linux to GNU/Linux.
67f28219 14155
5d1a9698 14156 * gmem.c: Change Linux to GNU/Linux.
67f28219 14157
5d1a9698
GB
14158 * tracebak.c: Change Linux to GNU/Linux.
14159
14160
c25ca2d7
GB
141612001-10-02 Geert Bosch <bosch@gnat.com>
14162
14163 * misc.c (insert_default_attributes): Add dummy version.