]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ada/ChangeLog
stylesw.adb: Change Style_Check_Subprogram_Order to Style_Check_Order_Subprograms.
[thirdparty/gcc.git] / gcc / ada / ChangeLog
1 2004-11-21 Andreas Jaeger <aj@suse.de>
2
3 * stylesw.adb: Change Style_Check_Subprogram_Order to
4 Style_Check_Order_Subprograms.
5
6 2004-11-18 Arnaud Charlet <charlet@adacore.com>
7
8 * adaint.h, adaint.c
9 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
10 to avoid warnings.
11 Add also a cast to kill another warning.
12 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
13 parameter with the priority class of the parent process instead of
14 always using the NORMAL_PRIORITY_CLASS.
15 (__gnat_dup): New function.
16 (__gnat_dup2): New function.
17 (__gnat_is_symbolic_link): Enable the effective body of this
18 function when __APPLE__ is defined.
19
20 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
21 Update comments.
22
23 2004-11-18 Olivier Hainque <hainque@adacore.com>
24
25 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
26 address of which may be used to represent "others" and "all others"
27 choices in exception tables, instead of the current harcoded
28 (void *)0 and (void *)1.
29 (Setup_Exception): Do nothing in the GNAT SJLJ case.
30
31 * gigi.h (others_decl, all_others_decl): New decls representing the
32 new Others_Value and All_Others_Value objects.
33 (struct attrib): Rename "arg" component as "args", since GCC expects a
34 list of arguments in there.
35
36 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
37 corresponding objects exported by a-exexpr, instead of hardcoded dummy
38 addresses.
39
40 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
41 others_decl and all_others_decl instead of hardcoded dummy addresses
42 to represent "others" and "all others" choices, which is cleaner and
43 more flexible with respect to the possible eh pointer encoding policies.
44
45 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
46 (process_attributes): Account for the naming change of the "args"
47 attribute list entry component.
48
49 * decl.c (build_attr_list): Rename into prepend_attributes to allow
50 cumulating attributes for different entities into a single list.
51 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
52 attributes for the current entity and propagate first subtype
53 attributes to other subtypes.
54 <E_Procedure>: Attribute arguments are attr->args and not
55 attr->arg any more.
56 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
57 argument provided, as this is what GCC expects. Use NULL_TREE instead
58 of 0 for trees.
59
60 2004-11-18 Robert Dewar <dewar@adacore.com>
61
62 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
63 Minor reformatting througout (including new function specs)
64 Add ??? comments asking for clarification.
65
66 2004-11-18 Thomas Quinot <quinot@adacore.com>
67
68 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
69 incomplete duplicate implementation of this subprogram from butil.
70
71 2004-11-18 Thomas Quinot <quinot@adacore.com>
72
73 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
74 procedures factors the common processing for building an RPC receiver
75 for an RCI package or an RACW type.
76 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
77 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
78 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
79 in use.
80 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
81 Add_RACW_Features.
82 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
83 Add_RAST_Features.
84 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
85 distribution subprogram identifiers that are either subprogram numbers
86 or strings.
87 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
88 string distribution identifiers assigned to a given subprogram.
89 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
90 (Add_RAS_Dereference_TSS): Add comments.
91 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
92 is not referenced yet because it will be used by the PolyORB DSA
93 implementation.
94 (Insert_Partition_Check): Remove fossile code.
95 (First_RCI_Subprogram_Id): Document this constant.
96 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
97 RAS_Access TSS.
98 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
99 replaced with calls to Get_Library_Unit_Name_String. Previously there
100 were several instances of the same code in different locations in the
101 compiler; this checkin completes the replacement of all of these
102 instances with calls to a common subprogram.
103 Minor reformatting.
104
105 * sem_dist.adb: Remove comment noting that RPC receiver generation
106 should be disabled for RACWs that implement RASs.
107 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
108
109 * sem_util.ads, sem_util.adb (Has_Stream): New function
110 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
111 qualified name of a library unit into the name buffer.
112 (Note_Possible_Modification): Generate a reference only
113 if the context comes from source.
114
115 * snames.ads (PCS_Names): New subtype corresponding to names of
116 supported implementations of the Partition Communication Subsystem
117 (PCS) (i.e. the runtime library support modules for the distributed
118 systems annex).
119
120 2004-11-18 Robert Dewar <dewar@adacore.com>
121 Ed Schonberg <schonberg@adacore.com>
122
123 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
124 (Has_Rep_Pragma): New function
125 (Has_Attribute_Definition_Clause): New function
126 (Record_Rep_Pragma): Moved here from sem_ch13.adb
127 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
128
129 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
130
131 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
132 (Expand_Pragma_Psect_Object): New procedure
133 These procedures contain the revised and cleaned up processing for
134 these two pragmas. This processing was formerly in Sem_Prag, but
135 is more appropriately moved here. The cleanup involves making sure
136 that the pragmas are properly attached to the tree, and that no
137 nodes are improperly shared.
138
139 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
140 pragmas to Exp_Prag, which is more appropriate.
141 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
142 check for duplicates Remove use of Is_Psected flag, no longer needed.
143 Use new Make_String_Literal function with string.
144
145 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
146 that are functions return universal values, that have to be converted
147 to the context type.
148 Use new Make_String_Literal function with string.
149 (Get_Stream_Convert_Pragma): New function, replaces the use of
150 Get_Rep_Pragma, which had to be kludged to work in this case.
151
152 * freeze.adb: Use new Has_Rep_Pragma function
153
154 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
155 function with string.
156 Use new Has_Rep_Pragma function.
157
158 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
159 string argument.
160
161 2004-11-18 Robert Dewar <dewar@adacore.com>
162
163 * errout.ads, errout.adb: (First_Sloc): New function
164
165 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
166 check (-gnatyx) instead of being included as a redundant construct
167 warning.
168
169 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
170 Style_Check_Order_Subprograms.
171
172 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
173 stylesw.adb: Add Style_Check_Xtra_Parens
174
175 * usage.adb: Add line for -gnatyx (check extra parens)
176
177 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
178
179 2004-11-18 Ed Schonberg <schonberg@adacore.com>
180 Robert Dewar <dewar@adacore.com>
181
182 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
183 discriminant of a constrained subtype, analyze the copy of the
184 corresponding constraint, because in some cases it may be only
185 partially analyzed.
186 Removes long-lived ??? comments.
187
188 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
189 handled controlled or secondary-stack expressions within the
190 iteration_scheme of a loop.
191
192 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
193 bounds that may contain functions calls, to prevent memory leaks when
194 the bound contains a call to a function that uses the secondary stack.
195 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
196 generate temporaries for loop bounds that might contain function calls
197 that require secondary stack and/or finalization actions.
198
199 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
200 selected component and the selector is overloadable (not just a
201 function) treat as function call, Analyze_Call will disambiguate if
202 necessary.
203 (Analyze_Selected_Component): Do not generate an actual subtype for the
204 selected component if expansion is disabled. The actual subtype is only
205 needed for constraint checks.
206 (Analyze_Allocator): If restriction No_Streams is set, then do
207 not permit objects to be declared of a stream type, or of a
208 composite type containing a stream.
209
210 * restrict.ads: Remove the a-stream entry from Unit_Array, since
211 No_Streams no longer prohibits with'ing this package.
212
213 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
214 discriminants, but the parent base has unknown discriminants, there is
215 no discriminant constraint to inherit. Such a discrepancy can arise
216 when the actual for a formal type with unknown discriminants is a
217 similar private type whose full view has discriminants.
218 (Analyze_Object_Declaration): If restriction No_Streams is set, then
219 do not permit objects to be declared of a stream type, or of a
220 composite type containing a stream.
221
222 2004-11-18 Ed Schonberg <schonberg@adacore.com>
223
224 * exp_dbug.ads: Update documentation to reflect simpler encoding for
225 protected operations.
226
227 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
228 generated name, it complicates decoding in gdb and hinders debugging
229 of protected operations.
230 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
231 flag for the protected entry barrier function.
232 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
233 flag for the protected entry function.
234
235 2004-11-18 Nicolas Setton <setton@adacore.com>
236
237 * expect.c: Define __unix__ when __APPLE__ is defined.
238
239 * Makefile.in: Inform the value of the variable GMEM_LIB in the
240 Darwin-specific section.
241
242 * lang-specs.h: Change the placement of the %1 marker.
243 Works around the fact that gcc adds -fPIC by default under Darwin.
244
245 2004-11-18 Ed Schonberg <schonberg@adacore.com>
246
247 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
248 type of the object with the packed array type, set the Analyzed flag
249 on the object if it is an entity or simple indexed component, to avoid
250 spurious type errors.
251
252 2004-11-18 Gary Dismukes <dismukes@adacore.com>
253
254 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
255 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
256 separate line from the version message.
257
258 2004-11-18 Ed Falis <falis@adacore.com>
259
260 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
261 vthreads.
262 (init_float): Eliminate initialization of floating point status for
263 AE653. The instructions have no effect for vThreads.
264
265 2004-11-18 Vincent Celier <celier@adacore.com>
266
267 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
268 gnatbind is invoked with -shared.
269
270 2004-11-18 Jose Ruiz <ruiz@adacore.com>
271
272 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
273 for Detect_Blocking which is redundant with the check done within the
274 procedure Protected_Single_Entry_Call.
275 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
276 Detect_Blocking which is redundant with the check done within the
277 procedure Protected_Single_Entry_Call.
278
279 2004-11-18 Vincent Celier <celier@adacore.com>
280
281 * makegpr.adb (Compile): Put the compiling switches (in package
282 Compiler and on the command line) immediately after "-c", instead of
283 at the end of the command line invocation of the compiler, when
284 compiling a non-Ada file.
285 (Build_Global_Archive): When there is no need to rebuild the archive,
286 set Global_Archive_Exists, so that the archive is passed to the linker
287 if one is needed.
288
289 2004-11-18 Robert Dewar <dewar@adacore.com>
290 Sergey Rybin <rybin@adacore.com>
291
292 * gnat_ugn.texi:
293 Remove extra paren check from list of checks for redundant constructs
294 Add documentation of new -gnatyx style check (check extra parens)
295 Remove paragraph about gnatelim debug options.
296
297 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
298 objects rather than forbidding dependencies on the package Ada.Streams.
299
300 * sinfo.ads: Add ??? note that we should document pragmas passed to
301 back end.
302
303 * g-expect.ads: Fix a few typos in the comments.
304
305 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
306
307 * misc.c (gnat_handle_option): Use %< and %> for quoting in
308 warning message.
309
310 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
311
312 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
313
314 2004-11-07 Andreas Schwab <schwab@suse.de>
315
316 * Makefile.in (install-gnatlib): Remove spurious hyphen.
317
318 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
319
320 PR ada/18228
321 * Makefile.in (darwin): Set soext to .dylib.
322
323 2004-10-26 Vincent Celier <celier@gnat.com>
324 Thomas Quinot <quinot@act-europe.fr>
325
326 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
327 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
328 there is no use of GNAT.Sockets.Constants.
329 Remove remaining pragma Import for C_Write
330 Remove C_Read and C_Write from internal implementation unit
331 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
332 the read and write functions from the system runtime library is fine
333 on UNIX but won't work under Windows).
334
335 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
336 (Check_Selector): Use C_Recv instead of C_Read.
337 Selectors are the GNAT.Sockets abstraction to perform a select()
338 call on a set of descriptors. To allow abortion of an ongoing
339 select operation, some data is written to a dedicated socket that
340 is always monitored.
341 Under Windows, the write and read library functions cannot operate
342 on sockets, so we need to use send and recv instead, which is portable
343 across all supported platforms.
344
345 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
346 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
347 (using the read and write functions from the system runtime library is
348 fine on UNIX but won't work under Windows).
349
350 2004-10-26 Nicolas Setton <setton@act-europe.fr>
351
352 * mlib-tgt-darwin.adb: New file.
353
354 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
355 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
356 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
357 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
358 subprogram body.
359
360 * Makefile.in: Add support for building shared libraries under Darwin.
361 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
362 the low level EH init subprogram to be called from __gnat_initialize.
363
364 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
365 indicates which options to pass to the archive indexer.
366
367 * mlib-utl.adb: Add support for calling ranlib with additional
368 options. This is needed for instance under Mac OS X.
369 (Ranlib_Options): New global variable, used to store the potential
370 options to pass to ranlib.
371 (Ar): Use Ranlib_Options when spawning ranlib.
372 (Initialize): Set the value of ranlib option.
373
374 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
375
376 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
377 instead of 8K, to reflect the real potential needs for stack-checking
378 in the ZCX case.
379
380 2004-10-26 Pascal Obry <obry@gnat.com>
381
382 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
383
384 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
385 Windows only the initial thread stack size can be set so it is good to
386 start we a low stack size.
387 The OS will adjust the size as needed.
388
389 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
390 Nicolas Setton <setton@act-europe.fr>
391
392 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
393 "__unix__" instead of "unix".
394 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
395 sections were just mistakenly ignored. The former is
396 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
397 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
398 of hpux. This prevents an unwanted definition of the symbol
399 convert_addresses in adaint.o.
400
401 2004-10-26 Gary Dismukes <dismukes@gnat.com>
402
403 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
404 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
405
406 2004-10-26 Cyrille Comar <comar@act-europe.fr>
407
408 * a-filico.ads, a-filico.adb: fix incorrect header.
409
410 2004-10-26 Javier Miranda <miranda@gnat.com>
411
412 * a-ststio.ads: Fix typo in identifier
413
414 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
415
416 * sem_ch4.adb: Minor reformatting.
417
418 2004-10-26 Ed Schonberg <schonberg@gnat.com>
419
420 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
421 enabled, check the result of unary and binary operations when the
422 expression is the right-hand side of an assignment.
423
424 2004-10-26 Vincent Celier <celier@gnat.com>
425
426 * clean.adb (Delete): Do not output warnings when in quiet output and
427 not in verbose mode.
428 (Force_Deletions): New Boolean flag, defaulted to False
429 (Delete): Only delete a file if it is writable, and when
430 Force_Deletions is True.
431 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
432 (Usage): Line for new switch -f
433 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
434 own.
435
436 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
437
438 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
439 JM type only if its size matches that of the wrapper. When a size is
440 prescribed and the field is not aliased, remove the wrapper of a JM
441 type only if the size is not greater than that of the packed array.
442 (gnat_to_gnu_entity): Change the extension of packed array wrappers
443 from LJM to JM.
444
445 2004-10-26 Geert Bosch <bosch@gnat.com>
446
447 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
448 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
449 (Pred): Implement in terms of Succ.
450
451 2004-10-26 Ed Schonberg <schonberg@gnat.com>
452
453 * exp_aggr.adb (Safe_Component): An aggregate component that is an
454 unchecked conversion is safe for in-place use if the expression of the
455 conversion is safe.
456 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
457 be expandable in place even if the aggregate does not come from source.
458 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
459 designated object of an allocator in place, rather than building it
460 first on the stack. The previous scheme forces a full copy of the array,
461 and may be altogether unsusable if the size of the array is too large
462 for stack allocation.
463
464 2004-10-26 Robert Dewar <dewar@gnat.com>
465
466 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
467 compares if the component is atomic.
468
469 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
470 array assignment if the component type is atomic.
471
472 2004-10-26 Ed Schonberg <schonberg@gnat.com>
473 Eric Botcazou <ebotcazou@act-europe.fr>
474
475 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
476 is aliased and is a by_reference type, do not pass by copy.
477 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
478 detect whether the call is in the right side of an assignment or
479 the expression of an object declaration. Recurse on component
480 association within aggregates.
481 Call it in the condition that determines whether the temporary is
482 necessary for correct stack-checking.
483
484 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
485
486 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
487 RACW_Type, used in the PolyORB version.
488 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
489 version and the GARLIC version.
490
491 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
492 Rename RCI_Info to RCI_Locator for better consistency between the
493 GARLIC and PolyORB versions of the distributed systems annex.
494 (DSA_Implementation_Name): This enumeration lists the possible
495 implementations of the Partition Communication Subsystem for the
496 Distributed Systems Annex (DSA). The three available implementations
497 are the dummy stub implementation (No_DSA), and two versions based on
498 two different distribution runtime libraries: GARLIC and PolyORB. Both
499 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
500 technology.
501 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
502 that organization.
503
504 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
505 between the GARLIC and PolyORB versions of the distributed systems
506 annex.
507 Remove RE_Unbounded_Reclaim_Pool since it is unused.
508
509 2004-10-26 Gary Dismukes <dismukes@gnat.com>
510
511 * gnat1drv.adb: Suppress calling the back end when
512 Frontend_Layout_On_Target is true.
513
514 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
515
516 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
517 Set_Read_Only): New subprograms.
518 These new routines allow the user to set or unset the Owner execute
519 and Owner write permission flags on a file.
520
521 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
522 GNAT.OS_Lib.Set_Executable instead of rolling our own.
523
524 2004-10-26 Matthew Gingell <gingell@gnat.com>
525
526 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
527
528 2004-10-26 Pascal Obry <obry@gnat.com>
529
530 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
531 memory before the faulting page we properly test the process read
532 access for this address using appropriate Win32 routine.
533 (HPUX sections): guard with "__hpux__" instead of "hpux".
534
535 2004-10-26 Robert Dewar <dewar@gnat.com>
536
537 * lib-xref.adb (Generate_Reference): Don't complain about reference to
538 entry parameter if pragma Unreferenced set, since we do not properly
539 handle the case of multiple parameters.
540
541 2004-10-26 Vincent Celier <celier@gnat.com>
542
543 * prj-env.adb: (Contains_ALI_Files): New Boolean function
544 (Ada_Objects_Path.Add): For a library project, add to the object path
545 the library directory only if there is no object directory or if the
546 library directory contains ALI files.
547 (Set_Ada_Paths.Add.Recursive_Add): Ditto
548
549 2004-10-26 Vincent Celier <celier@gnat.com>
550
551 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
552 extension of library projects.
553
554 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
555 path defaults to ".:<prefix>/lib/gnat".
556 (Parse): For an extending all project, allow direct import of a project
557 that is virtually extended.
558
559 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
560 the specified name is directly imported, return its ID. Otherwise, if
561 an extension of this project is imported, return the ID of the
562 extension.
563
564 2004-10-26 Robert Dewar <dewar@gnat.com>
565
566 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
567 (Sub3): New procedure, used by Scaled_Divide
568 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
569 correct more than one instance of failure to propagate carries
570 correctly.
571 (Double_Divide): Handle overflow case of largest negative number
572 divided by minus one.
573
574 * s-arit64.ads (Double_Divide): Document that overflow can occur in
575 the case of a quotient value out of range.
576 Fix comments.
577
578 2004-10-26 Robert Dewar <dewar@gnat.com>
579
580 * s-bitops.adb (Bit_Eq): Remove redundant check.
581
582 * s-bitops.ads: Minor comment updates
583 Change some occurrences of Address to System.Address
584
585 * s-carsi8.ads: Fix minor cut-and-paste error in comments
586
587 2004-10-26 Ed Schonberg <schonberg@gnat.com>
588
589 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
590 accessibility check to prefix that is a protected operation.
591
592 2004-10-26 Ed Schonberg <schonberg@gnat.com>
593
594 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
595 empty, post message on stub.
596
597 2004-10-26 Ed Schonberg <schonberg@gnat.com>
598 Javier Miranda <miranda@gnat.com>
599
600 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
601 current instance appears within a unit that is directly in the context
602 of the main unit.
603 Used to determine whether the body of the instance should be analyzed
604 immediately after its spec, to make its subprogram bodies available
605 for front-end inlining.
606 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
607 constraint is not allowed on the component type (AARM 12.5.3(3))
608
609 2004-10-26 Cyrille Comar <comar@act-europe.fr>
610
611 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
612 'Storage_Pool): enhance, document & limit detection of non-sharable
613 internal pools.
614
615 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
616
617 * s-pooglo.ads: Add more documentation now that this pool is properly
618 documented.
619
620 2004-10-26 Ed Schonberg <schonberg@gnat.com>
621
622 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
623 or protected type with discriminants, do not constrain the
624 corresponding record type if the subtype declaration has no
625 discriminant constraints. This can be the case in source code, or in
626 the subtype declaration created to rename an actual type within an
627 instantiation.
628
629 2004-10-26 Ed Schonberg <schonberg@gnat.com>
630
631 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
632 different kind of stub (possibly wrong name for file), do not check
633 for conformance.
634 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
635 includes call to some function that returns an unconstrained type, do
636 not inline.
637
638 2004-10-26 Ed Schonberg <schonberg@gnat.com>
639
640 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
641 appear in the code for the main unit. Dependencies among units in the
642 context of the main unit are established when those other units are
643 compiled. Otherwise spurious elaboration constraints can generate
644 incorrect elaboration circularities.
645
646 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
647 Ed Schonberg <schonberg@gnat.com>
648
649 * sem_util.adb (Is_Aliased_View): Defend against the case where this
650 subprogram is called with a parameter that is not an object name. This
651 situation arises for some cases of illegal code, which is diagnosed
652 later, and in this case it is wrong to call Is_Aliased, as that might
653 cause a compiler crash.
654 (Explain_Limited_Type): Refine previous fix to include
655 inherited components of derived types, to provide complete information.
656
657 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
658 is the prival for a protected object.
659 It is necessary to mark this entity as a variable, in addition to
660 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
661 modified to avoid checking the Aliased flag on entities that are not
662 objects. (Checking that flag for non-objects is erroneous and could
663 lead to a compiler crash).
664
665 2004-10-26 Robert Dewar <dewar@gnat.com>
666
667 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
668 X_Frac = 0.5, then we know that the number X must be positive.
669 (Succ): Remove the same redundant test, and also fix the primary test
670 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
671 Minor reformatting
672 (Decompose): Add fuller comments to spec
673
674 2004-10-26 Pascal Obry <obry@gnat.com>
675
676 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
677 validity (process must have read access). Set to 0 in all other cases.
678 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
679 violation on Win32.
680 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
681 segmentation violation.
682
683 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
684
685 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
686 whose type is a constructed subtype of an aliased object with an
687 unconstrained nominal subtype, convert the actual to the constructed
688 subtype before taking its address.
689
690 2004-10-26 Vincent Celier <celier@gnat.com>
691
692 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
693 (Is_Path_Name_Case_Sensitive): New function
694
695 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
696 (Base_Name, Simple_Name, Current_Directory, Compose,
697 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
698 the result.
699
700 2004-10-26 Cyrille Comar <comar@act-europe.fr>
701 Vasiliy Fofanov <fofanov@act-europe.fr>
702 Vincent Celier <celier@gnat.com>
703
704 * gnat_ugn.texi: Generalize "finding memory problems" section into a
705 "memory management issues" section and document some of the useful
706 memory pools provided as part of the GNAT library.
707 Remove "virtual" from declaration of A::method2 in
708 the simple example of Ada/C++ mixed system.
709 Library Projects may be virtually extended: their virtual extensions
710 are not Library Projects.
711 Added section on extending project hierarchies.
712
713 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
714
715 * adaint.c (__gnat_get_libraries_from_registry): Cast value
716 to LPBYTE.
717 (__gnat_portable_spawn): Remove const.
718
719 * mingw32.h (MAXPATHLEN): Check for previous definition.
720
721 2004-10-17 Matthias Klose <doko@debian.org>
722
723 * gnatvsn.ads: Set gnat library version to 4.0.
724
725 2004-10-05 Vincent Celier <celier@gnat.com>
726
727 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
728
729 2004-10-04 Laurent GUERBY <laurent@guerby.net>
730
731 PR ada/15156
732 * Makefile.in: Define and use RANLIB_FLAGS.
733
734 2004-10-04 Pascal Obry <obry@gnat.com>
735
736 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
737 other x86 platforms).
738
739 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
740
741 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
742 in general and triggers stack alignment adjustment for thread entry
743 points on targets where this is necessary.
744
745 2004-10-04 Bernard Banner <banner@gnat.com>
746
747 PR ada/13897
748
749 * Makefile.in: Add section for powerpc linux
750 Add variant i-vxwork-x86.ads
751
752 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
753
754 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
755
756 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
757 table registration calls when need be. Ensures no reference to the crt
758 ctors symbol are issued in the SJLJ case, which avoids possible
759 undefined symbol errors in the case of modules to be statically linked
760 with the kernel.
761
762 2004-10-04 Javier Miranda <miranda@gnat.com>
763
764 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
765 in-line the code corresponding to subprogram Analyze_Actuals. In
766 addition, analyze the actuals only in case of subprogram call.
767
768 2004-10-04 Ed Falis <falis@gnat.com>
769
770 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
771
772 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
773
774 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
775 in the documentation.
776
777 2004-10-04 Robert Dewar <dewar@gnat.com>
778
779 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
780 IF and CASE.
781 (Analyze_Block_Statement): Add circuitry to detect following dead code
782 (Check_Unreachable_Code): Handle case of block exit
783
784 2004-10-04 Robert Dewar <dewar@gnat.com>
785
786 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
787 (XMatchD): Avoid warning for Logic_Error call
788
789 2004-10-04 Robert Dewar <dewar@gnat.com>
790
791 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
792 consider expressions buried within a procedure actual to be an actual.
793 This caused some blowups with uses of packed slices within a procedure
794 actual.
795
796 2004-10-04 Robert Dewar <dewar@gnat.com>
797
798 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
799 longer need to be initialized to zero.
800 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
801 initialized to zero.
802
803 * checks.adb (Expr_Known_Valid): Packed arrays are now always
804 considered valid, even if the representation is modular. That's correct
805 now that we no longer initialize packed modular arrays to zero.
806
807 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
808 suffixes. These are now documented as the only cases in which the
809 debugger ignores outer records.
810 Previously, the spec allowed arbitrary suffixes for this purpose.
811 Change name of LJM to JM for packed array pad records
812 Create separate section on packed array handling, and add a whole new
813 set of comments to this section describing the situation with packed
814 modular types and justification requirements depending on endianness.
815
816 2004-10-04 Robert Dewar <dewar@gnat.com>
817
818 * a-except.adb: Add a comment for last change
819
820 * einfo.ads: Minor spelling correction in comment
821
822 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
823
824 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
825 messages.
826
827 * sem_util.ads: Minor comment update
828
829 2004-10-04 Ed Schonberg <schonberg@gnat.com>
830
831 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
832 Inline_Always when in Configurable_Run_Time mode.
833
834 * sem_prag.adb (Process_Convention): If entity is an inherited
835 subprogram, apply convention to parent subprogram if in same scope.
836 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
837 when in Configurable_Run_Time mode.
838
839 2004-10-04 Ed Schonberg <schonberg@gnat.com>
840
841 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
842 class_wide type after component list has been inherited.
843
844 2004-10-04 Ed Schonberg <schonberg@gnat.com>
845
846 * sem_ch12.adb (Check_Generic_Actuals): New predicate
847 Denotes_Previous_Actual, to handle properly the case of a private
848 actual that is also the component type of a subsequent array actual.
849 The visibility status of the first actual is not affected when the
850 second is installed.
851 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
852 make fully recursive the treatment of formals of packages declared
853 with a box.
854 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
855 the above on exit from an instantiation.
856 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
857 current instantiation which is now complete.
858 (Analyze_Package_Instantiation): No instantiated body is needed if the
859 main unit is generic. Efficient, and avoid anomalies when a instance
860 appears in a package accessed through rtsfind.
861
862 2004-10-04 Ed Schonberg <schonberg@gnat.com>
863
864 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
865 do not generate a declaration for a temporary if the call is part of a
866 library-level instantiation.
867
868 2004-10-04 Ed Schonberg <schonberg@gnat.com>
869
870 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
871 searching for a limited component to flag.
872
873 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
874 expansion of Input, to account for the fact that the implicit call
875 generated by the attribute reference must freeze the user-defined
876 stream subprogram. This is only relevant to 'Input, because it can
877 appear in an object declaration, prior to the body of the subprogram.
878
879 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
880 expansion can proceed and further errors uncovered.
881 (Minor clean up): Fix cases of using | instead of \ for continuation
882 messages.
883
884 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
885
886 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
887
888 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
889 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
890 Use gcc_assert and gcc_unreachable.
891
892 * decl.c (gnat_to_gnu_entity, case object): Check and process a
893 specified alignment before validating size.
894 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
895 stripped-down declaration for the type of the inner field when making
896 a JM type.
897
898 * utils.c (finish_record_type): Do not compute the size in units
899 incrementally. Instead compute it once for the rep clause case.
900 Use gcc_assert and gcc_unreachable.
901
902 2004-10-04 Vincent Celier <celier@gnat.com>
903
904 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
905 in file name.
906 (Is_Valid_Path_Name): Take '/' as a directory separator.
907
908 2004-10-04 Vincent Celier <celier@gnat.com>
909
910 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
911 (Extended_Project) only if Extended_Project is defined, to avoid
912 assertion error.
913 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
914 resolved path.
915 (Parse_Single_Project): Ditto.
916
917 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
918 Add_To_Project_Path for virtual projects.
919
920 2004-10-04 Vincent Celier <celier@gnat.com>
921
922 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
923 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
924 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
925 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
926 parameter Options_2.
927
928 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
929 Build_Dynamic_Library with an empty Options_2.
930
931 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
932 default anymore.
933
934 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
935 directory separator, if any.
936 (Gprmake): Do not allow mains on the command line for library projects.
937 Do not attempt to link when the project is a library project.
938 (Library_Opts): New table to store Library_Options.
939 (Build_Library): If Library_Options is specified, pass these options
940 when building a shared library.
941
942 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
943
944 * s-tposen.adb (Service_Entry): The object must be always unlocked at
945 the end of this procedure now that the unlock operation was inserted
946 by the expander.
947
948 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
949
950 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
951 corresponding to the Preallocated_Stacks flags in System.
952 (Get_Target_Parameters): Including the processing for
953 Preallocated_Stacks.
954
955 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
956 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
957 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
958 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
959 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
960 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
961 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
962 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
963 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
964 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
965 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
966 used to signal whether the compiler creates the required stacks and
967 descriptors for the different tasks (when True) or it is done by the
968 underlying operating system at run time (when False).
969 It is initially set to False in all targets.
970
971 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
972 if it is supported by the target.
973 (Make_Task_Create_Call): Pass the stack address if it has been
974 previously created. Otherwise pass a Null_Address.
975
976 * snames.adb: Add _stack.
977
978 * snames.ads: Add Name_uStack. Required to allow the expander to
979 statically allocated task stacks.
980
981 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
982 Stack_Address argument.
983 Check that its value is equal to Null_Address because this target does
984 not support the static stack allocation.
985
986 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
987
988 * usage.adb: Change "pragma inline" to "pragma Inline" in information
989 and error messages
990
991 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
992
993 * exp_dist.adb: Split declaration of asynchronous flag out of
994 Add_RACW_Read_Attribute.
995 Minor reformatting for better alignment with PolyORB version.
996 Store the entity for the asynchronous flag of an RACW, rather than the
997 expression, in the asynchronous flags table. This will allow this flag
998 to be used in other subprograms beside Add_RACW_Read_Attribute.
999
1000 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
1001
1002 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
1003 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
1004 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
1005 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
1006 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
1007 sockets constant MSG_NOSIGNAL (Linux-specific).
1008 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
1009 all Send operations.
1010 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
1011 from trigerring SIGPIPE.
1012 Rename components to avoid clash with Ada 2005 possible reserved
1013 word 'interface'.
1014 (Check_Selector): When the select system call returns with an error
1015 condition, propagate Socket_Error to the caller.
1016
1017 2004-10-01 Jan Hubicka <jh@suse.cz>
1018
1019 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
1020
1021 2004-09-23 Robert Dewar <dewar@gnat.com>
1022
1023 PR ada/17540
1024
1025 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
1026 instead do this at freeze time (we won't do it if there is an address
1027 clause).
1028 Change "pragma inline" to "pragma Inline" in information and error
1029 messages.
1030 Minor reformatting.
1031
1032 * freeze.adb (Check_Address_Clause): Remove previous change, not the
1033 right way of doing things after all.
1034 (Freeze_Entity): For object, set Is_Public for imported entities
1035 unless there is an address clause present.
1036
1037 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
1038
1039 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
1040 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
1041 ensures proper handling of types with rep clauses, which might have
1042 their TYPE_SIZE set already.
1043
1044 2004-09-21 Robert Dewar <dewar@gnat.com>
1045
1046 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
1047 packed array types in both little- and big-endian cases. This change
1048 ensures that we no longer count on the unused bits being initialized
1049 for such types (and in particular ensures that equality testing will
1050 only read the relevant bits).
1051 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
1052 These changes mean that we no longer need to initialize small packed
1053 arrays.
1054 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
1055 optimization to an LJM field as to its parent field.
1056
1057 * ada-tree.h, trans.c, utils.c, utils2.c:
1058 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
1059
1060 2004-09-20 Jan Hubicka <jh@suse.cz>
1061
1062 * utils.c (gnat_finalize): Remove.
1063 (end_subprog_body): Directly call cgraph_finalize_function;
1064 do not lower the nested functions.
1065
1066 2004-09-20 Robert Dewar <dewar@gnat.com>
1067
1068 PR ada/17540
1069
1070 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
1071 if an address clause is present, since that means that the Import
1072 should be ignored.
1073
1074 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
1075
1076 * 5tsystem.ads: Removed, no longer used.
1077
1078 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
1079 Zack Weinberg <zack@codesourcery.com>
1080
1081 * ada-tree.def: Use tree_code_class enumeration constants
1082 instead of code letters.
1083 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
1084 Update for new tree-class enumeration constants.
1085
1086 2004-09-17 Vincent Celier <celier@gnat.com>
1087
1088 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
1089 capabilities of the general project manager.
1090
1091 2004-09-09 Vincent Celier <celier@gnat.com>
1092
1093 * a-direct.ads: Add pragma Ada_05
1094 (Directory_Entry_Type): Give default value to component Kind to avoid
1095 not initialized warnings.
1096
1097 * a-direct.adb (Current_Directory): Remove directory separator at the
1098 end.
1099 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
1100 an existing directory.
1101 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
1102 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
1103 Convert the result to File_Size.
1104
1105 * prj.ads: (Project_Error): New exception
1106
1107 * prj-attr.adb: Except in procedure Initialize, Fail comes from
1108 Prj.Com, not from Osint.
1109 (Attrs, Package_Attributes): Tables moved to private part of spec
1110 (Add_Attribute, Add_Unknown_Package): Moved to new child package
1111 Prj.Attr.PM.
1112 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
1113 Prj.Project_Error after call to Fail.
1114 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
1115 Fail. Check that package name is not already in use.
1116
1117 * prj-attr.ads: Comment updates to indicate that all subprograms may be
1118 used by tools, not only by the project manager, and to indicate that
1119 exception Prj.Prj_Error may be raised in case of problem.
1120 (Add_Unknown_Package, Add_Attribute): Moved to new child package
1121 Prj.Attr.PM.
1122 (Attrs, Package_Attributes): Table instantiations moved from the body to
1123 the private part to be accessible from Prj.Attr.PM body.
1124
1125 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
1126 from new package Prj.Attr.PM.
1127 (Parse_Attribute_Declaration): Call Add_Attribute from new package
1128 Prj.Attr.PM.
1129
1130 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
1131
1132 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
1133 instead of Elaboration_Checks).
1134
1135 * a-calend.adb: Minor reformatting
1136
1137 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1138
1139 * gigi.h (maybe_pad_type): New declaration.
1140 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
1141
1142 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
1143
1144 * cuintp.c: Convert to use buildN.
1145
1146 * decl.c (maybe_pad_type): No longer static.
1147 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
1148 target pointer.
1149 Convert to use buildN.
1150
1151 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
1152 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
1153 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
1154 RHS.
1155 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
1156 (gnat_gimplify_expr, case ADDR_EXPR): New case.
1157 Convert to use buildN.
1158
1159 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
1160 TREE_READONLY for const.
1161 Convert to use buildN.
1162
1163 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
1164 (create_var_decl): Refine when TREE_STATIC is set.
1165 Convert to use buildN.
1166
1167 2004-09-09 Gary Dismukes <dismukes@gnat.com>
1168
1169 * gnat_ugn.texi: Delete text relating to checking of ali and object
1170 consistency.
1171
1172 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
1173 routines.
1174
1175 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
1176
1177 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
1178 pragmas recognized by GNAT.
1179
1180 * gnat_rm.texi: Document pragma Detect_Blocking.
1181
1182 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
1183 raise Program_Error if called from a protected operation.
1184
1185 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
1186 the protected action nesting level.
1187 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
1188 protected action nesting level.
1189 (Unlock): When pragma Detect_Blocking is active decrease the protected
1190 action nesting level.
1191
1192 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
1193 Protected_Action_Nesting.
1194
1195 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
1196 Common_ATCB record. It contains the dynamic level of protected action
1197 nesting for each task. It is needed for checking whether potentially
1198 blocking operations are called from protected operations.
1199 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
1200 Detect_Blocking is active or not in the partition.
1201
1202 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
1203 raise Program_Error if called from a protected operation.
1204 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
1205 Program_Error if called from a protected operation.
1206 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
1207 Program_Error if called from a protected operation.
1208
1209 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
1210 raise Program_Error if called from a protected operation.
1211
1212 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
1213 raise Program_Error if called from a protected operation, and increase
1214 the protected action nesting level.
1215 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
1216 Program_Error if called from a protected operation, and increase the
1217 protected action nesting level.
1218 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
1219 protected action nesting level.
1220
1221 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
1222 raise Program_Error if called from a protected operation, and increase
1223 the protected action nesting level.
1224 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
1225 Program_Error if called from a protected operation, and increase the
1226 protected action nesting level.
1227 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
1228 raise Program_Error if called from a protected operation.
1229 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
1230 active, raise Program_Error if called from a protected operation.
1231 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
1232 protected action nesting level.
1233
1234 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
1235 insertion of the statement raising Program_Error. The run time
1236 contains the required machinery for handling that.
1237
1238 * sem_util.ads: Change comment associated to procedure
1239 Check_Potentially_Blocking_Operation.
1240 This procedure does not insert a call for raising the exception because
1241 that is currently done by the run time.
1242
1243 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
1244
1245 * init.c: Add the global variable __gl_detect_blocking that indicates
1246 whether pragma Detect_Blocking is active (1) or not (0). Needed for
1247 making the pragma available at run time.
1248 (__gnat_set_globals): Pass and update the detect_blocking parameter.
1249
1250 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
1251 pragma Detect_Blocking is active.
1252
1253 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
1254
1255 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
1256 DB is found in the ali file. Any unit compiled with pragma
1257 Detect_Blocking active forces its effect in the whole partition.
1258
1259 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
1260 Detect_Blocking is active and delay is called from a protected
1261 operation.
1262
1263 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
1264 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
1265 Detect_Blocking is active (0 otherwise).
1266 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
1267 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
1268 otherwise).
1269
1270 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
1271
1272 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
1273 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
1274 package.
1275
1276 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
1277 (Register_Receiving_Stub): Add Subp_Info formal parameter.
1278 Update API in placeholder implemetation of s-parint to reflect changes
1279 in distribution runtime library.
1280
1281 * sem_ch3.adb (Expand_Derived_Record): Rename to
1282 Expand_Record_Extension.
1283
1284 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
1285 primitive operations of potentially distributed object types that have
1286 non-controlling anonymous access formals.
1287
1288 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
1289 subprogram.
1290 New implementation of expansion for remote access-to-subprogram types,
1291 based on the RACW infrastructure.
1292 This version of sem_dist is compatible with PolyORB/DSA as well as
1293 GLADE.
1294
1295 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
1296 Asynchrronous that applies to a remote access-to-subprogram type, mark
1297 the underlying RACW type as asynchronous.
1298
1299 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
1300 __gnat_using_gnu_linker to 1.
1301
1302 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
1303 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
1304 GNAT.Perfect_Hash_Generators, and remove the empty
1305 GNAT.Perfect_Hash package.
1306
1307 * atree.adb: Minor reformatting
1308
1309 * exp_ch3.adb (Expand_Derived_Record): Rename to
1310 Expand_Record_Extension.
1311 (Build_Record_Init_Proc.Build_Assignment): The default expression in
1312 a component declaration must remain attached at that point in the
1313 tree so New_Copy_Tree copies it if the enclosing record type is derived.
1314 It is therefore necessary to take a copy of the expression when building
1315 the corresponding assignment statement in the init proc.
1316 As a side effect, in the case of a derived record type, we now see the
1317 original expression, without any rewriting that could have occurred
1318 during expansion of the ancestor type's init proc, and we do not need
1319 to go back to Original_Node.
1320
1321 * exp_ch3.ads (Expand_Derived_Record): Rename to
1322 Expand_Record_Extension.
1323
1324 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
1325 Returns the RACW type used to implement a remote access-to-subprogram
1326 type.
1327 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
1328 New subprograms. Used to create a proxy tagged object for a remote
1329 subprogram. The proxy object is used as the designated object
1330 for RAS values on the same partition (unless All_Calls_Remote applies).
1331 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
1332 System.Partition_Interface.Get_Unique_Remote_Pointer.
1333 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
1334 Renamed from Add_RAS_*_Attribute.
1335 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
1336 subprograms.
1337 New implementation of expansion for remote access-to-subprogram types,
1338 based on the RACW infrastructure.
1339
1340 * exp_dist.ads (Copy_Specification): Update comment to note that this
1341 function can copy the specification from either a subprogram
1342 specification or an access-to-subprogram type definition.
1343
1344 2004-09-09 Ed Schonberg <schonberg@gnat.com>
1345
1346 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
1347 in an instance, between an explicit subprogram an one inherited from a
1348 type derived from an actual.
1349
1350 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
1351 add a polling call if the subprogram is to be inlined by the back-end,
1352 to avoid repeated calls with multiple inlinings.
1353
1354 * checks.adb (Apply_Alignment_Check): If the expression in the address
1355 clause is a call whose name is not a static entity (e.g. a dispatching
1356 call), treat as dynamic.
1357
1358 2004-09-09 Robert Dewar <dewar@gnat.com>
1359
1360 * g-trasym.ads: Minor reformatting
1361
1362 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
1363 packed arrays, since unused bits are expected to be zero for a
1364 comparison.
1365
1366 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
1367
1368 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
1369 comment.
1370
1371 2004-09-09 Pascal Obry <obry@gnat.com>
1372
1373 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
1374 enable map file generation. Add the right option to generate the map
1375 file if Map_File is set to True.
1376
1377 * gnatdll.adb (Gen_Map_File): New variable.
1378 (Syntax): Add info about new -m (Map_File) option.
1379 (Parse_Command_Line): Add support for -m option.
1380 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
1381 Minor reformatting.
1382
1383 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
1384
1385 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
1386 new gnatdist implementation.
1387 Define a subpackage isolating the output routines specific to this
1388 verbose mode.
1389
1390 2004-09-09 Joel Brobecker <brobecker@gnat.com>
1391
1392 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
1393
1394 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
1395
1396 2004-09-09 Cyrille Comar <comar@act-europe.fr>
1397
1398 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
1399 internal unit.
1400
1401 * opt.ads: Add Ada_Version_Runtime constant used to decide which
1402 version of the language is used to compile the run time.
1403
1404 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
1405
1406 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
1407 of variable length temporaries for function return now that the
1408 back-end and gigi support it.
1409
1410 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1411
1412 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
1413
1414 * trans.c (struct stmt_group): Delete field GLOBAL.
1415 (gnat_init_stmt_group): Do not initialize it.
1416 (call_to_gnu): Use save_expr, not protect_multiple_eval.
1417 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
1418 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
1419 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
1420 (start_stmt_group): Likewise.
1421 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
1422
1423 * utils2.c (ggc.h): Include.
1424 (build_call_raise): Call build_int_cst, not build_int_2.
1425
1426 * utils.c (gnat_init_decl_processing): Fix arg to
1427 build_common_tree_nodes.
1428 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
1429 (gnat_define_builtin): Set built_in_decls.
1430 (init_gigi_decls): Call build_int_cst, not build_int_2.
1431
1432 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
1433 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
1434 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
1435 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
1436 SET_TYPE_MODULE): Use them.
1437 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
1438 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
1439 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
1440 SET_TYPE_ADA_SIZE): Likewise.
1441 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
1442 (DECL_CONST_CORRESPONDING_VAR,
1443 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
1444 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
1445 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
1446 (TYPE_RM_SIZE_NUM): New macro.
1447 (TYPE_RM_SIZE): Modified to use above.
1448
1449 * cuintp.c: (build_cst_from_int): New function.
1450 (UI_To_gnu): Use it.
1451
1452 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
1453 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
1454 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
1455 MIN_EXPR for the size, copy it into new.
1456
1457 2004-09-01 Robert Dewar <dewar@gnat.com>
1458
1459 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
1460 packed indexed component where array is an IN OUT formal. This
1461 generated garbage code previously.
1462
1463 * gnat_ugn.texi: Document -fverbose-asm
1464
1465 * gnat-style.texi: Minor updates (note that boolean constants and
1466 variables are joined with AND/OR rather than short circuit forms).
1467
1468 2004-09-01 Ed Schonberg <schonberg@gnat.com>
1469
1470 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
1471 it is an upward conversion of an untagged type with no representation
1472 change.
1473
1474 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
1475
1476 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
1477 System.Partition_Interface.
1478
1479 * checks.adb (Apply_Access_Checks): Do not generate checks when
1480 expander is not active (but check for unset reference to prefix of
1481 dereference).
1482
1483 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
1484 pragma Debug as an if statement with a constant condition, for
1485 consistent treatment of entity references contained within the
1486 enclosed procedure call.
1487
1488 2004-09-01 Vincent Celier <celier@gnat.com>
1489
1490 * bindgen.adb: (Set_EA_Last): New procedure
1491 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
1492 Set_EA_Last.
1493 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
1494 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
1495 linked without errors.
1496 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
1497 ST and EA.
1498 (Gen_Exception_Table_C): Correct same bugs
1499
1500 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
1501
1502 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
1503 on Windows, make sure that the drive letter is in upper case.
1504
1505 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
1506 Windows, when the drive letter is added and Case_Sensitive is True, the
1507 drive letter is forced to upper case.
1508
1509 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
1510 to Options_2 for the call to MLib.Utl.Gcc.
1511
1512 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
1513 directory separator when defining BASE_DIR.
1514
1515 2004-09-01 Pascal Obry <obry@gnat.com>
1516
1517 * gprcmd.adb (Extend): Do not output trailing directory separator. This
1518 is not needed and it confuses Windows GNU/make which does not report
1519 directory terminated by a slash as a directory.
1520 (gprcmd): Idem for "pwd" internal command.
1521
1522 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
1523 target names rewrite to fix regressions with recent version of
1524 GNU/make. Starting with GNU/make 3.80 the pipe character was not
1525 handled properly anymore.
1526
1527 2004-09-01 Andreas Schwab <schwab@suse.de>
1528
1529 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
1530 * raise.c [!IN_RTS]: Undef abort.
1531
1532 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
1533
1534 * utils2.c (build_allocator): Use ssize_int.
1535
1536 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
1537
1538 2004-08-27 Andreas Schwab <schwab@suse.de>
1539
1540 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
1541
1542 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
1543 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1544
1545 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
1546
1547 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
1548
1549 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
1550 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
1551 * utils.c (init_gigi_decls): Likewise.
1552 * utils2.c (build_call_raise, build_allocator): Likewise.
1553
1554 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
1555
1556 * utils.c (gnat_init_decl_processing): Adjust
1557 build_common_tree_nodes call.
1558
1559 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
1560
1561 * utils2.c (build_allocator): Use build_int_cst for negative
1562 size types.
1563
1564 2004-08-18 Richard Henderson <rth@redhat.com>
1565
1566 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
1567
1568 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
1569
1570 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
1571 call.s
1572 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
1573 (gnat_to_gnu): Likewise.
1574
1575 2004-08-16 Pascal Obry <obry@gnat.com>
1576
1577 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
1578 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
1579 option and not mdll anymore. Update comment.
1580
1581 2004-08-16 Pascal Obry <obry@gnat.com>
1582
1583 * bld.adb (Put_Include_Project): Properly handle directory separators
1584 on Windows.
1585
1586 2004-08-16 Ed Schonberg <schonberg@gnat.com>
1587
1588 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
1589 decreasing the number of allocated junk nodes while searching for the
1590 appropriate subprogram.
1591
1592 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
1593
1594 * cuintp.c (UI_To_gnu): Use build_int_cst..
1595 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
1596 * utils.c (init_gigi_decls): Likewise.
1597 * utils2.c (build_call_raise): Likewise.
1598
1599 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
1600
1601 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
1602 for a global aliased object with a variable size and an unconstrained
1603 nominal subtype, pretend there is no initializer if the one we have is
1604 incomplete, and avoid referencing an inexistant component in there. The
1605 part we have will be rebuilt anyway and the reference may confuse
1606 further operations.
1607
1608 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
1609
1610 * einfo.ads: Minor reformatting
1611
1612 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
1613 restrictions in the ALI if we only want to warn about violations.
1614
1615 2004-08-13 Vincent Celier <celier@gnat.com>
1616
1617 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
1618 when creating a new Unit_Record in table Units.
1619
1620 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
1621 that are violated, if any.
1622
1623 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
1624 add directory separator if path already ends with a directory separator.
1625
1626 2004-08-13 Ed Schonberg <schonberg@gnat.com>
1627
1628 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
1629 unit, this is an attempt to inline a construct that is not available in
1630 the current restricted mode, so abort rather than trying to continue.
1631
1632 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
1633 discriminants that rename those of the parent, recover names of
1634 original discriminants for the constraint on the full view of the
1635 parent.
1636 (Complete_Private_Subtype): Do not create a subtype declaration if the
1637 subtype is an itype.
1638
1639 * gnat_rm.texi: Added section on implementation of discriminated
1640 records with default values for discriminants.
1641
1642 2004-08-13 Ed Schonberg <schonberg@gnat.com>
1643
1644 PR ada/15601
1645 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
1646 the second operand is overloaded.
1647
1648 2004-08-10 Richard Henderson <rth@redhat.com>
1649
1650 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
1651 add __builtin_alloca.
1652
1653 2004-08-10 Richard Henderson <rth@redhat.com>
1654
1655 * config-lang.in (boot_language): Yes.
1656
1657 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
1658
1659 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
1660 from complaining on potential uninitialized reference.
1661 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
1662 new specification and test explicitly for non-zero return value.
1663
1664 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
1665 returning C.int, to avoid using a derived boolean type.
1666
1667 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
1668 Duplicate_Subexpr_No_Checks in preference to direct use of
1669 Remove_Side_Effects and New_Copy_Tree.
1670 Clear Comes_From_Source on prefix of 'Size attribute reference.
1671
1672 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
1673 g-socthi-vxworks.adb: Change calls to
1674 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
1675 and test explicitly for non-zero return value.
1676
1677 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
1678 (Is_Socket_In_Set): Declare imported function as returning C.int, to
1679 avoid using a derived boolean type.
1680
1681 2004-08-09 Albert Lee <lee@gnat.com>
1682
1683 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
1684
1685 2004-08-09 Pascal Obry <obry@gnat.com>
1686
1687 * gnat_ugn.texi: Document new way to build DLLs on Windows using
1688 GCC's -shared option.
1689
1690 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
1691 Options_2 parameter (options put after object files).
1692
1693 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
1694
1695 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
1696 ignore overflows on low and high bounds of an index to also account for
1697 differences in signedness between sizetype and gnu_index_subtype.
1698 These are as legitimate as the ones caused by a lower TYPE_PRECISION
1699 on sizetype.
1700
1701 2004-08-09 Robert Dewar <dewar@gnat.com>
1702
1703 * s-solita.ads, s-solita.adb: Minor reformatting
1704
1705 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
1706 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
1707 obsolescent section
1708 Add note that No_Implicit_Conditionals does not suppress
1709 run time constraint checks.
1710
1711 * vms_conv.ads: Minor reformatting
1712
1713 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
1714 and necessary for following change).
1715 (Mark): Return new format Mark_Id containing sec stack address
1716 (Release): Use sec stack address from Mark_Id avoiding Self call
1717
1718 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
1719 pointer (cleanup and necessary for following change).
1720 Define Mark_Id as record containing address of secondary stack, that way
1721 Release does not need to find the stack again, decreasing the number of
1722 calls to Self and improving efficiency.
1723
1724 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
1725
1726 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
1727 case variable into the individual case branches when possible.
1728
1729 * sem_ch11.adb: Minor reformatting
1730
1731 * prj.ads: Correct spelling of suffixs
1732
1733 * prj-nmsc.adb: Minor reformatting
1734 Correct spelling suffixs throughout (also in identifiers)
1735
1736 * freeze.adb: Minor spelling correction
1737
1738 * exp_ch2.adb: Cleanups to handling of Current_Value
1739 (no functional effect).
1740
1741 * bld.adb: Correct spelling of suffixs
1742
1743 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
1744
1745 2004-08-09 Ed Schonberg <schonberg@gnat.com>
1746
1747 PR ada/15408
1748
1749 * sem_ch7.adb (Install_Private_Declarations): In the body of the
1750 package or of a child, private entities are both immediately_visible
1751 and not hidden.
1752
1753 2004-08-09 Ed Schonberg <schonberg@gnat.com>
1754
1755 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
1756 there are no range checks on the value of the literal.
1757
1758 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
1759 wrapped is the triggering alternative of an asynchronous select, action
1760 statements mustbe inserted before the select itself.
1761
1762 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
1763 case where the prefix is a protected function call.
1764 (Resolve_Attribute, case 'Access): The attribute reference on a
1765 subprogram is legal in a generic body if the subprogram is declared
1766 elsewhere.
1767
1768 2004-08-09 Vincent Celier <celier@gnat.com>
1769
1770 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
1771 languages, otherwise building the library may fail with unresolved
1772 symbols.
1773 (Compile_Sources): Do not build libraries if -c switch is used
1774
1775 * gnatlink.adb (Process_Args): New switches -M and -Mmap
1776 (Write_Usage): If map file creation is supported, output new switches
1777 -M and -Mmap.
1778 (Gnatlink): When -M is specified, add the necessary switch(es) to the
1779 gcc call, when supported.
1780
1781 * Makefile.in: Added indepsw.o to the object list for gnatlink
1782 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
1783
1784 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
1785 indepsw.adb, indepsw.ads: New files.
1786
1787 2004-08-09 Bernard Banner <banner@gnat.com>
1788
1789 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
1790
1791 * Makefile.in: add section for vxworks x86
1792
1793 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
1794
1795 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
1796 per-object constrained components where the discriminant is of an
1797 Access type.
1798 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
1799 the parent initialization procedure for derived Unchecked_Unions.
1800 Instead, derived Unchecked_Unions build their own initialization
1801 procedure.
1802 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
1803 Check the body of the subprogram for details.
1804 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
1805 functions for derived Unchecked_Union types by introducing a condition.
1806 Allow the creation of TSS equality functions for Unchecked_Unions.
1807 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
1808 Add formal parameter Discr to function signature. Discr is used to
1809 control the generated case statement for Unchecked_Union types.
1810 (Make_Eq_If): Rename formal parameter Node to E in function signature.
1811
1812 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
1813 Unchecked_Unions.
1814 Check the body of the subprogram for details.
1815 (Expand_Composite_Equality): Augment composite type equality to include
1816 correct handling of Unchecked_Union components.
1817 (Expand_N_In): Add condition to detect illegal membership tests when the
1818 subtype mark is a constrained Unchecked_Union and the expression lacks
1819 inferable discriminants, and build a Raise_Program_Error node.
1820 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
1821 to detect types that contain components of unconstrained Unchecked_Union
1822 subtype. Add condition to detect equality between types that have an
1823 unconstrained Unchecked_Union component, and build a Raise_Program_Error
1824 node. Add condition to detect equality between Unchecked_Union types
1825 that lack inferable discriminants, and build a Raise_Program_Error node.
1826 Otherwise build a TSS equality function call.
1827 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
1828 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
1829 with the operand lacking inferable discriminants, and build a Raise_
1830 Program_Error node.
1831 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
1832 composite equality.
1833 (Has_Inferable_Discriminants): Implement new predicate for objects and
1834 expressions of Unchecked_Union type. Check the body of subprogram for
1835 details.
1836 (Has_Unconstrained_UU_Components): Add function
1837 Component_Is_Unconstrained_UU. It is used to detect whether a single
1838 component is of an unconstrained Unchecked_Union subtype. Add function
1839 Variant_Is_Unconstrained_UU. It is used to detect whether a single
1840 component inside a variant is of an unconstrained Unchecked_Union type.
1841
1842 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
1843 inferred discriminant values. Add condition to generate a case
1844 statement with an inferred discriminant as the switch.
1845 (Make_Component_List_Assign): Introduce a Boolean flag that determines
1846 the behaviour of the subprogram in the presence of an Unchecked_Union.
1847 Add condition to trigger the usage of the inferred discriminant value
1848 as the generated case statement switch.
1849 (Make_Field_Assign): Introduce a Boolean flag that determines the
1850 behaviour of the subprogram in the presence of an Unchecked_Union. Add
1851 condition to trigger the usage of the inferred discriminant value as
1852 the right-hand side of the generated assignment.
1853
1854 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
1855 parameter generation when dealing with Unchecked_Unions.
1856
1857 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
1858 checks for Unchecked_Unions.
1859
1860 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
1861
1862 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
1863 Raise_Program_Error nodes for the execution of Read and Write
1864 attributes of Unchecked_Union types and the execution of Input and
1865 Output attributes of Unchecked_Union types that lack default
1866 discriminant values.
1867
1868 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
1869 Unchecked_Union. Add procedure Check_Component. It is used to inspect
1870 per-object constrained components of Unchecked_Unions for being
1871 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
1872 check individual components withing a variant.
1873
1874 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
1875 comparison of Unchecked_Unions.
1876 (Resolve_Equality_OP): Remove guard that prevents equality between
1877 Unchecked_Unions.
1878
1879 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
1880 of component subtypes for Unchecked_Union components.
1881 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
1882 since it is the actual subtype.
1883
1884 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
1885 pass of Unchecked_Union subtypes as generic actuals to formal types
1886 that lack known_discriminant_parts or that are derived Unchecked_Union
1887 types, and do nothing. In any other case, produce an error message.
1888
1889 * sem_ch3.adb (Analyze_Component_Declaration): Add function
1890 Contains_POC. It determines whether a constraint uses the discriminant
1891 of an enclosing record type.
1892 Add condition to detect per-object constrained component and set the
1893 appropriate flag.
1894 (Derived_Type_Declaration): Remove guard that prevents derivation from
1895 Unchecked_Union types.
1896 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
1897 Union subtypes.
1898
1899 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
1900 references to Unchecked_Union discriminants.
1901
1902 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
1903 formal generation when dealing with Unchecked_Unions.
1904 (Set_Actual_Subtypes): Add condition to prevent generation of actual
1905 subtypes for Unchecked_Unions.
1906
1907 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
1908 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
1909 completions of discriminated partial views by Unchecked_Unions and
1910 produce an error message.
1911
1912 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1913
1914 * trans.c (struct stmt_group): New field, GLOBAL.
1915 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
1916 (struct elab_info): New struct.
1917 (elab_info_list, gnu_elab_proc_stack): New variables.
1918 (Compilation_Unit_to_gnu): New procedure.
1919 (gigi): Call it and also handle elaboration procs we've saved.
1920 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
1921 global field from parent.
1922 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
1923 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
1924 (start_stmt_group): Initialize global field from parent.
1925 (add_decl_expr): Set to global for current statement group.
1926 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
1927 post.
1928
1929 * utils.c (global_bindings_p): True when no current_function_decl; no
1930 longer check current_binding_level.
1931
1932 2004-08-09 Ben Brosgol <brosgol@gnat.com>
1933
1934 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
1935 choice.
1936
1937 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
1938
1939 2004-08-06 Andreas Schwab <schwab@suse.de>
1940
1941 * utils.c (gnat_define_builtin): Remove second parameter of
1942 make_decl_rtl.
1943 (begin_subprog_body): Likewise.
1944
1945 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
1946
1947 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
1948 optimization, not supported by the tree-ssa back-end.
1949
1950 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
1951
1952 * s-mastop-irix.adb: Update comments.
1953
1954 * a-except.adb (Exception_Information): Raise Constraint_Error if
1955 exception Id is Null_Id.
1956 This is required behavior, which is more reliably and clearly checked
1957 at the top level interface level.
1958
1959 2004-07-26 Javier Miranda <miranda@gnat.com>
1960
1961 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
1962 call if a component has no default_expression and the box is used.
1963
1964 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
1965 default_expression and you use box, it behaves as if you had declared a
1966 stand-alone object.
1967 (Resolve_Record_Aggregate): If a component has no default_expression and
1968 you use box, it behaves as if you had declared a stand-alone object.
1969
1970 * sem_ch10.adb (Install_Siblings): Do not make visible the private
1971 entities of private-with siblings.
1972
1973 2004-07-26 Ed Schonberg <schonberg@gnat.com>
1974
1975 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
1976 for a component of an itype, set the parent pointer for analysis,
1977 there is no list in which to insert it.
1978
1979 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
1980 bona-fide renamings, not for inherited operations.
1981
1982 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
1983 actual for a formal that is an access parameter, create local
1984 finalization list even if the expression is not an aggregate.
1985
1986 2004-07-26 Ed Schonberg <schonberg@gnat.com>
1987
1988 PR ada/16213
1989 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
1990 Diagnose properly illegal subprogram renamings that are library units.
1991
1992 2004-07-26 Ed Schonberg <schonberg@gnat.com>
1993
1994 PR ada/15588
1995 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
1996 conversion rewritten as an unchecked conversion, check that original
1997 expression is a variable.
1998
1999 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
2000 unchecked_conversion, create new node rather than rewriting in place,
2001 to preserve original construct.
2002
2003 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2004
2005 * gigi.h (gnat_expand_body): Deleted.
2006
2007 * Make-lang.in: (trans.o): Depends on function.h.
2008
2009 * misc.c: (gnat_expand_body): Moved to here.
2010
2011 * trans.c (gnat_expand_body_1): Deleted.
2012 (gnat_expand_body): Moved from here.
2013 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
2014 (add_stmt): Check for marked visited with global_bindings_p.
2015 (gnat_gimplify_expr, case COMPONENT_REF): New case.
2016 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
2017
2018 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
2019 VIEW_CONVERT_EXPR if not operation type.
2020
2021 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
2022 fat pointer.
2023
2024 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
2025 changes: reformatting of negation operators, removing unneeded
2026 inequality comparison with zero, converting equality comparisons with
2027 zero to negations, changing int/0/1 to bool/false/true, replace calls
2028 to gigi_abort with abort, and various other similar changes.
2029
2030 2004-07-26 Vincent Celier <celier@gnat.com>
2031
2032 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
2033 "setup".
2034
2035 * make.adb (Gnatmake): Fail when a library is not present and there is
2036 no object directory.
2037
2038 * mlib-prj.adb (Check_Library): No need to check if the library needs
2039 to be rebuilt if there is no object directory, hence no object files
2040 to build the library.
2041
2042 * opt.ads (Setup_Projects): New Boolean flag.
2043
2044 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
2045 Location.
2046 Create directory when Kind /= "" and in "gnat setup". Report error if
2047 directory cannot be created.
2048 (Ada_Check): Create library interface copy dir if it does not exist
2049 and we are in "gnat setup".
2050 (Find_Sources): No error if in "gnat setup" and no Ada sources were
2051 found.
2052 (Language_Independent_Check): Create object directory, exec directory
2053 and/or library directory if they do not exist and we are in
2054 "gnat setup".
2055
2056 * vms_conv.ads: (Command_Type): New command Setup.
2057
2058 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
2059
2060 * vms_data.ads: Add qualifiers/switches for new built-in command
2061 "setup".
2062
2063 2004-07-25 Richard Henderson <rth@redhat.com>
2064
2065 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
2066 DECL_IGNORED_P on RESULT_DECL.
2067
2068 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
2069
2070 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
2071 allocation and potentially overflowing update with
2072 Tailored_Exception_Information. Use the sec-stack free procedural
2073 interface to output Exception_Information instead.
2074
2075 * a-except.adb (To_Stderr): New subprogram for character, and string
2076 version moved from a-exextr to be visible from other separate units.
2077 (Tailored_Exception_Information): Remove the procedural version,
2078 previously used by the default Last_Chance_Handler and not any more.
2079 Adjust various comments.
2080
2081 * a-exexda.adb: Generalize the exception information procedural
2082 interface, to minimize the use of secondary stack and the need for
2083 local buffers when the info is to be output to stderr:
2084 (Address_Image): Removed.
2085 (Append_Info_Character): New subprogram, checking for overflows and
2086 outputing to stderr if buffer to fill is of length 0.
2087 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
2088 (Append_Info_Address, Append_Info_Exception_Name,
2089 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
2090 Append_Info_Basic_Exception_Traceback,
2091 Append_Info_Exception_Information): New subprograms.
2092 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
2093 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
2094 Exception_Info_Maxlength, Exception_Name_Length,
2095 Exception_Message_Length): New subprograms.
2096 (Exception_Information): Use Append_Info_Exception_Information.
2097 (Tailored_Exception_Information): Use
2098 Append_Info_Basic_Exception_Information.
2099 Export services for the default Last_Chance_Handler.
2100
2101 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
2102 other separate units.
2103
2104 2004-07-20 Vincent Celier <celier@gnat.com>
2105
2106 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
2107
2108 2004-07-20 Ed Schonberg <schonberg@gnat.com>
2109
2110 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
2111 emit itype references for the designated types of component types that
2112 are declared outside of the full record declaration, and that may
2113 denote a partial view of that record type.
2114
2115 2004-07-20 Ed Schonberg <schonberg@gnat.com>
2116
2117 PR ada/15607
2118 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
2119 which is the designated type in an access component declaration, to the
2120 list of incomplete dependents of the parent type, to avoid elaboration
2121 issues with out-of-scope subtypes.
2122 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
2123 full view of the parent.
2124
2125 2004-07-20 Ed Schonberg <schonberg@gnat.com>
2126
2127 PR ada/15610
2128 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
2129 entities that are hidden, such as references to generic actuals
2130 outside an instance.
2131
2132 2004-07-20 Javier Miranda <miranda@gnat.com>
2133
2134 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
2135 support to the new notation.
2136 (Analyze_Selected_Component): Add call to Try_Object_Operation.
2137
2138 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
2139
2140 * s-taprob.adb: Adding the elaboration code required for initializing
2141 the tasking soft links that are common to the full and the restricted
2142 run times.
2143
2144 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
2145 restricted run time has been moved to the package
2146 System.Soft_Links.Tasking.
2147
2148 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
2149 restricted run time has been moved to the package
2150 System.Soft_Links.Tasking.
2151
2152 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
2153
2154 * s-solita.ads, s-solita.adb: New files.
2155
2156 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2157
2158 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
2159 Case_Statement_to_gnu): Split off from gnat_to_gnu.
2160 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
2161 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
2162 Exception_Handler_to_gnu_zcx): Likewise.
2163
2164 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
2165
2166 * gigi.h (builtin_function): Declare.
2167
2168 2004-07-15 Robert Dewar <dewar@gnat.com>
2169
2170 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
2171 reformatting
2172
2173 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
2174 access values as an example of a warning.
2175
2176 * gnat_rm.texi: Document new attribute Has_Access_Values
2177
2178 * gnat-style.texi: Document that box comments belong on nested
2179 subprograms
2180
2181 * sem_util.ads (Has_Access_Values): Improved documentation
2182
2183 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
2184
2185 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
2186 (Process_Interface_Name): Call to this new procedure
2187 (Set_Extended_Import_Export_External_Name): Call to this new procedure
2188
2189 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
2190
2191 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
2192
2193 * einfo.ads: Minor comment typo fixed
2194
2195 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
2196
2197 * snames.adb: Add _atcb.
2198
2199 * snames.ads: Add Name_uATCB.
2200
2201 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
2202 (in the expanded code) when using the restricted run time.
2203
2204 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
2205 a in parameter in order to allow ATCBs to be preallocated (in the
2206 expanded code).
2207
2208 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
2209 order to allow ATCBs to be preallocated. In case of error, the ATCB is
2210 deallocated in System.Tasking.Stages.
2211
2212 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
2213 order to allow ATCBs to be preallocated.
2214
2215 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
2216 here. It was previously done in Initialize_ATCB.
2217
2218 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
2219
2220 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
2221 Restricted run time.
2222
2223 * exp_ch3.adb: When using the Restricted run time, pass the
2224 preallocated Ada_Task_Control_Block when creating a task.
2225
2226 2004-07-15 Ed Schonberg <schonberg@gnat.com>
2227
2228 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
2229 function call that is itself an actual in an enclosing call, diagnose
2230 problem here rather than assuming that resolution will catch it.
2231
2232 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
2233 the local copy of a generic unit for a formal package, and the generic
2234 is a child unit, install private part of ancestors before compiling
2235 private part of spec.
2236
2237 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
2238 use scope entities rather than tree structures, to handle properly
2239 parent units that are instances rewritten as bodies for inlining
2240 purposes.
2241
2242 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
2243 Remove_Parents): Handle properly a parent unit that is an
2244 instantiation, when the unit has been rewritten as a body for inlining
2245 purposes.
2246
2247 * par.adb (Goto_List): Global variable to collect goto statements in a
2248 given unit, for use in detecting natural loops.
2249
2250 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
2251 use in detecting natural loops.
2252
2253 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
2254 backwards goto's, and rewrite as a infinite loop, to improve locality
2255 of temporaries.
2256
2257 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
2258 subcomponent that includes an indexed reference, to prevent the
2259 generation of copies that would miscompile the desired assignment
2260 statement.
2261 (Build_Task_Image_Decls): Add a numeric suffix to
2262 generated name for string variable, to avoid spurious conflicts with
2263 the name of the type of a single protected object.
2264
2265 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
2266 loop with an explicit exit statement, to avoid generating an
2267 out-of-range value with 'Succ leading to spurious constraint_errors
2268 when compiling with -gnatVo.
2269
2270 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
2271
2272 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
2273 might not be analyzed yet, even if its Etype is already set (case of an
2274 unchecked conversion built using Unchecked_Convert_To, for example).
2275 If the prefix has already been analyzed, this will be a nop anyway.
2276
2277 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
2278 controller type, or an assignment of a record type with controlled
2279 components, copy only user data, and leave the finalization chain
2280 pointers untouched.
2281
2282 2004-07-15 Vincent Celier <celier@gnat.com>
2283
2284 * make.adb (Collect_Arguments): Improve error message when attempting
2285 to compile a source not part of any project, when -x is not used.
2286
2287 * prj.ads: (Defined_Variable_Kind): New subtype
2288
2289 * prj-attr.adb (Register_New_Package): Two new procedures to register
2290 a package with or without its attributes.
2291 (Register_New_Attribute): Mew procedure to register a new attribute in a
2292 package.
2293 New attribute oriented subprograms: Attribute_Node_Id_Of,
2294 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
2295 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
2296 Next_Attribute.
2297 New package oriented subprograms: Package_Node_Id_Of,
2298 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
2299
2300 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
2301 type.
2302 (Package_Node_Id): Now a private, self initialized type
2303 (Register_New_Package): New procedure to register a package with its
2304 attributes.
2305 New attribute oriented subprograms: Attribute_Node_Id_Of,
2306 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
2307 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
2308 Next_Attribute.
2309 New package oriented subprograms: Package_Node_Id_Of,
2310 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
2311
2312 * prj-dect.adb (Parse_Attribute_Declaration,
2313 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
2314
2315 * prj-makr.adb (Make): Parse existing project file before creating
2316 other files. Fail if there was an error during parsing.
2317
2318 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
2319 new spec of Prj.Attr.
2320
2321 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
2322 to new spec of Prj.Attr.
2323
2324 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2325
2326 * utils2.c: Fix typo in comment.
2327
2328 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2329
2330 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
2331 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
2332
2333 2004-07-14 Andreas Schwab <schwab@suse.de>
2334
2335 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
2336
2337 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2338
2339 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
2340 object type.
2341 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
2342 TYPE_STUB_DECL.
2343
2344 * misc.c (gnat_types_compatible_p): New function.
2345 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
2346 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
2347
2348 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
2349 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
2350 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
2351 (mark_visited): Don't mark dummy type.
2352 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
2353 parameter, we must remove any LJM building from GNU_NAME.
2354 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
2355 (pos_to_constructor): Use int_const_binop.
2356 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
2357 PARM_DECL.
2358
2359 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
2360 (gnat_pushlevel): Set TREE_USE on BLOCK node.
2361 (gnat_install_builtins): Add __builtin_memset.
2362
2363 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
2364
2365 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
2366 for a renaming, stabilize the initialization expression if we are at a
2367 local level. At the local level, uses of the renaming may be performed
2368 by a direct dereference of the initializing expression, and we don't
2369 want possible variables there to be evaluated for every use.
2370
2371 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
2372 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
2373 them on the way. Account for the fact that we may introduce side
2374 effects in the process.
2375
2376 2004-07-13 Richard Henderson <rth@redhat.com>
2377
2378 * misc.c (default_pass_by_ref): Use pass_by_reference.
2379
2380 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
2381
2382 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
2383 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
2384
2385 2004-07-08 Richard Henderson <rth@redhat.com>
2386
2387 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
2388 commentary.
2389
2390 2004-07-06 Vincent Celier <celier@gnat.com>
2391
2392 * vms_conv.ads: Minor reformatting.
2393 Alphabetical order for enumerated values of type Command_Type, to have
2394 the command in alphabetical order for the usage.
2395
2396 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
2397 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
2398
2399 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
2400
2401 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
2402 (Add_Archive_Path): Only add the global archive if there is one.
2403 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
2404 or not any object file to put in the global archive, and don't build
2405 a global archive if there is none.
2406 (X_Switches): New table
2407 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
2408 in the X_Switches table, if any.
2409 (Initialize): Make sure the X_Switches table is empty
2410 (Scan_Arg): Record -X switches in table X_Switches
2411
2412 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
2413
2414 * make.adb: Minor comment fix
2415
2416 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
2417 invoked with directory information, add the directory in front of the
2418 path.
2419
2420 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
2421 invoked with directory information, add the directory in front of the
2422 path.
2423
2424 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
2425 when Keep_Temporary_Files is False.
2426 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
2427 directory information, add the directory in front of the path.
2428 When not on VMS, handle new switch -dn before the command to set
2429 Keep_Temporary_Files to True.
2430 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
2431 everywhere.
2432
2433 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
2434 invoked with directory information, add the directory in front of the
2435 path.
2436
2437 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
2438
2439 * snames.ads, snames.adb (Name_Stub): New name for the distributed
2440 systems annex.
2441
2442 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
2443 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
2444
2445 * g-socket.adb (To_Timeval): Fix incorrect conversion of
2446 Selector_Duration to Timeval for the case of 0.0.
2447
2448 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
2449 documentation from Evolve_And_Then.
2450
2451 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
2452
2453 * s-taprop-tru64.adb, s-taprop-os2.adb,
2454 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
2455
2456 2004-07-06 Robert Dewar <dewar@gnat.com>
2457
2458 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
2459 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
2460 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
2461 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
2462 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
2463 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
2464 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
2465 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
2466 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
2467 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
2468 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
2469 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
2470 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
2471 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
2472 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
2473 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
2474 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
2475 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
2476 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
2477 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
2478 vms_data.ads: Minor reformatting,
2479 Fix bad box comment format.
2480
2481 * gnat_rm.texi: Fix minor grammatical error
2482
2483 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
2484
2485 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
2486 more cases of discriminated records to be recognized as not needing a
2487 secondary stack.
2488 (Has_Access_Values): New function.
2489
2490 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
2491
2492 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
2493 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
2494 with LRM terminology).
2495 Change terminology in comments primitive type => elementary type.
2496
2497 2004-07-06 Ed Schonberg <schonberg@gnat.com>
2498
2499 PR ada/15602
2500 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
2501 parameters do not impose any requirements on the presence of a body.
2502
2503 2004-07-06 Ed Schonberg <schonberg@gnat.com>
2504
2505 PR ada/15593
2506 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
2507 compilation unit and is in an open scope at the point of instantiation,
2508 assume that a body may be present later.
2509
2510 2004-07-06 Ed Schonberg <schonberg@gnat.com>
2511
2512 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
2513 Improve error message when specified size is not supported.
2514
2515 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
2516 is never a primitive operation.
2517
2518 2004-07-05 Andreas Schwab <schwab@suse.de>
2519
2520 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
2521 RECORD_OR_UNION_CHECK.
2522 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
2523
2524 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
2525
2526 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
2527 dependency on xgnatugn, instead build it via a submake.
2528 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
2529
2530 2004-07-04 Richard Henderson <rth@redhat.com>
2531
2532 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
2533
2534 2004-07-01 Richard Henderson <rth@redhat.com>
2535
2536 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
2537 * utils.c (max_size): Likewise.
2538
2539 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2540
2541 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
2542 and rest_of_type_compilation; add arg to create_*_decl.
2543 (annotate_decl_with_node): Deleted.
2544 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
2545 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
2546 (get_current_block_context, gnat_pushdecl): New declarations.
2547 (gnat_init_stmt_group): Likewise.
2548 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
2549 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
2550 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
2551 (gnat_init): Call gnat_init_stmt_group.
2552 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
2553 (gnu_pending_elaboration_list): Deleted.
2554 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
2555 (gigi): Rearrange initialization calls and move some to last above.
2556 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
2557 Delete calls to add_decl_expr; add arg to create_*_decl.
2558 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
2559 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
2560 begin_subprog_body and call it.
2561 Don't push and pop ggc context.
2562 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
2563 (add_stmt): Remove handling of DECL_EXPR from here.
2564 If not in function, mark visited.
2565 (add_decl_expr): Put global at top level.
2566 Check for cases of DECL_INITIAL we have to handle here.
2567 (process_type): Add extra arg to create_type_decl.
2568 (build_unit_elab): Rework to just gimplify.
2569 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
2570 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
2571 (get_pending_elaborations, pending_elaborations_p): Likewise.
2572 (push_pending_elaborations, pop_pending_elaborations): Likewise.
2573 (get_elaboration_location, insert_elaboration_list): Likewise.
2574 (gnat_binding_level): Renamed from ada_binding_level.
2575 (init_gnat_to_gnu): Don't clear pending_elaborations.
2576 (global_bindings_p): Treat as global if no current_binding_level.
2577 (set_current_block_context): New function.
2578 (gnat_pushdecl): Renamed from pushdecl; major rework.
2579 All callers changed.
2580 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
2581 (finish_record_type): Call call pushdecl for stub decl.
2582 (function_nesting_depth): Deleted.
2583 (begin_subprog_body): Delete obsolete code.
2584 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
2585
2586 2004-06-28 Robert Dewar <dewar@gnat.com>
2587
2588 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
2589 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
2590 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
2591 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
2592 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
2593
2594 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
2595 deal with problem of inefficient slices on machines with strict
2596 alignment, when the slice is a component of a composite.
2597
2598 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
2599 machines, we need the check there as well.
2600
2601 2004-06-28 Ed Schonberg <schonberg@gnat.com>
2602
2603 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
2604 determine safe copying direction for overlapping slice assignments
2605 when component is controlled.
2606
2607 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
2608 formal derived type in the actual for a formal package are visible in
2609 the enclosing instance.
2610
2611 2004-06-28 Ed Schonberg <schonberg@gnat.com>
2612
2613 PR ada/15600
2614 * sem_util.adb (Trace_Components): Diagnose properly an illegal
2615 circularity involving a private type whose completion includes a
2616 self-referential component.
2617 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
2618 renaming or an instantiation from an implicit derived operation.
2619
2620 2004-06-28 Pascal Obry <obry@gnat.com>
2621
2622 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
2623 DLL.
2624 (Library_File_Name_For): Idem.
2625
2626 2004-06-28 Matthew Gingell <gingell@gnat.com>
2627
2628 * g-traceb.ads: Add explanatory note on the format of addresses
2629 expected by addr2line.
2630
2631 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
2632
2633 * Makefile.in: Force debugging information on s-tasdeb.adb,
2634 a-except.adb and s-assert.adb needed by the debugger.
2635
2636 2004-06-28 Vincent Celier <celier@gnat.com>
2637
2638 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
2639 Need_To_Build_Lib.
2640 (Gnatmake): Ditto.
2641
2642 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
2643
2644 * prj.adb: Minor reformatting
2645 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
2646
2647 * prj.ads: Comment updates
2648 Minor reformatting
2649 (Project_Data): Change Flag1 to Need_To_Build_Lib.
2650 Remove Flag2: not used.
2651
2652 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
2653 declaration.
2654
2655 * gnat_ugn.texi: Put a "null;" declaration in one project file example
2656
2657 * gnat_rm.texi: Document Empty declarations "null;".
2658
2659 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
2660 front of the linker options.
2661 (Link_Foreign): Put the global archives and the libraries in front of
2662 the linker options.
2663
2664 2004-06-28 Javier Miranda <miranda@gnat.com>
2665
2666 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
2667 (RTU_Loaded): Code cleanup
2668 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
2669 withed predefined units.
2670
2671 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
2672 explicitly withed predefined units.
2673 Fix typo in comment
2674
2675 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
2676 explicitly withed predefined units.
2677
2678 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2679
2680 * ada-tree.def (DECL_STMT): Deleted.
2681 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
2682 (DECL_STMT_VAR): Deleted.
2683 * decl.c: add_decl_stmt now add_decl_expr.
2684 * gigi.h: Likewise.
2685 * trans.c: Likewise.
2686 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
2687 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
2688 (add_stmt): Only handle padded type here.
2689 (add_stmt_with_node): Allow gnat_node to not be present.
2690 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
2691 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
2692 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
2693 make a SAVE_EXPR for the entire fat pointer.
2694 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
2695 (create_index_type): Make a DECL_EXPR.
2696 (end_subprog_body): Don't call allocate_struct_function here but
2697 do clear cfun.
2698
2699 2004-06-25 Pascal Obry <obry@gnat.com>
2700
2701 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
2702 Relocatable from Build_Dynamic_Library call.
2703
2704 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
2705 Relocatable are now synonym.
2706
2707 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
2708
2709 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
2710 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
2711 call.
2712
2713 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
2714 Lib_Address and Relocatable.
2715 (Default_DLL_Address): Removed.
2716
2717 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
2718 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
2719 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
2720 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
2721 (Default_DLL_Address): Removed.
2722
2723 * mlib-tgt-mingw.adb: Ditto.
2724 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
2725
2726 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
2727 the initial thread stack size.
2728
2729 * a-strmap.ads: Move package L to private part as it is not used in
2730 the spec. Found while reading code.
2731
2732 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
2733
2734 * tracebak.c: Introduce support for a GCC infrastructure based
2735 implementation of __gnat_backtrace.
2736
2737 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
2738 any more. Use accessors instead. This eases maintenance and relaxes
2739 some alignment constraints.
2740 (_GNAT_Exception structure): Remove the Ada specific fields
2741 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
2742 a-exexpr.adb.
2743 (is_handled_by, __gnat_eh_personality): Replace component references to
2744 exception structure by use of the new accessors.
2745
2746 * init.c (__gnat_initialize): Adjust comments to match the just
2747 reverted meaning of the -static link-time option.
2748
2749 * adaint.c (convert_addresses): Arrange not to define a stub for
2750 mips-irix any more, as we now want to rely on a real version from a
2751 recent libaddr2line.
2752
2753 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
2754 the personality routine can use them and not have to rely on a C
2755 counterpart of the record anymore. This simplifies maintenance and
2756 relaxes the constraint of having Standard'Maximum_Alignment match
2757 BIGGEST_ALIGNMENT.
2758 Update comments, and add a section on the common header alignment issue.
2759
2760 2004-06-25 Geert Bosch <bosch@gnat.com>
2761
2762 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
2763 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
2764
2765 2004-06-25 Robert Dewar <dewar@gnat.com>
2766
2767 * gnat_rm.texi: Fix section on component clauses to indicate that the
2768 restriction on byte boundary placement still applies for bit packed
2769 arrays.
2770 Add comment on stack usage from Initialize_Scalars
2771
2772 * gnat_ugn.texi: Add documentation for -gnatyLnnn
2773
2774 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
2775 limiting nesting level.
2776
2777 * usage.adb: Add line for -gnatyLnnn switch
2778
2779 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
2780 sem_ch13.adb, exp_aggr.adb: Minor reformatting
2781
2782 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
2783 type as well as on the subtype. This corrects a problem in freeze in
2784 setting alignments of atomic types.
2785
2786 * sem_eval.ads: Minor comment typo fixed
2787
2788 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
2789 level. Minor reformatting.
2790
2791 * fname.adb (Is_Predefined_File_Name): Require a letter after the
2792 minus sign. This means that file names like a--b.adb will not be
2793 considered predefined.
2794
2795 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
2796 record Test new flag and give diagnostic for bad component clause.
2797 (Freeze_Entity): Set alignment of array from component alignment in
2798 cases where this is safe to do.
2799
2800 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
2801 arrays.
2802
2803 * cstand.adb: (Create_Standard): Set alignment of String to 1
2804
2805 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
2806
2807 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
2808 code in the common constrained array cases.
2809
2810 * a-storio.adb: Change implementation to avoid possible alignment
2811 problems on machines requiring strict alignment (data should be moved
2812 as type Buffer, not type Elmt).
2813
2814 * checks.adb (Apply_Array_Size_Check): Improve these checks by
2815 killing the overflow checks which we really do not need (64-bits is
2816 enough).
2817
2818 2004-06-25 Vincent Celier <celier@gnat.com>
2819
2820 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
2821 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
2822 inconditionally for the main project.
2823 (Recursive_Add_Archives.Add_Archive_Path): New procedure
2824 (Link_Executables.Check_Time_Stamps): New procedure
2825 (Link_Executables.Link_Foreign): New procedure
2826 Changes made to reduce nesting level of this package
2827 (Check): New procedure
2828 (Add_Switches): When not in quiet output, check that a switch is not
2829 the concatenation of several valid switches. If it is, issue a warning.
2830 (Build_Global_Archive): If the global archive is rebuilt, linking need
2831 to be done.
2832 (Compile_Sources): Rebuilding a library archive does not imply
2833 rebuilding the global archive.
2834 (Build_Global_Archive): New procedure
2835 (Build_Library): New name for Build_Archive, now only for library
2836 project
2837 (Check_Archive_Builder): New procedure
2838 (Create_Global_Archive_Dependency_File): New procedure
2839 (Gprmake): Call Build_Global_Archive before linking
2840 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
2841 throughout.
2842 (Scan_Arg): Display the Copyright notice when -v is used
2843
2844 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
2845 for gnatls.
2846
2847 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
2848 COMPILE.
2849 Add new GNAT LIST qualifier /FILES=
2850 Added qualifier /DIRECTORY= to GNAT METRIC
2851 Added qualifier /FILES= to GNAT METRIC
2852 Added qualifier /FILES to GNAT PRETTY
2853
2854 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
2855 to take into account both versions of the switch.
2856
2857 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
2858 always be the last switch to the gcc driver. Disable switch storing so
2859 that switches automatically added by the gcc driver are not put in the
2860 ALI file.
2861
2862 * prj.adb (Project_Empty): Take into account changes in components of
2863 Project_Data.
2864
2865 * prj.ads (Languages_Processed): New enumaration value All_Languages.
2866
2867 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
2868 used. Split Boolean component Ada_Sources_Present in two Boolean
2869 components Ada_Sources_Present and Other_Sources_Present.
2870 Minor reformatting
2871
2872 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
2873 instead of Sources_Present.
2874 (Set_Ada_Paths.Add.Recursive_Add): Ditto
2875
2876 * prj-nmsc.adb: Minor reformatting
2877 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
2878 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
2879 Check_Ada_Naming_Scheme.
2880 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
2881 throughout.
2882
2883 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
2884 In_Limited.
2885 Make sure that all cycles where there is at least one "limited with"
2886 are detected.
2887 (Parse_Single_Project): New Boolean parameter In_Limited
2888
2889 * prj-proc.adb (Recursive_Check): When Process_Languages is
2890 All_Languages, call first Prj.Nmsc.Ada_Check, then
2891 Prj.Nmsc.Other_Languages_Check.
2892
2893 * prj-proc.adb (Process): Use Ada_Sources_Present or
2894 Other_Sources_Present (instead of Sources_Present) depending on
2895 Process_Languages.
2896
2897 * lang-specs.h: Keep -g and -m switches in the same order, and as the
2898 last switches.
2899
2900 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
2901 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
2902 False.
2903 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
2904 False.
2905
2906 * lib.ads (Disable_Switch_Storing): New procedure.
2907
2908 * make.adb: Modifications to reduce nesting level of this package.
2909 (Check_Standard_Library): New procedure
2910 (Gnatmake.Check_Mains): New procedure
2911 (Gnatmake.Create_Binder_Mapping_File): New procedure
2912 (Compile_Sources.Compile): Add switch -gnatez as the last option
2913 (Display): Never display -gnatez
2914
2915 * Makefile.generic:
2916 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
2917
2918 * gnatcmd.adb (Check_Project): New function
2919 (Process_Link): New procedure to reduce nesting depth
2920 (Check_Files): New procedure to reduce the nesting depth.
2921 For GNAT METRIC, include the inherited sources in extending projects.
2922 (GNATCmd): When GNAT LS is invoked with a project file and no files,
2923 add the list of files from the sources of the project file. If this list
2924 is too long, put it in a temp text files and use switch -files=
2925 (Delete_Temp_Config_Files): Delete the temp text file that contains
2926 a list of source for gnatpp or gnatmetric, if one has been created.
2927 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
2928 in the project file is too large, create a temporary text file that
2929 list them and pass it to the tool with "-files=<temp text file>".
2930 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
2931
2932 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
2933 generated file is in not in Ada.
2934
2935 * gnatls.adb: Remove all parameters And_Save that are no longer used.
2936 (Scan_Ls_Arg): Add processing for -files=
2937 (Usage): Add line for -files=
2938
2939 * g-os_lib.adb (On_Windows): New global constant Boolean flag
2940 (Normalize_Pathname): When on Windows and the path starts with a
2941 directory separator, make sure that the resulting path will start with
2942 a drive letter.
2943
2944 * clean.adb (Clean_Archive): New procedure
2945 (Clean_Project): When there is non-Ada code, delete the global archive,
2946 the archive dependency files, the object files and their dependency
2947 files, if they exist.
2948 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
2949
2950 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
2951
2952 * sinfo.ads: Fix typo in comment.
2953
2954 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
2955 the TSS for remote access-to-subprogram types, since these TSS are
2956 always present once the type has been analyzed.
2957 (RAS_E_Dereference): Same.
2958
2959 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
2960 reference raises Bad_Attribute, mark the reference as analyzed so the
2961 node (and any children resulting from rewrites that could have occurred
2962 during the analysis that ultimately failed) is not analyzed again.
2963
2964 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
2965
2966 * exp_dist.adb: Minor comment fix.
2967
2968 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
2969 type is an anonymous access type, no unchecked deallocation of the
2970 allocated object can occur. If the object is controlled, attach it with
2971 a count of 1. This allows attachment to the Global_Final_List, if
2972 no other relevant list is available.
2973 (Get_Allocator_Final_List): For an anonymous access type that is
2974 the type of a discriminant or record component, the corresponding
2975 finalisation list is the one of the scope of the type.
2976
2977 2004-06-25 Ed Schonberg <schonberg@gnat.com>
2978
2979 * sem_ch3.adb (Replace_Type): When computing the signature of an
2980 inherited subprogram, use the first subtype if the derived type
2981 declaration has no constraint.
2982
2983 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
2984 before applying previous optimization. Minor code cleanup.
2985
2986 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
2987 placed at the beginning of an unpacked record without explicit
2988 alignment, a slice of it will be aligned and does not need a copy when
2989 used as an actual.
2990
2991 2004-06-25 Ed Schonberg <schonberg@gnat.com>
2992
2993 PR ada/15591
2994 PR ada/15592
2995 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
2996 reference is written with expressions mimicking parameters.
2997
2998 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
2999
3000 PR ada/15589
3001 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
3002 STEP 2a. The constraints of a full type declaration of a derived record
3003 type are checked for conformance with those declared in the
3004 corresponding private extension declaration. The message
3005 "not conformant with previous declaration" is emitted if an error is
3006 detected.
3007
3008 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
3009
3010 * g-traceb.ads: Document the need for -E binder switch in the spec.
3011
3012 * g-trasym.ads: Document the need for -E binder switch in the spec.
3013
3014 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
3015
3016 * sem_prag.adb: Add handling of pragma Detect_Blocking.
3017
3018 * snames.h, snames.ads, snames.adb: Add entry for pragma
3019 Detect_Blocking.
3020
3021 * s-rident.ads: Change reference to pragma Detect_Blocking.
3022
3023 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
3024 system.ads.
3025
3026 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
3027 to indicate whether pragma Detect_Blocking is active.
3028
3029 * par-prag.adb: Add entry for pragma Detect_Blocking.
3030
3031 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
3032 of not handling WITH.
3033 Note that this replaces the previous update which was incorrect.
3034
3035 2004-06-25 Javier Miranda <miranda@gnat.com>
3036
3037 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
3038 use-clauses to have a clean environment.
3039
3040 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
3041 the installation of the use-clauses to stablish a clean environment in
3042 case of compilation of a separate unit; otherwise the call to
3043 use_one_package is protected by the barrier Applicable_Use.
3044
3045 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
3046 the installation of the use-clauses to stablish a clean environment in
3047 case of compilation of a separate unit.
3048 (End_Use_Clauses): Minor comment cleanup.
3049
3050 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
3051
3052 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
3053
3054 2004-06-23 Richard Henderson <rth@redhat.com>
3055
3056 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
3057
3058 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3059
3060 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
3061 now bool instead of int.
3062 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
3063 * trans.c (gnu_switch_label_stack): New function.
3064 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
3065 elaboration of renamed entity returns.
3066 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
3067 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
3068 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
3069 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
3070 DECL_SIZE_UNIT and simplify variable-sized case.
3071 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
3072 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
3073 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
3074 (build_unit_elab): Disable for now.
3075 * utils.c (mark_visited): New function.
3076 (pushdecl): Walk tree to call it for global decl.
3077 (update_pointer_to): Update all variants of pointer and ref types.
3078 Add arg to COMPONENT_REF.
3079 (convert): Likewise.
3080 Move check for converting between variants lower down.
3081 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
3082 (build_allocator): Don't force type of MODIFY_EXPR.
3083 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
3084 put_var_into_stack.
3085
3086 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3087
3088 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
3089 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
3090 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
3091 subprograms.
3092 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
3093 all callers changed.
3094 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
3095 the way that EXIT_STMT finds the loop label.
3096 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
3097 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
3098 (add_stmt): Use annotate_with_locus insted of setting directly.
3099 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
3100 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
3101 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
3102 (build_vms_descriptor): Add extra args to ARRAY_REF.
3103 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
3104 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
3105 New cases.
3106 (build_binary_op): Don't make explicit CONVERT_EXPR.
3107 Add extra rgs to ARRAY_REF.
3108
3109 2004-06-14 Pascal Obry <obry@gnat.com>
3110
3111 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
3112 Windows. Fix minor typo.
3113
3114 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
3115 which is now supported on Windows. With this implementation using the
3116 Library Project feature is no different on Windows than on UNIX.
3117
3118 2004-06-14 Vincent Celier <celier@gnat.com>
3119
3120 * makegpr.adb (Compile_Sources): Nothing to do when there are no
3121 non-Ada sources.
3122
3123 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
3124
3125 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
3126 found, show the project name and the path of the previously parsed
3127 project file.
3128
3129 2004-06-14 Ed Schonberg <schonberg@gnat.com>
3130
3131 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
3132 array, avoid copying the actual before the call.
3133
3134 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
3135
3136 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
3137 Instead, allocate memory on worst-case alignment assumptions, and then
3138 return an aligned address within the allocated zone.
3139
3140 2004-06-14 Robert Dewar <dewar@gnat.com>
3141
3142 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
3143 elab entities in predefined units in No_Run_Time_Mode.
3144 (Gen_Adainit_C): Same fix
3145 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
3146 units in No_Run_Time_Mode
3147 (Gen_Elab_Calls_C): Same fix
3148
3149 * symbols-vms-alpha.adb: Minor reformatting
3150
3151 * g-debpoo.ads: Minor reformatting
3152
3153 * lib.adb (In_Same_Extended_Unit): Version working on node id's
3154
3155 * lib.ads (In_Same_Extended_Unit): Version working on node id's
3156
3157 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
3158 working on nodes.
3159
3160 * make.adb: Minor reformatting
3161
3162 * par-ch12.adb: Minor reformatting
3163
3164 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
3165
3166 * prj-strt.adb: Minor reformatting
3167
3168 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
3169 be more general.
3170
3171 * sem_attr.adb: Minor reformatting
3172
3173 * sem_ch7.adb: Minor reformatting
3174
3175 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
3176 for type in the same unit as the object declaration.
3177
3178 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
3179 static string expressions and not just string literals.
3180 Minor reformatting
3181 (Set_Warning): Reset restriction warning flag for restriction pragma
3182 Implement pragma Profile_Warnings
3183 Implement pragma Profile (Restricted)
3184 Give obolescent messages for old restrictions and pragmas
3185
3186 * snames.h, snames.ads, snames.adb: Add new entry for pragma
3187 Profile_Warnings.
3188
3189 * s-rident.ads: Add declarations for restrictions required by profile
3190 Restricted and profile Ravenscar.
3191
3192 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
3193
3194 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
3195 configuration pragmas.
3196
3197 2004-06-11 Vincent Celier <celier@gnat.com>
3198
3199 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
3200 gnatsym, when symbol policy is Restricted.
3201
3202 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
3203 gnatsym, when symbol policy is Restricted.
3204
3205 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
3206 read the symbol file.
3207 (Finalize): Fail in symbol policy Restricted if a symbol in the original
3208 symbol file is not in the object files. Do not create a new symbol file
3209 when symbol policy is Restricted.
3210
3211 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
3212 in Scng.
3213
3214 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
3215 Restricted.
3216 (Usage): Line for new switch -R
3217
3218 * make.adb (Initialize): When the platform is not VMS, add the
3219 directory where gnatmake is invoked in the front of the path, if
3220 gnatmake is invoked with directory information. Change the Scan_Args
3221 while loop to a for loop.
3222 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
3223 if Depth is equal or greater than the proposed depth, there is nothing
3224 to do.
3225 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
3226 instead of 0.
3227
3228 * prj.ads: Add new symbol policy Restricted.
3229
3230 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
3231 with the new parameters Check_All_Labels and Case_Location.
3232
3233 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
3234 (Library_Symbol_File needs to be defined).
3235
3236 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
3237 and Case_Location If Check_All_Labels is True, check that all values of
3238 the string type are used, and output warning(s) if they are not.
3239
3240 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
3241 and Case_Location.
3242
3243 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
3244
3245 * gnat_ugn.texi: Update documentation about the library directory in
3246 Library Projects.
3247
3248 * makegpr.adb (Display_Command): In verbose mode, also display the
3249 value of the CPATH env var, when the compiler is gcc.
3250 (Initialize): Change the Scan_Args while loop to a for loop
3251 (Compile_Individual_Sources): Change directory to object directory
3252 before compilations.
3253
3254 * symbols.ads: New symbol policy Restricted.
3255
3256 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
3257
3258 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
3259 is now taken care of internally in the Exception_Propagation package
3260 and does not require clients assistance any more.
3261
3262 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
3263 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
3264 functions. Helpers to maintain a predicate required in the handling of
3265 occurrence transfer between tasks.
3266 This is now handled internally and does not require clients assistance
3267 for the setup/propagate separation anymore.
3268 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
3269 allocation strategy, handle the Setup_And_Not_Propagated predicate and
3270 document.
3271
3272 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
3273 raise_after_setup, now that everything is handled internally within the
3274 setup/propagation engine.
3275
3276 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
3277
3278 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
3279 Add additional conditions for the case of an actual being a simple
3280 name or literal. Improve inlining by preventing the generation
3281 of temporaries with a short lifetime (one use).
3282
3283 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
3284
3285 PR ada/15587
3286
3287 * einfo.ads: Minor comment updates for Has_Completion and
3288 E_Constant list of flags.
3289
3290 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
3291 and constant redeclarations now set the Has_Completion flag of their
3292 defining identifiers.
3293
3294 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
3295 Inspect_Deferred_Constant_Completion.
3296 Used to detect private deferred constants that have not been completed
3297 either by a constant redeclaration or pragma Import. Emits error message
3298 "constant declaration requires initialization expression".
3299
3300 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
3301 completes a deferred constant.
3302
3303 2004-06-11 Geert Bosch <bosch@gnat.com>
3304
3305 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
3306
3307 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
3308 calculating exponent for scaling denormal numbers.
3309 (Leading_Part): Properly raise Constraint_Error for zero or negative
3310 Adjustment.
3311 (Remainder): Properly raise Constraint_Error for zero divisor.
3312
3313 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
3314
3315 * sem_util.adb: Minor reformatting.
3316
3317 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
3318 dereference when accessing the entry parameter record.
3319 (Check_Array_Type): Always check for possible implicit dereference.
3320 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
3321 Abort if a pointer is still present (denoting that an implicit
3322 dereference was left in the tree by the front-end).
3323
3324 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
3325 dereference when accessing the entry parameter record.
3326 (Check_Array_Type): Always check for possible implicit dereference.
3327 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
3328 Abort if a pointer is still present (denoting that an implicit
3329 dereference was left in the tree by the front-end).
3330
3331 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
3332
3333 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
3334 message, like the compiler itself does. Easier to parse the output.
3335
3336 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
3337
3338 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
3339 be base names, and not includes directories.
3340
3341 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
3342
3343 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
3344 so that dependencies are properly taken into account by make.
3345
3346 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
3347
3348 PR ada/15622
3349 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
3350 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
3351
3352 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
3353
3354 * Makefile.in (install-gnatlib): install target-specific run-time files.
3355
3356 * Make-lang.in: Remove obsolete targets.
3357
3358 2004-06-11 Ed Schonberg <schonberg@gnat.com>
3359
3360 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
3361 specification, to catch misuses of program unit names.
3362
3363 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
3364 superfluous conversions in an instance.
3365
3366 2004-06-11 Ed Schonberg <schonberg@gnat.com>
3367
3368 PR ada/15403
3369
3370 * sem_ch12.adb (Save_References): If operator node has been folded to
3371 enumeration literal, associated_node must be discarded.
3372
3373 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
3374
3375 * s-stchop-vxworks.adb: Add required pragma Convention to
3376 Task_Descriptor because it is updated by a C function.
3377
3378 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
3379
3380 PR ada/15568
3381
3382 * Makefile.in: Remove target specific SO_OPT on IRIX
3383
3384 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3385
3386 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
3387 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
3388 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
3389 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
3390 (STMT_STMT, USE_STMT): New statement codes.
3391 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
3392 * ada-tree.h: Reflect above changes.
3393 (struct tree_loop_id): Deleted.
3394 (union lang_tree_node, struct lang_decl, struct lang_type):
3395 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
3396 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
3397 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
3398 (IS_ADA_STMT): New macro.
3399 * decl.c (annotate_decl_with_node): New function.
3400 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
3401 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
3402 Call add_stmt_with_node to do needed assignments.
3403 Add call to update setjmp buffer directly, not via EXPR_STMT.
3404 (maybe_variable): Argment GNAT_NODE deleted.
3405 * gigi.h (maybe_variable): Likewise.
3406 (make_transform, add_stmt_with_node, set_block_for_group): New.
3407 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
3408 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
3409 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
3410 (set_lineno, set_lineno_from_sloc): Likewise.
3411 (record_code_position, insert_code_for): Likewise.
3412 (gnat_poplevel): Now returns void.
3413 (end_subprog_body): Now takes argument.
3414 * misc.c (cgraph.h, tree-inline.h): New includes.
3415 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
3416 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
3417 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
3418 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
3419 (gnat_parse_file): Don't set immediate_size_expand.
3420 Call cgraph functions.
3421 (gnat_expand_expr): Remove most cases.
3422 (record_code_position, insert_code_for): Remove from here.
3423 * trans.c (toplev.h, tree-gimple.h): Now included.
3424 (discard_file_names): Deleted.
3425 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
3426 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
3427 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
3428 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
3429 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
3430 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
3431 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
3432 (set_block_for_group, add_stmt_list): Likewise.
3433 (start_stmt_group): Renamed from start_block_stmt.
3434 (end_stmt_group): Likewise, from end_block_stmt.
3435 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
3436 (gigi): Don't set discard_file_names or call set_lineno.
3437 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
3438 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
3439 Numerous changes throughout to reflect new names and complete
3440 function-at-a-time implementation.
3441 (gnat_expand_stmt): Delete or comment out all cases.
3442 (process_inlined_subprograms): Use add_stmt.
3443 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
3444 call set_lineno; also remove unneeded block handling.
3445 (process_type): Remove unneeded block handling.
3446 (build_unit_elab): Remove calls to deleted functions.
3447 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
3448 (tree-dump.h): Likewise.
3449 (struct ada_binding_level): Add field jmpbuf_decl.
3450 (gnat_define_builtin, gnat_install_builtins): New.
3451 (gnat_gimplify_function, gnat_finalize): Likewise.
3452 (gnat_poplevel): No longer return BLOCK, set it instead.
3453 Remove code dealing with nested functions.
3454 (gnat_init_decl_processing): Also set size_type_node.
3455 Call gnat_install_builtins.
3456 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
3457 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
3458 Remove special-case for "main".
3459 (end_subprog_body): Add arg and rework for tree-ssa.
3460 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
3461 Add case for BOOLEAN_TYPE.
3462 * utils2.c (rtl.h): Now include.
3463 (build_call_raise): Test Debug_Flag_NN directly.
3464 (build_call_alloc_dealloc): Don't use local stack allocation for now.
3465 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
3466 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
3467
3468 2004-06-07 Robert Dewar <dewar@gnat.com>
3469
3470 * a-direct.ads, einfo.ads: Minor comment updates
3471
3472 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
3473 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
3474 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
3475 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
3476 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
3477
3478 * s-interr-sigaction.adb: Remove unreferenced variable
3479 (Attached_Interrupts). Minor reformatting.
3480 Avoid use of variable I (replace by J).
3481
3482 * par-ch10.adb: Fix text of one error message
3483
3484 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
3485 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
3486 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
3487 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
3488 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
3489 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
3490 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
3491 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
3492 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
3493 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
3494 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
3495 2005 support.
3496
3497 2004-06-07 Doug Rupp <rupp@gnat.com>
3498
3499 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
3500
3501 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
3502
3503 * mlib-tgt-vms-ia64.adb: New file.
3504
3505 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
3506 Add mlib-tgt-vms-ia64.adb
3507 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
3508 Move to alpha specific ifeq section.
3509 Add VMS specific versions of symbols.adb
3510 Renaming of 5q vms files.
3511
3512 * 5qsystem.ads renamed to system-vms_64.ads.
3513
3514 2004-06-07 Vincent Celier <celier@gnat.com>
3515
3516 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
3517 explain that when a time of day corresponding to the non existing hour
3518 on the day switching to DST is specified, Split may return a different
3519 value for Seconds.
3520
3521 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
3522 to GNAT PRETTY.
3523
3524 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
3525 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
3526
3527 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
3528 to False.
3529 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
3530 the linking options.
3531 (Build_Library.Check_Libs): On VMS, if there is a dependency on
3532 g-trasym.ads, set Gtrasymobj_Needed to True.
3533
3534 * prj-attr.adb: Add new package Metrics for gnatmetric
3535
3536 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
3537 canonical case to take into account files with upper case characters on
3538 Windows.
3539 (Ada_Check): Load the reference symbol file name in the name buffer to
3540 check it, not the symbol file name.
3541
3542 * snames.ads, snames.adb: Add standard name Metrics (name of project
3543 file package for gnatmetric).
3544
3545 * vms_conv.ads: Add Metric to Comment_Type
3546
3547 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
3548
3549 * vms_data.ads: Add qualifiers for GNAT METRIC
3550
3551 * makegpr.adb (Link_Executables): Take into account the switches
3552 specified in package Linker of the main project.
3553
3554 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
3555
3556 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
3557 the index of the last element is Units.Last, not Units.Table'Last
3558 (which is usually not a valid index within the actually allocated
3559 storage for the table).
3560
3561 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
3562 determines whether to generate a call to a checked storage pool
3563 Dereference action.
3564 Generate such a call only for a dereference that either comes from
3565 source, or is the result of rewriting a dereference that comes from
3566 source.
3567
3568 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
3569
3570 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
3571
3572 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
3573
3574 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
3575 file level, elaborate the stride for inner dimensions in alignment
3576 units, not bytes.
3577
3578 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
3579 in a comment.
3580
3581 2004-06-07 Javier Miranda <miranda@gnat.com>
3582
3583 * exp_ch6.adb: Correct wrong modification in previous patch
3584
3585 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
3586
3587 * g-trasym.ads: Corrected comment to properly reflect level of support
3588 on VMS.
3589
3590 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
3591
3592 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
3593 includes case of a variable referenced on the left hand side of an
3594 assignment, therefore remove redundant code. Variables and prefixes of
3595 indexed or selected components are now marked as referenced on left
3596 hand side. Warnings are now properly emitted when variables or prefixes
3597 are assigned but not read.
3598
3599 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
3600 left hand side referenced variables. Private access types do not
3601 produce the warning "variable ... is assigned but never read".
3602 Add also additional checks to left hand side referenced variables.
3603 Aliased, renamed objects and access types do not produce the warning
3604 "variable ... is assigned but never read" since other entities may read
3605 the memory location.
3606
3607 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
3608
3609 * Makefile.in: In the powerpc/vxworks-specific section, restore
3610 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
3611 by mistake).
3612
3613 2004-06-07 Ed Schonberg <schonberg@gnat.com>
3614
3615 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
3616 predefined operators.
3617 Removes spurious type errors from g-trasym-vms.adb.
3618
3619 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
3620 distinct from the operator appearing in the source, call appropriate
3621 routine to insert conversions when needed, and complete resolution of
3622 node.
3623 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
3624 interpretations for rewritten right operand.
3625 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
3626 the other operand is overloaded and the context is a type conversion.
3627
3628 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3629
3630 * ada-tree.def (BLOCK_STMT): Now has two operands.
3631 (BREAK_STMT): New.
3632
3633 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
3634
3635 * gigi.h: (gnat_poplevel): Now returns a tree.
3636
3637 * trans.c (end_block_stmt): Add arg; all callers changed.
3638 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
3639 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
3640 (add_stmt): Set TREE_TYPE.
3641 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
3642 (gnat_expand_stmt, case BREAK_STMT): New case.
3643
3644 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
3645
3646 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
3647
3648 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
3649 procedure Set_Stack_Size that is not needed.
3650
3651 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
3652
3653 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
3654 used for gnatpp input file and for the files upon which it depends
3655
3656 2004-06-07 Ben Brosgol <brosgol@gnat.com>
3657
3658 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
3659
3660 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
3661
3662 * gnatvsn.ads: Bump version numbers appropriately.
3663 Add new build type.
3664
3665 2004-06-07 Pascal Obry <obry@gnat.com>
3666
3667 * gnat_ugn.texi: Improve comments about imported names and link names
3668 on Windows. Add a note about the requirement to use -k gnatdll's option
3669 when working with a DLL which has stripped stdcall symbols (no @nn
3670 suffix).
3671
3672 2004-05-27 Vincent Celier <celier@gnat.com>
3673
3674 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
3675 COMMENTS_LAYOUT=UNTOUCHED
3676
3677 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
3678 symbols-vms-alpha.adb
3679
3680 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
3681
3682 * sem.ads: Clarify documentation on checks suppression.
3683
3684 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
3685
3686 2004-05-27 Ed Schonberg <schonberg@gnat.com>
3687
3688 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
3689 the case of multiple derivations.
3690 (Is_Object_Reference): For a selected component, verify that the prefix
3691 is itself an object and not a value.
3692
3693 * sem_ch12.adb (Same_Instantiated_Constant): New name for
3694 Same_Instantiated_Entity.
3695 (Same_Instantiated_Variable): Subsidiary to
3696 Check_Formal_Package_Instance, to recognize actuals for in-out generic
3697 formals that are obtained from a previous formal package.
3698 (Instantiate_Subprogram_Body): Emit proper error when
3699 generating code and the proper body of a stub is missing.
3700
3701 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
3702 has a universal interpretation, do the disambiguation here.
3703
3704 * exp_ch4.adb (Expand_N_Type_Conversion,
3705 Expand_N_Unchecked_Type_Conversion): Special handling when target type
3706 is Address, to avoid typing anomalies when Address is a visible integer
3707 type.
3708
3709 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
3710 to determine whether a subprogram should not be marked Pure, even when
3711 declared in a pure package.
3712
3713 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
3714
3715 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
3716
3717 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
3718 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
3719 Update the documentation about the Ravenscar profile, following the
3720 definition found in AI-249.
3721
3722 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
3723 setting the Profile (Ravenscar). This must be done in addition to
3724 setting the required restrictions.
3725
3726 * rtsfind.ads: Add the set of operations defined in package
3727 Ada.Interrupts.
3728
3729 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
3730 restriction.
3731
3732 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
3733
3734 lang-specs.h: Always require -c or -S and always redirect to /dev/null
3735 if -gnatc or -gnats is passed.
3736
3737 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
3738
3739 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
3740 a significant reference. Warnings are now properly emitted when a
3741 discriminated type is not referenced.
3742
3743 * lib-xref.adb (Generate_Reference): A deferred constant completion,
3744 record representation clause or record type discriminant does not
3745 produce a reference to its corresponding entity. Warnings are now
3746 properly emitted when deferred constants and record types are not
3747 referenced.
3748
3749 2004-05-27 Geert Bosch <bosch@gnat.com>
3750
3751 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
3752 Fixes ACATS Annex G tests.
3753
3754 2004-05-27 Robert Dewar <dewar@gnat.com>
3755
3756 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
3757 handling WITH
3758
3759 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
3760
3761 * s-interr.adb (Server_Task): Take into account case of early return
3762 from sigwait under e.g. linux.
3763
3764 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
3765
3766 * gnat_ugn.texi: Add description for the new gnatpp options:
3767 -rnb - replace the original source without creating its backup copy
3768 -c0 - do not format comments
3769
3770 2004-05-24 Geert Bosch <bosch@gnat.com>
3771
3772 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
3773 with 192 bits of precision, sufficient to reduce a double-extended
3774 arguments X with a maximum relative error of T'Machine_Epsilon, for X
3775 in -2.0**32 .. 2.0**32.
3776 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
3777 reduction by the processor, which only uses a 68-bit approximation of
3778 Pi.
3779 (Tan): Always reduce arguments and compute function either using
3780 the processor's fptan instruction, or by dividing sin and cos as needed.
3781
3782 2004-05-24 Doug Rupp <rupp@gnat.com>
3783
3784 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
3785 gcc error on 32/64 bit VMS.
3786
3787 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
3788
3789 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
3790 since this is what we get for stack overflows although not documented
3791 as such.
3792 Document the issues which may require adjustments to our signal
3793 handlers.
3794
3795 2004-05-24 Ed Schonberg <schonberg@gnat.com>
3796
3797 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
3798 enclosing dynamic scope if the instantiation is within a generic unit.
3799
3800 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
3801
3802 * exp_dbug.ads: Fix typo.
3803
3804 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
3805 Rename it to its proper name: system-linux-ia64.ads
3806 (stamp-gnatlib1): Remove extra target specific run time files when
3807 setting up the rts directory.
3808
3809 2004-05-24 Javier Miranda <miranda@gnat.com>
3810
3811 * einfo.ads, einfo.adb (Limited_Views): Removed.
3812 (Limited_View): New attribute that replaces the previous one. It is
3813 now a bona fide package with the limited-view list through the
3814 first_entity and first_private attributes.
3815
3816 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
3817 limited-private-with clause.
3818 (Install_Limited_Withed_Unit): Install the private declarations of a
3819 limited-private-withed package. Update the installation of the shadow
3820 entities according to the new structure (see Build_Limited_Views)
3821 (Build_Limited_Views): Replace the previous implementation of the
3822 limited view by a package entity that references the first shadow
3823 entity plus the first shadow private entity (required for limited-
3824 private-with clause)
3825 (New_Internal_Shadow_Entity): Code cleanup.
3826 (Remove_Limited_With_Clause): Update the implementation to undo the
3827 new work carried out by Build_Limited_Views.
3828 (Build_Chain): Complete documentation.
3829 Replace Ada0Y by Ada 0Y in comments
3830 Minor reformating
3831
3832 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
3833 types the level of accessibility depends on the enclosing type
3834 declaration.
3835
3836 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
3837 entities. Complete documentation of previous change.
3838
3839 2004-05-24 Robert Dewar <dewar@gnat.com>
3840
3841 * namet.adb: Minor reformatting
3842 Avoid use of name I (replace by J)
3843 Minor code restructuring
3844
3845 * sem_ch6.adb: Minor reformatting
3846
3847 * lib-writ.adb: Do not set restriction as active if this is a
3848 Restriction_Warning case.
3849
3850 * sem_prag.adb: Reset restriction warning flag if real pragma
3851 restriction encountered.
3852
3853 * s-htable.adb: Minor reformatting
3854 Change rotate count to 3 in Hash (improves hash for small strings)
3855
3856 * 5qsystem.ads: Add comments for type Address (no literals allowed).
3857
3858 * gnat_ugn.texi: Add new section of documentation "Code Generation
3859 Control", which describes the use of -m switches.
3860
3861 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
3862
3863 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
3864 through the DECL_INITIAL for renamed variables.
3865
3866 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
3867
3868 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
3869
3870 2004-05-19 Joel Brobecker <brobecker@gnat.com>
3871
3872 * exp_dbug.ads: Correct comments concerning handling of overloading,
3873 since we no longer use $ anymore.
3874
3875 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
3876
3877 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
3878 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
3879 with illegal subunits.
3880
3881 2004-05-19 Ed Schonberg <schonberg@gnat.com>
3882
3883 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
3884 body with front-end inlining enabled, check whether an inline pragma
3885 appears immediately after the body and applies to it.
3886
3887 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
3888 enabled and the pragma appears after the body of the subprogram.
3889
3890 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3891
3892 Part of function-at-a-time conversion
3893
3894 * misc.c (adjust_decl_rtl): Deleted.
3895 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
3896 Define.
3897
3898 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
3899 (add_decl_stmt, add_stmt, block_has_vars): New functions.
3900 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
3901
3902 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
3903 when making a decl.
3904 (gnat_to_gnu_entity): Likewise.
3905 Use add_stmt to update setjmp buffer.
3906 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
3907 flush_addressof.
3908 No longer call adjust_decl_rtl.
3909 (DECL_INIT_BY_ASSIGN_P): New macro.
3910 (DECL_STMT_VAR): Likewise.
3911
3912 * trans.c (gigi): Call start_block_stmt to make the outermost
3913 BLOCK_STMT.
3914 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
3915 Call start_block_stmt and end_block_stmt temporarily.
3916 Use gnat_expand_stmt instead of expand_expr_stmt.
3917 (add_decl_stmt): New function.
3918 (tree_transform): Call it.
3919 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
3920 (end_block_stmt): Set type and NULL_STMT.
3921 (gnat_expand_stmt): Make recursize call instead of calling
3922 expand_expr_stmt.
3923 (gnat_expand_stmt, case DECL_STMT): New case.
3924 (set_lineno_from_sloc): Do nothing if global.
3925 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
3926 (start_block_stmt, add_stmt, end_block_stmt): New functions.
3927 (build_block_stmt): Call them.
3928 (gnat_to_code): Don't expand NULL_STMT.
3929 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
3930 args.
3931 (tree_transform): Likewise.
3932 (tree_transform, case N_Null_Statement): Return NULL_STMT.
3933 (gnat_expand_stmt, case NULL_STMT): New case.
3934 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
3935 IF_STMT_TRUE.
3936
3937 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
3938 TREE_ADDRESSABLE.
3939
3940 * utils.c (create_var_decl): Do not call expand_decl or
3941 expand_decl_init.
3942 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
3943 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
3944 here.
3945 (struct e_stack): Add chain_next to GTY.
3946 (struct binding_level): Deleted.
3947 (struct ada_binding_level): New struct.
3948 (free_block_chain): New.
3949 (global_binding_level, clear_binding_level): Deleted.
3950 (global_bindings_p): Rework to see if no chain.
3951 (kept_level_p, set_block): Deleted.
3952 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
3953 new data structure and work directly on BLOCK node.
3954 (gnat_poplevel): Similarly.
3955 (get_decls): Look at BLOCK_VARS.
3956 (insert_block): Work directly on BLOCK node.
3957 (block_has_var): New function.
3958 (pushdecl): Rework for new binding structures.
3959 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
3960 poplevel.
3961 (build_subprog_body): Likewise.
3962 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
3963
3964 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
3965
3966 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
3967 (DECL_STMT_VAR): Likewise.
3968
3969 2004-05-17 Robert Dewar <dewar@gnat.com>
3970
3971 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
3972 procedure
3973
3974 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
3975 of restriction synonyums by using
3976 Restrict.Process_Restriction_Synonyms.
3977
3978 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
3979
3980 * s-restri.ads (Tasking_Allowed): Correct missing comment
3981
3982 * s-rident.ads: Add entries for restriction synonyms
3983
3984 * ali.adb: Fix some problems with badly formatted ALI files that can
3985 result in infinite loops.
3986
3987 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
3988 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
3989 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
3990 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
3991 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
3992 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
3993 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
3994 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
3995 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
3996 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
3997 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
3998 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
3999 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
4000 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
4001 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
4002 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
4003 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
4004 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
4005 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
4006 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
4007 to Task_Id (minor cleanup).
4008
4009 2004-05-17 Vincent Celier <celier@gnat.com>
4010
4011 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
4012 directory separator.
4013
4014 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
4015 project being extended, if Languages is not declared in extending
4016 project.
4017
4018 2004-05-17 Javier Miranda <miranda@gnat.com>
4019
4020 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
4021 limited view of a visible sibling.
4022
4023 2004-05-14 Robert Dewar <dewar@gnat.com>
4024
4025 * gnat_ugn.texi: Minor change to -gnatS documentation
4026
4027 * sprint.adb: Remove some instances of Assert (False) and for this
4028 purpose replace them by output of a ??? string.
4029
4030 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
4031 Assert (False).
4032
4033 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
4034 flag processing. This was suppressing required dependencies in
4035 No_Run_Time mode and is not needed since the binder does not generate
4036 references for things in libgnat anyway.
4037
4038 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
4039 warning.
4040
4041 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
4042
4043 * gnat_ugn.texi: Document AIX-specific issue with initialization of
4044 resolver library.
4045
4046 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
4047 action for the case of an actual parameter in an init proc call.
4048
4049 2004-05-14 Ed Schonberg <schonberg@gnat.com>
4050
4051 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
4052 subtype, check visible entities in base type.
4053
4054 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
4055 actions if the object is a renaming.
4056
4057 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
4058 Check_Formal_Package_Instance, to determine more precisely when the
4059 formal and the actual denote the same entity.
4060
4061 2004-05-14 Javier Miranda <miranda@gnat.com>
4062
4063 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
4064
4065 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
4066 corresponding to a private_with must be removed from visibility; it
4067 will be made visible later, just before we analyze the private part of
4068 the package.
4069 (Check_Private_Child_Unit): Allow private_with clauses in public
4070 siblings.
4071 (Install_Siblings): Make visible the private entities of private-withed
4072 siblings.
4073 (Install_Withed_Unit): Do not install the private withed unit if we
4074 are compiling a package declaration and the Private_With_OK flag was
4075 not set by the caller. These declarations will be installed later,
4076 just before we analyze the private part of the package.
4077
4078 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
4079 during the evaluation of the expression that initializes the object,
4080 decorate it with the expected type to avoid cascade errors.
4081 Code cleanup.
4082
4083 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
4084 subprogram we have to install the private_with clauses after its
4085 specification has been analyzed (as documented in AI-262.TXT).
4086
4087 * sem_ch8.adb (Has_Private_With): New function. Determines if the
4088 current compilation unit has a private with on a given entity.
4089 (Find_Direct_Name): Detect the Beaujolais problem described in
4090 AI-262.TXT
4091
4092 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
4093 provides the functionality of the function Is_Ancestor that was
4094 previously available in sem_ch10. It has been renamed to avoid
4095 overloading.
4096
4097 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
4098
4099 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4100
4101 * utils.c (build_vms_descriptor): Use SImode pointers.
4102
4103 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
4104
4105 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
4106
4107 2004-05-14 GNAT Script <nobody@gnat.com>
4108
4109 * Make-lang.in: Makefile automatically updated
4110
4111 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
4112
4113 Renaming of target specific files for clarity
4114
4115 * Makefile.in: Rename GNAT target specific files.
4116
4117 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
4118 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
4119 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
4120 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
4121 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
4122 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
4123 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
4124 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
4125 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
4126 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
4127 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
4128 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
4129 51osinte.adb, 51osinte.ads, 51system.ads,
4130 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
4131 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
4132 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
4133 56tpopsp.adb, 57system.ads, 58system.ads,
4134 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
4135 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
4136 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
4137 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
4138 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
4139 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
4140 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
4141 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
4142 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
4143 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
4144 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
4145 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
4146 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
4147 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
4148 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
4149 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
4150 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
4151 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
4152 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
4153 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
4154 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
4155 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
4156 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
4157 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
4158 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
4159 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
4160 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
4161 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
4162 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
4163 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
4164 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
4165 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
4166 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
4167 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
4168 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
4169 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
4170 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
4171 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
4172 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
4173 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
4174
4175 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
4176 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
4177 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
4178 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
4179 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
4180 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
4181 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
4182 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
4183 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
4184 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
4185 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
4186 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
4187 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
4188 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
4189 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
4190 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
4191 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
4192 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
4193 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
4194 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
4195 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
4196 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
4197 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
4198 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
4199 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
4200 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
4201 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
4202 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
4203 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
4204 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
4205 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
4206 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
4207 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
4208 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
4209 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
4210 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
4211 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
4212 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
4213 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
4214 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
4215 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
4216 s-osinte-vms.ads, s-osinte-vxworks.adb,
4217 s-osinte-vxworks.ads, s-osprim-mingw.adb,
4218 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
4219 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
4220 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
4221 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
4222 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
4223 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
4224 s-stchop-vxworks.adb, s-taprop-dummy.adb,
4225 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
4226 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
4227 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
4228 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
4229 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
4230 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
4231 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
4232 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
4233 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
4234 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
4235 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
4236 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
4237 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
4238 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
4239 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
4240 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
4241 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
4242 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
4243 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
4244 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
4245 system-irix-o32.ads, system-linux-x86_64.ads,
4246 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
4247 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
4248 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
4249 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
4250 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
4251 system-vxworks-mips.ads, system-vxworks-ppc.ads,
4252 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
4253 above.
4254
4255 2004-05-13 Zack Weinberg <zack@codesourcery.com>
4256
4257 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
4258
4259 2004-05-13 Diego Novillo <dnovillo@redhat.com>
4260
4261 Merge from tree-ssa-20020619-branch.
4262
4263 * config-lang.in (boot_language, build_by_default): Set
4264 to no.
4265 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
4266 (max_size): Add static chain op for call_expr.
4267
4268 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
4269
4270 PR target/15331
4271 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
4272
4273 2004-05-11 Roger Sayle <roger@eyesopen.com>
4274
4275 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
4276 COND_EXPR.
4277
4278 2004-05-10 Doug Rupp <rupp@gnat.com>
4279
4280 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
4281 system.aux_dec.
4282
4283 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
4284
4285 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
4286
4287 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
4288 Fixes undefined symbols in IA64 gnatlib.
4289
4290 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
4291
4292 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
4293 Short_Address). This will be moved to system.auxdec.
4294
4295 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
4296
4297 * sem_util.adb: Replace test for presence of a node that is always
4298 present with a call to Discard_Node.
4299
4300 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
4301 Analyze on the library unit node after generation of distribution stub
4302 constructs. The call was a no-op because Unit_Node has already been
4303 Analyzed, and the tree fragments for the distribution stubs are
4304 analyzed as they are inserted in Exp_Dist.
4305 Update comment regarding to distribution stubs to reflect that we
4306 do not generate stub in separate files anymore.
4307
4308 * einfo.ads: Clarify the fact that a tagged private type has the
4309 E_Record_Type_With_Private Ekind.
4310
4311 * erroutc.adb: Minor reformatting
4312
4313 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
4314 values if line length is increased using -gnatyM (noticed during code
4315 reading).
4316
4317 * eval_fat.adb: Minor reformatting
4318 Put spaces around exponentiation operator
4319
4320 2004-05-10 Ed Schonberg <schonberg@gnat.com>
4321
4322 PR ada/15005
4323 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
4324 has been rewritten as an explicit dereference, retrieve type of
4325 original node to check for possibly unconstrained record type.
4326
4327 2004-05-10 Ed Schonberg <schonberg@gnat.com>
4328
4329 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
4330 overriding, use the operation of the parent unconditionally.
4331
4332 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
4333 operation when either operand is a literal, to avoid further
4334 ambiguities.
4335
4336 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
4337 overridden by a previous explicit declaration, mark the previous entity
4338 as overriding.
4339
4340 * sem_disp.adb (Check_Dispatching_Operation): New predicate
4341 Is_Visibly_Controlled, to determine whether a declaration of a
4342 primitive control operation for a derived type overrides an inherited
4343 one. Add warning if the explicit declaration does not override.
4344
4345 2004-05-10 Vincent Celier <celier@gnat.com>
4346
4347 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
4348 some cases when the sources are no longer present.
4349
4350 * make.adb (Collect_Arguments): Fail if an external source, not part
4351 of any project need to be compiled, when switch -x has not been
4352 specified.
4353
4354 * makeusg.adb: Document new switch -x
4355
4356 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
4357 defaulted to False.
4358
4359 * switch-m.adb (Scan_Make_Switches): New switch -x
4360
4361 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
4362 gnatmake switch -x.
4363
4364 * gnat_ugn.texi: Document new gnatmake switch -x
4365
4366 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
4367
4368 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
4369
4370 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
4371 (process_attributes): Likewise.
4372
4373 2004-05-10 Joel Brobecker <brobecker@gnat.com>
4374
4375 * s-inmaop.ads: Fix spelling mistake in one of the comments.
4376
4377 2004-05-10 Robert Dewar <dewar@gnat.com>
4378
4379 * gnat_ugn.texi: Document that for config pragma files, the maximum
4380 line length is always 32767.
4381
4382 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
4383 literals is now allowed.
4384
4385 * gnat-style.texi: Remove statement about splitting long lines before
4386 an operator rather than after, since we do not follow this rule at all.
4387 Clarify rule (really lack of rule) for spaces around exponentiation
4388
4389 * sem_elim.adb: Allow concatenation of string literals as well as a
4390 single string literal for pragma arguments.
4391
4392 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
4393
4394 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
4395 written for append case.
4396
4397 * frontend.adb: Changes to avoid checking max line length in config
4398 pragma files.
4399
4400 * g-os_lib.ads: Minor reformatting
4401
4402 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
4403 wrong in any case. Instead use standard value. Noticed during code
4404 reading.
4405
4406 * opt.ads (Max_Line_Length): New field, used to implement removal of
4407 limitation on length of lines when scanning config pragma files.
4408
4409 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
4410 makeutl.ads, makeutl.adb: Minor reformatting
4411
4412 * scn.adb: Do not check line length while scanning config pragma files
4413 Do not check line length while scanning out license information
4414
4415 * scng.adb: Changes to avoid line length checks while parsing config
4416 pragma files.
4417
4418 2004-05-10 GNAT Script <nobody@gnat.com>
4419
4420 * Make-lang.in: Makefile automatically updated
4421
4422 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
4423
4424 * osint.adb (Find_Program_Name): Fix handling of VMS version
4425 number.
4426
4427 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
4428
4429 * g-os_lib.ads (Invalid_Time): New constant
4430
4431 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
4432 return OS_Time instead of time_t to match what is imported by Ada.
4433 Now return -1 if the file doesn't exist, instead of a random value
4434
4435 2004-05-05 Robert Dewar <dewar@gnat.com>
4436
4437 * usage.adb: Add line for -gnatR?s switch
4438
4439 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
4440
4441 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
4442 and for Match (Data_First, Data_last)
4443
4444 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
4445 written when we are dealing with multi-unit files.
4446
4447 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
4448
4449 * Makefile.in: Remove unused targets and variables.
4450
4451 2004-05-05 Vincent Celier <celier@gnat.com>
4452
4453 * switch-m.adb: New gnatmake switch -eI
4454
4455 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
4456 of new gnatmake switch -eInnn.
4457
4458 * makegpr.adb: Take into account new parameters Index and Src_Index in
4459 Prj.Util.
4460
4461 * clean.adb: Implement support for multi-unit sources, including new
4462 switch -i.
4463
4464 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
4465 Src_Index.
4466
4467 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
4468 (Extract_From_Q): New out parameter Index
4469 (Mark, Is_Marked): Subprograms moved to Makeutl
4470 (Switches_Of): New parameter Source_Index
4471 (Add_Switch): New parameter Index
4472 (Check): New parameter Source_Index
4473 (Collect_Arguments): New parameter Source_Index
4474 (Collect_Arguments_And_Compile): New parameter Source_Index
4475 (Compile): New parameter Source_Index
4476 Put subprograms in alphabetical order
4477 Add support for multi-source sources, including in project files.
4478
4479 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
4480 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
4481 Make.
4482
4483 * makeusg.adb: New gnatmake switch -eInnn
4484
4485 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
4486 Prj.Util.Value_Of.
4487
4488 * opt.ads (Main_Index): New variable, defaulted to 0.
4489
4490 * osint.ads, osinte.adb (Add_File): New parameter Index
4491 (Current_Source_Index): New function
4492
4493 * prj.adb: Take into account new components Index and Src_Index
4494
4495 * prj.ads (String_Element): New component Index
4496 (Variable_Value): New component Index
4497 (Array_Element): New component Src_Index
4498
4499 * prj-attr.adb: Indicate that optional index may be specified for
4500 attributes Main, Executable, Spec, Body and some of Switches.
4501
4502 * prj-attr.ads (Attribute_Kind): New values for optional indexes
4503 (Attribute_Record): New component Optional_Index
4504
4505 * prj-com.ads (File_Name_Data): New component Index
4506
4507 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
4508
4509 * prj-env.adb (Put): Output optional index
4510
4511 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
4512 attributes Spec and Body.
4513
4514 * prj-nmsc.adb: Process optional indexes
4515
4516 * prj-pp.adb: Ouput "at" for optional indexes
4517
4518 * prj-proc.adb: Take into account optional indexes
4519
4520 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
4521 Optional_Index. For string literal,
4522 process optional index when Optional_Index is True.
4523 (Parse_Expresion): New Boolean parameter Optional_Index
4524
4525 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
4526 (Set_Source_Index_Of): New procedure
4527
4528 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
4529 index.
4530
4531 * prj-util.ads (Executable_Of): New parameter Index
4532 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
4533 New parameter Src_Index, defaulted to 0.
4534
4535 2004-05-05 Ed Schonberg <schonberg@gnat.com>
4536
4537 PR ada/15257
4538 * sem_ch3.adb (Access_Definition): If this is an access parameter
4539 whose designated type is imported through a limited_with clause, do
4540 not add the enclosing subprogram to the list of private dependents of
4541 the type.
4542
4543 2004-05-05 Ed Schonberg <schonberg@gnat.com>
4544
4545 PR ada/15258
4546 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
4547 a limited_with clause, and the other is its non-limited view.
4548
4549 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
4550
4551 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
4552
4553 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
4554 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
4555 Stand.Boolean_Literals to produce references to entities
4556 Standard_False and Standard_True from compile-time computed boolean
4557 values.
4558
4559 * stand.ads (Boolean_Literals): New variable, provides the entity
4560 values for False and True, for use by the expander.
4561
4562 2004-05-05 Doug Rupp <rupp@gnat.com>
4563
4564 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
4565 5vinmaop.adb: Unchecked convert Short_Address vice Address
4566
4567 * adaint.c, raise.c: Caste CRTL function return value
4568 to avoid gcc error on 32/64 bit IVMS.
4569
4570 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
4571 target = IA64/VMS.
4572
4573 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
4574
4575 * 5qsystem.ads (Address): Declare as Long_Integer
4576 (Short_Address): Declare as 32 bit subtype of Address
4577 Declare abstract address operations to avoid gratuitous ambiguities.
4578
4579 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
4580
4581 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
4582 instead of the old Boolean_Entry_Barriers.
4583 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
4584
4585 2004-05-05 GNAT Script <nobody@gnat.com>
4586
4587 * Make-lang.in: Makefile automatically updated
4588
4589 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
4590
4591 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
4592
4593 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
4594
4595 PR ada/15152
4596
4597 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
4598 alone. Replacing object references by literals is inappropriate in a
4599 so low level context.
4600
4601 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
4602
4603 * a-exexpr.adb: Add comments
4604
4605 2004-05-03 Joel Brobecker <brobecker@gnat.com>
4606
4607 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
4608 declare the Ancestor_Tags array in Type_Specific_Data with a small size
4609 without risking a bounds check error when accessing one of its
4610 components.
4611 (Type_Specific_Data): Define Ancestor_Tags as a small array.
4612 This prevents us from hitting a limitation during the debug info
4613 generation when using stabs.
4614
4615 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
4616 small array.
4617 This prevents us from hitting a limitation during the debug info
4618 generation when using stabs.
4619
4620 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
4621
4622 lang-specs.h: Remove -gnatz* from specs.
4623
4624 2004-05-03 Vincent Celier <celier@gnat.com>
4625
4626 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
4627
4628 * Make-lang.in, Makefile.in: Add gprmake
4629
4630 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
4631
4632 * sem_aggr.adb: Fix typo in comment.
4633
4634 2004-05-03 Robert Dewar <dewar@gnat.com>
4635
4636 * make.adb: Minor reformatting
4637
4638 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
4639
4640 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
4641 so that it works when address is not a private type.
4642
4643 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
4644 properly with rewritten unchecked conversions. This prevents
4645 order-of-elaboration issues that can otherwise arise.
4646 (Minimum_Size): Don't check size of access types under VMS
4647
4648 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
4649 interpretations of integer literals as type System.Address.
4650
4651 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
4652 (Is_Descendent_Of): New function
4653
4654 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
4655
4656 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
4657 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
4658 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
4659
4660 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
4661 of the old Max_Entry_Queue_Depth.
4662
4663 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
4664 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
4665 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
4666
4667 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
4668 New entry for proper handling of Max_Entry_Queue_Depth.
4669 New entry for proper handling of No_Dynamic_Interrupts.
4670
4671 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
4672 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
4673 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
4674 the GNAT specific restriction Max_Entry_Queue_Depth.
4675 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
4676 the GNAT specific restriction No_Dynamic_Interrupts.
4677
4678 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
4679 instead of the old Boolean_Entry_Barriers.
4680 Use the new restriction No_Dynamic_Attachment instead of the old
4681 No_Dynamic_Interrupts.
4682
4683 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
4684 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
4685
4686 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
4687 of the old Max_Entry_Queue_Depth.
4688
4689 2004-05-03 GNAT Script <nobody@gnat.com>
4690
4691 * Make-lang.in: Makefile automatically updated
4692
4693 2004-04-29 Ed Schonberg <schonberg@gnat.com>
4694
4695 * checks.adb (Enable_Range_Check): If the prefix of an index component
4696 is an access to an unconstrained array, perform check unconditionally.
4697
4698 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4699
4700 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
4701 Component_Clause.
4702
4703 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
4704
4705 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
4706 alternate stack setting. There was no support for the tasking cases
4707 and the changes eventually caused a number of side-effect failures in
4708 the non-tasking case too.
4709
4710 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
4711
4712 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
4713 -gnats is passed.
4714
4715 2004-04-29 Vincent Celier <celier@gnat.com>
4716
4717 * make.adb (Gnatmake): Increase max size of argument array for
4718 gnatbind for the potential addition of -F.
4719 If there are Stand-Alone Library projects, invoke gnatbind with -F to
4720 be sure that elaboration flags will be checked.
4721
4722 * switch-c.adb: Correct call to Scan_Pos for -gnateI
4723
4724 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
4725
4726 * sem_warn.adb (Check_References): Move '<access-variable> may be
4727 null' warning out of under Warn_On_No_Value_Assigned.
4728
4729 2004-04-29 Ed Falis <falis@gnat.com>
4730
4731 * gnat_ugn.texi: Fixed texi error
4732
4733 2004-04-29 Robert Dewar <dewar@gnat.com>
4734
4735 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
4736 abstract operations if they come from predefined files.
4737
4738 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
4739 Dynamic, not RM).
4740
4741 * s-addope.adb: Correct obvious error in mod function
4742
4743 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
4744
4745 * Makefile.in: Add target pairs for powerpc darwin*
4746 tasking support.
4747
4748 * a-intnam-darwin.ads, s-osinte-darwin.adb,
4749 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
4750
4751 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
4752
4753 * Makefile.in: Add target macro definitions for s390*-linux*.
4754 * system-linux-s390.ads: New file.
4755 * system-linux-s390x.ads: New file.
4756
4757 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
4758
4759 * gnat_ugn.texi: Correct argument to @setfilename.
4760
4761 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
4762
4763 * a-exexpr.adb (Unwind_Word): New data type.
4764 (Unwind_Exception): Use it as type of Private1 and Private2.
4765
4766 * raise.c (db_action_for): Fix debug printf.
4767
4768 2004-04-27 Ed Schonberg <schonberg@gnat.com>
4769
4770 * a-wtmoio.ads: Formal type must be a modular type, not a signed
4771 integer type.
4772
4773 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4774
4775 * decl.c (gnat_to_gnu_entity, case object): Call
4776 __builtin_update_setjmp_buf.
4777
4778 * gigi.h (update_setjmp_buf): Deleted.
4779 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
4780
4781 * misc.c: (update_setjmp_buf): Deleted.
4782
4783 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
4784 around block of RTL.
4785
4786 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
4787
4788 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
4789
4790 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
4791 subprogram for which no pragma All_Calls_Remote applies, store the
4792 address of the real subprogram in the underlying record type, so local
4793 dereferences do not go through the PCS.
4794
4795 2004-04-26 Robert Dewar <dewar@gnat.com>
4796
4797 * i-c.ads: Add some type qualifications to avoid ambiguities when
4798 compiling with s-auxdec.ads and a non-private address type.
4799
4800 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
4801
4802 * Makefile.rtl: Fix error in previous check-in:
4803 Add s-addope.o to non tasking object list (rather than tasking object
4804 list).
4805
4806 2004-04-26 Javier Miranda <miranda@gnat.com>
4807
4808 * sem_aggr.adb: Fix typo in comments
4809 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
4810 Required to check the null-exclusion attribute.
4811
4812 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
4813 case of anonymous access types in record and array components. For a
4814 component definition the level is the same of the enclosing composite
4815 type.
4816
4817 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
4818 that are anonymous access types the level of accessibility depends on
4819 the enclosing type declaration. In order to have this information, set
4820 the scope of the anonymous access type to the enclosing record type
4821 declaration.
4822 (Array_Type_Declaration): In case of components that are anonymous
4823 access types the level of accessibility depends on the enclosing type
4824 declaration. In order to have this information, set the scope of the
4825 anonymous access type to the enclosing array type declaration.
4826
4827 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
4828 access type.
4829
4830 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
4831 renaming of anonymous access-to-constant types allowed if and only if
4832 the renamed object is access-to-constant.
4833
4834 * sem_util.adb (Type_Access_Level): In case of anonymous access types
4835 that are component_definition or discriminants of a nonlimited type,
4836 the level is the same as that of the enclosing component type.
4837
4838 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
4839
4840 * sem_elim.adb: Some minor code reorganization from code reading. Fix
4841 misprint in the function name (File_Name_Match).
4842
4843 2004-04-23 Laurent GUERBY <laurent@guerby.net>
4844
4845 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
4846 install.
4847
4848 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4849
4850 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
4851
4852 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
4853
4854 * adaint.c (__gnat_try_lock): No longer requires that the parent
4855 directory be writable, the directory itself is enough.
4856 (gnat_is_absolute_path): Change profile, so that the call from
4857 GNAT.OS_Lib can be made more efficient.
4858
4859 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
4860 from GNAT.OS_Lib can be made more efficient.
4861
4862 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
4863 one copy of the file name. Found by code reading.
4864
4865 2004-04-23 Vincent Celier <celier@gnat.com>
4866
4867 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
4868 Correct documentation on gnatmake switches transmitted to the compiler
4869
4870 * ali.ads: Minor comment fix
4871
4872 2004-04-23 Javier Miranda <miranda@gnat.com>
4873
4874 * sem_ch6.adb: (Confirming Types): Code cleanup
4875
4876 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
4877 subprogram types: E_Anonymous_Access_Subprogram_Type and
4878 E_Anonymous_Access_Protected_Subprogram_Type.
4879
4880 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
4881
4882 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
4883 whether a pragma All_Calls_Remote applies to the subprogram on which
4884 'Access is taken.
4885 No functional change is introduced by this revision; the new parameter
4886 will be used to allow calls to local RCI subprograms to be optimized
4887 to not use the PCS in the case where no pragma All_Calls_Remote applies,
4888 as is already done in the PolyORB implementation of the DSA.
4889
4890 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
4891 whether a pragma All_Calls_Remote applies to the subprogram on which
4892 'Access is taken.
4893 No functional change is introduced by this revision; the new parameter
4894 will be used to allow calls to local RCI subprograms to be optimized
4895 to not use the PCS in the case where no pragma All_Calls_Remote applies,
4896 as is already done in the PolyORB implementation of the DSA.
4897
4898 2004-04-23 Robert Dewar <dewar@gnat.com>
4899
4900 * Makefile.rtl: Add entry for s-addope.o in run time library list
4901 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
4902 * s-addope.ads, s-addope.adb: New files.
4903
4904 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
4905 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
4906 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
4907 System.Address to be non-private and signed.
4908
4909 * sem_elim.adb: Minor reformatting (fairly extensive)
4910 Some minor code reorganization from code reading
4911 Add a couple of ??? comments
4912
4913 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4914
4915 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
4916 (tree_transform, case N_If_Statement): Remove non-determinism.
4917
4918 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
4919
4920 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
4921
4922 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
4923 Eliminate' section.
4924
4925 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
4926 no longer used as a parameter name for Eliminate pragma).
4927
4928 2004-04-22 Laurent GUERBY <laurent@guerby.net>
4929
4930 PR optimization/14984
4931 PR optimization/14985
4932 * trans.c (gigi): Fix non determinism leading to bootstrap
4933 comparison failures.
4934
4935 2004-04-21 Pascal Obry <obry@gnat.com>
4936
4937 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
4938 passed to spawnvp() to properly handle program pathname with spaces on
4939 Win32.
4940
4941 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
4942
4943 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
4944 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
4945 unlocked in case of exceptions.
4946
4947 2004-04-21 Joel Brobecker <brobecker@gnat.com>
4948
4949 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
4950 This function does not exist anymore.
4951
4952 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
4953
4954 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
4955
4956 * link.c: Move variables to the __gnat name space.
4957
4958 * Makefile.in: list link.o explicitly when needed.
4959
4960 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
4961
4962 2004-04-21 Javier Miranda <miranda@gnat.com>
4963
4964 * einfo.adb (Original_Access_Type): New subprogram
4965 (Set_Original_Access_Type): New subprogram
4966 (Write_Field21_Name): Write the name of the new field
4967
4968 * einfo.ads (Original_Access_Type): New field present in access to
4969 subprogram types.
4970 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
4971 E_Anonymous_Access_Protected_Subprogram_Type.
4972
4973 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
4974 subprogram types.
4975
4976 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
4977 to anonymous access to subprogram types.
4978
4979 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
4980 to subprogram types.
4981
4982 * sem_ch3.adb (Access_Definition): Complete decoration of entities
4983 corresponding to anonymous access to subprogram types.
4984 (Analyze_Component_Declaration): Add new actual to the call to
4985 subprogram replace_anonymous_access_to_protected_subprogram.
4986 (Array_Type_Declaration): Add new actual to the call to subprogram
4987 replace_anonymous_access_to_protected_subprogram.
4988 (Process_Discriminants): Add new actual to the call to subprogram
4989 replace_anonymous_access_to_protected_subprogram.
4990 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
4991
4992 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
4993 formal.
4994
4995 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
4996 access to subprogram types.
4997
4998 * sem_util.adb (Has_Declarations): Addition of package_specification
4999 nodes.
5000
5001 2004-04-21 Ed Schonberg <schonberg@gnat.com>
5002
5003 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
5004 inlined flags to renamed entity only if in current unit.
5005
5006 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
5007
5008 * s-parint.ads: Add DSA implementation marker.
5009
5010 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
5011 value of System.Partition_Interface.DSA_Implementation to determine
5012 what version of the distributed systems annex is available (no
5013 implementation, GLADE, or PolyORB).
5014
5015 2004-04-21 Joel Brobecker <brobecker@gnat.com>
5016
5017 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
5018
5019 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5020
5021 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
5022 with new type if alias sets differ.
5023 Fixes ACATS c41103b.
5024
5025 2004-04-21 Vincent Celier <celier@gnat.com>
5026
5027 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
5028 Add array Lang_Args for the language specific compiling argument
5029 switches.
5030
5031 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
5032
5033 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
5034
5035 * gnat_rm.texi: Update the descripton of the Eliminate pragma
5036 according to the recent changes in the format of the parameters of the
5037 pragma (replacing Homonym_Number with Source_Location).
5038
5039 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
5040
5041 * 5isystem.ads: Removed, unused.
5042
5043 * gnat_rm.texi: Redo 1.13 change.
5044
5045 2004-04-19 Robert Dewar <dewar@gnat.com>
5046
5047 * s-stoele.ads: Clean up definition of Storage_Offset (the new
5048 definition is cleaner, avoids the kludge of explicit Standard operator
5049 references, and also is consistent with a visible System.Address with
5050 no visible operations.
5051
5052 * s-geveop.adb: Add declarations to avoid assumption of visible
5053 operations on type System.Address (since these might not be available
5054 if Address is a non-private type for which the operations
5055 are made abstract).
5056
5057 * sem_eval.adb: Minor reformatting
5058
5059 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
5060 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
5061 reformatting (new function spec format).
5062
5063 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
5064 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
5065 s-caun64.adb: Add declarations to avoid assumption of visible
5066 operations on type System.Address (since these might not be available
5067 if Address is a non-private type for which the operations are made
5068 abstract).
5069
5070 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
5071
5072 * exp_intr.adb: Minor comment update
5073
5074 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
5075
5076 * 5omastop.adb: Add declarations to avoid assumption of visible
5077 operations on type System.Address (since these might not be available
5078 if Address is a non-private type for which the operations
5079 are made abstract).
5080
5081 2004-04-19 Vincent Celier <celier@gnat.com>
5082
5083 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
5084
5085 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
5086 defaulted to Ada.
5087
5088 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
5089 defaulted to Ada.
5090 Call Check with Process_Languages.
5091 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
5092 with Process_Languages.
5093 (Recursive_Check): New Boolean parameter Process_Languages. Call
5094 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
5095 Process_Languages.
5096
5097 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
5098
5099 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
5100 parameter Ada_Main, defaulted to True.
5101 Check for Ada specific characteristics only when Ada_Main is True.
5102
5103 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
5104
5105 * prj.adb: (Project_Empty): Add new Project_Data components.
5106
5107 * prj.ads: New types and tables for non Ada languages.
5108 (Project_Data): New components Languages, Impl_Suffixes,
5109 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
5110 Include_Path, Include_Data_Set.
5111
5112 * prj-env.ads, prj-env.adb: Minor reformatting
5113
5114 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
5115 Put subprograms in alphabetical order
5116
5117 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
5118 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
5119 Opt.Follow_Links.
5120
5121 * mlib-prj.adb: Back out modification in last version, as they are
5122 incorrect.
5123 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
5124
5125 * make.adb: (Mains): Moved to package Makeutl
5126 (Linker_Opts): Moved to package Makeutl
5127 (Is_External_Assignment): Moved to package Makeutl
5128 (Test_If_Relative_Path): Moved to package Makeutl
5129 (Gnatmake): Move sorting of linker options to function
5130 Makeutl.Linker_Options_Switches.
5131
5132 * makeutl.ads, makeutl.adb: New files.
5133
5134 * Makefile.in: Add makeutl.o to the object files for gnatmake
5135
5136 * makeusg.adb: Add line for new switch -eL.
5137
5138 * gnatls.adb (Image): New function.
5139 (Output_Unit): If in verbose mode, output the list of restrictions
5140 specified by pragmas Restrictions.
5141
5142 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
5143 Text_IO.
5144
5145 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
5146 needed, to put it in the range 1970 (included) - 2026 (excluded).
5147 (Time_Of): Do not shift Unix_Min_Year (1970).
5148 Shift the date by multiple of 56 years, if needed, to put it in the
5149 range 1970 (included) - 2026 (excluded).
5150
5151 * adaint.h, adaint.c (__gnat_set_executable): New function.
5152
5153 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5154
5155 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
5156 and pop GC context.
5157 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
5158 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
5159 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
5160 (tree_transform, case N_Code_Statement): Likewise.
5161 (gnat_expand_stmt, case LABEL_STMT): Don't look at
5162 LABEL_STMT_FIRST_IN_EH.
5163 (gnat_expand_stmt, case ASM_STMT): New case.
5164
5165 * utils2.c (build_unary_op): Properly set TREE_READONLY of
5166 UNCONSTRAINED_ARRAY_REF.
5167
5168 * utils.c (poplevel): Temporarily push/pop GC context around inline
5169 function expansion.
5170
5171 * decl.c (maybe_variable): Properly set TREE_READONLY of
5172 UNCONSTRAINED_ARRAY_REF.
5173 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
5174
5175 * ada-tree.def: (ASM_STMT): New.
5176
5177 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
5178 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
5179 ASM_STMT_INPUT): New.
5180 (ASM_STMT_CLOBBER): Likewise.
5181
5182 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
5183
5184 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
5185 general rcheck mechanism to raise Program_Error for E.4(18), instead
5186 of a custom raiser in System.Partition_Interface.
5187 Part of general cleanup work before PolyORB integration.
5188
5189 * snames.ads, snames.adb: Add new runtime library entities and names
5190 for PolyORB DSA.
5191
5192 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
5193 exp_dist.
5194 (Build_Subprogram_Id): New subprogram provided by exp_dist
5195 Code reorganisation in preparation for PolyORB integration.
5196
5197 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
5198 exp_dist.
5199 (Build_Subprogram_Id): New subprogram provided by exp_dist
5200
5201 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
5202 actual parameter types for call to dereference of an
5203 access-to-subprogram type.
5204
5205 * rtsfind.ads: Add new runtime library entities and names for PolyORB
5206 DSA.
5207
5208 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
5209 instead, which has the same behaviour here since we never pass it a
5210 NULL pointer.
5211
5212 * link.c (run_path_option, Solaris case): Use -Wl, as for other
5213 platforms.
5214
5215 * Makefile.in: adjust object file lists for gnatlink and gnatmake
5216 to account for new dependency upon Interfaces.C.Strings + link.o
5217 For x86 FreeBSD, use 86numaux.
5218
5219 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
5220 from Mlib.Tgt to Mlib.
5221
5222 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
5223 target-independent.
5224
5225 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
5226 target-specific versions of this subprogram, now implemented as a
5227 target-independent function in Mlib.
5228
5229 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
5230 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
5231 (Linker_Library_Path_Option): Remove target-specific versions of this
5232 subprogram, now implemented as a target-independent function in Mlib.
5233
5234 * atree.adb: (Allocate_Initialize_Node): New subprogram.
5235 Factors out node table slots allocation.
5236 (Fix_Parents): New subprogram.
5237 Encapsulate the pattern of fixing up parent pointers for syntactic
5238 children of a rewritten node.
5239 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
5240 (Rewrite): Use New_Copy when creating saved copy of original node.
5241 (Replace): Use Copy_Node to copy nodes.
5242
5243 2004-04-19 Javier Miranda <miranda@gnat.com>
5244
5245 * sprint.adb (Sprint_Node_Actual): Give support to the new
5246 Access_To_Subprogram node available in Access_Definition nodes. In
5247 addition, give support to the AI-231 node fields: null-exclusion,
5248 all-present, constant-present.
5249
5250 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
5251
5252 * sinfo.ads, sinfo.adb:
5253 New field Access_To_Subprogram_Definition in Access_Definition nodes
5254
5255 * sem_ch6.adb (Process_Formals): Move here the code that creates and
5256 decorates internal subtype declaration corresponding to the
5257 null-excluding formal. This code was previously in Set_Actual_Subtypes.
5258 In addition, carry out some code cleanup on this code. In case of
5259 access to protected subprogram call
5260 Replace_Anonymous_Access_To_Protected_Subprogram.
5261 (Set_Actual_Subtypes): Code cleanup.
5262
5263 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
5264 Find_Type in case of anonymous access renamings. Add warning in case of
5265 null-excluding attribute used in anonymous access renaming.
5266
5267 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
5268 subprogram
5269
5270 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
5271 subprogram.
5272 (Access_Definition): In case of anonymous access to subprograms call
5273 the corresponding semantic routine to decorate the node.
5274 (Access_Subprogram_Declaration): Addition of some comments indicating
5275 some code that probably should be added here. Detected by comparison
5276 with the access_definition subprogram.
5277 (Analyze_Component_Declaration): In case of access to protected
5278 subprogram call Replace_Anonymous_Access_To_Protected.
5279 (Array_Type_Declaration): In case of access to protected subprogram call
5280 Replace_Anonymous_Access_To_Protected_Subprogram.
5281 (Process_Discriminants): In case of access to protected subprogram call
5282 Replace_Anonymous_Access_To_Protected_Subprogram.
5283
5284 * par.adb (P_Access_Definition): New formal that indicates if the
5285 null-exclusion part was present.
5286 (P_Access_Type_Definition): New formal that indicates if the caller has
5287 already parsed the null-excluding part.
5288
5289 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
5290 (P_Identifier_Declarations): Code cleanup and give support to renamings
5291 of anonymous access to subprogram types.
5292 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
5293 (P_Array_Type_Definition): Give support to AI-254.
5294 (P_Component_Items): Give support to AI-254.
5295 (P_Access_Definition): New formal that indicates if the header was
5296 already parsed by the caller.
5297 (P_Access_Type_Definition): New formal that indicates if the caller has
5298 already parsed the null-excluding part.
5299
5300 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
5301 call to P_Access_Definition.
5302
5303 2004-04-19 Geert Bosch <bosch@gnat.com>
5304
5305 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
5306 the delicate semantics of floating-point to integer conversion.
5307 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
5308
5309 * eval_fat.adb (Machine_Mantissa): Moved to spec.
5310 (Machine_Radix): New function.
5311
5312 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
5313 conversion checks.
5314 (Machine_Radix): New function also for use in conversion checks.
5315
5316 2004-04-19 Ed Schonberg <schonberg@gnat.com>
5317
5318 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
5319
5320 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
5321 to decorate the access-to-protected subprogram and the equivalent type.
5322
5323 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
5324 to anonymous access to subprogram types.
5325
5326 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
5327 constant-folding, for legality checks in contexts that require an RM
5328 static expression.
5329
5330 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
5331 temporary but stack checking is not enabled, increment serial number
5332 to so that symbol generation is consistent with and without stack
5333 checking.
5334
5335 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
5336 independent on whether stack checking is enabled, caller must check
5337 the corresponding flag.
5338
5339 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
5340 range checks.
5341 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
5342 parent if it has discriminants.
5343 (Build_Derived_Private_Type): Constructed full view does
5344 not come from source.
5345 (Process_Discriminants): Default discriminants on a tagged type are
5346 legal if this is the internal completion of a private untagged
5347 derivation.
5348
5349 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
5350 no constraint checks, because it corresponds to an existing object.
5351
5352 * sem_prag.adb (Process_Convention): Pragma applies
5353 only to subprograms in the same declarative part, i.e. the same unit,
5354 not the same scope.
5355
5356 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
5357 ignore type mismatch on a numeric conversion if expression comes from
5358 expansion.
5359
5360 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
5361
5362 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
5363 Homonym_Number parameter, add processing for Source_Location parameter
5364 corresponding.
5365 (Check_Eliminated): Remove the check for homonym numbers, add the check
5366 for source location traces.
5367
5368 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
5369 with Arg_Source_Location corresponding to the changes in the format of
5370 the pragma.
5371
5372 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
5373 Eliminate pragma corresponding to the changes in the format of the
5374 pragma: Homonym_Number is replaced with Source_Location, two ways of
5375 distinguishing homonyms are mutially-exclusive.
5376
5377 2004-04-19 Joel Brobecker <brobecker@gnat.com>
5378
5379 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
5380
5381 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
5382 No_Dollar_In_Label, no longer necessary, as it is always True.
5383 (Strip_Suffixes): Likewise.
5384
5385 2004-04-19 Gary Dismukes <dismukes@gnat.com>
5386
5387 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
5388 modulus for compatibility with size clause on targets with 16-bit
5389 Integer.
5390
5391 * layout.adb (Discrimify): In the case of private types, set Vtyp to
5392 full type to fix type mismatches on calls to size functions for
5393 discriminant-dependent array components.
5394
5395 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
5396
5397 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
5398 lib.
5399
5400 2004-04-19 Pascal Obry <obry@gnat.com>
5401
5402 * mdll-utl.adb (Locate): New version is idempotent.
5403
5404 2004-04-17 Laurent Guerby <laurent@guerby.net>
5405
5406 PR ada/14988 (partial)
5407 * impunit.adb: Fix typo.
5408
5409 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
5410
5411 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
5412 and install-rts-cert targets. Remove all gnatlib and gnattools
5413 targets and all other rts-* targets (moved to libada). Remove (now)
5414 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
5415 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
5416
5417 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5418
5419 * trans.c (tree_transform): Shortcut returning error_mark_node for
5420 statements in annotate_only_mode.
5421 (tree_transform, case N_Label, case N_Return_Statement,
5422 N_Goto_Statement): Make statement tree instead of generating code.
5423 (tree_transform, case N_Assignment_Statement): No longer check
5424 type_annotate_only.
5425 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
5426 RETURN_STMT): New.
5427 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
5428 New fcns.
5429 (gnat_to_gnu): Collect any RTL generated and deal with it.
5430 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
5431 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
5432 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
5433
5434 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
5435
5436 * ada-tree.def (EXPR_STMT): Fix typo in name.
5437 (BLOCK_STMT, IF_STMT): New nodes.
5438
5439 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
5440 LABEL_STMT_FIRST_IN_EH): New macros.
5441 (RETURN_STMT_EXPR): Likewise.
5442
5443 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
5444 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
5445
5446 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
5447
5448 * atree.ads: Correct documentation on extended nodes.
5449
5450 * link.c: Set run_path_option for FreeBSD.
5451
5452 2004-04-08 Vincent Celier <celier@gnat.com>
5453
5454 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
5455 one of the ALI file, do not link with DEC lib.
5456
5457 * par.adb Remove the last two characters ("%s" or "%b") when checking
5458 if a language defined unit may be recompiled.
5459
5460 2004-04-08 Ed Schonberg <schonberg@gnat.com>
5461
5462 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
5463 removal of abstract operation leaves no possible interpretation for
5464 expression.
5465
5466 * sem_eval.adb (Eval_Qualified_Expression): Use
5467 Set_Raises_Constraint_Error on node when needed, so that it does not
5468 get optimized away by subsequent optimizations.
5469
5470 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
5471 operands even when they are not wrapped in a type conversion.
5472
5473 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
5474
5475 * sem_prag.adb (Set_Exported): Warn about making static as result of
5476 export only when the export is coming from source. This may be not
5477 be true e.g. on VMS where we expand export pragmas for exception codes
5478 together with imported or exported exceptions, and we don't want the
5479 user to be warned about something he didn't write.
5480
5481 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
5482
5483 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
5484 duplication between normal entities and those declared as renamings.
5485 No functional change.
5486
5487 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
5488 inline functions returning an unconstrained result.
5489
5490 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
5491
5492 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
5493 conform to what other front-ends do.
5494
5495 2004-04-08 Doug Rupp <rupp@gnat.com>
5496
5497 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
5498 libraries.
5499
5500 2004-04-06 Pascal Obry <obry@gnat.com>
5501
5502 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
5503
5504 * osint.adb (Program_Name): Do not look past a directory separator.
5505
5506 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
5507
5508 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
5509
5510 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
5511 requirement for preserving a copy of the original assignment node.
5512
5513 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
5514
5515 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
5516
5517 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
5518 when supported.
5519
5520 2004-04-06 Ed Schonberg <schonberg@gnat.com>
5521
5522 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
5523 operator calls in functional notation, and apply
5524 Universal_Interpretation to operands, not to their type.
5525
5526 2004-04-06 Robert Dewar <dewar@gnat.com>
5527
5528 * 5wdirval.adb: Minor reformatting
5529
5530 2004-04-06 Ed Falis <falis@gnat.com>
5531
5532 * gnat_rm.texi: Improve a reference to the GCC manual
5533
5534 2004-04-05 Vincent Celier <celier@gnat.com>
5535
5536 * adaint.h, adaint.c: Add function __gnat_named_file_length
5537
5538 * impunit.adb: Add Ada.Directories to the list
5539
5540 * Makefile.in: Add VMS and Windows versions of
5541 Ada.Directories.Validity package body.
5542
5543 * Makefile.rtl: Add a-direct and a-dirval
5544
5545 * mlib-tgt.ads: Minor comment update.
5546
5547 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
5548 a-direct.ads, a-direct.adb: New files.
5549
5550 2004-04-05 Vincent Celier <celier@gnat.com>
5551
5552 PR ada/13620
5553 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
5554 just to the compiler.
5555
5556 2004-04-05 Robert Dewar <dewar@gnat.com>
5557
5558 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
5559 returned string is 1.
5560
5561 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
5562
5563 * eval_fat.ads: Minor reformatting
5564
5565 * g-curexc.ads: Document that lower bound of returned string values
5566 is always one.
5567
5568 * gnatlink.adb: Add ??? comment for previous change
5569 (need to document why this is VMS specific)
5570
5571 * s-stoele.ads: Minor reformatting
5572
5573 * tbuild.ads: Minor reformatting throughout (new function specs)
5574
5575 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
5576 after WITH.
5577
5578 * scng.adb: Minor reformatting
5579
5580 2004-04-05 Geert Bosch <bosch@gnat.com>
5581
5582 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
5583 (Leading_Part): Still perform truncation to machine number if the
5584 specified radix_digits is greater or equal to machine_mantissa.
5585
5586 2004-04-05 Javier Miranda <miranda@gnat.com>
5587
5588 * par-ch3.adb: Complete documentation of previous change
5589 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
5590 (aliased must appear before constant).
5591
5592 * par-ch4.adb: Complete documentation of previous change.
5593
5594 * par-ch6.adb: Complete documentation of previous change.
5595
5596 * sinfo.ads: Fix typo in commment.
5597
5598 2004-04-05 Ed Schonberg <schonberg@gnat.com>
5599
5600 * sem_ch3.adb (Inherit_Components): If derived type is private and has
5601 stored discriminants, use its discriminants to constrain parent type,
5602 as is done for non-private derived record types.
5603
5604 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
5605 Ada 2005 AI-310: an abstract non-dispatching operation is not a
5606 candidate interpretation in an overloaded call.
5607
5608 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
5609 expression is Null and target type is not an access type (e.g. a
5610 non-private address type).
5611
5612 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
5613
5614 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
5615 statement whose right-hand side is an inlined call, save a copy of the
5616 original assignment subtree to preserve enough consistency for
5617 Analyze_Assignment to proceed.
5618
5619 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
5620 complete assignment subtree which is now unnecessary, as the expansion
5621 of inlined call has been improved to preserve a consistent assignment
5622 tree. Note_Possible_Modification must be called only
5623 after checks have been applied, or else unnecessary checks will
5624 be generated.
5625
5626 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
5627 of explicit dereferences that do not Come_From_Source:
5628 - be selective on cases where we must go back to the dereferenced
5629 pointer (an assignment to an implicit dereference must not be
5630 recorded as modifying the pointer);
5631 - do not rely on Original_Node being present (Analyze_Assignment
5632 calls Note_Possible_Modification on a copied tree).
5633
5634 * sem_warn.adb (Check_References): When an unset reference to a pointer
5635 that is never assigned is encountered, prefer '<pointer> may be null'
5636 warning over '<pointer> is never assigned a value'.
5637
5638 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
5639
5640 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
5641 the ABI.
5642
5643 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
5644
5645 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
5646 libexc. We currently don't reference anything in this library and
5647 linking it in triggers linker warnings we don't want to see.
5648
5649 * init.c: Update comments.
5650
5651 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5652
5653 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
5654 * utils.c (create_field_decl): Likewise.
5655 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
5656
5657 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
5658
5659 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
5660 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
5661 Add info directory entry and category.
5662
5663 2004-04-02 Jan Hubicka <jh@suse.cz>
5664
5665 * utils.c: Include function.h
5666 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
5667
5668 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
5669
5670 PR ada/14150
5671 * Make-lang.in: Clean up generation of documentation
5672
5673 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
5674
5675 * xgnatug.adb: Removed, replaced by xgnatugn.adb
5676
5677 * xgnatugn.adb: Replaces xgnatug.adb
5678
5679 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
5680
5681 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
5682
5683 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
5684 gnat_ug_wnt.texi: Removed.
5685
5686 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
5687
5688 * utils2.c: Update copyright notice.
5689
5690 2004-04-01 Robert Dewar <dewar@gnat.com>
5691
5692 * checks.adb: Minor reformatting throughout
5693 Note that prev checkin added RM reference to alignment warning
5694
5695 2004-04-01 Ed Schonberg <schonberg@gnat.com>
5696
5697 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
5698 non-static when building aggregate for bit-packed array.
5699
5700 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
5701 function call that is itself the actual in a procedure call, build
5702 temporary for it.
5703
5704 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
5705 a string literal, create a temporary for it, constant folding only
5706 handles scalars here.
5707
5708 2004-04-01 Vincent Celier <celier@gnat.com>
5709
5710 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
5711 Error_Msg_SP): New empty procedures to instantiate the Scanner.
5712 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
5713 tokens.
5714 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
5715 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
5716 and get the checksum.
5717
5718 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
5719 already in the Q.
5720 Increase the Marking_Label at the end of the Multiple_Main_Loop,
5721 instead of at the beginning.
5722
5723 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
5724 directly.
5725 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
5726 on VMS.
5727
5728 * osint.ads (Multi_Unit_Index_Character): New Character global variable
5729
5730 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
5731 not '~' directly.
5732
5733 * par.adb: Remove test on file name to detect language defined units.
5734 Add test on unit name, after parsing, to detect language defined units
5735 that are not compiled with -gnatg (except System.RPC and its children)
5736
5737 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
5738 following units without style checking.
5739
5740 * switch-c.adb: Change -gnatC to -gnateI
5741
5742 * usage.adb: Document new switch -gnateInnn
5743
5744 * scng.adb (Accumulate_Token_Checksum): New procedure
5745 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
5746 word or literal number.
5747 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
5748 numbers.
5749
5750 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
5751
5752 * a-tasatt.adb,
5753 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
5754 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
5755 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
5756 5vtpopde.adb: Add missing 'constant' keywords.
5757
5758 2004-04-01 Javier Miranda <miranda@gnat.com>
5759
5760 * par-ch4.adb: (P_Allocator): Code cleanup
5761
5762 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
5763 attribute.
5764
5765 * sinfo.ads: Complete documentation of previous change
5766
5767 2004-04-01 Pascal Obry <obry@gnat.com>
5768
5769 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
5770 only on VMS. This special handling was done because an old GNU/ld bug
5771 on Windows which has been fixed.
5772
5773 2004-04-01 GNAT Script <nobody@gnat.com>
5774
5775 * Make-lang.in: Makefile automatically updated
5776
5777 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5778
5779 * decl.c (gnat_to_gnu_entity, make_type_from_size):
5780 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
5781 * trans.c (tree_transform, convert_with_check): Likewise.
5782 * utils.c (gnat_signed_or_unsigned_type): Likewise.
5783 (build_vms_descriptor, unchecked_convert): Likewise.
5784 * utils2.c (nonbinary_modular_operation): Likewise.
5785
5786 2004-03-29 Javier Miranda <miranda@gnat.com>
5787
5788 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
5789 (Install_Null_Excluding_Check): Local subprogram that determines whether
5790 an access node requires a runtime access check and if so inserts the
5791 appropriate run-time check.
5792 (Apply_Access_Check): Call Install_Null_Excluding check if required
5793 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
5794
5795 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
5796
5797 * einfo.ads: Fix typo in comment
5798
5799 * exp_ch3.adb (Build_Assignment): Generate conversion to the
5800 null-excluding type to force the corresponding run-time check.
5801 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
5802 type to force the corresponding run-time check.
5803
5804 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
5805 the null-excluding type to force the corresponding run-time check.
5806
5807 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
5808 case of access types unless they have the null-excluding attribute.
5809
5810 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
5811 part.
5812
5813 * exp_util.ads: Fix typo in comment
5814
5815 * par.adb (P_Null_Exclusion): New subprogram
5816 (P_Subtype_Indication): New formal that indicates if the null-excluding
5817 part has been scanned-out and it was present
5818
5819 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
5820
5821 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
5822 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
5823 type to force the corresponding run-time check
5824 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
5825 components
5826 (Resolve_Array_Aggregate): Carry out some static checks
5827 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
5828
5829 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
5830 attribute must be set only if specified by means of the null-excluding
5831 part. In addition, we must also propagate the access-constant attribute
5832 if present.
5833 (Access_Subprogram_Declaration, Access_Type_Declaration,
5834 Analyze_Component_Declaration, Analyze_Object_Declaration,
5835 Array_Type_Declaration, Process_Discriminants,
5836 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
5837 and carry out some static checks.
5838 (Build_Derived_Access_Type): Set the null-excluding attribute
5839 (Derived_Type_Declaration, Process_Subtype): Carry out some static
5840 checks.
5841
5842 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
5843
5844 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
5845
5846 * sem_ch6.adb (Process_Formals): Carry out some static checks.
5847 (Set_Actual_Subtypes): Generate null-excluding subtype if the
5848 null-excluding part was present; it is not required to be done here in
5849 case of anonymous access types.
5850 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
5851 value.
5852
5853 * sem_res.adb (Resolve_Actuals): Carry out some static check
5854 (Resolve_Null): Allow null in anonymous access
5855
5856 * sinfo.adb: New subprogram Null_Exclusion_Present
5857 All_Present and Constant_Present available on access_definition nodes
5858
5859 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
5860 object_declaration, derived_type_definition, component_definition,
5861 discriminant_specification, access_to_object_definition,
5862 access_function_definition, allocator, access_procedure_definition,
5863 access_definition, parameter_specification, All_Present and
5864 Constant_Present flags available on access_definition nodes.
5865
5866 2004-03-29 Robert Dewar <dewar@gnat.com>
5867
5868 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
5869 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
5870 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
5871 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
5872 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
5873 sem_prag.adb: Updates to handle multiple units/file
5874
5875 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
5876
5877 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
5878 sem_util.adb: Minor reformatting
5879
5880 * sem_ch12.adb: Add comment for previous change
5881
5882 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
5883
5884 * osint.adb (Executable_Prefix): Set Exec_Name to the current
5885 executable name when not initialized. Otherwise, use its current value.
5886
5887 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
5888 initialize it to another executable name than the current one. This
5889 allows to configure paths for an executable name (gnatmake) different
5890 from the current one (gnatdist).
5891
5892 2004-03-29 Ed Schonberg <schonberg@gnat.com>
5893
5894 * exp_ch6.adb (Expand_Call): A call to a function declared in the
5895 current unit cannot be inlined if it appears in the body of a withed
5896 unit, to avoid order of elaboration problems in gigi.
5897
5898 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
5899 information for protected (wrapper) operation as well, to simplify gdb
5900 use.
5901
5902 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
5903 protected body, indicate that the entity for the generated spec comes
5904 from source, to ensure that references are properly generated for it.
5905 (Build_Body_To_Inline): Do not inline a function that returns a
5906 controlled type.
5907
5908 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
5909 apply convention to homonyms that are declared explicitly.
5910
5911 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
5912 that renames an equality operator and the operands are overloaded,
5913 resolve them with the declared formal types, before rewriting as an
5914 operator.
5915
5916 2004-03-29 GNAT Script <nobody@gnat.com>
5917
5918 * Make-lang.in: Makefile automatically updated
5919
5920 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
5921
5922 * memtrack.adb: Log realloc calls, which are treated as free followed
5923 by alloc.
5924
5925 2004-03-25 Vincent Celier <celier@gnat.com>
5926
5927 * prj-makr.adb (Process_Directories): Detect when a file contains
5928 several units. Do not include such files in the config pragmas or
5929 in the naming scheme.
5930
5931 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
5932 Resolve links only when not in Trusted_Mode.
5933 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
5934 Do not resolve links for the display names.
5935
5936 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
5937 resolve links when computing the display names.
5938
5939 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
5940
5941 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
5942 attribute reference does not denote a subtype, it can be any
5943 expression that has a classwide type, potentially after an implicit
5944 dereference. In particular, the prefix can be a view conversion for
5945 a classwide type (for which Is_Object_Reference holds), but it can
5946 also be a value conversion for an access-to-classwide type. In the
5947 latter case, there is an implicit dereference, and the original node
5948 for the prefix does not verify Is_Object_Reference.
5949
5950 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
5951 conversion of a discriminant-dependent component of a mutable object
5952 is one itself.
5953
5954 2004-03-25 Ed Schonberg <schonberg@gnat.com>
5955
5956 * freeze.adb (Freeze_Entity): When an inherited subprogram is
5957 inherited, has convention C, and has unconstrained array parameters,
5958 place the corresponding warning on the derived type declaration rather
5959 than the original subprogram.
5960
5961 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
5962 indication on renaming declaration, if formal has a box and actual
5963 is absent.
5964
5965 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
5966 determine whether to generate an implicit or explicit reference to
5967 the renamed entity.
5968
5969 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
5970 subprogram renaming comes from a defaulted formal subprogram in an
5971 instance.
5972
5973 2004-03-25 Gary Dismukes <dismukes@gnat.com>
5974
5975 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
5976 value expressions to ensure that calls within a component definition
5977 will be checked (since those are evaluated during the record type's
5978 elaboration).
5979
5980 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
5981
5982 * s-tpobop.adb: Code clean up:
5983 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
5984 code.
5985 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
5986
5987 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
5988
5989 * Makefile.in: Clean up in the ravenscar run time.
5990
5991 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5992
5993 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
5994 of No_Strict_Aliasing to build_pointer_type_for_mode.
5995 * utils.c (update_pointer_to): Walk pointer and ref chains.
5996
5997 2004-03-22 Cyrille Comar <comar@act-europe.fr>
5998
5999 * ali.ads: Fix Comment about Dynamic_Elab.
6000
6001 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
6002 Has_RACW, Is_Generic, etc.)
6003 (Output_Object, Gnatls): Take into account ALI files not attached to
6004 an object.
6005
6006 2004-03-22 Vincent Celier <celier@gnat.com>
6007
6008 * gprep.adb: Change all String_Access to Name_Id
6009 (Is_ASCII_Letter): new function
6010 (Double_File_Name_Buffer): New procedure
6011 (Preprocess_Infile_Name): New procedure
6012 (Process_Files): New procedure
6013 (Gnatprep): Check if output and input are existing directories.
6014 Call Process_Files to do the real job.
6015
6016 2004-03-22 Robert Dewar <dewar@gnat.com>
6017
6018 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
6019 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
6020
6021 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
6022
6023 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
6024 case when the source contains only comments.
6025
6026 2004-03-22 Ed Schonberg <schonberg@gnat.com>
6027
6028 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
6029 declaration for a child subprogram body that acts as a spec, indicate
6030 that the entity in the declaration needs debugging information.
6031
6032 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
6033 full view if the subtype is created for a constrained record component;
6034 gigi has enough information to construct the record, and there is no
6035 place in the tree for the declaration.
6036
6037 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
6038 serial number for the dummy body that is built for analysis, to avoid
6039 inconsistencies in the generation of internal names when compiling
6040 with -gnatN.
6041
6042 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
6043
6044 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
6045 object.
6046
6047 2004-03-22 GNAT Script <nobody@gnat.com>
6048
6049 * Make-lang.in: Makefile automatically updated
6050
6051 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6052
6053 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
6054 * trans.c (tree_transform, emit_index_check): Likewise.
6055 * utils.c (build_template): Likewise.
6056 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
6057 (maybe_unconstrained_array, unchecked_convert): Likewise.
6058 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
6059 (build_unary_op): Likewise.
6060 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
6061 (fill_vms_descriptor): Likewise.
6062 (build_call_alloc_dealloc): Likewise.
6063 ALIGN is unsigned.
6064 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
6065
6066 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
6067
6068 PR other/14630
6069 * gnat_ug.texi: Add info directory category and entry.
6070 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
6071 gnat_ug_wnt.texi: Regenerate.
6072
6073 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
6074
6075 * ada-tree.h: Update copyright notice.
6076 Minor reformatting.
6077
6078 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
6079
6080 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
6081 as regular exception objects and not as mere integers representing the
6082 condition code. The latter approach required some dynamics to mask off
6083 severity bits, which did not fit well into the GCC table based model.
6084 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
6085 exception data objects. We don't it and it would conflict with the other
6086 external symbol we have to generate for such exceptions.
6087
6088 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
6089 the special code for VMS exceptions, since these are now represented
6090 as regular exceptions objects.
6091
6092 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6093
6094 * decl.c (debug_no_type_hash): Remove.
6095 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
6096 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
6097
6098 2004-03-19 Laurent Guerby <laurent@guerby.net>
6099
6100 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
6101 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
6102
6103 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6104
6105 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
6106 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
6107 (TYPE_RM_SIZE_INT): Directly use type.values.
6108 (TREE_LOOP_ID): Clean up check.
6109 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
6110 TYPE_VALUES, not TYPE_FIELDS.
6111 * trans.c (convert_with_check): Delay access of bounds of basetype
6112 until sure is numeric.
6113
6114 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
6115
6116 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
6117
6118 Code clean up:
6119 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
6120 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
6121 Specific.Set instead of direct call to e.g pthread_setspecific.
6122
6123 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
6124
6125 * adaint.c: Update comments.
6126
6127 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
6128 GNATLIB_SHARED for FreeBSD.
6129
6130 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
6131
6132 * init.c [VxWorks]: Do not fix the stack size for the environment task.
6133 When needed (stack checking) the stack size is retrieved
6134 from the VxWorks kernel.
6135
6136 * Makefile.in: Flag -nostdinc is required when building the run time
6137 for avoiding looking for files in the base compiler.
6138 Add the VxWorks specific version of the package body for
6139 System.Stack_checking.Operations (5zstchop.adb).
6140
6141 * Make-lang.in: Add the object file for
6142 System.Stack_Checking.Operations.
6143
6144 * Makefile.rtl: Add object file for the package
6145 System.Stack_Checking.Operations.
6146
6147 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
6148
6149 * s-stache.ads, s-stache.adb: Move the operations related to stack
6150 checking from this package to package System.Stack_Checking.Operations.
6151 This way, stack checking operations are only linked in the final
6152 executable when using the -fstack-check flag.
6153
6154 2004-03-18 Doug Rupp <rupp@gnat.com>
6155
6156 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
6157 Reorganize ifeq's.
6158
6159 * 5qsystem.ads, 5xcrtl.ads: New files.
6160
6161 2004-03-18 Vincent Celier <celier@gnat.com>
6162
6163 * prj.adb (Reset): Reset hash table Files_Htable
6164
6165 * prj-env.adb (Source_Paths, Object_Paths): New tables.
6166 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
6167 the procedures Add_To_Path_File.
6168 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
6169 making sure that each directory is present only once and, for object
6170 dirs, when a directory already present is added, the duplicate is
6171 removed and the directory is always put as the last in the table.
6172 Write the path files at the end of these accumulations.
6173
6174 * prj-nmsc.adb (Record_Source): Add source file name in hash table
6175 Files_Htable for all sources.
6176
6177 * prj-proc.adb (Process): Remove restrictions between not directly
6178 related extending projects.
6179
6180 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
6181
6182 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
6183 (Find_Sources): Minor speed optimization.
6184
6185 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
6186 parameter Trusted_Mode.
6187
6188 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
6189
6190 * scn.adb (Determine_License): Take into account a degenerated case
6191 when the source contains only comments.
6192
6193 2004-03-18 Ed Schonberg <schonberg@gnat.com>
6194
6195 * sem_warn.adb (Check_References): For a warning on a selected
6196 component that does not come from source, locate an uninitialized
6197 component of the record type to produce a more precise error message.
6198
6199 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
6200
6201 * 3zsoccon.ads: Fix multicast options.
6202
6203 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
6204 in the spec.
6205
6206 2004-03-15 Robert Dewar <dewar@gnat.com>
6207
6208 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
6209 pragma used for a private type.
6210
6211 * lib-xref.adb (Generate_Reference): Do not generate warning if
6212 reference is in a different unit from the pragma Unreferenced.
6213
6214 * 5vtpopde.adb: Minor reformatting
6215 Fix casing of To_Task_ID
6216
6217 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
6218 flag if we have an unchecked conversion to an access type in the same
6219 unit.
6220
6221 2004-03-15 Geert Bosch <bosch@gnat.com>
6222
6223 * a-ngcoty.adb (Modulus): In alternate formula for large real or
6224 imaginary parts, use Double precision throughout.
6225
6226 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
6227 we want to be able to compile run-time with -gnata for testing, but
6228 this may also be instantiated in user code that is compiled with -gnata.
6229
6230 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
6231
6232 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
6233 codes. Having a separate type for this is useful to enforce consistency
6234 throughout the various run-time units.
6235 (Exception_Data): Use Exception_Code for Import_Code.
6236
6237 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
6238 Natural and Integer in various places.
6239 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
6240 with the severity bits masked off.
6241 (Register_VMS_Exception): Handle the additional exception data pointer
6242 argument.
6243
6244 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
6245 component, now reflected by an exported accessor.
6246 (is_handled_by): New routine to compute whether the propagated
6247 occurrence matches some handler choice specification. Extracted out of
6248 get_action_description_for, and expanded to take care of the VMS
6249 specifities.
6250 (get_action_description_for): Use is_handled_by instead of an explicit
6251 complex condition to decide if the current choice at hand catches the
6252 propagated occurrence.
6253
6254 * raise.h (Exception_Code): New type for C.
6255
6256 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
6257 System.Standard_Library.Exception_Code, to allow references from the
6258 pragma import/export expander.
6259
6260 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
6261 New accessors to allow easy access to GNAT exception data
6262 characteristics.
6263 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
6264 redundant Handled_By_Others component, helper for the personality
6265 routine which will now be able to call the appropriate exception data
6266 accessor instead.
6267
6268 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
6269 component of Standard_Exception_Type to be the closest possible to
6270 Exception_Code in System.Standard_Library, that we cannot get at this
6271 point. Expand a ??? comment to notify that this type node should
6272 probably be rewritten later on.
6273
6274 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
6275 registration call to include a pointer to the exception object in the
6276 arguments.
6277
6278 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
6279 instead of int and explicit bitmasks.
6280
6281 2004-03-15 Vincent Celier <celier@gnat.com>
6282
6283 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
6284 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
6285
6286 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
6287 longer needed now that it is in the spec of
6288 System.Tasking.Task_Attributes.
6289
6290 * adaint.h, adaint.c: (__gnat_create_output_file): New function
6291
6292 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
6293
6294 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
6295
6296 * make.adb (Gnatmake): Do not check the executable suffix; it is being
6297 taken care of in Scan_Make_Arg.
6298 (Scan_Make_Arg): Add the executable suffix only if the argument
6299 following -o, in canonical case, does not end with the executable
6300 suffix. When in verbose mode and executable file name does not end
6301 with executable suffix, output the executable name, in canonical case.
6302
6303 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
6304 to avoid warnings when instantiating Ada.Task_Attributes.
6305 Minor reformating.
6306
6307 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
6308 in the correct order.
6309
6310 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
6311 redirect standard output and error to a file for the invocation of the
6312 compiler, then read the file.
6313
6314 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
6315 directory, instead of the Value.
6316 (Find_Source_Dirs): Remove useless code & comments.
6317
6318 2004-03-15 Ed Schonberg <schonberg@gnat.com>
6319
6320 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
6321 tagged type is inherited, and the parent operation is not frozen yet,
6322 force generation of a freeze node for the inherited operation, so the
6323 corresponding dispatch entry is properly initialized.
6324 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
6325 when looking for user-defined equality operation.
6326
6327 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
6328 boolean when locating primitive equality of tagged component.
6329
6330 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
6331 bit-aligned field and the right-hand side a string literal, introduce
6332 a temporary before expanding assignment into a loop.
6333
6334 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
6335 priority in full, to ensure that any expanded subepxressions of it are
6336 elaborated in the scope of the init_proc.
6337
6338 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
6339 after object declaration, skipping over code that may have been
6340 generated for validity checks.
6341
6342 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
6343 discriminants, ignore the known discriminants of its full view, if
6344 any, to check legality.
6345
6346 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
6347 component if type has unknown discriminants.
6348 (Analyze_Private_Extension_Declaration): Discriminant constraint is
6349 null if type has unknown discriminants.
6350
6351 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
6352 for end label when present.
6353
6354 * s-fileio.adb (Open): When called with a C_Stream, use given name for
6355 temporary file, rather than an empty string.
6356
6357 2004-03-15 Ed Falis <falis@gnat.com>
6358
6359 * s-thread.adb: Removed, no longer used.
6360
6361 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6362
6363 * decl.c (target.h): Now include.
6364 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
6365 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
6366 (validate_size): For POINTER_TYPE, get smallest size permitted on
6367 machine.
6368
6369 * fe.h: Sort Einfo decls and add Set_Mechanism.
6370
6371 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
6372 (ada/decl.o): Depends on target.h.
6373
6374 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
6375 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
6376
6377 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
6378
6379 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
6380
6381 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
6382 Insert_Dereference_Action when rewriting an implicit dereference into
6383 an explicit one, this will be taken care of during expansion of the
6384 explicit dereference.
6385 (Expand_N_Slice): Same. Always do the rewriting, even for the case
6386 of non-packed slices, since the dereference action generated by
6387 expansion of the explicit dereference is needed in any case.
6388 (Expand_N_Selected_Component): When rewriting an implicit dereference,
6389 analyze and resolve the rewritten explicit dereference so it is seen
6390 by the expander.
6391 (Insert_Dereference_Action): This procedure is now called only for the
6392 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
6393 dereferences that do not come from source (including explicit
6394 dereferences resulting from rewriting implicit ones), but do not
6395 recursively insert a check for the dereference nodes contained within
6396 the check.
6397 (Insert_Dereference_Action): Clarify and correct comment.
6398
6399 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
6400
6401 PR ada/14131
6402 Move language detection to the top level.
6403 * config-lang.in: Build by default.
6404
6405 2004-03-05 Robert Dewar <dewar@gnat.com>
6406
6407 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
6408
6409 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
6410 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
6411 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
6412 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
6413 unchecked conversion to spec to avoid warnings.
6414
6415 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
6416 to Task_ID
6417
6418 * 7stpopsp.adb: Correct casing in To_Task_ID call
6419
6420 * a-strsea.ads, a-strsea.adb: Minor reformatting
6421
6422 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
6423
6424 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
6425 Adjust Max_Msg_Length to be clearly large enough.
6426
6427 * fe.h: Define In_Same_Source_Unit
6428
6429 * osint.adb: Add pragma Warnings Off to suppress warnings
6430 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
6431 aliasing warnings.
6432
6433 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
6434
6435 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
6436
6437 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
6438
6439 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
6440
6441 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
6442
6443 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
6444 node. We now do generate them for gcc back end.
6445
6446 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
6447 warning.
6448
6449 * sinput-c.adb: Fix bad name in header.
6450 Add pragma Warnings Off to suppress aliasing warning.
6451
6452 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
6453
6454 * snames.h, snames.ads, snames.adb: Add entry for pragma
6455 No_Strict_Aliasing.
6456
6457 2004-03-05 Vincent Celier <celier@gnat.com>
6458
6459 * prj-com.ads: Add hash table Files_Htable to check when a file name
6460 is already a source of another project.
6461
6462 * prj-nmsc.adb (Record_Source): Before recording a new source, check
6463 if its file name is not already a source of another project. Report an
6464 error if it is.
6465
6466 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
6467 source file name, call gnatpp with all the sources of the main project.
6468
6469 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
6470 of file names.
6471
6472 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
6473 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
6474 /RUNTIME_SYSTEM=, converted to --RTS=
6475 /NOTABS, converted to -notabs
6476
6477 2004-03-05 Pascal Obry <obry@gnat.com>
6478
6479 * make.adb: Minor reformatting.
6480
6481 2004-03-05 Ed Schonberg <schonberg@gnat.com>
6482
6483 Part of implemention of AI-262.
6484 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
6485
6486 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
6487 procedure.
6488
6489 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
6490 when component type is a partially constrained class-wide subtype.
6491 (Constrain_Discriminated_Type): If parent type has unknown
6492 discriminants, a constraint is illegal, even if full view has
6493 discriminants.
6494 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
6495 with unknown discriminants whose full view is a discriminated record.
6496
6497 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
6498 flag, to handle properly derivations of tagged types with unknown
6499 discriminants.
6500 (Analyze_Package_Spec, Analyze_Package_Body): Install
6501 Private_With_Clauses before analyzing private part or body.
6502
6503 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
6504 Has_Discriminants can be true for a given type (documentation).
6505
6506 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
6507
6508 * s-restri.ads: Fix license (GPL->GMGPL).
6509
6510 * s-tassta.adb: Minor reformatting.
6511
6512 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
6513 by calls to Exit_One_ATC_Level, since additional clean up is performed
6514 by this function.
6515
6516 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
6517 by calls to Exit_One_ATC_Level, since additional clean up is performed
6518 by this function.
6519
6520 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6521
6522 * trans.c: Reflect GCC changes to fix bootstrap problem.
6523 Add warning for suspicious aliasing unchecked conversion.
6524
6525 2004-03-05 GNAT Script <nobody@gnat.com>
6526
6527 * Make-lang.in: Makefile automatically updated
6528
6529 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
6530
6531 * ali.adb (Read_Instantiation_Instance): Do not modify the
6532 current_file_num when reading information about instantiations, since
6533 this corrupts files in later references.
6534
6535 2004-03-02 Vincent Celier <celier@gnat.com>
6536
6537 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
6538 before checking if it is read-only.
6539
6540 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
6541 of SRC_DIRS and eliminate duplicates.
6542
6543 * gprcmd.adb: Replace command "path" with command "path_sep" to return
6544 the path separator.
6545 (Usage): Document path_sep
6546
6547 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
6548 C++ compiler. No need for a script.
6549 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
6550 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
6551 subst.
6552
6553 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
6554 where there are Ada sources.
6555 (Set_Ada_Paths): Only add to the include path the source dirs of project
6556 with Ada sources.
6557 (Add_To_Path): Add the Display_Values of the directories, not their
6558 Values.
6559
6560 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
6561 data.
6562
6563 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
6564 is not No_Name.
6565 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
6566 Value is canonicalized.
6567 (Language_Independent_Check): Do not copy Value to Display_Value when
6568 canonicalizing Value.
6569
6570 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
6571 path to find limited with cycles.
6572 (Parse_Single_Project): Use canonical cased path to find the end of a
6573 with cycle.
6574
6575 2004-03-02 Ed Schonberg <schonberg@gnat.com>
6576
6577 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
6578 and not a child unit.
6579
6580 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
6581 appear in a with_clause.
6582
6583 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
6584 only happen in type_annotate mode, do not try to elaborate it.
6585
6586 * exp_util.adb (Force_Evaluation): If expression is a selected
6587 component on the left of an assignment, use a renaming rather than a
6588 temporary to remove side effects.
6589
6590 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
6591 inlined instance body, which is analyzed before the end of the
6592 enclosing scope.
6593
6594 2004-03-02 Robert Dewar <dewar@gnat.com>
6595
6596 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
6597 sem_ch4.adb: Use new feature for substitution of keywords in VMS
6598
6599 * errout.ads, errout.adb: Implement new circuit for substitution of
6600 keywords in VMS.
6601
6602 * sem_case.adb (Analyze_Choices): Place message properly when case is
6603 a subtype reference rather than an explicit range.
6604
6605 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
6606
6607 2004-03-02 Doug Rupp <rupp@gnat.com>
6608
6609 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
6610
6611 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
6612
6613 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
6614
6615 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6616
6617 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
6618 BLKmode bitfield.
6619
6620 2004-02-25 Robert Dewar <dewar@gnat.com>
6621
6622 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
6623 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
6624 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
6625 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
6626 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
6627 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
6628 the defining instance of the type to avoid aliasing problems.
6629 Fix copyright header. Fix bad comments in package header.
6630
6631 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
6632
6633 2004-02-25 Ed Schonberg <schonberg@gnat.com>
6634
6635 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
6636 rewritten as references when aliased through an address clause.
6637
6638 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
6639 whether call can be interpreted as an indirect call to the result of a
6640 parameterless function call returning an access subprogram.
6641
6642 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
6643
6644 Code clean up:
6645 * exp_ch7.adb (Make_Clean): Remove generation of calls to
6646 Unlock[_Entries], since this is now done by Service_Entries directly.
6647
6648 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
6649
6650 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
6651 Requeue_Call for better code readability. Change spec and update calls:
6652 PO_Service_Entries now unlock the PO on exit.
6653 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
6654 PO_Service_Entries.
6655
6656 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
6657
6658 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
6659
6660 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
6661
6662 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
6663 protected subprogram call and analyzing the result of such expanding
6664 in case when the called protected subprogram is eliminated.
6665
6666 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
6667 names.
6668
6669 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
6670
6671 * Makefile.in: Clean ups.
6672
6673 2004-02-23 Ed Schonberg <schonberg@gnat.com>
6674
6675 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
6676 protected operations if original subprogram is flagged as eliminated.
6677 (Expand_N_Subprogram_Body): For a protected operation, create
6678 discriminals for next operation before checking whether the operation
6679 is eliminated.
6680
6681 * exp_ch9.adb (Expand_N_Protected_Body,
6682 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
6683 for internal protected operations if the original subprogram is
6684 eliminated.
6685
6686 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
6687 declared in a single protected object.
6688
6689 2004-02-23 Vincent Celier <celier@gnat.com>
6690
6691 * prj-attr.adb: Make attribute Builder'Executable an associative array,
6692 case insensitive if file names are case insensitive, instead of a
6693 standard associative array.
6694
6695 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
6696 them as case insensitive on platforms where the file names are case
6697 sensitive.
6698
6699 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
6700 project file has already been parsed that canonical path are compared.
6701
6702 2004-02-23 Robert Dewar <dewar@gnat.com>
6703
6704 * sinput-c.ads: Correct bad unit title in header
6705
6706 * freeze.adb: Minor reformatting
6707
6708 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6709
6710 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
6711 nonaddressable COMPONENT_REF that is removing padding that we are
6712 taking the address of, take the address of the padded record instead
6713 if item is variable size.
6714
6715 2004-02-20 Robert Dewar <dewar@gnat.com>
6716
6717 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
6718
6719 2004-02-20 Ed Schonberg <schonberg@gnat.com>
6720
6721 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
6722 itype references for the constrained designated type of a component
6723 whose base type is already frozen.
6724
6725 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
6726
6727 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
6728 avoid GCC warnings.
6729
6730 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
6731
6732 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
6733 identifier for a phantom package that rewrites the formal package
6734 declaration with a box. The Add semantic decorations for the defining
6735 identifier from the original node (that represents the formal package).
6736
6737 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
6738
6739 * Make-lang.in (ada/stamp-sdefault): Use the top level
6740 move-if-change.
6741
6742 2004-02-19 Richard Henderson <rth@redhat.com>
6743
6744 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
6745
6746 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
6747
6748 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
6749 Scan_ALI can be used for multiple ALI files without reinitializing
6750 between calls.
6751
6752 2004-02-18 Robert Dewar <dewar@gnat.com>
6753
6754 * debug.adb: Minor reformatting.
6755
6756 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6757
6758 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
6759 to zero if there is an address clause.
6760
6761 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
6762
6763 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
6764
6765 2004-02-18 Gary Dismukes <dismukes@gnat.com>
6766
6767 * layout.adb (Layout_Component_List): Revise generation of call to
6768 discriminant-checking function to pass selections of all of the type's
6769 discriminants rather than just the variant-controlling discriminant.
6770
6771 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
6772
6773 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
6774 fail in the current setup and triggers spurious system error messages.
6775 Pretend it occurred and failed instead.
6776
6777 2004-02-18 Vincent Celier <celier@gnat.com>
6778
6779 * bld.adb: Mark FLDFLAGS as saved
6780 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
6781 it is not the root project. Put each directory to be
6782 extended between double quotes to prevent it to be expanded on Windows.
6783 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
6784 the project file. Set them back to their initial values if they have not
6785 been set in the project file.
6786
6787 * gprcmd.adb: (Gprdebug, Debug): New global variables
6788 (Display_Command): New procedure
6789 (Usage): Document new command "linkopts"
6790 Call Display_Command when env var GPRDEBUG has the value "TRUE"
6791 Implement new command "linkopts"
6792 Remove quotes that may be around arguments for "extend"
6793 Always call Normalize_Pathname with arguments formatted for the platform
6794
6795 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
6796 Change @echo to @$(display) in target clean to be able to clean silently
6797
6798 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
6799
6800 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
6801 canonical case.
6802
6803 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
6804 = Extending_All when current project is an extending all project.
6805
6806 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
6807 set to True only for LINK command, after Unix switch -o.
6808 (Process_Arguments): Set Output_File_Expected to True for LINK command
6809 after Unix switch -o. When Output_File_Expected is True, never add an
6810 extension to a file name.
6811
6812 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
6813 option file name, only to the --for-linker= switch.
6814 (Option_File_Name): If option file name do not end with ".opt", append
6815 "/OPTIONS".
6816
6817 2004-02-18 GNAT Script <nobody@gnat.com>
6818
6819 * Make-lang.in: Makefile automatically updated
6820
6821 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
6822
6823 * Make-lang.in (stamp-sdefault): Do not depend on
6824 move-if-change.
6825
6826 2004-02-12 Zack Weinberg <zack@codesourcery.com>
6827
6828 * config-lang.in: Disable Ada by default until probe logic for
6829 a bootstrap Ada compiler can be moved to the top level configure
6830 script.
6831
6832 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
6833
6834 * decl.c (components_to_record): Don't claim that the internal fields
6835 we make to hold the variant parts are semantically addressable, because
6836 they are not.
6837
6838 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
6839 adjust the comment describing the modular type form when we can use it.
6840 (Install_PAT): Account for the Esiz renaming.
6841
6842 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
6843 sc_onstack context indication before raising the exception to which
6844 the signal is mapped. Allows better handling of later signals possibly
6845 triggered by the resumed user code if the exception is handled.
6846
6847 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
6848
6849 * 5zinit.adb: Removed, no longer used.
6850
6851 2004-02-12 Robert Dewar <dewar@gnat.com>
6852
6853 * ali.adb: Remove separating space between parameters on R line. Makes
6854 format consistent with format used by the binder for Set_Globals call.
6855
6856 * atree.ads, atree.adb: Minor reformatting (new function header format)
6857
6858 * bindgen.adb: Add Run-Time Globals documentation section containing
6859 detailed documentation of the globals passed from the binder file to
6860 the run time.
6861
6862 * gnatls.adb: Minor reformatting
6863
6864 * init.c (__gnat_set_globals): Add note pointing to documentation in
6865 bindgen.
6866
6867 * lib-writ.ads, lib-writ.adb: Remove separating space between
6868 parameters on R line.
6869 Makes format consistent with format used by the binder for Set_Globals
6870 call.
6871
6872 * osint.ads: Add 2004 to copyright notice
6873 Minor reformatting
6874
6875 * snames.ads: Correct capitalization of FIFO_Within_Priorities
6876 Noticed during code reading, documentation issue only
6877
6878 * usage.adb: Remove junk line for obsolete C switch
6879 Noticed during code reading
6880
6881 2004-02-12 Vincent Celier <celier@gnat.com>
6882
6883 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
6884 extend for each directory, so that multiple /** directories are
6885 extended individually.
6886 (Recursive_Process): Set the default for LANGUAGES to ada
6887
6888 * gprcmd.adb: Define new command "ignore", to do nothing.
6889 Implement new comment "path".
6890
6891 * Makefile.generic: Suppress output when SILENT is set
6892 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
6893 used, so that the correct compiler is invoked.
6894 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
6895 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
6896
6897 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
6898
6899 * Makefile.in: Clean ups and remove obsolete targets.
6900
6901 2004-02-12 Ed Schonberg <schonberg@gnat.com>
6902
6903 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
6904 predicate declared in exp_util.
6905
6906 * exp_util.adb: Add comments.
6907
6908 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
6909 visibility before compiling context of the subunit.
6910
6911 * sem_res.adb (Check_Parameterless_Call): If the context expects a
6912 value but the name is a procedure, do not attempt to analyze as a call,
6913 in order to obtain more telling diagnostics.
6914
6915 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
6916 'Access on parameterless function calls.
6917 (Normalize_Actuals): For a parameterless function call with missing
6918 actuals, defer diagnostic until resolution of enclosing call.
6919
6920 * sem_util.adb (Wrong_Type): If the context type is an access to
6921 subprogram and the expression is a procedure name, suggest a missing
6922 'attribute.
6923
6924 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
6925 Nathanael Nerode <neroden@gcc.gnu.org>
6926
6927 PR ada/6637, PR ada/5911
6928 Merge with libada-branch:
6929 * config-lang.in: Build libada only when ada is built.
6930
6931 2004-02-09 Ed Schonberg <schonberg@gnat.com>
6932
6933 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
6934 for a tagged type, verify that both formals have the same type.
6935
6936 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
6937 temporary when the formal is an in-parameter and the actual a possibly
6938 unaligned slice.
6939
6940 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
6941 when expansion is disabled, to ensure proper name capture with
6942 overloaded literals. Condition can be of any boolean type, resolve
6943 accordingly.
6944
6945 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
6946 renaming is for a formal subprogram with a default operator name, and
6947 there is a usable operator that is visible at the point of
6948 instantiation.
6949
6950 2004-02-09 Robert Dewar <dewar@gnat.com>
6951
6952 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
6953 rewrite to ignore errors in ali files, intended to allow tools downward
6954 compatibility with new versions of ali files.
6955
6956 * ali.ads: Add new parameter Ignore_Errors
6957
6958 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
6959 duplicating the error message giving the file with restrictions.
6960
6961 * debug.adb: Add debug flag I for gnatbind
6962
6963 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
6964 operators for the case where the operator is a defining operator.
6965
6966 * exp_ch3.adb: Minor reformatting (new function spec format).
6967
6968 * exp_ch4.adb: Add comment for previous change, and make minor
6969 adjustment to loop to always check for improper loop termination.
6970 Minor reformatting throughout (new function spec format).
6971
6972 * gnatbind.adb: Implement -di debug flag for gnatbind
6973
6974 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
6975
6976 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
6977
6978 * lib-load.adb: Fix bad assertion.
6979 Found by testing and code reading.
6980 Minor reformatting.
6981
6982 * lib-load.ads: Minor reformatting.
6983
6984 * lib-writ.adb: There is only one R line now.
6985
6986 * lib-writ.ads: Add documentation on making downward compatible changes
6987 to ali files so old tools work with new ali files.
6988 There is only one R line now.
6989 Add documentation on format incompatibilities (with special GPS note)
6990
6991 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
6992
6993 * par-load.adb: Minor reformatting
6994
6995 * sem_ch8.adb: Fix to error message from last update
6996 Minor reformatting and restructuring of code from last update
6997
6998 * par-prag.adb, snames.adb, snames.ads, snames.h,
6999 sem_prag.adb: Implement pragma Profile.
7000
7001 * stylesw.adb: Implement -gnatyN switch to turn off all style check
7002 options.
7003
7004 * usage.adb: Add line for -gnatyN switch
7005
7006 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
7007
7008 2004-02-09 Albert Lee <lee@gnat.com>
7009
7010 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
7011
7012 2004-02-09 Ed Schonberg <schonberg@gnat.com>
7013
7014 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
7015 slices.
7016
7017 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
7018 is nested in an instance that is not frozen yet, to avoid
7019 order-of-elaboration problems in gigi.
7020
7021 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
7022 body the attribute is legal.
7023
7024 2004-02-09 Robert Dewar <dewar@gnat.com>
7025
7026 * s-rident.ads: Minor comment correction
7027
7028 * targparm.adb: Remove dependence on uintp completely. There was
7029 always a bug in Make in that it called Targparm before initializing
7030 the Uint package. The old code appeared to get away with this, but
7031 the new code did not! This caused an assertion error in gnatmake.
7032
7033 * targparm.ads: Fix bad comment, restriction pragmas with parameters
7034 are indeed fully supported.
7035
7036 2004-02-06 Alan Modra <amodra@bigpond.net.au>
7037
7038 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
7039
7040 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
7041
7042 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
7043 with targetm.calls.promote_prototypes.
7044
7045 2004-02-04 Robert Dewar <dewar@gnat.com>
7046
7047 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
7048 ali.ads, gprcmd.adb: Minor reformatting
7049
7050 * bindgen.adb: Output restrictions string for new style restrictions
7051 handling
7052
7053 * impunit.adb: Add s-rident.ads (System.Rident) and
7054 s-restri (System.Restrictions)
7055
7056 * lib-writ.adb: Fix bug in writing restrictions string (last few
7057 entries wrong)
7058
7059 * s-restri.ads, s-restri.adb: Change name Restrictions to
7060 Run_Time_Restrictions to avoid conflict with package name.
7061 Add circuit to read and acquire run time restrictions.
7062
7063 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
7064
7065 * restrict.ads, restrict.adb: Use the new restriction
7066 No_Task_Attributes_Package instead of the old No_Task_Attributes.
7067
7068 * sem_prag.adb: No_Task_Attributes is a synonym of
7069 No_Task_Attributes_Package.
7070
7071 * snames.ads, snames.adb: New entry for proper handling of
7072 No_Task_Attributes.
7073
7074 * s-rident.ads: Adding restriction No_Task_Attributes_Package
7075 (AI-00249) that supersedes the GNAT specific restriction
7076 No_Task_Attributes.
7077
7078 2004-02-04 Ed Schonberg <schonberg@gnat.com>
7079
7080 * sem_prag.adb:
7081 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
7082 body, an identifier may be wrapped in an unchecked conversion.
7083
7084 2004-02-04 Vincent Celier <celier@gnat.com>
7085
7086 * lib-writ.ads: Comment update for the W lines
7087
7088 * bld.adb: (Expression): An empty string list is static
7089
7090 * fname-uf.adb: Minor comment update
7091
7092 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
7093
7094 * gnatbind.adb: Initialize Cumulative_Restrictions with the
7095 restrictions on the target.
7096
7097 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
7098
7099 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
7100 gen_rtx.
7101
7102 2004-02-02 Arnaud Charlet <charlet@gnat.com>
7103
7104 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
7105
7106 2004-02-02 Vincent Celier <celier@gnat.com>
7107
7108 * gprcmd.adb (Check_Args): If condition is false, print the invoked
7109 comment before the usage.
7110 Gprcmd: Fail when command is not recognized.
7111 (Usage): Document command "prefix"
7112
7113 * g-md5.adb (Digest): Process last block.
7114 (Update): Do not process last block. Store remaining characters and
7115 length in Context.
7116
7117 * g-md5.ads (Update): Document that several call to update are
7118 equivalent to one call with the concatenated string.
7119 (Context): Add fields to allow new Update behaviour.
7120
7121 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
7122 defaulted to False.
7123 When May_Fail is True and no existing file can be found, return No_File.
7124
7125 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
7126 functions.
7127
7128 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
7129 spec file name instead on the W line.
7130
7131 2004-02-02 Robert Dewar <dewar@gnat.com>
7132
7133 * ali.adb: Read and acquire info from new format restrictions lines
7134
7135 * bcheck.adb: Add circuits for checking restrictions with parameters
7136
7137 * bindgen.adb: Output dummy restrictions data
7138 To be changed later
7139
7140 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
7141 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
7142 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
7143 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
7144 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
7145
7146 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
7147 the warning message on access to possibly uninitialized variable S)
7148 Minor changes for new restrictions handling.
7149
7150 * gnatbind.adb: Minor reformatting
7151 Minor changes for new restrictions handling
7152 Move circuit for -r processing here from bcheck (cleaner)
7153
7154 * gnatcmd.adb, gnatlink.adb: Minor reformatting
7155
7156 * lib-writ.adb: Output new format restrictions lines
7157
7158 * lib-writ.ads: Document new R format lines for new restrictions
7159 handling.
7160
7161 * s-restri.ads/adb: New files
7162
7163 * Makefile.rtl: Add entry for s-restri.ads/adb
7164
7165 * par-ch3.adb: Fix bad error messages starting with upper case letter
7166 Minor reformatting
7167
7168 * restrict.adb: Major rewrite throughout for new restrictions handling
7169 Major point is to handle restrictions with parameters
7170
7171 * restrict.ads: Major changes in interface to handle restrictions with
7172 parameters. Also generally simplifies setting of restrictions.
7173
7174 * snames.ads/adb: New entry for proper handling of No_Requeue
7175
7176 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
7177 restriction counting.
7178 Other minor changes for new restrictions handling
7179
7180 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
7181 Restriction_Warnings now allows full parameter notation
7182 Major rewrite of Restrictions for new restrictions handling
7183
7184 2004-02-02 Javier Miranda <miranda@gnat.com>
7185
7186 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
7187 syntax rule for object renaming declarations.
7188 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
7189 component definitions.
7190
7191 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
7192 components.
7193 (Array_Type_Declaration): Give support to access components. In addition
7194 it was also modified to reflect the name of the object in anonymous
7195 array types. The old code did not take into account that it is possible
7196 to have an unconstrained anonymous array with an initial value.
7197 (Check_Or_Process_Discriminants): Allow access discriminant in
7198 non-limited types.
7199 (Process_Discriminants): Allow access discriminant in non-limited types
7200 Initialize the new Access_Definition field in N_Object_Renaming_Decl
7201 node. Change Ada0Y to Ada 0Y in comments
7202
7203 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
7204 equality operators.
7205 Change Ada0Y to Ada 0Y in comments
7206
7207 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
7208 renamings Change Ada0Y to Ada 0Y in comments
7209
7210 * sem_type.adb (Find_Unique_Type): Give support to the equality
7211 operators for universal access types
7212 Change Ada0Y to Ada 0Y in comments
7213
7214 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
7215
7216 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
7217 field.
7218 (N_Object_Renaming_Declaration): Addition of Access_Definition field
7219 Change Ada0Y to Ada 0Y in comments
7220
7221 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
7222 component definition and object renaming nodes
7223 Change Ada0Y to Ada 0Y in comments
7224
7225 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
7226
7227 * restrict.adb: Use the new restriction identifier
7228 No_Requeue_Statements instead of the old No_Requeue for defining the
7229 restricted profile.
7230
7231 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
7232 No_Requeue_Statements.
7233
7234 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
7235 that supersedes the GNAT specific restriction No_Requeue. The later is
7236 kept for backward compatibility.
7237
7238 2004-02-02 Ed Schonberg <schonberg@gnat.com>
7239
7240 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
7241 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
7242 pragma and fix incorrect ones.
7243
7244 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
7245 warning if the pragma is redundant.
7246
7247 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
7248
7249 * 5staprop.adb: Add missing 'constant' keywords.
7250
7251 * Makefile.in: use consistent value for SYMLIB on
7252 platforms where libaddr2line is supported.
7253
7254 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7255
7256 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
7257 annotating types.
7258
7259 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
7260
7261 * init.c (__gnat_install_handler): Setup an alternate stack for signal
7262 handlers in the environment thread. This allows proper propagation of
7263 an exception on stack overflows in this thread even when the builtin
7264 ABI stack-checking scheme is used without support for a stack reserve
7265 region.
7266
7267 * utils.c (create_field_decl): Augment the head comment about bitfield
7268 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
7269 here, because the former is not accurate enough at this point.
7270 Let finish_record_type decide instead.
7271 Don't make a bitfield if the field is to be addressable.
7272 Always set a size for the field if the record is packed, to ensure the
7273 checks for bitfield creation are triggered.
7274 (finish_record_type): During last pass over the fields, clear
7275 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
7276 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
7277 from DECL_BIT_FIELD.
7278
7279 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
7280
7281 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
7282 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
7283 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
7284
7285 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7286
7287 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
7288
7289 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
7290 (ZCX_By_Default): Likewise.
7291 (Front_End_ZCX_Support): Likewise.
7292
7293 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
7294 (Initialize_Lock): Mark Level unreferenced.
7295 (Sleep): Mark Reason unreferenced.
7296 (Timed_Sleep): Likewise.
7297 (Wakeup): Likewise.
7298 (Exit_Task): Use Result.
7299 (Check_No_Locks): Mark Self_ID unreferenced.
7300
7301 * 5gtasinf.adb (New_Sproc): Make Attr constant.
7302 (Bound_Thread_Attributes): Make Sproc constant.
7303 (New_Bound_Thread_Attributes): Likewise.
7304
7305 2004-01-26 Ed Schonberg <schonberg@gnat.com>
7306
7307 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
7308 one-dimensional array an slice assignments, when component type is
7309 controlled.
7310
7311 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
7312 component type is controlled, and control_actions are in effect, use
7313 TSS procedure rather than generating inline code.
7314
7315 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
7316 arrays with controlled components.
7317
7318 2004-01-26 Vincent Celier <celier@gnat.com>
7319
7320 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
7321 command line for the non VMS case.
7322
7323 * gnatlink.adb (Process_Binder_File): When building object file, if
7324 GNU linker is used, put all object paths between quotes, to prevent ld
7325 error when there are unusual characters (such as '!') in the paths.
7326
7327 * Makefile.generic: When there are sources in Ada and the main is in
7328 C/C++, invoke gnatmake with -B, instead of -z.
7329
7330 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
7331 from VMS_Conversion.
7332 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
7333 specification of argument file on the command line.
7334
7335 2004-01-26 Bernard Banner <banner@gnat.com>
7336
7337 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
7338
7339 2004-01-26 Ed Schonberg <schonberg@gnat.com>
7340
7341 * snames.adb: Update copyright notice.
7342 Add info on slice assignment for controlled arrays.
7343
7344 2004-01-23 Robert Dewar <dewar@gnat.com>
7345
7346 * exp_aggr.adb: Minor reformatting
7347
7348 * exp_ch9.adb: Minor code clean up
7349 Minor reformatting
7350 Fix bad character in comment
7351
7352 PR ada/13471
7353 * targparm.adb (Get_Target_Parameters): Give clean abort error on
7354 unexpected end of file, along with more detailed message.
7355
7356 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7357
7358 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
7359 PAT.
7360
7361 * decl.c (copy_alias_set): New function.
7362 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
7363
7364 2004-01-23 Doug Rupp <rupp@gnat.com>
7365
7366 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
7367 lib$${file} in case subsequent character is not a separator.
7368
7369 2004-01-23 Vincent Celier <celier@gnat.com>
7370
7371 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
7372 when the GCC version is at least 3.
7373
7374 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
7375 Remove all "Opt.", to prepare for opt split
7376
7377 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
7378 Extends_All. Set to True when the project parsed is an extending all
7379 project. Fails for importing an extending all project only when the
7380 imported project is an extending all project.
7381 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
7382 depending on the value of Extends_All returned.
7383
7384 * prj-proc.adb (Process): Check that no project shares its object
7385 directory with a project that extends it, directly or indirectly,
7386 including a virtual project.
7387 Check that no project extended by another project shares its object
7388 directory with another also extended project.
7389
7390 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
7391 Kind = N_With_Clause
7392
7393 * prj-tree.ads: Minor reformatting
7394 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
7395
7396 2004-01-23 Ed Schonberg <schonberg@gnat.com>
7397
7398 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
7399 applies to a type with an incomplete view, use full view in Name of
7400 clause, for consistency with uses of Get_Attribute_Definition_Clause.
7401
7402 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
7403
7404 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
7405 SCHED_RR, since other values are not supported by this policy.
7406 (Initialize): Move initialization of mutex attribute to package
7407 elaboration, to prevent early access to this variable.
7408
7409 * Makefile.in: Remove mention of Makefile.adalib, unused.
7410
7411 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
7412 1ssecsta.ads: Removed, unused.
7413
7414 2004-01-21 Javier Miranda <miranda@gnat.com>
7415
7416 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
7417 entity if already built in the current scope.
7418
7419 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
7420 reminder in internal scopes. Required for nested limited aggregates.
7421
7422 2004-01-21 Doug Rupp <rupp@gnat.com>
7423
7424 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
7425 VMS. Replace all occurences of libgnat- and libgnarl- with
7426 libgnat$(hyphen) and libgnarl$(hyphen).
7427 Fixed shared library build problem on VMS.
7428
7429 2004-01-21 Robert Dewar <dewar@gnat.com>
7430
7431 * mlib-prj.adb: Minor reformatting
7432
7433 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
7434
7435 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
7436 'constant' keywords for declaration of pointers that are not modified.
7437
7438 * exp_pakd.adb: Fix English in comment.
7439
7440 2004-01-21 Ed Schonberg <schonberg@gnat.com>
7441
7442 PR ada/10889
7443 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
7444 copy all attributes of the parent, including the foreign language
7445 convention.
7446
7447 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
7448
7449 PR ada/10565
7450 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
7451 for 'delay until' statement.
7452
7453 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
7454
7455 * Make-lang.in: Replace $(docdir) with doc.
7456 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
7457 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
7458 to use consistent MAKEINFO rule.
7459 (ada.man, ada.srcman): Dummy entry.
7460 (ADA_INFOFILES): Define.
7461 (ada.info, ada.srcinfo): New rules.
7462
7463 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
7464
7465 * utils.c: Update copyright notice, missed in previous change.
7466
7467 2004-01-19 Vincent Celier <celier@gnat.com>
7468
7469 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
7470 args if Bind is True. Set First_ALI, if not already done.
7471 (Build_Library): For Stand Alone Libraries, extract from one ALI file
7472 an eventual --RTS switch, for gnatbind, and all backend switches +
7473 --RTS, for linking.
7474
7475 2004-01-19 Robert Dewar <dewar@gnat.com>
7476
7477 * sem_attr.adb, memtrack.adb: Minor reformatting
7478
7479 2004-01-19 Ed Schonberg <schonberg@gnat.com>
7480
7481 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
7482 that rename enumeration literals. This is properly done in sem_eval.
7483
7484 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
7485 to functions that rename enumeration literals.
7486
7487 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
7488 functions that rename enumeration literals.
7489
7490 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
7491
7492 * Make-lang.in (utils.o): Depend on target.h.
7493 * utils.c: Include target.h.
7494 (process_attributes): Use targetm.have_named_sections instead
7495 of ASM_OUTPUT_SECTION_NAME.
7496
7497 2004-01-16 Andreas Jaeger <aj@suse.de>
7498
7499 * Makefile.in: Add $(DESTDIR).
7500
7501 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
7502
7503 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
7504 also when not defining if a Size clause applies. That information is
7505 not to be ignored.
7506
7507 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
7508
7509 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
7510 symbolic links for the shared gnat run time when needed.
7511
7512 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
7513
7514 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
7515 for writing, and terminate with an error message if not.
7516
7517 2004-01-15 Ed Schonberg <schonberg@gnat.com>
7518
7519 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
7520 warning on an access to subprogram in an instance, when the target
7521 type is declared in the same generic unit.
7522 (Eval_Attribute): If 'access is known to fail accessibility check,
7523 rewrite as a raise statement.
7524
7525 2004-01-15 GNAT Script <nobody@gnat.com>
7526
7527 * Make-lang.in: Makefile automatically updated
7528
7529 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
7530
7531 * Make-lang.in (ada.srcextra): Dummy entry.
7532
7533 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
7534
7535 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
7536
7537 2004-01-13 Ed Schonberg <schonberg@gnat.com>
7538
7539 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
7540 components that are initialized with aggregates.
7541
7542 2004-01-13 Vincent Celier <celier@gnat.com>
7543
7544 * gnatlink.adb (Process_Binder_File): To find directory of shared
7545 libgcc, if "gcc-lib" is not a subdirectory, look for the last
7546 subdirectory "lib" in the path of the shared libgnat or libgnarl.
7547
7548 * make.adb (Gnatmake): If GCC version is at least 3, link with
7549 -shared-libgcc, when there is at least one shared library project.
7550
7551 * opt.ads (GCC_Version): New integer constant.
7552
7553 * adaint.c (get_gcc_version): New function.
7554
7555 2004-01-13 Robert Dewar <dewar@gnat.com>
7556
7557 * sem_dist.adb, sem_res.adb, sem_util.adb,
7558 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
7559 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
7560
7561 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
7562
7563 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
7564 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
7565 declarations.
7566
7567 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
7568
7569 * misc.c: Remove trailing spaces.
7570 Update copyright notice missed in previous change.
7571
7572 PR ada/13572
7573 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
7574 prefix/share/make
7575
7576 * Makefile.generic: Update copyright.
7577 Add license notice.
7578
7579 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
7580 of prefix/share/make.
7581
7582 * Makefile.prolog: Update copyright.
7583 Add license notice.
7584
7585 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
7586
7587 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
7588 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
7589 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
7590 instead of String.
7591
7592 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
7593 signature.
7594
7595 2004-01-12 Javier Miranda <miranda@gnat.com>
7596
7597 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
7598 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
7599 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
7600 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
7601 Component_Definition node.
7602
7603 2004-01-12 Ed Falis <falis@gnat.com>
7604
7605 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
7606
7607 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
7608
7609 * link.c: Change default libgnat kind to STATIC for FreeBSD.
7610
7611 2004-01-12 Bernard Banner <banner@gnat.com>
7612
7613 * Makefile.in: map 86numaux to a-numaux for x86_64
7614
7615 2004-01-12 Ed Schonberg <schonberg@gnat.com>
7616
7617 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
7618 generated to rename a generic actual, go to the actual itself, the
7619 subtype is not a user-visible entity.
7620
7621 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
7622 part is a private subtype, reset the visibility of its full view, if
7623 any, to be consistent.
7624
7625 PR ada/13417
7626 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
7627 to use a generic package G as a formal package for another generic
7628 declared within G.
7629
7630 2004-01-12 Robert Dewar <dewar@gnat.com>
7631
7632 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
7633
7634 * usage.adb: Remove mention of obsolete -gnatwb switch
7635 Noticed during code reading
7636
7637 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
7638
7639 * 1ssecsta.adb: Minor changes for -gnatwa warnings
7640
7641 2004-01-12 GNAT Script <nobody@gnat.com>
7642
7643 * Make-lang.in: Makefile automatically updated
7644
7645 2004-01-09 Mark Mitchell <mark@codesourcery.com>
7646
7647 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
7648
7649 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7650
7651 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
7652
7653 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
7654
7655 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
7656 Update comment and copyright date.
7657 * stamp-xgnatug: Delete.
7658
7659 2004-01-05 Robert Dewar <dewar@gnat.com>
7660
7661 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
7662 be modified by the binder generated main program if the -D switch is
7663 used.
7664
7665 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
7666 imported functions (since now we expect this to be done for imported
7667 functions)
7668
7669 * 5vtaprop.adb: Add several ??? for sections requiring more comments
7670 Minor reformatting throughout
7671
7672 * 5zinit.adb: Minor reformatting
7673 Add 2004 to copyright date
7674 Minor changes to avoid -gnatwa warnings
7675 Correct some instances of using OR instead of OR ELSE (noted while
7676 doing reformatting)
7677
7678 * sprint.adb: Minor updates to avoid -gnatwa warnings
7679
7680 * s-secsta.ads, s-secsta.adb:
7681 (SS_Get_Max): New function to obtain high water mark for ss stack
7682 Default_Secondary_Stack is not a constant since it may be modified by
7683 the binder generated main program if the -D switch is used.
7684
7685 * switch-b.adb: New -Dnnn switch for binder
7686
7687 * switch-c.adb:
7688 Make -gnatg imply all warnings currently in -gnatwa
7689
7690 * vms_conv.adb: Minor reformatting
7691 Add 2004 to copyright notice
7692 Add 2004 to printed copyright notice
7693
7694 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
7695 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
7696 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
7697 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
7698 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
7699 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
7700 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
7701 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
7702 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
7703 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
7704 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
7705 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
7706 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
7707 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
7708 checks.adb, clean.adb, cstand.adb, einfo.ads,
7709 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
7710 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
7711 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
7712 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
7713 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
7714 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
7715 Minor reformatting and code clean ups.
7716 Minor changes to prevent -gnatwa warnings
7717
7718 * ali.adb: Minor reformatting and cleanup of code
7719 Acquire new SS indication of secondary stack use from ali files
7720
7721 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
7722 (since now we expect this to be done for imported functions)
7723
7724 * bindgen.adb: Generate call to modify default secondary stack size if
7725 -Dnnn switch given
7726
7727 * bindusg.adb: Add line for new -D switch
7728
7729 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
7730 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
7731 Add circuitry for both records and arrays to avoid gigi
7732 processing if the type involved has non-bit-aligned components
7733
7734 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
7735 N_String_Literal node always references an E_String_Literal_Subtype
7736 entity. This may not be true in the future.
7737 (Possible_Bit_Aligned_Component): Move processing of
7738 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
7739
7740 * exp_ch6.adb (Expand_Thread_Body): Pick up
7741 Default_Secondary_Stack_Size as variable so that we get value modified
7742 by possible -Dnnn binder parameter.
7743
7744 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
7745 (Type_May_Have_Bit_Aligned_Components): New function.
7746
7747 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
7748 (Type_May_Have_Bit_Aligned_Components): New function.
7749
7750 * fe.h: (Set_Identifier_Casing): Fix prototype.
7751 Add declaration for Sem_Elim.Eliminate_Error_Msg.
7752 Minor reformatting.
7753
7754 * freeze.adb (Freeze_Entity): Add RM reference to error message about
7755 importing constant atomic/volatile objects.
7756 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
7757 unless explicit Pure_Function pragma given, to avoid insidious bug of
7758 call to non-pure imported function getting eliminated.
7759
7760 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
7761 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
7762 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
7763 Add 2004 to printed copyright notice
7764
7765 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
7766 stack used.
7767
7768 * Makefile.rtl: Add entry for g-sestin.o
7769 g-sestin.ads: New file.
7770
7771 * mdll.adb: Minor changes to avoid -gnatwa warnings
7772
7773 * mlib-tgt.adb: Minor reformatting
7774
7775 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
7776 New switch Sec_Stack_Used (GNAT, GNATBIND)
7777 Make Default_Secondary_Stack_Size a variable instead of a constant,
7778 so that it can be modified by the new -Dnnn bind switch.
7779
7780 * rtsfind.adb (Load_Fail): Give full error message in configurable
7781 run-time mode if all_errors mode is set. This was not done in the case
7782 of a file not found, which was an oversight.
7783 Note if secondary stack unit is used by compiler.
7784
7785 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
7786 ineffective elaborate all pragmas on non-visible packages (this
7787 happened when a renamed subprogram was called). Now the elaborate all
7788 always goes on the package containing the renaming rather than the one
7789 containing the renamed subprogram.
7790
7791 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
7792 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
7793
7794 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
7795 has an Etype that references an E_String_Literal.
7796 (Eval_String_Literal): Avoid assumption that N_String_Literal node
7797 always references an E_String_Literal_Subtype entity. This may not
7798 be true in the future.
7799
7800 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
7801 pragma location.
7802
7803 * sem_res.adb (Resolve): Specialize msg for function name used in proc
7804 call.
7805
7806 2004-01-05 Ed Falis <falis@gnat.com>
7807
7808 * g-debuti.adb: Replaced direct boolean operator with short-circuit
7809 form.
7810
7811 2004-01-05 Vincent Celier <celier@gnat.com>
7812
7813 * bld.adb: Minor comment updates
7814 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
7815 of Item_Name).
7816
7817 * make.adb (Gnatmake): Special process for files to compile/check when
7818 -B is specified. Fail when there are only foreign mains in attribute
7819 Main of the project file and -B is not specified. Do not skip bind/link
7820 steps when -B is specified.
7821
7822 * makeusg.adb: Document new switch -B
7823
7824 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
7825
7826 * switch-m.adb: (Scan_Make_Switches): Process -B switch
7827
7828 * vms_data.ads: Add new GNAT PRETTY qualifier
7829 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
7830
7831 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7832
7833 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
7834 case.
7835
7836 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
7837 Set_Identifier_Casing.
7838
7839 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
7840 has size that overflows.
7841
7842 2004-01-05 Gary Dismukes <dismukes@gnat.com>
7843
7844 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
7845 -gnatwa warning on static condition.
7846
7847 2004-01-05 Doug Rupp <rupp@gnat.com>
7848
7849 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
7850
7851 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
7852
7853 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
7854 all attributes, including read-only attribute.
7855
7856 2004-01-05 Pascal Obry <obry@gnat.com>
7857
7858 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
7859 library naming scheme.
7860
7861 * mlib-prj.adb (Build_Library): Generate different names for the static
7862 or dynamic version of the GNAT runtime. This is needed to support the
7863 new shared library naming scheme.
7864 (Process_Binder_File): Add detection of shared library in binder file
7865 based on the new naming scheme.
7866
7867 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
7868 scheme for the shared runtime libraries.
7869
7870 * Makefile.in:
7871 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
7872 scheme.
7873 (install-gnatlib): Do not create symlinks for shared libraries.
7874 (gnatlib-shared-default): Idem.
7875 (gnatlib-shared-dual-win32): New target. Not used for now as the
7876 auto-import feature does not support arrays/records.
7877 (gnatlib-shared-win32): Do not create copy for the shared libraries.
7878 (gnatlib-shared-vms): Fix shared runtime libraries names.
7879
7880 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
7881 dependent runtime shared library name.
7882
7883 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
7884
7885 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
7886 than the object.
7887
7888 2004-01-05 Ed Schonberg <schonberg@gnat.com>
7889
7890 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
7891 protected objects when allocator has a subtype indication, not a
7892 qualified expression. Note that qualified expressions may have to be
7893 checked when limited aggregates are implemented.
7894
7895 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
7896 pure, emit warning.
7897 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
7898 subprogram is imported, remove warning.
7899
7900 2004-01-05 Geert Bosch <bosch@gnat.com>
7901
7902 * s-poosiz.adb: Update copyright notice.
7903 (Allocate): Use Task_Lock to protect against concurrent access.
7904 (Deallocate): Likewise.
7905
7906 2004-01-05 Joel Brobecker <brobecker@gnat.com>
7907
7908 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
7909 comment.
7910
7911 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
7912
7913 * gnat_ug.texi: Force a CVS commit by updating copyright.
7914 * gnat_ug_vxw.texi: Regenerate.
7915 * gnat_ug_wnt.texi: Regenerate.
7916 * gnat_ug_vms.texi: Regenerate.
7917 * gnat_ug_unx.texi: Regenerate.
7918
7919 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
7920
7921 * trans.c: Remove uses of "register" specifier in
7922 declarations of local variables.
7923
7924 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
7925
7926 * stamp-xgnatug: New stamp file.
7927 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
7928 (ada/doctools/xgnatug): Add $(build_exeext).
7929 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
7930 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
7931
7932 2003-12-17 Ed Falis <falis@gnat.com>
7933
7934 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
7935 eliminate warning.
7936
7937 * a-exextr.adb: Add context clause for
7938 Ada.Exceptions.Last_Chance_Handler.
7939
7940 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
7941
7942 * cstand.adb (Create_Standard): Change the way how the declaration of
7943 the Duration type is created (making it the same way as it is for all
7944 the other standard types).
7945
7946 2003-12-17 Robert Dewar <dewar@gnat.com>
7947
7948 * s-crtl.ads: Fix header format
7949 Change Pure to Preelaborate
7950
7951 2003-12-17 Ed Schonberg <schonberg@gnat.com>
7952
7953 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
7954 the expression type only if it is declared in the current unit.
7955
7956 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
7957 are universal and already analyzed, as can occur in constrained
7958 subcomponents that depend on discriminants, when one constraint is a
7959 subtype mark.
7960
7961 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
7962 type Any_Fixed is legal as the argument of a conversion, if only one
7963 fixed-point type is in context.
7964
7965 2003-12-17 GNAT Script <nobody@gnat.com>
7966
7967 * Make-lang.in: Makefile automatically updated
7968
7969 2003-12-15 Robert Dewar <dewar@gnat.com>
7970
7971 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
7972 sec stack size.
7973
7974 2003-12-15 Vincent Celier <celier@gnat.com>
7975
7976 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
7977 (Gnatchop): Do not set failure status when reporting the number of
7978 warnings.
7979
7980 2003-12-15 Doug Rupp <rupp@gnat.com>
7981
7982 * s-ctrl.ads: New file.
7983
7984 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
7985
7986 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
7987 (GNATBIND_OBJS): Add ada/s-crtl.o.
7988
7989 * Makefile.in [VMS]: Clean up ifeq rules.
7990
7991 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
7992 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
7993 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
7994 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
7995 s-tasdeb.adb: Update copyright.
7996 Import System.CRTL.
7997 Make minor modifications to use System.CRTL declared functions instead
7998 of importing locally.
7999
8000 2003-12-15 GNAT Script <nobody@gnat.com>
8001
8002 * Make-lang.in: Makefile automatically updated
8003
8004 2003-12-11 Ed Falis <falis@gnat.com>
8005
8006 * 5zinit.adb: Clean up.
8007
8008 * 5zintman.adb (Notify_Exception): replaced case statement with a call
8009 to __gnat_map_signal, imported from init.c to support
8010 signal -> exception mappings that depend on the vxWorks version.
8011
8012 * init.c:
8013 Created and exported __gnat_map_signal to support signal -> exception
8014 mapping that is dependent on the VxWorks version.
8015 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
8016
8017 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
8018
8019 * 5wosinte.ads: Link with -mthreads switch.
8020
8021 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
8022
8023 * init.c (__gnat_install_handler [NetBSD]): Set
8024 __gnat_handler_installed, as done on all other platforms.
8025 Remove duplicated code.
8026
8027 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
8028
8029 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
8030
8031 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
8032
8033 * sinfo.ads: Fix inconsistent example code in comment.
8034
8035 2003-12-11 Robert Dewar <dewar@gnat.com>
8036
8037 * a-tiinau.adb: Add a couple of comments
8038
8039 * sem_ch3.adb: Minor reformatting
8040
8041 * sem_prag.adb:
8042 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
8043 Minor reformatting throughout
8044
8045 2003-12-11 Ed Schonberg <schonberg@gnat.com>
8046
8047 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
8048 bounds of a loop, create a separate block in order to generate proper
8049 cleanup actions to prevent memory leaks.
8050
8051 * sem_res.adb (Resolve_Call): After a call to
8052 Establish_Transient_Scope, the call may be rewritten and relocated, in
8053 which case no further processing is needed.
8054
8055 * sem_util.adb: (Wrong_Type): Refine previous fix.
8056 Fixes ACATS regressions.
8057
8058 PR ada/13353
8059
8060 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
8061 be inlined.
8062
8063 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
8064
8065 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
8066 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
8067 obsolete files.
8068
8069 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
8070 (rts-zfp): Ditto.
8071
8072 2003-12-08 Robert Dewar <dewar@gnat.com>
8073
8074 * 7sintman.adb: Minor reformatting
8075
8076 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
8077 standard linker options to get standard libraries linked. We now plan
8078 to provide dummy versions of these libraries to match the appropriate
8079 configurable run-time (e.g. if a library is not needed at all, provide
8080 a dummy empty library).
8081
8082 * targparm.ads: Configurable_Run_Time mode no longer affects linker
8083 options (-L parameters and standard libraries). What we plan to do is
8084 to provide dummy libraries where the libraries are not required.
8085
8086 * gnatbind.adb: Minor comment improvement
8087
8088 2003-12-08 Javier Miranda <miranda@gnat.com>
8089
8090 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
8091 aggregate in the parent. Otherwise constants with limited aggregates
8092 are not supported. Add new formal to pass the component type (Ctype).
8093 It is required to call the corresponding IP subprogram in case of
8094 default initialized components.
8095 (Gen_Assign): In case of default-initialized component, generate a
8096 call to the IP subprogram associated with the component.
8097 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
8098 of aggregate with default initialized components.
8099 (Has_Default_Init_Comps): Improve implementation to recursively check
8100 all the present expressions.
8101
8102 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
8103 to indicate that the initialization call corresponds to a
8104 default-initialized component of an aggregate.
8105 In case of default initialized aggregate with tasks this parameter is
8106 used to generate a null string (this is just a workaround that must be
8107 improved later). In case of discriminants, this parameter is used to
8108 generate a selected component node that gives access to the discriminant
8109 value.
8110
8111 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
8112 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
8113 allocated aggregates with default-initialized components.
8114
8115 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
8116 the box notation is used in positional aggregates.
8117
8118 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
8119
8120 * lib.ads: Fix typo in comment
8121
8122 2003-12-08 Vincent Celier <celier@gnat.com>
8123
8124 * prj.adb (Project_Empty): New component Unkept_Comments
8125 (Scan): Remove procedure; moved to Prj.Err.
8126
8127 * prj.ads (Project_Data): New Boolean component Unkept_Comments
8128 (Scan): Remove procedure; moved to Prj.Err.
8129
8130 * prj-dect.adb: Manage comments for the different declarations.
8131
8132 * prj-part.adb (With_Record): New component Node
8133 (Parse): New Boolean parameter Store_Comments, defaulted to False.
8134 Set the scanner to return ends of line and comments as tokens, if
8135 Store_Comments is True.
8136 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
8137 comments are associated with these nodes. Store the node IDs in the
8138 With_Records.
8139 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
8140 With_Records.
8141 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
8142 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
8143 current project. Call Tree.Restore afterwards. Set the various nodes
8144 for comment storage (Next_End, End_Of_Line, Previous_Line,
8145 Previous_End).
8146
8147 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
8148 defaulted to False.
8149
8150 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
8151 to False. When Truncated is True, truncate the string, never go to the
8152 next line.
8153 (Write_End_Of_Line_Comment): New procedure
8154 (Print): Process comments for nodes N_With_Clause,
8155 N_Package_Declaration, N_String_Type_Declaration,
8156 N_Attribute_Declaration, N_Typed_Variable_Declaration,
8157 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
8158 Process nodes N_Comment.
8159
8160 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
8161 without comments and there are some comments, set the flag
8162 Unkept_Comments to True.
8163 (Scan): If there are comments, set the flag Unkept_Comments to True and
8164 clear the comments.
8165 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
8166 (Next_End_Nodes: New table
8167 (Comment_Zones_Of): New function
8168 (Scan): New procedure; moved from Prj. Accumulate comments in the
8169 Comments table and set end of line comments, comments after, after end
8170 and before end.
8171 (Add_Comments): New procedure
8172 (Save, Restore, Seset_State): New procedures
8173 (There_Are_Unkept_Comments): New function
8174 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
8175 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
8176 procedures.
8177 (First_Comment_After, First_Comment_After_End): New functions
8178 (First_Comment_Before, First_Comment_Before_End): New functions
8179 (Next_Comment): New function
8180 (End_Of_Line_Comment, Follows_Empty_Line,
8181 Is_Followed_By_Empty_Line): New functions
8182 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
8183 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
8184 (Set_Next_Comment): New procedure
8185 (Default_Project_Node): Associate comment before if the node can store
8186 comments.
8187
8188 * scans.ads (Token_Type): New enumeration value Tok_Comment
8189 (Comment_Id): New global variable
8190
8191 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
8192 defaulted to False.
8193 (Scan): Store position of start of comment. If comments are tokens, set
8194 Comment_Id and set Token to Tok_Comment when scanning a comment.
8195 (Set_Comment_As_Token): New procedure
8196
8197 * sinput-p.adb: Update Copyright notice
8198 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
8199 that no longer exists.
8200
8201 2003-12-08 Javier Miranda <miranda@gnat.com>
8202
8203 * sem_aggr.adb: Add dependence on Exp_Tss package
8204 Correct typo in comment
8205 (Resolve_Aggregate): In case of array aggregates set the estimated
8206 type of the aggregate before calling resolve. This is needed to know
8207 the name of the corresponding IP in case of limited array aggregates.
8208 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
8209 in case of default initialized array components.
8210
8211 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
8212 types. Required to give support to limited aggregates in generic
8213 formals.
8214
8215 2003-12-08 Ed Schonberg <schonberg@gnat.com>
8216
8217 * sem_ch3.adb (Check_Initialization): For legality purposes, an
8218 inlined body functions like an instantiation.
8219 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
8220 until bounds are analyzed, to diagnose premature use of type.
8221
8222 * sem_util.adb (Wrong_Type): Improve error message when the type of
8223 the expression is used prematurely.
8224
8225 2003-12-08 GNAT Script <nobody@gnat.com>
8226
8227 * Make-lang.in: Makefile automatically updated
8228
8229 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
8230
8231 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
8232 they are automatically generated by Make-lang.in and cause nothing but
8233 maintenance troubles.
8234
8235 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
8236
8237 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
8238 version of this unit).
8239
8240 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
8241
8242 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
8243 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
8244 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
8245 the body of System.Interrupt_Management common to several targets.
8246 Update copyright notice when appropriate.
8247
8248 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
8249 constant.
8250
8251 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
8252 to ensure that the kernel fills in the interrupted context structure
8253 before calling a signal handler, which is necessary to be able to
8254 unwind past it. Update the copyright notice.
8255
8256 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
8257
8258 * a-elchha.ads: New file.
8259
8260 * a-elchha.adb: New default last chance handler. Contents taken from
8261 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
8262
8263 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
8264 is moved to a-elchha.adb to provide a target-independent default last
8265 chance handler.
8266
8267 * Makefile.rtl: Add a-elchha.o
8268
8269 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
8270
8271 2003-12-05 Ed Schonberg <schonberg@gnat.com>
8272
8273 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
8274 declared in an instance, do not inline the call if the instance is not
8275 frozen yet, to prevent order of elaboration problems.
8276
8277 * sem_prag.adb: Add comments for previous fix.
8278
8279 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
8280
8281 * g-table.adb: Use the right variable in Set_Item.
8282 Update copyright notice.
8283
8284 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
8285
8286 * Makefile.in: Remove unused rules.
8287
8288 2003-12-05 Vincent Celier <celier@gnat.com>
8289
8290 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
8291 -nostdlib. Not needed here after all.
8292
8293 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
8294
8295 PR ada/11724
8296
8297 * adaint.h, adaint.c, g-os_lib.ads:
8298 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
8299 on some platforms (including FreeBSD), it is a 64 bit value.
8300 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
8301
8302 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
8303
8304 * gnatvsn.ads (Library_Version): Now contain only the relevant
8305 version info.
8306 (Verbose_Library_Version): New constant.
8307
8308 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
8309 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
8310 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
8311
8312 * gnatlbr.adb: Clean up: replace Library_Version by
8313 Verbose_Library_Version.
8314
8315 * make.adb, lib-writ.adb, exp_attr.adb:
8316 Clean up: replace Library_Version by Verbose_Library_Version.
8317
8318 * 5lintman.adb: Removed.
8319
8320 * Makefile.in:
8321 Update and simplify computation of LIBRARY_VERSION.
8322 Fix computation of GSMATCH_VERSION.
8323 5lintman.adb is no longer used: replaced by 7sintman.adb.
8324
8325 2003-12-03 Robert Dewar <dewar@gnat.com>
8326
8327 * exp_ch5.adb:
8328 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
8329 name. Modified to consider small non-bit-packed arrays as troublesome
8330 and in need of component-by-component assigment expansion.
8331
8332 2003-12-03 Vincent Celier <celier@gnat.com>
8333
8334 * lang-specs.h: Process nostdlib as nostdinc
8335
8336 * back_end.adb: Update Copyright notice
8337 (Scan_Compiler_Arguments): Process -nostdlib directly.
8338
8339 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
8340
8341 * Makefile.in:
8342 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
8343 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
8344 included in HIE_NONE_TARGET_PAIRS.
8345
8346 2003-12-03 Ed Schonberg <schonberg@gnat.com>
8347
8348 * sem_attr.adb:
8349 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
8350 is legal in an instance, because legality is cheched in the template.
8351
8352 * sem_prag.adb:
8353 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
8354 appplied to an unchecked conversion of a formal parameter.
8355
8356 * sem_warn.adb:
8357 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
8358 variables.
8359
8360 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
8361
8362 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
8363 routines. The second one is new functionality to deal with backtracing
8364 through signal handlers.
8365 (unwind): Split into the two separate subroutines above.
8366 Update the documentation, and deal properly with sizeof (REG) different
8367 from sizeof (void*).
8368
8369 2003-12-01 Nicolas Setton <setton@act-europe.fr>
8370
8371 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
8372 so that the debugger can reliably access the value of the parameter,
8373 and therefore is able to display the exception name when an exception
8374 breakpoint is reached.
8375
8376 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
8377
8378 * fmap.adb: Fix typo in warning message.
8379
8380 * g-socket.ads, g-socket.adb: Make Free a visible instance of
8381 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
8382
8383 2003-12-01 Vincent Celier <celier@gnat.com>
8384
8385 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
8386 ther is no Afile.
8387 (Build_Library): Get the switches only if Default_Switches is declared
8388 in package Binder.
8389
8390 2003-12-01 Ed Schonberg <schonberg@gnat.com>
8391
8392 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
8393 actuals that are indexed components, reanalyze actual to ensure that
8394 packed array references are properly expanded.
8395
8396 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
8397 attempted assignment to a discriminant.
8398
8399 2003-12-01 Robert Dewar <dewar@gnat.com>
8400
8401 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
8402 reformatting.
8403
8404 * switch-c.adb: Minor reformatting of comments
8405
8406 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
8407
8408 * Makefile.in: Clean ups.
8409
8410 2003-12-01 GNAT Script <nobody@gnat.com>
8411
8412 * Make-lang.in: Makefile automatically updated
8413
8414 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
8415
8416 * 5wsystem.ads: Disable zero cost exception, not ready yet.
8417
8418 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
8419
8420 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
8421 to force serialization.
8422
8423 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
8424
8425 * g-socket.ads, g-socket.adb:
8426 Clarify documentation of function Stream. Introduce a Free procedure
8427 to release the returned Stream once it becomes unused.
8428
8429 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
8430
8431 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
8432
8433 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
8434 since NT 4 cannot handle timeout values that are too large,
8435 e.g. DWORD'Last - 1.
8436
8437 2003-11-26 Ed Schonberg <schonberg@gnat.com>
8438
8439 * exp_ch4.adb:
8440 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
8441 in procedure calls and whose expansion must be deferred.
8442
8443 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
8444 is in exp_ch4.
8445
8446 * sem_ch3.adb:
8447 (Build_Derived_Array_Type): Create operator for unconstrained type
8448 if ancestor is unconstrained.
8449
8450 2003-11-26 Vincent Celier <celier@gnat.com>
8451
8452 * make.adb (Project_Object_Directory): New global variable
8453 (Change_To_Object_Directory): New procedure
8454 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
8455 of Change_Dir directly. Do not change working directory to object
8456 directory of main project after each compilation.
8457 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
8458 directly.
8459 Change to object directory of main project before binding step.
8460 (Initialize): Initialize Project_Object_Directory to No_Project
8461
8462 * mlib-prj.adb:
8463 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
8464 binding a Stand-Alone Library.
8465
8466 * output.adb: Update Copyright notice
8467 (Write_Char): Output buffer when full
8468
8469 2003-11-26 Robert Dewar <dewar@gnat.com>
8470
8471 * sem_ch13.adb: (Check_Size): Reset size if size is too small
8472
8473 * sem_ch13.ads:
8474 (Check_Size): Fix documentation to include bit-packed array case
8475
8476 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
8477
8478 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
8479
8480 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
8481
8482 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
8483
8484 PR ada/13142
8485 * utils.c (init_gigi_decls): Change name of built-in setjmp to
8486 __builtin_setjmp, since this is apparently needed by recent
8487 non Ada changes.
8488
8489 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8490
8491 * adadecode.c: Only include ctype.h if not IN_GCC.
8492 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
8493
8494 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
8495
8496 * Makefile.in:
8497 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
8498 signals and interrupts.
8499
8500 * 5zintman.ads: New File.
8501
8502 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
8503 add exception signals to the set of unmasked signals.
8504
8505 * 5ztaprop.adb:
8506 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
8507 between signals and interrupts.
8508 Add to Unblocked_Signal_Mask the set of signals that are in
8509 Keep_Unmasked.
8510
8511 * 7sinmaop.adb:
8512 Adding a check to see whether the Interrupt_ID we want to unmask is in
8513 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
8514 reason is that the index type of the Keep_Unmasked array is not always
8515 Interrupt_ID; it may be a subtype of Interrupt_ID.
8516
8517 2003-11-24 Gary Dismukes <dismukes@gnat.com>
8518
8519 * exp_util.adb:
8520 (Remove_Side_Effects): Condition constantness of object created for a
8521 an unchecked type conversion on the constantness of the expression
8522 to ensure the correct value for 'Constrained when passing components
8523 of view-converted class-wide objects.
8524
8525 2003-11-24 Robert Dewar <dewar@gnat.com>
8526
8527 * par-load.adb (Load): Improve handling of misspelled and missing units
8528 Removes several cases of compilation abandoned messages
8529
8530 * lib.adb: (Remove_Unit): New procedure
8531
8532 * lib.ads: (Remove_Unit): New procedure
8533
8534 * lib-load.adb: Minor reformatting
8535
8536 2003-11-24 Vincent Celier <celier@gnat.com>
8537
8538 * make.adb:
8539 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
8540 (Marking_Label): Label to mark processed source files. Incremented for
8541 each executable.
8542 (Gnatmake): Increase Marking_Labet for each executable
8543 (Is_Marked): Compare against marking label
8544 (Mark): Mark with marking label
8545
8546 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
8547
8548 * s-thread.ads:
8549 Move the declaration of the TSD for System.Threads to System.Soft_Links.
8550 Add some comments.
8551
8552 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
8553 (rts-cert): build a single relocatable object for the run-time lib.
8554 Fix perms.
8555
8556 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
8557
8558 * Make-lang.in:
8559 Use gnatls rather than gcc to obtain the location of GNAT RTL for
8560 crosstools build.
8561
8562 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
8563
8564 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
8565 can not use it as before (that is, as a variable) when dumping it into
8566 the tree file. Add a local variable to store the result of this
8567 function and to be used as the string to be written into the tree.
8568
8569 * scn.adb (Initialize_Scanner): Add comments explaining the recent
8570 changes.
8571
8572 * sinput.adb (Source_First, Source_Last): In case of
8573 Internal_Source_File, replace returning attributes of
8574 Internal_Source_Ptr (which is wrong) with returning attributes of
8575 Internal_Source.
8576
8577 2003-11-24 Ed Schonberg <schonberg@gnat.com>
8578
8579 * sem_ch3.adb:
8580 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
8581 used for implicit concatenation operators.
8582 Code cleanup.
8583
8584 * sem_elab.adb:
8585 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
8586 task bodies that are in the scope of a Suppress pragma.
8587 (Check_A Call): Use the flag to prevent spurious elaboration checks.
8588
8589 * sinfo.ads, sinfo.adb:
8590 New flag No_Elaboration_Check on function/procedure calls, to properly
8591 suppress checks on calls in task bodies that are within a local suppress
8592 pragma.
8593
8594 * exp_ch4.adb:
8595 (Expand_Concatenate_Other): Use the proper integer type for the
8596 expression for the upper bound, to avoid universal_integer computations
8597 when possible.
8598
8599 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
8600
8601 * .cvsignore: Delete.
8602
8603 2003-11-21 Andreas Schwab <schwab@suse.de>
8604
8605 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
8606
8607 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
8608
8609 * 5wsystem.ads: Enable zero cost exception.
8610
8611 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
8612
8613 * 5ztiitho.adb: Remove an unreferenced variable.
8614
8615 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
8616
8617 * adaint.c: For FreeBSD, use mkstemp.
8618
8619 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
8620
8621 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
8622
8623 2003-11-21 Robert Dewar <dewar@gnat.com>
8624
8625 * bld.adb: Remove useless USE of gnatvsn
8626
8627 * gnatchop.adb: Minor reformatting
8628 Clean up version handling to be more consistent
8629
8630 * gnatxref.adb: Minor reformatting
8631
8632 * gprcmd.adb: Minor reformatting
8633 Fix output of copyright to be more consistent with other tools
8634
8635 2003-11-21 Vincent Celier <celier@gnat.com>
8636
8637 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
8638
8639 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
8640
8641 * atree.adb (Initialize): Add initializations for global variables
8642 used in New_Copy_Tree.
8643
8644 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
8645 Internal_Source_File as the actual).
8646 Put the set of statements creating Any_Character before the set of
8647 statements creating Any_Array to have Any_Character fully initialized
8648 when it is used in creating Any_Array.
8649
8650 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
8651 not call Scan in case if the actual is Internal_Source_File
8652 Add 2003 to copyright note.
8653
8654 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
8655 processing Internal_Source_File.
8656
8657 * types.ads: Add the constant Internal_Source_File representing the
8658 source buffer for artificial source-code-like strings created within
8659 the compiler (the definition of Source_File_Index is changed).
8660
8661 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
8662
8663 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
8664 56system.ads: New file, FreeBSD version.
8665
8666 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
8667
8668 * Make-lang.in (ada.extraclean): Delete.
8669
8670 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
8671
8672 * gnatmem.adb: Clean up verbose output.
8673
8674 * gprcmd.adb: Change copyright to FSF.
8675
8676 2003-11-19 Vincent Celier <celier@gnat.com>
8677
8678 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
8679 and Version (ignored).
8680
8681 * symbols.ads: (Policy): New type
8682 (Initialize): New parameter Reference, Symbol_Policy and
8683 Library_Version.
8684 Remove parameter Force.
8685 Minor reformatting.
8686
8687 * snames.ads, snames.adbadb: New standard names
8688 Library_Reference_Symbol_File and Library_Symbol_Policy
8689
8690 * mlib-prj.adb:
8691 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
8692 project.
8693
8694 * mlib-tgt.adb:
8695 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
8696
8697 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
8698
8699 * prj.adb: (Project_Empty): New component Symbol_Data
8700
8701 * prj.ads: (Policy, Symbol_Record): New types
8702 (Project_Data): New component Symbol_Data
8703
8704 * prj-attr.adb:
8705 New attributes Library_Symbol_File, Library_Symbol_Policy and
8706 Library_Reference_Symbol_File.
8707
8708 * prj-nmsc.adb:
8709 (Ada_Check): When project is a Stand-Alone library project, process
8710 attribute Library_Symbol_File, Library_Symbol_Policy and
8711 Library_Reference_Symbol_File.
8712
8713 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
8714 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
8715 5sml-tgt.adb (Build_Dynamic_Library): New parameter
8716 Symbol_Data (ignored).
8717
8718 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
8719 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
8720 functions Option_File_Name and Version_String. Set new options of
8721 gnatsym related to symbol file, symbol policy and reference symbol
8722 file.
8723
8724 * 5vsymbol.adb:
8725 Extensive modifications to take into account the reference symbol file,
8726 the symbol policy, the library version and to put in the symbol file the
8727 minor and major IDs.
8728
8729 * bld.adb (Process_Declarative_Items): Put second argument of
8730 gprcmd to_absolute between single quotes, to avoid problems with
8731 Windows.
8732
8733 * bld-io.adb: Update Copyright notice.
8734 (Flush): Remove last character of a line, if it is a back slash, to
8735 avoid make problems.
8736
8737 * gnatsym.adb:
8738 Implement new scheme with reference symbol file and symbol policy.
8739
8740 * g-os_lib.ads: (Is_Directory): Clarify comment
8741
8742 2003-11-19 Robert Dewar <dewar@gnat.com>
8743
8744 * atree.adb: Move New_Copy_Tree global variables to head of package
8745
8746 * errout.adb: Minor reformatting
8747
8748 2003-11-19 Javier Miranda <miranda@gnat.com>
8749
8750 * sem_ch4.adb: (Diagnose_Call): Improve error message.
8751 Add reference to Ada0Y (AI-50217)
8752
8753 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
8754 sem_util.adb: Add reference to AI-50217
8755
8756 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
8757
8758 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
8759
8760 * sem_aggr.adb: Complete documentation of AI-287 changes
8761
8762 * par-ch4.adb: Document previous changes.
8763
8764 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
8765 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
8766 Ada0Y (AI-50217)
8767
8768 * exp_aggr.adb: Add references to AI-287 in previous changes
8769
8770 2003-11-19 Ed Schonberg <schonberg@gnat.com>
8771
8772 * exp_ch6.adb:
8773 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
8774 in the rewriting is the result of an inlined call.
8775
8776 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
8777 parameter is a type conversion, use original node to construct the
8778 post-call assignment, because expression may have been rewritten, e.g.
8779 if it is a packed array.
8780
8781 * sem_attr.adb:
8782 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
8783 body, just as it is in an instance.
8784 Categorization routines
8785
8786 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
8787 Instantiate_Object): Set proper sloc reference for message on missing
8788 actual.
8789
8790 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
8791
8792 * Makefile.in: Add FreeBSD libgnat pairs.
8793
8794 * usage.adb: Fix typo in usage message.
8795
8796 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
8797
8798 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
8799 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
8800 pragma Thread_Body.
8801 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
8802
8803 * s-thread.adb: This file is now a dummy implementation of
8804 System.Thread.
8805
8806 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
8807
8808 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
8809
8810 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
8811
8812 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
8813 instanciation references in the parent type description.
8814
8815 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8816
8817 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
8818
8819 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
8820 TYPE_PRECISION directly from esize.
8821
8822 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
8823
8824 * cstreams.c:
8825 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
8826
8827 * init.c: Initialization routines for FreeBSD
8828
8829 * link.c: Link info for FreeBSD
8830
8831 * sysdep.c: Add the case of FreeBSD
8832
8833 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
8834
8835 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
8836 already called in System.Threads.
8837
8838 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
8839 environment task, as it has been moved to System.Threads.Initialization.
8840
8841 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
8842
8843 * adaint.c (__gnatlib_install_locks): Only reference
8844 __gnat_install_locks on VMS, since other platforms can avoid using
8845 --enable-threads=gnat
8846
8847 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8848
8849 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
8850
8851 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
8852 TYPE_PACKED_ARRAY_TYPE_P.
8853 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
8854
8855 Part of PR ada/12806
8856 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
8857 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
8858
8859 2003-11-17 Vincent Celier <celier@gnat.com>
8860
8861 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
8862 to False.
8863 Do not set exit status to Failure when Warning is True.
8864 (Gnatchop): Make errors "no compilation units found" and
8865 "no source files written" warnings only.
8866
8867 * make.adb (Gnatmake): When using a project file, set
8868 Look_In_Primary_Dir to False.
8869 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
8870 and Local_Configuration_Pragmas in the project where they are declared
8871 not an extending project which might have inherited them.
8872
8873 * osint.adb (Locate_File): If Name is already an absolute path, do not
8874 look for a directory.
8875
8876 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
8877 -gnats (Check_Syntax) is used, issue only a warning, not an error.
8878
8879 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
8880 in objects of type Variable_Value.
8881
8882 * prj.ads: (Variable_Value): New component Project
8883
8884 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
8885 is in a project extended by Project.
8886
8887 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
8888 Project of Variable_Values to this new parameter value.
8889 (Expression): Set component Project of Variable_Values.
8890 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
8891 Set the component Project in array elements.
8892
8893 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
8894
8895 * errout.adb: (Initialize): Add initialization for error nodes.
8896
8897 * sem_ch12.adb (Initialize): Add missing initializations for
8898 Exchanged_Views and Hidden_Entities.
8899
8900 2003-11-17 Ed Schonberg <schonberg@gnat.com>
8901
8902 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
8903 already instantiated tree for use in subsequent inlining.
8904 (Analyze_Associations, Instantiate_Formal_Subprogram,
8905 Instantiate_Object): improve error message for mismatch in
8906 instantiations.
8907
8908 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
8909 instantiations of subprograms declared in instances.
8910
8911 2003-11-17 Javier Miranda <miranda@gnat.com>
8912
8913 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
8914 executed only under the Extensions_Allowed flag.
8915
8916 2003-11-17 Robert Dewar <dewar@gnat.com>
8917
8918 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
8919 zeroes suppressed.
8920 (Address_Image): Fix bug of returning 0x instead of 0x0
8921 Minor reformatting (function specs).
8922
8923 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
8924 (missed case of 33-63)
8925
8926 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
8927
8928 * s-thread.adb: Add comments for pragma Restriction
8929
8930 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
8931 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
8932
8933 2003-11-17 Ed Falis <falis@gnat.com>
8934
8935 * s-thread.adb: Added No_Tasking restriction for this implementation.
8936
8937 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
8938
8939 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
8940 instanciation references in the parent type description.
8941
8942 2003-11-17 GNAT Script <nobody@gnat.com>
8943
8944 * Make-lang.in: Makefile automatically updated
8945
8946 2003-11-16 Jason Merrill <jason@redhat.com>
8947
8948 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
8949 and TAGS files that include them for each front end.
8950
8951 2003-11-14 Andreas Jaeger <aj@suse.de>
8952
8953 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
8954 is the canonical version.
8955 * misc.c (gnat_handle_option): Likewise.
8956
8957 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
8958
8959 * 5nsystem.ads: New file for x86_64-linux-gnu.
8960
8961 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
8962
8963 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
8964
8965 * comperr.adb: Fix logic in previous change.
8966
8967 2003-11-13 Vincent Celier <celier@gnat.com>
8968
8969 * 5bml-tgt.adb (Build_Dynamic_Library): Use
8970 Osint.Include_Dir_Default_Prefix instead of
8971 Sdefault.Include_Dir_Default_Name.
8972
8973 * gnatlbr.adb: Update Copyright notice
8974 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
8975 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
8976 instead of Sdefault.Object_Dir_Default_Name
8977
8978 * gnatlink.adb:
8979 (Process_Binder_File): Never suppress the option following -Xlinker
8980
8981 * mdll-utl.adb:
8982 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
8983 Sdefault.Object_Dir_Default_Name.
8984
8985 * osint.ads, osint.adb:
8986 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
8987 Minor reformatting.
8988
8989 * vms_conv.ads: Minor reformating
8990 Remove GNAT STANDARD and GNAT PSTA
8991
8992 * vms_conv.adb:
8993 Allow GNAT MAKE to have several files on the command line.
8994 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
8995 Sdefault.Object_Dir_Default_Name.
8996 Minor Reformating
8997 Remove data for GNAT STANDARD
8998
8999 * vms_data.ads:
9000 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
9001 Remove data for GNAT STANDARD
9002 Remove options and documentation for -gnatwb/-gnatwB: these warning
9003 options no longer exist.
9004
9005 2003-11-13 Ed Falis <falis@gnat.com>
9006
9007 * 5zthrini.adb: (Init_RTS): Made visible
9008
9009 * 5zthrini.adb:
9010 (Register): Removed unnecessary call to taskVarGet that checked whether
9011 an ATSD was already set as a task var for the argument thread.
9012
9013 * s-thread.adb:
9014 Updated comment to reflect that this is a VxWorks version
9015 Added context clause for System.Threads.Initialization
9016 Added call to System.Threads.Initialization.Init_RTS
9017
9018 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
9019
9020 * 5zthrini.adb:
9021 (Init_RTS): New procedure, for the initialization of the run-time lib.
9022
9023 * s-thread.adb:
9024 Remove dependancy on System.Init, so that this file can be used in the
9025 AE653 sequential run-time lib.
9026
9027 2003-11-13 Robert Dewar <dewar@gnat.com>
9028
9029 * bindgen.adb: Minor reformatting
9030
9031 2003-11-13 Ed Schonberg <schonberg@gnat.com>
9032
9033 * checks.adb:
9034 (Apply_Discriminant_Check): Do no apply check if target type is derived
9035 from source type with no applicable constraint.
9036
9037 * lib-writ.adb:
9038 (Ensure_System_Dependency): Do not apply the style checks that may have
9039 been specified for the main unit.
9040
9041 * sem_ch8.adb:
9042 (Find_Selected_Component): Further improvement in error message, with
9043 RM reference.
9044
9045 * sem_res.adb:
9046 (Resolve): Handle properly the case of an illegal overloaded protected
9047 procedure.
9048
9049 2003-11-13 Javier Miranda <miranda@gnat.com>
9050
9051 * exp_aggr.adb:
9052 (Has_Default_Init_Comps): New function to check the presence of
9053 default initialization in an aggregate.
9054 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
9055 extension aggregate of a limited record. In addition, a new formal
9056 was added to do not initialize the record controller (if any) during
9057 this recursive expansion of ancestors.
9058 (Init_Controller): Add support for limited record components.
9059 (Expand_Record_Aggregate): In case of default initialized components
9060 convert the aggregate into a set of assignments.
9061
9062 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
9063 describing the new syntax.
9064 Nothing else needed to be done because this subprogram delegates part of
9065 its work to P_Precord_Or_Array_Component_Association.
9066 (P_Record_Or_Array_Component_Association): Give support to the new
9067 syntax for default initialization of components.
9068
9069 * sem_aggr.adb:
9070 (Resolve_Aggregate): Relax the strictness of the frontend in case of
9071 limited aggregates.
9072 (Resolve_Record_Aggregate): Give support to default initialized
9073 components.
9074 (Get_Value): In case of default initialized components, duplicate
9075 the corresponding default expression (from the record type
9076 declaration). In case of default initialization in the *others*
9077 choice, do not check that all components have the same type.
9078 (Resolve_Extension_Aggregate): Give support to limited extension
9079 aggregates.
9080
9081 * sem_ch3.adb:
9082 (Check_Initialization): Relax the strictness of the front-end in case
9083 of aggregate and extension aggregates. This test is now done in
9084 Get_Value in a per-component manner.
9085
9086 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
9087 expression corresponds to a limited aggregate. This test is now done
9088 in Get_Value.
9089
9090 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
9091 Box_Present flag.
9092
9093 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
9094 present in an N_Component_Association node
9095
9096 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
9097
9098 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
9099 type-conformant entry only if they are homographs.
9100
9101 2003-11-13 GNAT Script <nobody@gnat.com>
9102
9103 * Make-lang.in: Makefile automatically updated
9104
9105 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9106
9107 * adadecode.c: Use <> form of include for ctype.h.
9108 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
9109
9110 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9111
9112 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
9113 Works around PR middle-end/6552.
9114
9115 2003-11-10 Ed Falis <falis@gnat.com>
9116
9117 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
9118
9119 * 5zinit.adb: (Install_Handler): Moved back to spec
9120 (Install_Signal_Handlers): Deleted
9121
9122 * 5zthrini.adb: Added context clause for System.Storage_Elements
9123 (Register): Only handles creation of taskVar; initialization moved to
9124 Thread_Body_Enter.
9125 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
9126 Added declaration of environment task secondary stack and
9127 initialization.
9128
9129 * s-thread.adb: Implement bodies for thread body processing
9130
9131 * s-thread.ads:
9132 Added comment identifying supported targets for pragma Thread_Body.
9133
9134 2003-11-10 Pascal Obry <obry@gnat.com>
9135
9136 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
9137 GNAT_MAX_PATH_LEN.
9138
9139 * s-fileio.adb:
9140 (Open): Properly check for string length before copying into the buffer.
9141 Raises Name_Error if buffer is too small. Note that this was a potential
9142 buffer overflow.
9143
9144 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
9145
9146 * bindgen.adb, comperr.adb: Code clean ups.
9147 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
9148
9149 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
9150
9151 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
9152
9153 2003-11-10 Vincent Celier <celier@gnat.com>
9154
9155 * gprcmd.adb:
9156 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
9157 installation.
9158
9159 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
9160
9161 * prj.adb: (Project_Empty): Add new boolean component Virtual
9162
9163 * prj.ads: (Virtual_Prefix): New constant string
9164 (Project_Data): New boolean component Virtual
9165
9166 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
9167 a library project is extended by a virtual extending project.
9168
9169 * prj-part.adb:
9170 Modifications throughout to implement extending-all project, including:
9171 (Virtual_Hash, Processed_Hash): New hash tables
9172 (Create_Virtual_Extending_Project): New procedure
9173 (Look_For_Virtual_Projects_For): New procedure
9174
9175 * prj-proc.adb:
9176 (Process): After checking the projects, if main project is an
9177 extending-all project, set the object directory of all virtual extending
9178 project to the object directory of the main project.
9179 Adjust error message when a virtual extending project has the same
9180 object directory as an project being extended.
9181 (Recursive_Process): If name starts with the virtual prefix, set Virtual
9182 to True in the project data.
9183
9184 * prj-tree.adb:
9185 (Default_Project_Node): Add new boolean component Extending_All
9186 (Is_Extending_All): New function
9187 (Set_Is_Extending_All): New procedure
9188
9189 * prj-tree.ads: (Is_Extending_All): New function
9190 (Set_Is_Extending_All): New procedure
9191 (Project_Node_Record): New boolean component Extending_All
9192
9193 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
9194
9195 * vms_data.ads:
9196 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
9197
9198 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
9199 "gprcmd prefix" to define it.
9200
9201 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
9202
9203 * einfo.ads: Fix a typo and remove an extraneous word in comments.
9204
9205 * lib-load.adb:
9206 (Create_Dummy_Package_Unit): Set the scope of the entity for the
9207 created dummy package to Standard_Standard, not to itself, to
9208 defend other parts of the front-end against encoutering a cycle in
9209 the scope chain.
9210
9211 * sem_ch10.adb:
9212 (Analyze_With_Clause): When setting the entities for the successive
9213 N_Expanded_Names that constitute the name of a child unit, do not
9214 attempt to go further than Standard_Standard in the chain of scopes.
9215 This case arises from the placeholder units created by
9216 Create_Dummy_Package_Unit in the case of a with_clause for a
9217 nonexistent child unit.
9218
9219 2003-11-10 Ed Schonberg <schonberg@gnat.com>
9220
9221 * exp_ch6.adb:
9222 (Expand_Thread_Body): Place subprogram on scope stack, so that new
9223 declarations are given the proper scope.
9224
9225 * sem_ch13.adb:
9226 (Check_Expr_Constants): Reject an expression that contains a constant
9227 created during expansion, and that appears after the object to which
9228 the address clause applies.
9229
9230 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
9231 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
9232 that uses 'Range of a function call with controlled components, so
9233 that the function result can be finalized before starting the loop.
9234
9235 * sem_ch8.adb:
9236 (Find_Selected_Component): Improve error message when prefix is
9237 an implicit dereference of an incomplete type.
9238
9239 2003-11-10 Robert Dewar <dewar@gnat.com>
9240
9241 * opt.ads: New Print_Standard flag for -gnatS switch
9242
9243 * sem_ch13.adb: Remove some additional checks for unaligned arrays
9244
9245 * cstand.adb (Create_Standard): Print out package standard if -gnatS
9246 switch set
9247
9248 * debug.adb: Update doc for -gnatds to discuss relationship with new
9249 -gnatS flag
9250
9251 * sinfo.adb: Add new field Entity_Or_Associated_Node
9252
9253 * sinfo.ads: Add new field Entity_Or_Associated_Node
9254 Update documentation for Associated_Node and Entity fields to clarify
9255 relationship and usage.
9256
9257 * sprint.adb:
9258 (Write_Id): Properly process Associated_Node field in generic template
9259
9260 * switch-c.adb:
9261 Recognize new -gnatS switch for printing package Standard
9262 This replaces gnatpsta
9263
9264 * usage.adb:
9265 Add line for new -gnatS switch for printing package Standard
9266 This replaces gnatpsta
9267
9268 2003-11-10 Andreas Jaeger <aj@suse.de>
9269
9270 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
9271 integer.
9272
9273 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
9274
9275 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
9276 by gnat1.
9277
9278 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
9279
9280 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
9281 no longer needed.
9282
9283 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
9284
9285 * sysdep.c: Add handling of cygwin.
9286
9287 2003-11-10 GNAT Script <nobody@gnat.com>
9288
9289 * Make-lang.in: Makefile automatically updated
9290
9291 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
9292
9293 PR 12950
9294 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
9295 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
9296 Replace GNAT_ROOT by GCC_ROOT.
9297
9298 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
9299
9300 2003-11-06 Zack Weinberg <zack@codesourcery.com>
9301
9302 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
9303 and update for changed meaning of GET_MODE_BITSIZE.
9304
9305 2003-11-04 Doug Rupp <rupp@gnat.com>
9306
9307 * sysdep.c: Problem discovered during IA64 VMS port.
9308 [VMS] #include <unixio.h> to get proper prototypes.
9309
9310 * adaint.c:
9311 Issues discovered/problems fixed during IA64 VMS port.
9312 [VMS] #define _POSIX_EXIT for proper semantics.
9313 [VMS] #include <unixio.h> for proper prototypes.
9314 [VMS] (fork): #define IA64 version.
9315 (__gnat_os_exit): Remove unnecessary VMS specific code.
9316
9317 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9318
9319 Part of PR ada/12806
9320
9321 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
9322 tree, not integer.
9323
9324 * decl.c:
9325 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
9326 not integer.
9327
9328 * targtyps.c, decl.c, misc.c,
9329 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
9330 routines to work around change in FP sizing semantics in GCC.
9331
9332 * utils.c:
9333 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
9334
9335 * gigi.h: (enumerate_modes): New function.
9336
9337 * Make-lang.in: (ada/misc.o): Add real.h.
9338
9339 * misc.c: (enumerate_modes): New function.
9340
9341 2003-11-04 Robert Dewar <dewar@gnat.com>
9342
9343 * 3vtrasym.adb: Minor reformatting
9344 Use terminology encoded/decoded name, rather than C++ specific notion
9345 of mangling (this is the terminology used throughout GNAT).
9346
9347 * einfo.h: Regenerated
9348
9349 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
9350
9351 * exp_ch6.adb:
9352 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
9353
9354 * par-prag.adb: Add dummy entry for Thread_Body pragma
9355
9356 * rtsfind.ads:
9357 Add entries for System.Threads entities for thread body processing
9358
9359 * sem_attr.adb:
9360 (Analyze_Pragma, Access attributes): Check these are not applied to a
9361 thread body, since this is not permitted
9362
9363 * sem_prag.adb: Add processing for Thread_Body pragma.
9364 Minor comment fix.
9365
9366 * sem_res.adb:
9367 (Resolve_Call): Check for incorrect attempt to call a thread body
9368 procedure with a direct call.
9369
9370 * snames.ads, snames.adb: Add entry for Thread_Body pragma
9371 Add names associated with thread body expansion
9372
9373 * snames.h: Add entry for Thread_Body pragma
9374
9375 * s-thread.adb: Add entries for thread body processing
9376 These are dummy bodies so far
9377
9378 * s-thread.ads: Add documentation on thread body handling.
9379 Add entries for thread body processing.
9380
9381 2003-11-04 Javier Miranda <miranda@gnat.com>
9382
9383 * sem_ch10.adb:
9384 (Build_Limited_Views): Return after posting an error in case of limited
9385 with_clause on subprograms, generics, instances or generic renamings
9386 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
9387 on subprograms, generics, instances or generic renamings
9388
9389 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
9390
9391 * raise.c (setup_to_install): Correct mistake in last revision; two
9392 arguments out of order.
9393
9394 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
9395 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
9396 notice, missed in previous change.
9397 Remove trailing blanks and other style errors introduced in previous
9398 change.
9399
9400 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
9401
9402 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
9403 rid of the wrapper for a LJM type, ensuring we don't do that if the
9404 field is addressable. This avoids potential low level type view
9405 mismatches later on, for instance in a by-reference argument passing
9406 process.
9407
9408 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9409
9410 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
9411 aligned at byte boundary.
9412
9413 2003-11-04 Joel Brobecker <brobecker@gnat.com>
9414
9415 * decl.c (components_to_record): Do not delete the empty variants from
9416 the end of the union type.
9417
9418 2003-11-04 Ed Schonberg <schonberg@gnat.com>
9419
9420 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
9421 operation for a derived type, an explicit declaration may use a local
9422 subtype of Boolean.
9423
9424 2003-11-04 Vincent Celier <celier@gnat.com>
9425
9426 * make.adb (Gnatmake): Allow main sources on the command line with a
9427 library project when it is only for compilation (no binding or
9428 linking).
9429
9430 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9431
9432 * Makefile.in: Remove many duplicate variables.
9433
9434 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
9435
9436 * Make-lang.in (dvi): Move targets to $(docobjdir).
9437 (gnat_ug_vms.dvi): Simplify rule and adjust target.
9438 (gnat_ug_wnt.dvi): Likewise.
9439 (gnat_ug_unx.dvi): Likewise.
9440 (gnat_ug_vxw.dvi): Likewise.
9441 (gnat_rm.dvi): Likewise.
9442 (gnat-style.dvi): Likewise.
9443
9444 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
9445
9446 * gigi.h: Missed commit from update for C90.
9447
9448 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
9449
9450 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
9451
9452 2003-10-31 Andreas Schwab <schwab@suse.de>
9453
9454 * raise.c (get_action_description_for): Fix typo in last change.
9455
9456 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
9457
9458 PR ada/12761
9459 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
9460 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
9461
9462 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
9463
9464 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
9465 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
9466 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
9467 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
9468 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
9469
9470 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
9471
9472 * 3vtrasym.adb:
9473 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
9474 numbers when symbol name is too long.
9475
9476 2003-10-30 Ed Falis <falis@gnat.com>
9477
9478 * g-signal.ads, g-signal.adb: New files
9479
9480 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
9481
9482 * Makefile.rtl: Introduce GNAT.Signals
9483
9484 2003-10-30 Robert Dewar <dewar@gnat.com>
9485
9486 * freeze.adb: Minor reformatting
9487
9488 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
9489
9490 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
9491 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
9492 New handling of Id_Check parameter to improve recognition of keywords
9493 used as identifiers.
9494 Update copyright notice to include 2003
9495
9496 2003-10-29 Robert Dewar <dewar@gnat.com>
9497
9498 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
9499 sem_ch10.adb: Minor reformatting
9500
9501 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
9502 (Expand_Assign_Record): Test right hand side for bit unaligned as well
9503
9504 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
9505
9506 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
9507 Support for TBK$SYMBOLIZE-based symbolic traceback.
9508
9509 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
9510
9511 * exp_disp.adb:
9512 Revert previous change, that did not work well when pragma No_Run_Time
9513 was used in conjunction with a run-time other than ZFP.
9514
9515 2003-10-29 Vincent Celier <celier@gnat.com>
9516
9517 * make.adb:
9518 (Gnatmake): When there are no Ada mains in attribute Main, disable the
9519 bind and link steps only is switch -z is not used.
9520
9521 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
9522
9523 * Makefile.generic: Remove duplicated setting of CC.
9524
9525 * Makefile.prolog: Set CC to gcc by default, to override make's
9526 default (cc).
9527
9528 * einfo.h: Regenerated.
9529
9530 2003-10-29 Ed Schonberg <schonberg@gnat.com>
9531
9532 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
9533 current body, after compiling subunit.
9534
9535 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
9536 when in deleted code, because gigi needs properly ordered freeze
9537 actions to annotate types.
9538
9539 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
9540 prevent the premature freezing of record type that contains
9541 subcomponents with a private type that does not yet have a completion.
9542
9543 2003-10-29 Javier Miranda <miranda@gnat.com>
9544
9545 * sem_ch12.adb:
9546 (Analyze_Package_Instantiation): Check that instances can not be used in
9547 limited with_clauses.
9548
9549 * sem_ch8.adb:
9550 (Analyze_Package_Renaming): Check that limited withed packages cannot
9551 be renamed. Improve text on error messages related to limited
9552 with_clauses.
9553
9554 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
9555
9556 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
9557 Update copyright notice.
9558
9559 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
9560 (Install_Limited_Context_Clauses): New subprogram that isolates all the
9561 checks required for limited context_clauses and installs the limited
9562 view.
9563 (Install_Limited_Withed_Unit): Complete its documentation.
9564 (Analyze_Context): Check that limited with_clauses are only allowed in
9565 package specs.
9566 (Install_Context): Call Install_Limited_Context_Clauses after the
9567 parents have been installed.
9568 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
9569 package as 'From_With_Type'; this mark indicates that the limited view
9570 is installed. Used to check bad usages of limited with_clauses.
9571 (Build_Limited_Views): Do not add shadow entities to the scope's list
9572 of entities. Do not add real entities to the Non_Limited_Views chain.
9573 Improve error notification.
9574 (Remove_Context_Clauses): Remove context clauses in two phases:
9575 limited views first and regular views later (to maintain the
9576 stack model).
9577 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
9578 its visible entities.
9579
9580 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
9581
9582 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
9583 with any type that Is_Fixed_Point_Type.
9584
9585 * sinfo.ads: Fix documentation for Associated_Node attribute.
9586
9587 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
9588
9589 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
9590 both '-gnatc' and '-gnatt' are specified.
9591
9592 * atree.adb (Initialize): Add initialization for Node_Count (set to
9593 zero).
9594
9595 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9596
9597 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
9598 do not consider as Pure.
9599
9600 Part of implementation of function-at-a-time:
9601
9602 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
9603 (tree_transform): Add new argument to build_component_ref.
9604 (tree_transform, case N_Assignment_Statement): Make and return an
9605 EXPR_STMT.
9606 (tree_transform): If result IS_STMT, set flags and return it.
9607 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
9608
9609 * utils2.c (build_simple_component_ref, build_component_ref): Add new
9610 arg, NO_FOLD_P.
9611 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
9612 (build_allocator): Likewise.
9613
9614 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
9615 Add new arg to build_component_ref.
9616 (maybe_unconstrained_array, unchecked_convert): Likewise.
9617
9618 * ada-tree.def (EXPR_STMT): New code.
9619
9620 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
9621
9622 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
9623 build_component_ref calls.
9624
9625 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
9626
9627 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
9628 (build_component_ref): Add new argument, NO_FOLD_P.
9629
9630 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
9631
9632 * Makefile.generic: Add missing substitution on object_deps handling.
9633
9634 PR ada/5909:
9635 * Make-lang.in (check-ada): Enable ACATS test suite.
9636
9637 2003-10-27 Robert Dewar <dewar@gnat.com>
9638
9639 * exp_ch3.adb:
9640 (Freeze_Array_Type): We do not need an initialization routine for types
9641 derived from String or Wide_String. They should be treated the same
9642 as String and Wide_String themselves. This caused problems with the
9643 use of Initialize_Scalars.
9644
9645 * exp_ch5.adb:
9646 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
9647 composites. This allows use of component clauses that are not byte
9648 aligned.
9649
9650 * sem_prag.adb:
9651 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
9652 is an attempt to pack an array of atomic objects.
9653
9654 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
9655
9656 2003-10-27 Pascal Obry <obry@gnat.com>
9657
9658 * g-dirope.adb:
9659 (Basename): Check for drive letters in a pathname only on DOS based OS.
9660
9661 2003-10-27 Vincent Celier <celier@gnat.com>
9662
9663 * make.adb:
9664 (Gnatmake): When unable to change dir to the object dir, display the
9665 content of the parent dir of the obj dir, to try to understand why this
9666 happens.
9667
9668 2003-10-27 GNAT Script <nobody@gnat.com>
9669
9670 * Make-lang.in: Makefile automatically updated
9671
9672 2003-10-27 Ed Schonberg <schonberg@gnat.com>
9673
9674 * sem_ch12.adb:
9675 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
9676 should not be done in Save/Restore_Scope_Stack, because it is performed
9677 locally.
9678
9679 * sem_ch8.adb:
9680 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
9681 whether use clauses should be removed/restored.
9682
9683 * sem_ch8.ads:
9684 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
9685 whether use clauses should be removed/restored.
9686
9687 2003-10-26 Andreas Jaeger <aj@suse.de>
9688
9689 * Makefile.in: Remove duplicated lines.
9690
9691 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
9692
9693 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
9694 minimize the differences with ACT tree.
9695
9696 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
9697 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
9698 Gnatvsn.Gnat_Static_Version_String to reduce differences between
9699 ACT and FSF trees.
9700
9701 2003-10-24 Pascal Obry <obry@gnat.com>
9702
9703 * adadecode.c (ostrcpy): New function.
9704 (__gnat_decode): Use ostrcpy of strcpy.
9705 (has_prefix): Set first parameter a const.
9706 (has_suffix): Set first parameter a const.
9707 Update copyright notice. Fix source name in header.
9708 Removes a trailing space.
9709 PR ada/12014.
9710
9711 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
9712
9713 * exp_disp.adb:
9714 Remove the test against being in No_Run_Time_Mode before generating a
9715 call to Register_Tag. It is redundant with the test against the
9716 availability of the function Register_Tag.
9717
9718 2003-10-24 Vincent Celier <celier@gnat.com>
9719
9720 * g-catiio.adb: (Month_Name): Correct spelling of February
9721
9722 * make.adb: (Mains): New package
9723 (Initialize): Call Mains.Delete
9724 (Gnatmake): Check that each main on the command line is a source of a
9725 project file and, if there are several mains, each of them is a source
9726 of the same project file.
9727 (Gnatmake): When a foreign language is specified in attribute Languages,
9728 no main is specified on the command line and attribute Mains is not
9729 empty, only build the Ada main. If there is no Ada main, just compile
9730 the Ada sources and their closure.
9731 (Gnatmake): If a main is specified on the command line with directory
9732 information, check that the source exists and, if it does, that the path
9733 is the actual path of a source of a project.
9734
9735 * prj-env.adb:
9736 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
9737 Full_Path is True, return the full path instead of the simple file name.
9738 (Project_Of): New function
9739
9740 * prj-env.ads:
9741 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
9742 defaulted to False.
9743 (Project_Of): New function
9744
9745 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
9746
9747 * Makefile.generic:
9748 Ensure objects of main project are always checked and rebuilt if needed.
9749 Set CC to gcc by default.
9750 Prepare new handling of link by creating a global archive (not activated
9751 yet).
9752
9753 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
9754 stringt.h: Update copyright notice. Remove trailing blanks.
9755 Fix source name in header.
9756
9757 2003-10-24 Robert Dewar <dewar@gnat.com>
9758
9759 * sem_ch12.adb: Minor reformatting
9760
9761 * sem_ch3.adb:
9762 Minor reformatting (including new function return style throughout)
9763
9764 * sem_ch3.ads:
9765 Minor reformatting (including new function return style throughout)
9766
9767 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
9768
9769 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
9770 stringt.h: Update copyright notice. Remove trailing blanks.
9771 Fix source name in header.
9772
9773 2003-10-24 GNAT Script <nobody@gnat.com>
9774
9775 * Make-lang.in: Makefile automatically updated
9776
9777 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
9778
9779 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
9780 stringt.h: Convert to ISO C90 declarations and definitions.
9781
9782 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
9783
9784 PR ada/11978:
9785 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
9786 External_Tag attribute definition clauses.
9787
9788 2003-10-23 Ed Schonberg <schonberg@gnat.com>
9789
9790 PR ada/7613:
9791 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
9792 child unit, generate a fully qualified name to avoid spurious errors
9793 when the context contains renamings of different child units with
9794 the same simple name.
9795
9796 * exp_dbug.ads: Add documentation on name qualification for renamings
9797 of child units.
9798
9799 2003-10-23 Robert Dewar <dewar@gnat.com>
9800
9801 * g-regpat.ads, g-regpat.adb: Minor reformatting
9802
9803 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
9804
9805 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
9806
9807 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9808
9809 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
9810 Machine call.
9811
9812 * urealp.h: (Machine): Update to proper definition.
9813
9814 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
9815
9816 * init.c, adaint.c: Minor reformatting.
9817
9818 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
9819
9820 * adaint.c (w32_epoch_offset): Define static const at file level.
9821 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
9822 rather than t_create, t_access in call to GetFileTime. Use union
9823 to convert between FILETIME and unsigned long long.
9824 (__gnat_file_time_name): Test for invalid file handle.
9825 (__gnat_set_filetime_name): Support win32 targets using
9826 w32api SetFileTime.
9827
9828 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
9829
9830 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
9831
9832 * ctrl_c.c (__gnat_int_handler): Remove declaration.
9833
9834 * decl.c (creat_concat_name): Const-ify prefix.
9835
9836 * adaint.c: Include ctype.h if __MINGW32__.
9837 (__gnat_readlink): Mark arguments as possibly unused.
9838 (__gnat_symlink): Likewise.
9839 (__gnat_is_symbolic_link): Likewise.
9840 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
9841 declaration
9842 (__gnat_file_time_name): Don't declare struct stat statbuf when
9843 not needed.
9844 (__gnat_is_absolute_path): Add parenthesis around condition of
9845 'if' statement to avoid warning.
9846 (__gnat_plist_init): Specify void as parameter.
9847 (plist_enter): Likewise.
9848 (plist_leave): Likewise.
9849 (remove_handle): Make static. Initialize prev.
9850
9851 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
9852
9853 * Makefile.in: Disable build of gnatpsta. PR ada/10110.
9854 * cstreams.c (__gnat_full_name): Minor improvements and clean up
9855 of previous change.
9856
9857 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9858
9859 * tracebak.c (MAX): Avoid redefinition warning.
9860
9861 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
9862 Change msg to const char *.
9863 (__gnat_install_handler): Remove ss, unused.
9864 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
9865 to const char *.
9866 * cstreams.c (__gnat_full_name): Declare p only when used.
9867 (__gnat_full_name) [sgi] Return buffer.
9868
9869 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
9870
9871 * mingw32.h: New file.
9872 * gnat_wrapper.adb: New file.
9873
9874 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
9875
9876 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
9877 string match a pre compiled regular expression (the corresponding
9878 version of the function working on a raw regular expression)
9879 Fix typos in various comments
9880 Update copyright notice in spec
9881
9882 2003-10-21 Gary Dismukes <dismukes@gnat.com>
9883
9884 * exp_ch3.adb:
9885 (Component_Needs_Simple_Initialization): Return False when the type is a
9886 packed bit array. Revise spec comments to document this case.
9887
9888 * exp_prag.adb:
9889 (Expand_Pragma_Import): Set any expression on the imported object to
9890 empty to avoid initializing imported objects (in particular this
9891 covers the case of zero-initialization of bit arrays).
9892 Update copyright notice.
9893
9894 2003-10-21 Ed Schonberg <schonberg@gnat.com>
9895
9896 * sem_ch12.adb:
9897 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
9898 a subunit is missing.
9899 (Instantiate_Subprogram_Body): If body of function is missing, set type
9900 of return expression explicitly in dummy body, to prevent cascaded
9901 errors when a subunit is missing.
9902 Fixes PR 5677.
9903
9904 * sem_ch3.adb:
9905 (Access_Subprogram_Declaration): Verify that return type is valid.
9906 Fixes PR 8693.
9907
9908 * sem_elab.adb:
9909 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
9910 generic.
9911 Fixes PR 12318.
9912
9913 * sem_util.adb:
9914 (Corresponding_Discriminant): If the scope of the discriminant is a
9915 private type without discriminant, use its full view.
9916 Fixes PR 8247.
9917
9918 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
9919
9920 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
9921 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
9922 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
9923 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
9924 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
9925 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
9926 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
9927 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
9928 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
9929 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
9930 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
9931 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
9932 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
9933 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
9934 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
9935 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
9936 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
9937 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
9938 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
9939 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
9940 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
9941 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
9942 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
9943 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
9944 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
9945 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
9946 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
9947 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
9948 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
9949 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
9950 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
9951 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
9952 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
9953 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
9954 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
9955 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
9956 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
9957 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
9958 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
9959 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
9960 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
9961 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
9962 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
9963 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
9964 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
9965 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
9966 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
9967 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
9968 vms_conv.ads, vms_conv.adb, vms_data.ads,
9969 vxaddr2line.adb: Files added. Merge with ACT tree.
9970
9971 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
9972 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
9973 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
9974 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
9975 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
9976 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
9977 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
9978 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
9979 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
9980 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
9981
9982 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
9983 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
9984 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
9985 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
9986 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
9987 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
9988 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
9989 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
9990 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
9991 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
9992 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
9993 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
9994 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
9995 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
9996 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
9997 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
9998 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
9999 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
10000 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
10001 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
10002 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
10003 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
10004 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
10005 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
10006 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
10007 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
10008 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
10009 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
10010 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
10011 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
10012 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
10013 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
10014 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
10015 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
10016 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
10017 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
10018 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
10019 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
10020 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
10021 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
10022 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
10023 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
10024 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
10025 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
10026 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
10027 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
10028 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
10029 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
10030 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
10031 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
10032 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
10033 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
10034 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
10035 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
10036 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
10037 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
10038 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
10039 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
10040 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
10041 checks.adb, checks.ads, cio.c, comperr.adb,
10042 comperr.ads, csets.adb, cstand.adb, cstreams.c,
10043 debug_a.adb, debug_a.ads, debug.adb, decl.c,
10044 einfo.adb, einfo.ads, errout.adb, errout.ads,
10045 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
10046 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
10047 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
10048 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
10049 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
10050 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
10051 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
10052 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
10053 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
10054 fe.h, fmap.adb, fmap.ads, fname.adb,
10055 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
10056 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
10057 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
10058 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
10059 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
10060 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
10061 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
10062 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
10063 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
10064 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
10065 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
10066 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
10067 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
10068 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
10069 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
10070 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
10071 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
10072 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
10073 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
10074 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
10075 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
10076 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
10077 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
10078 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
10079 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
10080 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
10081 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
10082 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
10083 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
10084 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
10085 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
10086 layout.adb, lib.adb, lib.ads, lib-list.adb,
10087 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
10088 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
10089 link.c, live.adb, make.adb, make.ads,
10090 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
10091 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
10092 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
10093 misc.c, mkdir.c, mlib.adb, mlib.ads,
10094 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
10095 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
10096 namet.adb, namet.ads, namet.h, nlists.ads,
10097 nlists.h, nmake.adt, opt.adb, opt.ads,
10098 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
10099 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
10100 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
10101 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
10102 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
10103 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
10104 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
10105 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
10106 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
10107 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
10108 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
10109 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
10110 prj-util.adb, prj-util.ads, raise.c, raise.h,
10111 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
10112 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
10113 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
10114 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
10115 scans.ads, scn.adb, scn.ads, s-crc32.adb,
10116 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
10117 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
10118 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
10119 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
10120 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
10121 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
10122 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
10123 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
10124 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
10125 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
10126 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
10127 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
10128 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
10129 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
10130 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
10131 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
10132 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
10133 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
10134 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
10135 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
10136 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
10137 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
10138 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
10139 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
10140 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
10141 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
10142 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
10143 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
10144 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
10145 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
10146 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
10147 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
10148 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
10149 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
10150 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
10151 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
10152 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
10153 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
10154 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
10155 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
10156 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
10157 stringt.adb, stringt.ads, stringt.h, style.ads,
10158 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
10159 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
10160 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
10161 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
10162 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
10163 table.adb, table.ads, targparm.adb, targparm.ads,
10164 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
10165 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
10166 ttypes.ads, types.ads, types.h, uintp.adb,
10167 uintp.ads, uintp.h, uname.adb, urealp.adb,
10168 urealp.ads, urealp.h, usage.adb, utils2.c,
10169 utils.c, validsw.adb, validsw.ads, widechar.adb,
10170 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
10171 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
10172 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
10173 gnatvsn.ads: Merge with ACT tree.
10174
10175 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
10176
10177 2003-10-20 Mark Mitchell <mark@codesourcery.com>
10178
10179 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
10180 (gnat_ug_vmx.info): Likewise.
10181 (gnat_ug_vxw.info): Likewise.
10182 (gnat_ug_wnt.info): Likewise.
10183 (gnat_rm.info): Likewise.
10184 (gnat-style.info): Likewise.
10185
10186 * Make-lang.in (ada.install-info): Remove target.
10187 (info): New target.
10188 (install-info): Likewise.
10189 (gnat_ug_unx.info): Simplify rule.
10190 (gnat_ug_vmx.info): Likewise.
10191 (gnat_ug_vxw.info): Likewise.
10192 (gnat_ug_wnt.info): Likewise.
10193 (gnat_rm.info): Likewise.
10194 (gnat-style.info): Likewise.
10195
10196 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
10197
10198 * Make-lang.in: Replace uses of $(target_alias) with
10199 $(target_noncanonical).
10200 * ada/Makefile.in: Remove unused mention of $(target_alias).
10201
10202 2003-10-06 Mark Mitchell <mark@codesourcery.com>
10203
10204 * Make-lang.in (ada.info): Replace with ...
10205 (info): ... this.
10206 (ada.dvi): Replace with ...
10207 (dvi): ... this.
10208
10209 2003-09-29 Zack Weinberg <zack@codesourcery.com>
10210
10211 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
10212 initialize dconstp5 and dconstmp5.
10213
10214 2003-09-28 Richard Henderson <rth@redhat.com>
10215
10216 * trans.c (tree_transform): Update call to expand_asm_operands.
10217
10218 2003-09-21 Richard Henderson <rth@redhat.com>
10219
10220 * trans.c, utils.c: Revert.
10221
10222 2003-09-21 Richard Henderson <rth@redhat.com>
10223
10224 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
10225 change to const.
10226
10227 2003-09-04 Michael Matz <matz@suse.de>
10228
10229 * misc.c: Include "target.h".
10230 * Make-lang.in (misc.o): Add dependency on target.h.
10231
10232 2003-09-03 DJ Delorie <dj@redhat.com>
10233
10234 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
10235 hook.
10236
10237 2003-08-30 Zack Weinberg <zack@codesourcery.com>
10238
10239 * Makefile.in: Update substitutions to match changes to
10240 configure. Use include directives instead of @-insertions
10241 to read in host and target fragments. Add a rule to
10242 regenerate ada/Makefile.
10243
10244 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
10245
10246 * lang-options.h: Remove.
10247 * lang.opt: Add help text.
10248
10249 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
10250
10251 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
10252 calls.
10253
10254 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
10255
10256 * misc.c (gnat_handle_option): Don't handle filenames.
10257
10258 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
10259
10260 * Make-lang.in: Replace PWD with PWD_COMMAND.
10261 * Makefile.adalib: Likewise.
10262 * Makefile.in: Likewise.
10263
10264 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
10265
10266 * misc.c (gnat_argv): Revert last change.
10267 (gnat_handle_option, gnat_init_options): Copy arguments.
10268
10269 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
10270
10271 * misc.c (gnat_argv): Make const.
10272
10273 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
10274
10275 * misc.c (save_argc, save_argv): Keep non-static!
10276
10277 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
10278
10279 * misc.c (save_argc, save_argv): Make static.
10280 (gnat_init_options): New prototype.
10281 (gnat_init_options): Update.
10282
10283 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
10284
10285 * gnat_ug.texi: Remove unlikely characters from @vars.
10286 * gnat_ug_vms.texi: Regenerate.
10287
10288 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
10289
10290 * misc.c (record_code_position): Adjust emit_note call.
10291
10292 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
10293
10294 * misc.c (gnat_handle_option): Don't check for missing arguments.
10295
10296 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
10297
10298 * utils.c (end_subprog_body): Adjust expand_function_end call.
10299
10300 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
10301
10302 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
10303 Bind_Main_Program.
10304
10305 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
10306
10307 * lang.opt: Declare Ada.
10308 * misc.c (gnat_init_options): Update.
10309
10310 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
10311
10312 * utils.c (begin_subprog_body): Adjust init_function_start call.
10313
10314 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
10315
10316 * Make-lang.in: Update to use options.c and options.h.
10317 * misc.c: Include options.h not aoptions.h.
10318 (gnat_handle_option): Abort on unrecognized switch.
10319 (gnat_init_options): Request Ada switches.
10320
10321 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
10322
10323 * lang.opt: Add -Wall.
10324 * misc.c (gnat_handle_option): Handle it.
10325
10326 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
10327
10328 * misc.c (gnat_handle_option): Fix warnings.
10329
10330 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
10331
10332 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
10333
10334 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
10335
10336 * Make-lang.in: Update to handle command-line options.
10337 * lang.opt: New file.
10338 * misc.c: Include aoptions.h.
10339 (cl_options_count, cl_options): Remove.
10340 (gnat_handle_option): New.
10341 (gnat_decode_option): Remove.
10342 (LANG_HOOKS_DECODE_OPTION): Remove.
10343 (LANG_HOOKS_HANDLE_OPTION): Override.
10344
10345 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
10346
10347 * init.c, misc.c, trans.c, utils.c: Remove dead code.
10348
10349 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
10350
10351 * Makefile.in: Replace "host_canonical" with "host" for autoconf
10352 substitution.
10353
10354 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
10355
10356 * Make-lang.in: Update.
10357 * misc.c: Include opts.h. Define cl_options_count and cl_options.
10358
10359 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
10360
10361 * misc.c (gnat_init_options): Update.
10362
10363 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
10364
10365 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
10366 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
10367 __attribute__ ((__unused__)).
10368
10369 2003-06-05 Jan Hubicka <jh@suse.cz>
10370
10371 * Make-lang.in: Add support for stageprofile and stagefeedback
10372
10373 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
10374
10375 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
10376 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
10377
10378 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
10379
10380 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
10381 Remove non-VMS directive.
10382 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
10383 alternatives.
10384 (Examples of gnatls Usage): Remove VMS alternative.
10385
10386 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
10387
10388 PR ada/9953:
10389 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
10390 and turn ZCX_By_Default back to False since the underlying support
10391 is not quite there yet.
10392
10393 2003-06-01 Andreas Jaeger <aj@suse.de>
10394
10395 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
10396 and ROUND_TYPE_SIZE_UNIT.
10397
10398 2003-05-22 Geert Bosch <bosch@gnat.com>
10399
10400 * gnat_rm.texi : Remove reference to Ada Core Technologies.
10401
10402 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
10403
10404 * trans.c (tree_transform): Use location_t and input_location
10405 directly.
10406 (build_unit_elab): Likewise.
10407 * utils.c (create_label_decl): Likewise.
10408
10409 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
10410
10411 * trans.c (tree_transform, build_unit_elab,
10412 set_lineno): Rename lineno to input_line.
10413 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
10414 end_subprog_body): Likewise.
10415 * utils2.c (build_call_raise): Likewise.
10416
10417 2003-05-01 Laurent Guerby <guerby@acm.org>
10418
10419 PR ada/10546
10420 * 5iosinte.ads: Increase pthread_cond_t size to match recent
10421 LinuxThread and NPTL version, merge from ACT.
10422
10423 2003-04-28 Zack Weinberg <zack@codesourcery.com>
10424
10425 * utils.c (convert): No need to clear TREE_CST_RTL.
10426
10427 2003-04-23 Geert Bosch <bosch@gnat.com>
10428
10429 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
10430 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
10431 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
10432 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
10433 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
10434 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
10435 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
10436 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
10437 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
10438 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
10439 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
10440 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
10441 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
10442 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
10443 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
10444 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
10445 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
10446 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
10447 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
10448 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
10449 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
10450 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
10451 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
10452 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
10453 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
10454 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
10455 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
10456 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
10457 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
10458 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
10459 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
10460 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
10461 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
10462 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
10463 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
10464 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
10465 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
10466 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
10467 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
10468 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
10469 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
10470 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
10471 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
10472 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
10473 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
10474 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
10475 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
10476 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
10477 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
10478 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
10479 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
10480 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
10481 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
10482 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
10483 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
10484 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
10485 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
10486 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
10487 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
10488 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
10489 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
10490 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
10491 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
10492 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
10493 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
10494 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
10495 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
10496 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
10497 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
10498 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
10499 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
10500 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
10501 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
10502 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
10503 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
10504 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
10505 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
10506 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
10507 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
10508 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
10509 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
10510 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
10511 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
10512 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
10513 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
10514 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
10515 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
10516 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
10517 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
10518 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
10519 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
10520 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
10521 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
10522 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
10523 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
10524 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
10525 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
10526 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
10527 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
10528 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
10529 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
10530 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
10531 ali.adb, ali.ads, alloc.ads, argv.c,
10532 atree.adb, atree.ads, atree.h, aux-io.c,
10533 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
10534 binde.adb, binde.ads, binderr.adb, binderr.ads,
10535 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
10536 butil.adb, butil.ads, cal.c, calendar.ads,
10537 casing.adb, casing.ads, ceinfo.adb, checks.adb,
10538 checks.ads, cio.c, comperr.adb, comperr.ads,
10539 config-lang.in, csets.adb, csets.ads, csinfo.adb,
10540 cstand.adb, cstand.ads, cuintp.c, debug.adb,
10541 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
10542 dec-io.ads, dec.ads, deftarg.c, directio.ads,
10543 einfo.adb, einfo.ads, elists.adb, elists.ads,
10544 elists.h, errno.c, errout.adb, errout.ads,
10545 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
10546 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
10547 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
10548 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
10549 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
10550 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
10551 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
10552 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
10553 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
10554 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
10555 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
10556 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
10557 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
10558 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
10559 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
10560 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
10561 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
10562 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
10563 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
10564 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
10565 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
10566 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
10567 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
10568 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
10569 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
10570 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
10571 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
10572 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
10573 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
10574 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
10575 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
10576 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
10577 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
10578 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
10579 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
10580 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
10581 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
10582 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
10583 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
10584 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
10585 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
10586 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
10587 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
10588 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
10589 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
10590 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
10591 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
10592 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
10593 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
10594 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
10595 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
10596 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
10597 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
10598 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
10599 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
10600 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
10601 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
10602 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
10603 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
10604 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
10605 lib.adb, lib.ads, live.adb, live.ads,
10606 machcode.ads, make.adb, make.ads, makeusg.adb,
10607 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
10608 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
10609 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
10610 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
10611 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
10612 mlib.ads, namet.adb, namet.ads, nlists.adb,
10613 nlists.ads, opt.adb, opt.ads, osint-b.adb,
10614 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
10615 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
10616 osint.ads, output.adb, output.ads, par-ch10.adb,
10617 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
10618 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
10619 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
10620 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
10621 par-tchk.adb, par-util.adb, par.adb, par.ads,
10622 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
10623 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
10624 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
10625 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
10626 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
10627 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
10628 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
10629 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
10630 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
10631 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
10632 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
10633 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
10634 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
10635 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
10636 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
10637 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
10638 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
10639 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
10640 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
10641 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
10642 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
10643 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
10644 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
10645 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
10646 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
10647 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
10648 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
10649 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
10650 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
10651 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
10652 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
10653 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
10654 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
10655 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
10656 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
10657 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
10658 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
10659 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
10660 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
10661 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
10662 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
10663 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
10664 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
10665 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
10666 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
10667 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
10668 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
10669 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
10670 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
10671 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
10672 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
10673 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
10674 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
10675 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
10676 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
10677 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
10678 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
10679 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
10680 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
10681 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
10682 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
10683 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
10684 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
10685 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
10686 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
10687 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
10688 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
10689 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
10690 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
10691 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
10692 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
10693 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
10694 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
10695 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
10696 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
10697 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
10698 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
10699 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
10700 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
10701 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
10702 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
10703 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
10704 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
10705 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
10706 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
10707 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
10708 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
10709 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
10710 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
10711 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
10712 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
10713 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
10714 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
10715 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
10716 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
10717 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
10718 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
10719 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
10720 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
10721 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
10722 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
10723 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
10724 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
10725 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
10726 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
10727 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
10728 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
10729 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
10730 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
10731 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
10732 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
10733 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
10734 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
10735 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
10736 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
10737 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
10738 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
10739 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
10740 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
10741 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
10742 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
10743 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
10744 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
10745 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
10746 snames.ads, sprint.adb, sprint.ads, stand.adb,
10747 stand.ads, stringt.adb, stringt.ads, style.adb,
10748 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
10749 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
10750 switch-m.ads, switch.adb, switch.ads, system.ads,
10751 table.adb, table.ads, targparm.adb, targparm.ads,
10752 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
10753 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
10754 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
10755 ttypef.ads, ttypes.ads, types.adb, types.ads,
10756 uintp.adb, uintp.ads, uname.adb, uname.ads,
10757 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
10758 usage.adb, usage.ads, validsw.adb, validsw.ads,
10759 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
10760 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
10761 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
10762 formatting and other trivial changes from ACT.
10763
10764 2003-04-12 Zack Weinberg <zack@codesourcery.com>
10765
10766 * gigi.h, utils2.c (build_constructor):
10767 Rename gnat_build_constructor. Use build_constructor.
10768 * decl.c (gnat_to_gnu_entity)
10769 * trans.c (tree_transform, pos_to_constructor, extract_values)
10770 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
10771 (unchecked_convert)
10772 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
10773 (fill_vms_descriptor):
10774 Update to match.
10775
10776 2003-04-06 Zack Weinberg <zack@codesourcery.com>
10777
10778 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
10779 * misc.c (gnat_tree_size): New function.
10780 (LANG_HOOKS_TREE_SIZE): Override.
10781
10782 2003-04-03 Jason Merrill <jason@redhat.com>
10783
10784 * misc.c (gnat_adjust_rli): #if 0.
10785
10786 2003-03-31 Geert Bosch <bosch@gnat.com>
10787
10788 PR ada/10020
10789 * link.c : Fix misspelled "const" keyword
10790
10791 2003-03-23 Mark Mitchell <mark@codesourcery.com>
10792
10793 PR c++/7086
10794 * utils2.c: Adjust calls to put_var_into_stack.
10795
10796 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
10797
10798 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
10799
10800 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
10801
10802 * misc.c (gnat_init): Update for new prototype.
10803
10804 2003-03-05 Olivier Hainque <hainque@gnat.com>
10805
10806 ada/9961
10807 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
10808 warning, and fix return type for the IN_RTS && !SJLJ case.
10809
10810 2003-03-04 Tom Tromey <tromey@redhat.com>
10811
10812 * Make-lang.in (ada.tags): New target.
10813
10814 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
10815
10816 ada/9911
10817 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
10818 wrapper, which name remains constant whatever underlying GCC
10819 scheme.
10820
10821 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
10822 the stable interface needed for a-except.
10823
10824 2003-03-02 Andreas Jaeger <aj@suse.de>
10825
10826 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
10827 gnat_ug_wnt.texi: Regenerate.
10828
10829 2003-03-02 Laurent Guerby <guerby@acm.org>
10830
10831 * Makefile.in (install-gnatlib): Match previous change there
10832 so it works.
10833
10834 2003-02-28 Andreas Schwab <schwab@suse.de>
10835
10836 * Make-lang.in (install-gnatlib): Change to ada directory before
10837 running make instead of using ada/Makefile directly.
10838
10839 2003-02-18 Ben Elliston <bje@redhat.com>
10840
10841 Part of fix for PR ada/9406
10842 * gnat_ug.texi (Binder output file): Grammar fix.
10843
10844 2003-02-18 Ben Elliston <bje@redhat.com>
10845
10846 PR other/7350
10847 * 5qtaprop.adb (Sleep): Fix typo in comment.
10848
10849 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
10850
10851 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
10852 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
10853 gnat_ug_wnt.texi: Regenerate.
10854
10855 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
10856
10857 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
10858 be created if necessary.
10859 (ada.install-common): Let $(DESTDIR)$(bindir) be created
10860 if necessary. Remove erroneous and redundant gnatchop
10861 installation commands. Test for gnatdll before attempting
10862 to install it.
10863 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
10864 and gnatdll from all plausible locations.
10865
10866 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
10867
10868 * utils2.c (build_unary_op): Don't check flag_volatile.
10869 * gnat_ug.texi: Remove -fvolatile from example.
10870 * gnat_ug_vxw.texi: Likewise.
10871
10872 2003-01-29 Laurent Guerby <guerby@acm.org>
10873
10874 PR ada/8344
10875 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
10876 * Makefile.in: match previous change.
10877 * Make-lang.in: match previous change.
10878
10879 2003-01-29 Joel Sherrill <joel@OARcorp.com>
10880
10881 * 5rosinte.ads: Add SIGXCPU.
10882 * 5rtpopsp.adb: New file.
10883 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
10884 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
10885 specific file 5rtpopsp.adb.
10886 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
10887 is likely needed for all newlib targets.
10888 * init.c: Add RTEMS specific version of __gnat_initialize().
10889
10890 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10891
10892 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
10893
10894 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10895
10896 * init.c (__gnat_error_handler): Make msg const.
10897
10898 * gmem.c (convert_addresses): Move declaration ...
10899 * adaint.h: ... here.
10900 * adaint.c (convert_addresses): Adapt addrs type to match
10901 prototype.
10902
10903 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
10904
10905 2003-01-24 Andreas Schwab <schwab@suse.de>
10906
10907 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
10908 size_t to avoid warning.
10909
10910 2003-01-21 Zack Weinberg <zack@codesourcery.com>
10911
10912 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
10913
10914 2003-01-09 Geoffrey Keating <geoffk@apple.com>
10915
10916 * gnat_rm.texi: Remove RCS version number.
10917
10918 * ada-tree.h (union lang_tree_node): Add chain_next option.
10919
10920 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
10921
10922 * Make-lang.in (ada.install-info, ada.install-common,
10923 ada.uninstall): Prepend $(DESTDIR) to the destination
10924 directory in all (un)installation commands.
10925 * Makefile.in (install-gnatlib, install-rts): Ditto.
10926
10927 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
10928
10929 * gnat_rm.texi, gnat_ug.texi: Use @copying.
10930 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
10931 gnat_ug_wnt.texi: Regenerate.
10932
10933 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
10934
10935 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
10936 only.
10937 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
10938 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
10939 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
10940 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
10941 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
10942 $(srcdir)/doc/include/gcc-common.texi.
10943
10944 2002-12-15 Geert Bosch <bosch@gnat.com>
10945
10946 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
10947
10948 2002-12-14 Geert Bosch <bosch@gnat.com>
10949
10950 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
10951 case of a body created for a Renaming_As_Body, on which
10952 conformance checks are not performed. Fixes PR ada/5690.
10953
10954 2002-11-30 Zack Weinberg <zack@codesourcery.com>
10955
10956 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
10957 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
10958 not already included.
10959 * Make-lang.in: Update dependencies.
10960
10961 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
10962 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
10963 solution to buffer overflow bug on GNU/Linux.
10964
10965 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
10966 Closes PR ada/5856 and PR ada/6919 !
10967 * bindgen.adb: Remove all references to Public_Version.
10968 * comperr.adb: Remove all references to Public_Version and
10969 GNATPRO_Version; correct bug reporting instructions.
10970 * comperr.ads: Change to match bug box.
10971 * gnatvsn.ads: Remove all references to Public version and
10972 GNATPRO version.
10973
10974 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
10975 PR ada/6919
10976 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
10977 GNU/Linux.
10978
10979 PR ada/6558
10980 * config-lang.in: Remove diff_excludes.
10981
10982 2002-11-05 Graham Stott <graham.stott@btinternet.com>
10983 PR ada/8358
10984 * trans.c (gnu_pending_elaboration_lists): New GC root.
10985 (build_unit_elab): Use..
10986
10987 2002-10-30 Geert Bosch <bosch@gnat.com>
10988 PR ada/6558
10989 * misc.c : Include optabs.h
10990
10991 * Make-lang.in (misc.o): Add dependency on optabs.h
10992
10993 2002-10-29 Geert Bosch <bosch@gnat.com>
10994 PR ada/6558
10995 * Make-lang.in (gnatbind): Depend on CONFIG_H
10996
10997 2002-10-29 Geert bosch <bosch@gnat.com>
10998 PR ada/6558
10999 * misc.c: Unrevert misc.c (1.13)
11000
11001 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
11002
11003 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
11004 maintainership comments.
11005
11006 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
11007 PR ada/5904
11008 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
11009 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
11010 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
11011 7staprop.adb: Correct statements in comments about
11012 maintainership of GNAT.
11013
11014 PR ada/5904
11015 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
11016 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
11017 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
11018 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
11019 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
11020 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
11021 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
11022 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
11023 comments about maintainership of GNAT.
11024
11025 PR ada/6919 (forward port of patch for PR ada/5904)
11026 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
11027 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
11028 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
11029 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
11030 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
11031 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
11032 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
11033 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
11034 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
11035 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
11036 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
11037 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
11038 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
11039 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
11040 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
11041 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
11042 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
11043 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
11044 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
11045 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
11046 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
11047 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
11048 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
11049 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
11050 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
11051 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
11052 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
11053 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
11054 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
11055 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
11056 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
11057 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
11058 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
11059 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
11060 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
11061 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
11062 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
11063 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
11064 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
11065 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
11066 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
11067 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
11068 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
11069 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
11070 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
11071 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
11072 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
11073 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
11074 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
11075 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
11076 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
11077 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
11078 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
11079 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
11080 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
11081 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
11082 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
11083 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
11084 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
11085 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
11086 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
11087 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
11088 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
11089 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
11090 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
11091 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
11092 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
11093 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
11094 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
11095 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
11096 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
11097 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
11098 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
11099 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
11100 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
11101 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
11102 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
11103 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
11104 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
11105 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
11106 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
11107 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
11108 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
11109 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
11110 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
11111 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
11112 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
11113 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
11114 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
11115 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
11116 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
11117 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
11118 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
11119 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
11120 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
11121 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
11122 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
11123 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
11124 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
11125 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
11126 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
11127 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
11128 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
11129 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
11130 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
11131 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
11132 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
11133 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
11134 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
11135 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
11136 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
11137 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
11138 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
11139 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
11140 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
11141 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
11142 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
11143 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
11144 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
11145 par-endh.adb par-labl.adb par-load.adb par-prag.adb
11146 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
11147 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
11148 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
11149 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
11150 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
11151 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
11152 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
11153 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
11154 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
11155 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
11156 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
11157 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
11158 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
11159 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
11160 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
11161 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
11162 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
11163 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
11164 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
11165 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
11166 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
11167 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
11168 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
11169 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
11170 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
11171 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
11172 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
11173 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
11174 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
11175 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
11176 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
11177 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
11178 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
11179 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
11180 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
11181 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
11182 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
11183 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
11184 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
11185 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
11186 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
11187 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
11188 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
11189 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
11190 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
11191 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
11192 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
11193 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
11194 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
11195 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
11196 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
11197 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
11198 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
11199 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
11200 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
11201 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
11202 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
11203 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
11204 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
11205 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
11206 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
11207 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
11208 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
11209 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
11210 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
11211 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
11212 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
11213 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
11214 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
11215 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
11216 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
11217 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
11218 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
11219 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
11220 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
11221 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
11222 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
11223 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
11224 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
11225 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
11226 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
11227 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
11228 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
11229 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
11230 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
11231 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
11232 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
11233 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
11234 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
11235 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
11236 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
11237 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
11238 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
11239 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
11240 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
11241 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
11242 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
11243 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
11244 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
11245 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
11246 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
11247 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
11248 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
11249 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
11250 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
11251 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
11252 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
11253 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
11254 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
11255 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
11256 stringt.ads stringt.h style.adb style.ads stylesw.adb
11257 stylesw.ads switch.adb switch.ads sysdep.c system.ads
11258 table.adb table.ads targparm.adb targparm.ads targtyps.c
11259 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
11260 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
11261 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
11262 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
11263 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
11264 usage.ads utils.c utils2.c validsw.adb validsw.ads
11265 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
11266 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
11267 xtreeprs.adb: Correct statements in comments about maintainership
11268 of GNAT.
11269
11270 2002-09-23 Zack Weinberg <zack@codesourcery.com>
11271
11272 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
11273 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
11274 * gnatvsn.ads: Gnat_Version_String is now a function.
11275 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
11276 copy the C version_string into a String and return it.
11277 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
11278 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
11279 Remove pragma Ident (Gnat_Version_String). If this was the
11280 sole use of package Gnatvsn, remove the with statement too.
11281 * gnat1drv.adb: Tweak -gnatv output.
11282
11283 2002-09-17 Richard Henderson <rth@redhat.com>
11284
11285 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
11286 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
11287 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
11288 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
11289 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
11290 and real_2expN instead of a loop.
11291 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
11292 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
11293
11294 2002-08-25 Andre Leis <a.leis@gmx.net>
11295 David Billinghurst (David.Billinghurst@riotinto.com>
11296
11297 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
11298
11299 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11300
11301 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
11302 Remove $(CONFIG_H) dependency.
11303
11304 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
11305
11306 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
11307
11308 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11309
11310 * adadecode.c (ada_demangle): Use xstrdup in lieu of
11311 xmalloc/strcpy.
11312 * misc.c (gnat_decode_option): Likewise.
11313
11314 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
11315
11316 * make.adb (Add_Switch): Make Generic_Position a procedure. The
11317 function approach did not work well because of a side effect (the
11318 function call could reallocate the table which was being indexed
11319 using its result). Fixes ada/4851. [RESURRECTED]
11320
11321 2002-07-01 Roger Sayle <roger@eyesopen.com>
11322
11323 * ada/utils.c (builtin_function): Accept an additional parameter.
11324
11325 2002-06-28 Andreas Jaeger <aj@suse.de>
11326
11327 PR ada/7144
11328 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
11329 <adi@thur.de>.
11330
11331 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11332
11333 * Makefile.in (SHELL): Set to @SHELL@.
11334
11335 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11336
11337 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
11338 array size calculation.
11339
11340 2002-06-04 Andreas Jaeger <aj@suse.de>
11341
11342 * Make-lang.in (gnatbind): Readd rule that has been lost in last
11343 patch.
11344
11345 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
11346
11347 Merge from pch-branch:
11348
11349 * config-lang.in (gtfiles): Add ada-tree.h.
11350 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
11351 (SET_TYPE_MODULUS): New.
11352 (SET_TYPE_INDEX): New.
11353 (SET_TYPE_DIGITS_VALUE): New.
11354 (SET_TYPE_RM_SIZE): New.
11355 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
11356 (SET_TYPE_ADA_SIZE): New.
11357 (SET_TYPE_ACTUAL_BOUNDS): New.
11358 (SET_DECL_CONST_CORRESPONDING_VAR): New.
11359 (SET_DECL_ORIGINAL_FIELD): New.
11360 (TREE_LOOP_ID): Correct typo.
11361 * decl.c: Use new macros.
11362 * utils.c: Include debug.h, use new macros.
11363 * utils2.c: Use new macros.
11364
11365 * ada-tree.h: Update all macros for new tree description.
11366 (struct tree_loop_id): New.
11367 (union lang_tree_node): New.
11368 (struct lang_decl): New.
11369 (struct lang_type): New.
11370 * misc.c (gnat_mark_tree): Delete.
11371 (LANG_HOOKS_MARK_TREE): Delete.
11372 * trans.c (tree_transform): No longer any need to cast
11373 for TREE_LOOP_ID.
11374
11375 * utils.c (struct language_function): New dummy structure.
11376
11377 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
11378 (misc.o): Likewise.
11379 (utils.o): Likewise; also gtype-ada.h.
11380 * Make-lang.in (gnat1): Add dependency on s-gtype.
11381 (gnatbind): Add dependency on $(CONFIG_H).
11382 * utils.c: Correct last #include.
11383 (stuct e_stack): Remove unnecessary 'static'.
11384 (mark_e_stack): Remove unused prototype.
11385
11386 * scn-nlit.adb: Remove whitespace after version number to
11387 keep lines under 80 chars.
11388 * snames.adb: Likewise.
11389 * treepr.ads: Likewise.
11390
11391 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
11392 (misc.o): Likewise.
11393 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
11394 * config-lang.in (gtfiles): New.
11395 * decl.c: Use gengtype for roots.
11396 * gigi.h: Use gengtype for roots.
11397 * trans.c: Use gengtype for roots.
11398 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
11399
11400 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
11401
11402 * misc.c (gnat_init): Adjust setting of internal_error_function.
11403
11404 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
11405
11406 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
11407 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
11408 gnat_ug_wnt.texi: Regenerate.
11409
11410 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
11411
11412 * 5ntaprop.adb (with System.OS_Primitives): Remove.
11413
11414 * cstreams.c (max_path_len): Move from here ...
11415 * adaint.c (__gnat_max_path_len): ... to here.
11416 * adaint.c (__gnat_max_path_len): Declare.
11417 * g-dirope.adb (Max_Path): Adjust.
11418 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
11419 * i-cstrea.ads (max_path_len): Adjust.
11420 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
11421 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
11422
11423 * Makefile.in, Make-lang.in: Documentation is now built in
11424 Make-lang.in. Store Info and generated Texinfo files in the
11425 source directory.
11426 * gnat_ug.texi: Remove CVS keywords, correct version number.
11427 Set file name correctly.
11428
11429 * gnat_ug_*.texi: Add.
11430 * .cvsignore: Ignore generated Texinfo files.
11431
11432 2002-05-30 Zack Weinberg <zack@codesourcery.com>
11433
11434 * ada.h: Add MI guard macro.
11435 (SUBTYPE): Define constants with an anonymous enum, not static
11436 const variables.
11437 (IN): Cast constants to appropriate type before use.
11438
11439 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
11440
11441 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
11442 (experimental)".
11443
11444 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11445
11446 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
11447 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
11448 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
11449 (ALL_ADA_CFLAGS): Likewise.
11450 (ADA_INCLUDES): Likewise.
11451 Adapt for new working dir.
11452 (GNATBIND): Use Makefile.in version.
11453 (.SUFFIXES): Copy from Makefile.in.
11454 (ada-warn): Define.
11455 (.adb.o, .ads.o): Copy from Makefile.in.
11456 Added $(OUTPUT_OPTION).
11457 (GNAT1_C_OBJS): Moved from Makefile.in.
11458 Prefix with ada subdir.
11459 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
11460 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
11461 Adapt for new working dir.
11462 (EXTRA_GNATBIND_OBJS): Likewise.
11463 (ADA_BACKEND): Moved from Makefile.in.
11464 Renamed to avoid conflict with global BACKEND.
11465 Use that one.
11466 (TARGET_ADA_SRCS): Moved from Makefile.in.
11467 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
11468 Use ADA_BACKEND.
11469 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
11470 (ada_extra_files): Moved from Makefile.in.
11471 Prefix with ada subdir.
11472 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
11473 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
11474 (ada/nmake.ads): Likewise.
11475 (update-sources): Moved from Makefile.in.
11476 Prefix with ada subdir.
11477 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
11478 (ADA_TREE_H): Likewise.
11479 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
11480 (ada/memtrack.o): Likewise.
11481 (ada/adadecode.o): Likewise.
11482 Update dependencies.
11483 (ada/adaint.o): New.
11484 (ada/argv.o): Moved from Makefile.in.
11485 Prefix with ada subdir.
11486 Update dependencies.
11487 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
11488 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
11489 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
11490 Prefix with ada subdir.
11491 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
11492 (GNAT DEPENDENCIES): Regenerate.
11493 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
11494 toplevel Makefile.in.
11495 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
11496 (TARGET_ADA_SRCS): Removed.
11497 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
11498 (GNATBIND_OBJS): Likewise.
11499 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
11500 (BACKEND): Removed.
11501 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
11502 (TREE_H): Likewise.
11503 (ada_extra_files): Likewise.
11504 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
11505 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
11506 (update-sources): Likewise.
11507 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
11508 (ADA_TREE_H): Likewise.
11509 (adadecoce.o): Likewise.
11510 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
11511 (GNAT DEPENDENCIES): Likewise.
11512
11513 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11514
11515 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
11516 * Makefile.in: Likewise.
11517
11518 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11519
11520 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
11521 Restore $(CONFIG_H) and prefix.o dependencies.
11522 (ada.stage[1-4]): Depend on stage?-start.
11523
11524 * Makefile.in (b_gnatb.c): Depend on interfac.o.
11525
11526 2002-05-02 Jim Wilson <wilson@redhat.com>
11527
11528 * utils.c (finish_record_type): Change record_size to record_type.
11529
11530 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
11531
11532 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
11533 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
11534 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
11535
11536 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
11537
11538 * misc.c (gnat_parse_file): Update.
11539
11540 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
11541
11542 * misc.c (gnat_init): Don't set lang_attribute_common.
11543
11544 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
11545
11546 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
11547
11548 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
11549
11550 * gnat_ug.texi: New file.
11551
11552 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
11553 instead of gfdl.texi
11554
11555 * xgnatug.adb, ug_words: New files.
11556
11557 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
11558 gnat_rm and gnat-style manuals.
11559
11560 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
11561
11562 * gigi.h (incomplete_type_error): Remove.
11563 * utils.c (incomplete_type_error): Remove.
11564
11565 2002-04-16 Mark Mitchell <mark@codesourcery.com>
11566
11567 * trans.c (tree_transform): Add has_scope argument to
11568 expand_start_stmt_expr.
11569
11570 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
11571
11572 * gigi.h (truthvalue_conversion): Rename.
11573 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
11574 * trans.c (tree_transform): Update.
11575 * utils2.c (truthvalue_conversion): Rename, update.
11576 (build_binary_op, build_unary_op): Update.
11577
11578 2002-04-04 Laurent Guerby <guerby@acm.org>
11579
11580 * make.adb: Implement -margs, remove restriction about file name placement.
11581 * makeusg.adb: Documentation update.
11582 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
11583 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
11584
11585 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
11586
11587 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
11588 (builtin_function): Similarly.
11589
11590 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
11591
11592 * decl.c (gnat_to_gnu_entity): Update.
11593 * gigi.h (mark_addressable): Rename.
11594 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
11595 * trans.c (tree_transform): Update.
11596 * utils.c (create_var_decl): Update.
11597 * util2.c (build_binary_op, build_unary_op,
11598 fill_vms_descriptor): Update.
11599 (mark_addressable): Rename, update.
11600
11601 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
11602
11603 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
11604 Rename.
11605 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
11606 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
11607 * trans.c (tree_transform, convert_with_check): Update.
11608 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
11609 Rename.
11610
11611 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
11612
11613 * gigi.h (finish_incomplete_decl): Rename.
11614 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
11615 * utils.c (gnat_init_decl_processing): Don't set hook.
11616 (finish_incomplete_decl): Rename.
11617
11618 2002-03-29 Andreas Schwab <schwab@suse.de>
11619
11620 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
11621 directory.
11622
11623 2001-03-28 Robert Dewar <dewar@gnat.com>
11624
11625 * checks.ads:
11626 (Remove_Checks): New procedure
11627
11628 * checks.adb:
11629 (Remove_Checks): New procedure
11630
11631 * exp_util.adb:
11632 Use new Duplicate_Subexpr functions
11633 (Duplicate_Subexpr_No_Checks): New procedure
11634 (Duplicate_Subexpr_No_Checks_Orig): New procedure
11635 (Duplicate_Subexpr): Restore original form (checks duplicated)
11636 (Duplicate_Subexpr): Call Remove_Checks
11637
11638 * exp_util.ads:
11639 (Duplicate_Subexpr_No_Checks): New procedure
11640 (Duplicate_Subexpr_No_Checks_Orig): New procedure
11641 Add 2002 to copyright notice
11642
11643 * sem_util.adb: Use new Duplicate_Subexpr functions
11644
11645 * sem_eval.adb:
11646 (Eval_Indexed_Component): This is the place to call
11647 Constant_Array_Ref and to replace the value. We simply merge
11648 the code of this function in here, since it is now no longer
11649 used elsewhere. This fixes the problem of the back end not
11650 realizing we were clever enough to see that this was
11651 constant.
11652 (Expr_Val): Remove call to Constant_Array_Ref
11653 (Expr_Rep_Val): Remove call to Constant_Array_Ref
11654 Minor reformatting
11655 (Constant_Array_Ref): Deal with string literals (patch
11656 suggested by Zack Weinberg on the gcc list)
11657
11658 2001-03-28 Ed Schonberg <schonber@gnat.com>
11659
11660 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
11661 Duplicate_Subexpr_Move_Checks.
11662
11663 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
11664 Duplicate_Subexpr_Move_Checks.
11665
11666 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
11667 value of array exists before retrieving it (it may a private
11668 protected component in a function).
11669
11670 2002-03-28 Geert Bosch <bosch@gnat.com>
11671
11672 * prj-pp.adb : New file.
11673
11674 * prj-pp.ads : New file.
11675
11676 2002-03-28 Andreas Jaeger <aj@suse.de>
11677
11678 * Makefile.in (stamp-sdefault): Fix path for Makefile.
11679
11680 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
11681
11682 * misc.c (gnat_expand_expr): Move prototype.
11683
11684 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
11685
11686 * misc.c (insert_default_attributes): Remove.
11687
11688 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
11689
11690 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
11691 (gnat_init): Don't set hook.
11692 (gnat_expand_expr): Fix prototype.
11693
11694 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
11695
11696 * misc.c (ggc_p): Remove.
11697
11698 2002-03-27 Geert Bosch <bosch@gnat.com>
11699
11700 * prj-makr.ads, prj-makr.adb : New files.
11701
11702 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
11703
11704 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
11705 (lang_mark_tree): Make static, rename.
11706
11707 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
11708
11709 * misc.c (maybe_build_cleanup): Remove.
11710
11711 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
11712
11713 * gigi.h (yyparse): Remove.
11714
11715 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
11716
11717 * gnat_rm.texi: Sync with ACT version.
11718 (From Ben Brosgol <brosgol@gnat.com>)
11719
11720 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
11721
11722 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
11723 (gnat_init): Remove old hook.
11724
11725 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
11726
11727 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
11728 (yyparse): Rename gnat_parse_file.
11729
11730 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
11731
11732 Delete all lines containing "$Revision:".
11733 * xeinfo.adb: Don't look for revision numbers.
11734 * xnmake.adb: Likewise.
11735 * xsinfo.adb: Likewise.
11736 * xsnames.adb: Likewise.
11737 * xtreeprs.adb: Likewise.
11738
11739 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11740
11741 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
11742 gnat_tree_code_name): Delete.
11743 (tree_code_type, tree_code_length, tree_code_name): Define.
11744 (gnat_init): Don't try to copy into the various tree_code
11745 arrays.
11746
11747 2002-03-11 Richard Henderson <rth@redhat.com>
11748
11749 * Makefile.in (.NOTPARALLEL): Add fake tag.
11750
11751 2002-03-07 Geert Bosch <bosch@gnat.com>
11752
11753 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
11754 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
11755 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
11756 switch-m.adb, switch-m.ads : New files.
11757
11758 2002-03-07 Geert Bosch <bosch@gnat.com>
11759
11760 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
11761 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
11762 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
11763 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
11764 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
11765 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
11766 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
11767 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
11768 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
11769 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
11770 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
11771 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
11772 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
11773 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
11774 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
11775 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
11776 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
11777 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
11778 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
11779 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
11780 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
11781 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
11782 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
11783 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
11784 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
11785 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
11786 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
11787 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
11788 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
11789 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
11790 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
11791 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
11792 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
11793 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
11794 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
11795 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
11796 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
11797 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
11798 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
11799 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
11800 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
11801 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
11802 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
11803 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
11804 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
11805 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
11806 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
11807 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
11808 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
11809 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
11810 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
11811 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
11812 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
11813 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
11814 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
11815 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
11816 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
11817 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
11818 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
11819 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
11820 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
11821 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
11822 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
11823 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
11824 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
11825 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
11826 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
11827 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
11828 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
11829 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
11830 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
11831 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
11832 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
11833 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
11834 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
11835 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
11836 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
11837 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
11838 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
11839 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
11840 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
11841 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
11842 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
11843 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
11844 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
11845 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
11846 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
11847 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
11848 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
11849 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
11850 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
11851 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
11852 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
11853 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
11854 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
11855 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
11856 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
11857
11858 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
11859 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
11860 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
11861 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
11862
11863 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
11864 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
11865
11866 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
11867 to mdll-fil.ad[bs] and mdll-util.ad[bs]
11868
11869 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
11870 from mdllfile.ad[bs] and mdlltool.ad[bs]
11871
11872 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11873
11874 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
11875 lieu of explicit sizeof/sizeof.
11876
11877 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
11878
11879 * misc.c (copy_lang_decl): Remove.
11880
11881 2002-02-27 Zack Weinberg <zack@codesourcery.com>
11882
11883 * misc.c: Delete traditional-mode-related code copied from the
11884 C front end but not used, or used only to permit the compiler
11885 to link.
11886
11887 2002-02-07 Richard Henderson <rth@redhat.com>
11888
11889 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
11890 * adaint.h (__gnat_to_gm_time): Update prototype.
11891
11892 2002-01-30 Richard Henderson <rth@redhat.com>
11893
11894 * trans.c (tree_transform) [N_Loop_Statement]: Use
11895 expand_exit_loop_top_cond.
11896
11897 2001-12-23 Richard Henderson <rth@redhat.com>
11898
11899 * utils.c (end_subprog_body): Push GC context around
11900 rest_of_compilation for nested functions.
11901
11902 2001-12-23 Richard Henderson <rth@redhat.com>
11903
11904 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
11905
11906 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
11907
11908 * gnat-style.texi (Declarations and Types): Remove ancient style
11909 rule which was mandated by code generation issues.
11910
11911 * gnat-style.texi (header): Add @dircategory, @direntry.
11912 (title page): Remove date.
11913 (general) Add @./@: where approriate, and two spaces after the
11914 full stop at the end of a sentence. Use @samp markup when
11915 referring concrete lexical entities (keywords, attribute names
11916 etc.), and @syntax for ARM grammar elements. Use @r for English
11917 text in comments. Use @emph for emphasis. Change "if-statements"
11918 etc. to "if statements" (without @samp). Break long lines. Make
11919 casing of section names consistent.
11920 (Identifiers): Use @samp markup for variable names.
11921 (Comments): Use @samp markup for comment characters. Line-end
11922 comments may follow any Ada code, not just statements. Fix
11923 misspelling of "Integer" as "integer".
11924 (Loop statements): Do not use variable name "I", use "J".
11925 (Subprogram Declarations): Document alignment.
11926 (Subprogram Bodies, Block statements): Document empty line before
11927 "begin".
11928
11929 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
11930
11931 * make.adb (Add_Switch): Make Generic_Position a procedure. The
11932 function approach did not work well because of a side effect (the
11933 function call could reallocate the table which was being indexed
11934 using its result). Fixes ada/4851.
11935
11936 2001-12-19 Robert Dewar <dewar@gnat.com>
11937
11938 * bindgen.adb: Minor reformatting
11939
11940 * cstand.adb: Minor reformatting
11941
11942 * fmap.adb: Minor reformatting
11943 Change name from Add for Add_To_File_Map (Add is much too generic)
11944 Change Path_Name_Of to Mapped_Path_Name
11945 Change File_Name_Of to Mapped_File_Name
11946 Fix copyright dates in header
11947
11948 * fmap.ads:
11949 Change name from Add for Add_To_File_Map (Add is much too generic)
11950 Change Path_Name_Of to Mapped_Path_Name
11951 Change File_Name_Of to Mapped_File_Name
11952 Fix copyright dates in header
11953
11954 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
11955 Add use clause for Fmap.
11956
11957 * make.adb: Minor reformatting
11958
11959 * osint.adb: Minor reformatting. Change of names in Fmap.
11960 Add use clause for Fmap.
11961
11962 * prj-env.adb: Minor reformatting
11963
11964 * prj-env.ads: Minor reformatting
11965
11966 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
11967 error found (there were odd exceptions to this general rule in
11968 -gnatec/-gnatem processing)
11969
11970 2001-12-19 Olivier Hainque <hainque@gnat.com>
11971
11972 * raise.c (__gnat_eh_personality): Exception handling personality
11973 routine for Ada. Still in rough state, inspired from the C++ version
11974 and still containing a bunch of debugging artifacts.
11975 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
11976 inspired from the C++ library.
11977
11978 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
11979 exception handling integration.
11980
11981 2001-12-19 Arnaud Charlet <charlet@gnat.com>
11982
11983 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
11984 (HIE_SOURCES): Add s-secsta.ad{s,b}.
11985 (HIE_OBJS): Add s-fat*.o
11986 (RAVEN_SOURCES): Remove files that are no longer required. Add
11987 interrupt handling files.
11988 (RAVEN_MOD): Removed, no longer needed.
11989
11990 2001-12-19 Robert Dewar <dewar@gnat.com>
11991
11992 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
11993 Add 2001 to copyright date
11994
11995 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
11996 need to force universal inlining for these cases.
11997
11998 2001-12-19 Arnaud Charlet <charlet@gnat.com>
11999
12000 * s-taprob.adb: Minor clean ups so that this unit can be used in
12001 Ravenscar HI.
12002
12003 * exp_ch7.adb: Allow use of secondary stack in HI mode.
12004 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
12005
12006 2001-12-19 Vincent Celier <celier@gnat.com>
12007
12008 * prj-tree.ads (Project_Node_Record): Add comments for components
12009 Pkg_Id and Case_Insensitive.
12010
12011 2001-12-19 Pascal Obry <obry@gnat.com>
12012
12013 * g-socket.adb: Minor reformatting. Found while reading code.
12014
12015 2001-12-19 Robert Dewar <dewar@gnat.com>
12016
12017 * prj-tree.ads: Minor reformatting
12018
12019 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
12020
12021 * config-lang.in (diff_excludes): Remove.
12022
12023 2001-12-17 Ed Schonberg <schonber@gnat.com>
12024
12025 * sem_res.adb (Resolve_Selected_Component): do not generate a
12026 discriminant check if the selected component is a component of
12027 the argument of an initialization procedure.
12028
12029 * trans.c (tree_transform, case of arithmetic operators): If result
12030 type is private, the gnu_type is the base type of the full view,
12031 given that the full view itself may be a subtype.
12032
12033 2001-12-17 Robert Dewar <dewar@gnat.com>
12034
12035 * sem_res.adb: Minor reformatting
12036
12037 * trans.c (tree_transform, case N_Real_Literal): Add missing third
12038 parameter in call to Machine (unknown horrible effects from this
12039 omission).
12040
12041 * urealp.h: Add definition of Round_Even for call to Machine
12042 Add third parameter for Machine
12043
12044 2001-12-17 Ed Schonberg <schonber@gnat.com>
12045
12046 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
12047 predefined units in No_Run_Time mode.
12048
12049 2001-12-17 Richard Kenner <kenner@gnat.com>
12050
12051 * misc.c (insn-codes.h): Now include.
12052
12053 2001-12-17 Olivier Hainque <hainque@gnat.com>
12054
12055 * a-except.adb: Preparation work for future integration of the GCC 3
12056 exception handling mechanism
12057 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
12058 to factorize previous code sequences and make them externally callable,
12059 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
12060 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
12061 Use the new notification routines.
12062
12063 2001-12-17 Emmanuel Briot <briot@gnat.com>
12064
12065 * prj-tree.ads (First_Choice_Of): Document the when others case
12066
12067 2001-12-17 Arnaud Charlet <charlet@gnat.com>
12068
12069 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
12070 HI-E mode, in order to support Ravenscar profile properly.
12071
12072 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
12073 mode on 32 bits targets.
12074
12075 2001-12-17 Vincent Celier <celier@gnat.com>
12076
12077 * fmap.adb: Initial version.
12078
12079 * fmap.ads: Initial version.
12080
12081 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
12082 If search is successfully done, add to mapping.
12083
12084 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
12085
12086 * make.adb:
12087 (Gnatmake): Add new local variable Mapping_File_Name.
12088 Create mapping file when using project file(s).
12089 Delete mapping file before exiting.
12090
12091 * opt.ads (Mapping_File_Name): New variable
12092
12093 * osint.adb (Find_File): Use path name found in mapping, if any.
12094
12095 * prj-env.adb (Create_Mapping_File): New procedure
12096
12097 * prj-env.ads (Create_Mapping_File): New procedure.
12098
12099 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
12100 (Mapping_File)
12101
12102 * usage.adb: Add entry for new switch -gnatem.
12103
12104 * Makefile.in: Add dependencies for fmap.o.
12105
12106 2001-12-17 Ed Schonberg <schonber@gnat.com>
12107
12108 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
12109 is a package instantiation rewritten as a package body.
12110 (Install_Withed_Unit): Undo previous change, now redundant.
12111
12112 2001-12-17 Gary Dismukes <dismukes@gnat.com>
12113
12114 * layout.adb:
12115 (Compute_Length): Move conversion to Unsigned to callers.
12116 (Get_Max_Size): Convert Len expression to Unsigned after calls to
12117 Compute_Length and Determine_Range.
12118 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
12119 Compute_Length and Determine_Range.
12120 Above changes fix problem with length computation for supernull arrays
12121 where Max (Len, 0) wasn't getting applied due to the Unsigned
12122 conversion used by Compute_Length.
12123
12124 2001-12-17 Arnaud Charlet <charlet@gnat.com>
12125
12126 * rtsfind.ads:
12127 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
12128 System.Secondary_Stack.
12129 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
12130 in HI-E mode.
12131 Remove unused entity RE_Exception_Data.
12132
12133 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
12134
12135 * rident.ads (No_Secondary_Stack): New restriction.
12136
12137 2001-12-17 Joel Brobecker <brobecke@gnat.com>
12138
12139 * gnat_rm.texi: Fix minor typos. Found while reading the section
12140 regarding "Bit_Order Clauses" that was sent to a customer.
12141 Very interesting documentation!
12142
12143 2001-12-17 Robert Dewar <dewar@gnat.com>
12144
12145 * sem_case.adb (Choice_Image): Avoid creating improper character
12146 literal names by using the routine Set_Character_Literal_Name. This
12147 fixes bombs in certain error message cases.
12148
12149 2001-12-17 Arnaud Charlet <charlet@gnat.com>
12150
12151 * a-reatim.adb: Minor reformatting.
12152
12153 2001-12-17 Ed Schonberg <schonber@gnat.com>
12154
12155 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
12156 case where the formal is an extension of another formal in the current
12157 unit or in a parent generic unit.
12158
12159 2001-12-17 Arnaud Charlet <charlet@gnat.com>
12160
12161 * s-tposen.adb: Update comments. Minor reformatting.
12162 Minor code clean up.
12163
12164 * s-tarest.adb: Update comments. Minor code reorganization.
12165
12166 2001-12-17 Gary Dismukes <dismukes@gnat.com>
12167
12168 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
12169 when Java_VM.
12170
12171 2001-12-17 Robert Dewar <dewar@gnat.com>
12172
12173 * exp_attr.adb: Minor reformatting
12174
12175 2001-12-17 Ed Schonberg <schonber@gnat.com>
12176
12177 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
12178 derivations nested within a child unit: verify that the parent
12179 type is declared in an outer scope.
12180
12181 2001-12-17 Robert Dewar <dewar@gnat.com>
12182
12183 * sem_ch12.adb: Minor reformatting
12184
12185 2001-12-17 Ed Schonberg <schonber@gnat.com>
12186
12187 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
12188 warning if current unit is a predefined one, from which bodies may
12189 have been deleted.
12190
12191 2001-12-17 Robert Dewar <dewar@gnat.com>
12192
12193 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
12194 Fix header format. Add 2001 to copyright date.
12195
12196 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
12197 which caused CE during compilation if checks were enabled.
12198
12199 2001-12-17 Vincent Celier <celier@gnat.com>
12200
12201 * make.adb:
12202 (Switches_Of): New function
12203 (Test_If_Relative_Path): New procedure
12204 (Add_Switches): Use new function Switches_Of
12205 (Collect_Arguments_And_Compile): Use new function Switches_Of.
12206 When using a project file, test if there are any relative
12207 search path. Fail if there are any.
12208 (Gnatmake): Only add switches for the primary directory when not using
12209 a project file. When using a project file, change directory to the
12210 object directory of the main project file. When using a project file,
12211 test if there are any relative search path. Fail if there are any.
12212 When using a project file, fail if specified executable is relative
12213 path with directory information, and prepend executable, if not
12214 specified as an absolute path, with the exec directory. Make sure
12215 that only one -o switch is transmitted to the linker.
12216
12217 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
12218
12219 * prj-nmsc.adb:
12220 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
12221 when using a non standard naming scheme.
12222 (Check_Ada_Naming_Scheme): Make sure that error messages
12223 do not raise exceptions.
12224 (Is_Illegal_Append): Return True if there is no dot in the suffix.
12225 (Language_Independent_Check): Check the exec directory.
12226
12227 * prj.adb (Project_Empty): Add new component Exec_Directory
12228
12229 * prj.ads:
12230 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
12231 (Project_Data): Add component Exec_Directory
12232
12233 * snames.adb: Updated to match snames.ads revision 1.215
12234
12235 * snames.ads: Added Exec_Dir
12236
12237 2001-12-17 Robert Dewar <dewar@gnat.com>
12238
12239 * make.adb: Minor reformatting
12240
12241 * prj-nmsc.adb: Minor reformatting
12242
12243 * snames.adb: Updated to match snames.ads
12244
12245 * snames.ads: Alphebetize entries for project file
12246
12247 2001-12-17 Ed Schonberg <schonber@gnat.com>
12248
12249 * trans.c (process_freeze_entity): Do nothing if the entity is a
12250 subprogram that was already elaborated.
12251
12252 2001-12-17 Richard Kenner <kenner@gnat.com>
12253
12254 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
12255 and Esize if object is referenced via pointer.
12256
12257 2001-12-17 Ed Schonberg <schonber@gnat.com>
12258
12259 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
12260 is discrete before analyzing choices.
12261
12262 2001-12-17 Joel Brobecker <brobecke@gnat.com>
12263
12264 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
12265 containing the name of the Ada Main Program. This string is mainly
12266 intended for the debugger.
12267 (Gen_Output_File_C): Do the equivalent change when generating a C file.
12268
12269 2001-12-17 Robert Dewar <dewar@gnat.com>
12270
12271 * ali.adb: Set new Dummy_Entry field in dependency entry
12272
12273 * ali.ads: Add Dummy_Entry field to source dependency table
12274
12275 * bcheck.adb (Check_Consistency): Ignore dummy D lines
12276
12277 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
12278
12279 * lib-writ.ads: Document dummy D lines for missing files.
12280
12281 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
12282
12283 2001-12-17 Robert Dewar <dewar@gnat.com>
12284
12285 * ali.adb: Type reference does not reset current file.
12286
12287 * ali.adb: Recognize and scan renaming reference
12288
12289 * ali.ads: Add spec for storing renaming references.
12290
12291 * lib-xref.ads: Add documentation for handling of renaming references
12292
12293 * lib-xref.adb: Implement output of renaming reference.
12294
12295 * checks.adb:
12296 (Determine_Range): Document local variables
12297 (Determine_Range): Make sure Hbound is initialized. It looks as though
12298 there could be a real problem here with an uninitialized reference
12299 to Hbound, but no actual example of failure has been found.
12300
12301 2001-12-17 Laurent Pautet <pautet@gnat.com>
12302
12303 * g-socket.ads:
12304 Fix comment of Shutdown_Socket and Close_Socket. These functions
12305 should not fail silently because if they are called twice, this
12306 probably means that there is a race condition in the user program.
12307 Anyway, this behaviour is consistent with the rest of this unit.
12308 When an error occurs, an exception is raised with the error message
12309 as exception message.
12310
12311 2001-12-17 Robert Dewar <dewar@gnat.com>
12312
12313 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
12314 that it happens before modification of Sloc values for -gnatD.
12315
12316 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
12317 so that it happens before modification of Sloc values for -gnatD.
12318
12319 * switch.adb: Minor reformatting
12320
12321 2001-12-15 Richard Henderson <rth@redhat.com>
12322
12323 * sem_ch7.adb: Wrap comment.
12324
12325 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
12326
12327 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
12328 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
12329 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
12330 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
12331 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
12332 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
12333 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
12334 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
12335 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
12336 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
12337 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
12338 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
12339 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
12340 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
12341 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
12342 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
12343 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
12344 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
12345 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
12346 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
12347 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
12348 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
12349 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
12350 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
12351 spelling errors.
12352
12353 2001-12-14 Vincent Celier <celier@gnat.com>
12354
12355 * osint.adb(Create_Debug_File): When an object file is specified,
12356 put the .dg file in the same directory as the object file.
12357
12358 2001-12-14 Robert Dewar <dewar@gnat.com>
12359
12360 * osint.adb: Minor reformatting
12361
12362 * lib-xref.adb (Output_Instantiation): New procedure to generate
12363 instantiation references.
12364
12365 * lib-xref.ads: Add documentation of handling of generic references.
12366
12367 * ali.adb (Read_Instantiation_Ref): New procedure to read
12368 instantiation references
12369
12370 * ali.ads: Add spec for storing instantiation references
12371
12372 * bindusg.adb: Minor reformatting
12373
12374 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
12375
12376 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
12377
12378 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
12379
12380 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
12381
12382 * csets.ads:
12383 Fix header format
12384 Add 2001 to copyright date
12385 Add entry for Latin-5 (Cyrillic ISO-8859-5)
12386
12387 2001-12-14 Matt Gingell <gingell@gnat.com>
12388
12389 * adaint.c: mktemp is a macro on Lynx and can not be used as an
12390 expression.
12391
12392 2001-12-14 Richard Kenner <kenner@gnat.com>
12393
12394 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
12395 if operand is CONSTRUCTOR.
12396
12397 2001-12-14 Ed Schonberg <schonber@gnat.com>
12398
12399 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
12400 before emiting check on right-hand side, so that exception information
12401 is correct.
12402
12403 2001-12-14 Richard Kenner <kenner@gnat.com>
12404
12405 * utils.c (create_var_decl): Throw away initializing expression
12406 if just annotating types and non-constant.
12407
12408 2001-12-14 Vincent Celier <celier@gnat.com>
12409
12410 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
12411 Default_Ada_...
12412
12413 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
12414 Remove functions.
12415 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
12416
12417 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
12418 Remove functions.
12419 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
12420
12421 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
12422
12423 * ChangeLog: Remove piece of diff output.
12424
12425 2001-12-14 Geert Bosch <bosch@gnat.com>
12426
12427 * config-lang.in: Update copyright notice
12428
12429 * layout.adb: Remove commented out code.
12430
12431 * mdllfile.ads: Update copyright notice. Fix header format.
12432
12433 * sem_case.ads: Likewise.
12434
12435 * sem_ch3.adb: Minor reformatting.
12436
12437 2001-12-12 Geert Bosch <bosch@gnat.com>
12438
12439 * freeze.ads: Update copyright date.
12440
12441 * g-comlin.ads: Minor reformatting.
12442
12443 * gnat-style.texi: Fix typo.
12444
12445 2001-12-12 Geert Bosch <bosch@gnat.com>
12446
12447 * einfo.h: Regenerate.
12448
12449 2001-12-12 Ed Schonberg <schonber@gnat.com>
12450
12451 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
12452 on known node types, rather than untyped fields. Further cleanups.
12453
12454 2001-12-12 Robert Dewar <dewar@gnat.com>
12455
12456 * sem_ch12.adb:
12457 (Save_Entity_Descendant): Minor comment update.
12458 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
12459 of an N_Attribute_Reference node. As per note below, this does not
12460 eliminate need for Associated_Node in attribute ref nodes.
12461 (Associated_Node): Documentation explicitly mentions attribute
12462 reference nodes, since this field is used in such nodes.
12463
12464 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
12465
12466 2001-12-12 Robert Dewar <dewar@gnat.com>
12467
12468 * s-stalib.adb: Add more comments on with statements being needed
12469
12470 * par-ch12.adb: Minor reformatting
12471
12472 * prj-dect.ads: Fix copyright header
12473
12474 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
12475 inputs fit in 32 bits, but the result still overflows.
12476
12477 * s-fatgen.ads: Minor comment improvement
12478
12479 2001-12-12 Ed Schonberg <schonber@gnat.com>
12480
12481 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
12482 formal derived type, look for an inherited component from the full
12483 view of the parent, if any.
12484
12485 2001-12-12 Robert Dewar <dewar@gnat.com>
12486
12487 * checks.ads (Apply_Alignment_Check): New procedure.
12488
12489 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
12490 ensure that the alignment of objects with address clauses is
12491 appropriate, and raise PE if not.
12492
12493 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
12494 Exp_Pakd.Known_Aligned_Enough
12495
12496 * mdllfile.ads: Minor reformatting
12497
12498 * mlib-fil.ads: Minor reformatting
12499
12500 2001-12-12 Ed Schonberg <schonber@gnat.com>
12501
12502 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
12503 fix to any component reference if enclosing record has non-standard
12504 representation.
12505
12506 2001-12-12 Vincent Celier <celier@gnat.com>
12507
12508 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
12509 Iteration
12510
12511 2001-12-12 Ed Schonberg <schonber@gnat.com>
12512
12513 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
12514 sem_attr.
12515
12516 2001-12-12 Robert Dewar <dewar@gnat.com>
12517
12518 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
12519
12520 2001-12-12 Emmanuel Briot <briot@gnat.com>
12521
12522 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
12523 and it adds dependencies to system.io.
12524
12525 2001-12-12 Pascal Obry <obry@gnat.com>
12526
12527 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
12528 variable name.
12529
12530 2001-12-11 Ed Schonberg <schonber@gnat.com>
12531
12532 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
12533 that is the parent of other generics, the instance body replaces the
12534 instance node. Retrieve the instance of the spec, which is the one
12535 that is visible in clients and within the body.
12536
12537 2001-12-11 Vincent Celier <celier@gnat.com>
12538
12539 * gnatmain.adb: Initial version.
12540
12541 * gnatmain.ads: Initial version.
12542
12543 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
12544
12545 * snames.adb: Updated to match snames.ads.
12546
12547 * snames.ads: Added Gnatstub.
12548
12549 2001-12-11 Vincent Celier <celier@gnat.com>
12550
12551 * prj-attr.adb (Initialization_Data): Change name from
12552 Initialisation_Data.
12553
12554 2001-12-11 Emmanuel Briot <briot@gnat.com>
12555
12556 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
12557 + and * applied to backslashed expressions like \r.
12558
12559 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
12560
12561 * g-os_lib.ads: String_List type added, Argument_List type is now
12562 subtype of String_List.
12563
12564 2001-12-11 Robert Dewar <dewar@gnat.com>
12565
12566 * g-os_lib.ads: Change copyright to FSF
12567 Add comments for String_List type
12568
12569 2001-12-11 Vincent Celier <celier@gnat.com>
12570
12571 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
12572 string to the buffer).
12573
12574 2001-12-11 Ed Schonberg <schonber@gnat.com>
12575
12576 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
12577 sem_attr.
12578
12579 * sem_attr.adb: Simplify previous fix for Address.
12580 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
12581 to avoid anomalies where the bound of the type appears to raise
12582 constraint error.
12583
12584 2001-12-11 Robert Dewar <dewar@gnat.com>
12585
12586 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
12587 handled.
12588
12589 2001-12-11 Ed Schonberg <schonber@gnat.com>
12590
12591 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
12592 renamed unit before checking for recursive instantiations.
12593
12594 2001-12-11 Emmanuel Briot <briot@gnat.com>
12595
12596 * prj.ads: Add comments for some of the fields.
12597
12598 2001-12-11 Robert Dewar <dewar@gnat.com>
12599
12600 * lib-xref.adb (Output_Refs): Don't output type references outside
12601 the main unit if they are not otherwise referenced.
12602
12603 2001-12-11 Ed Schonberg <schonber@gnat.com>
12604
12605 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
12606 code and diagnose additional illegal uses
12607
12608 * sem_util.adb (Is_Object_Reference): An indexed component is an
12609 object only if the prefix is.
12610
12611 2001-12-11 Vincent Celier <celier@gnat.com>
12612
12613 * g-diopit.adb: Initial version.
12614
12615 * g-diopit.ads: Initial version.
12616
12617 * g-dirope.adb:
12618 (Expand_Path): Avoid use of Unbounded_String
12619 (Find, Wildcard_Iterator): Moved to child package Iteration
12620
12621 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
12622
12623 2001-12-11 Robert Dewar <dewar@gnat.com>
12624
12625 * sem_attr.adb: Minor reformatting
12626
12627 2001-12-11 Ed Schonberg <schonber@gnat.com>
12628
12629 * sem_ch3.adb: Clarify some ???.
12630
12631 2001-12-11 Robert Dewar <dewar@gnat.com>
12632
12633 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
12634 Exp_Pakd.Known_Aligned_Enough
12635
12636 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
12637 version is moved to Exp_Ch13.
12638
12639 2001-12-11 Robert Dewar <dewar@gnat.com>
12640
12641 * einfo.ads: Minor reformatting
12642
12643 * exp_ch5.adb: Add comment for previous.change
12644
12645 * ali.adb: New interface for extended typeref stuff.
12646
12647 * ali.ads: New interface for typeref stuff.
12648
12649 * checks.adb (Apply_Alignment_Check): New procedure.
12650
12651 * debug.adb: Add -gnatdM for modified ALI output
12652
12653 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
12654
12655 * lib-xref.adb: Extend generation of <..> notation to cover
12656 subtype/object types. Note that this is a complete rewrite,
12657 getting rid of the very nasty quadratic algorithm previously
12658 used for derived type output.
12659
12660 * lib-xref.ads: Extend description of <..> notation to cover
12661 subtype/object types. Uses {..} for these other cases.
12662 Also use (..) for pointer types.
12663
12664 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
12665
12666 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
12667 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
12668
12669 2001-12-11 Vincent Celier <celier@gnat.com>
12670
12671 * gnatcmd.adb:
12672 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
12673 Changed /BIND_ONLY to /ACTIONS=BIND
12674 Changed /LINK_ONLY to /ACTIONS=LINK
12675
12676 2001-12-11 Ed Schonberg <schonber@gnat.com>
12677
12678 * sem_ch8.adb (Find_Selected_Component): improved search for a
12679 candidate package in case of error.
12680
12681 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
12682 chain back on scope stack before reinstalling use clauses.
12683
12684 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
12685 is enabled, do not kill the code for the condition, to preserve
12686 warning.
12687
12688 2001-12-11 Robert Dewar <dewar@gnat.com>
12689
12690 * checks.adb (Insert_Valid_Check): Apply validity check to expression
12691 of conversion, not to result of conversion.
12692
12693 2001-12-11 Ed Schonberg <schonber@gnat.com>
12694
12695 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
12696 before freezing parent. If the declarations are mutually recursive,
12697 an access to the current record type may be frozen before the
12698 derivation is complete.
12699
12700 2001-12-05 Vincent Celier <celier@gnat.com>
12701
12702 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
12703 -c /COMPILE_ONLY, -l /LINK_ONLY
12704
12705 * opt.ads:
12706 (Bind_Only): New Flag
12707 (Link_Only): New flag
12708
12709 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
12710 and -l (Link_Only)
12711
12712 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
12713
12714 * make.adb:
12715 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
12716 (Gnatmake): Set the step flags. Only perform a step if the
12717 corresponding step flag is True.
12718 (Scan_Make_Arg): Reset the bind and link step flags when -u
12719 or -gnatc has been specified.
12720
12721 2001-12-05 Ed Schonberg <schonber@gnat.com>
12722
12723 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
12724 get bounds from right operand.
12725
12726 * sem_eval.adb: Minor reformatting
12727
12728 * exp_util.adb (Make_Literal_Range): use bound of literal rather
12729 than Index'First, its lower bound may be different from 1.
12730
12731 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
12732 and C48009J
12733
12734 2001-12-05 Vincent Celier <celier@gnat.com>
12735
12736 * prj-nmsc.adb Minor reformatting
12737
12738 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
12739 set and libraries are not supported.
12740
12741 2001-12-05 Ed Schonberg <schonber@gnat.com>
12742
12743 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
12744 private view explicitly, so the back-end can treat as a global
12745 when appropriate.
12746
12747 2001-12-05 Ed Schonberg <schonber@gnat.com>
12748
12749 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
12750 unit, always replace instance node with new body, for ASIS use.
12751
12752 2001-12-05 Vincent Celier <celier@gnat.com>
12753
12754 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
12755 libraries are not supported and both attributes Library_Name and
12756 Library_Dir are specified.
12757
12758 * prj-proc.adb (Expression): Set location of Result to location of
12759 first term.
12760
12761 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
12762 (prj-nmsc is now importing MLib.Tgt)
12763
12764 * prj-proc.adb: Put the change indicated above that was forgotten.
12765
12766 2001-12-05 Robert Dewar <dewar@gnat.com>
12767
12768 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
12769
12770 2001-12-05 Ed Schonberg <schonber@gnat.com>
12771
12772 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
12773 constraint, introduce explicit subtype declaration and derive from it.
12774
12775 * sem_ch3.adb: Minor reformatting
12776
12777 2001-12-05 Robert Dewar <dewar@gnat.com>
12778
12779 * checks.adb (Determine_Range): Increase cache size for checks.
12780 Minor reformatting
12781
12782 * exp_ch6.adb: Minor reformatting
12783 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
12784 a parameter whose root type is System.Address, since treating such
12785 subprograms as pure in the code generator is almost surely a mistake
12786 that will lead to unexpected results.
12787
12788 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
12789 change handling of conversions.
12790
12791 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
12792
12793 2001-12-05 Ed Schonberg <schonber@gnat.com>
12794
12795 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
12796 aggregate with static wrong size, attach generated Raise node to
12797 declaration.
12798
12799 2001-12-05 Robert Dewar <dewar@gnat.com>
12800
12801 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
12802 Fixes compilation abandoned bomb in B24009B.
12803
12804 2001-12-05 Ed Schonberg <schonber@gnat.com>
12805
12806 * sem_ch12.adb:
12807 Document use of Associated_Node on Selected_Components.
12808 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
12809 to clarify use of untyped descendant fields.
12810
12811 2001-12-05 Robert Dewar <dewar@gnat.com>
12812
12813 * prj-dect.ads: Add ??? comment
12814 Add 2001 to copyright notice (was not done in after all)
12815
12816 * prj-part.adb: Minor reformatting. Reword one awkward error message.
12817
12818 * prj.ads: Minor reformatting throughout, and add some ??? comments
12819
12820 * snames.ads: Minor reformatting
12821
12822 2001-12-05 Geert Bosch <bosch@gnat.com>
12823
12824 * snames.adb: Autoupdate
12825
12826 2001-12-05 Vincent Celier <celier@gnat.com>
12827
12828 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
12829
12830 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
12831
12832 * prj-env.adb: Minor comment changes (modifying -> extends).
12833
12834 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
12835
12836 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
12837 Tok_Extends.
12838
12839 * prj.adb (Initialize): Change Modifying to Extends.
12840
12841 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
12842
12843 * prj.ads: Minor comment change (Modifying -> extending).
12844
12845 * snames.ads: Change modifying to extends.
12846
12847 2001-12-05 Robert Dewar <dewar@gnat.com>
12848
12849 * sem_warn.adb: Remove stuff for conditionals, we are not going to
12850 do this after all.
12851
12852 * sem_warn.ads: Remove stuff for conditionals, we are not going to
12853 do this after all. Add 2001 to copyright notice
12854
12855 2001-12-04 Geert Bosch <bosch@gnat.com>
12856
12857 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
12858
12859 2001-12-04 Robert Dewar <dewar@gnat.com>
12860
12861 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
12862 location if we already have errors. Stops some cases of cascaded
12863 errors.
12864
12865 * errout.adb: Improve comment.
12866
12867 2001-12-04 Robert Dewar <dewar@gnat.com>
12868
12869 * sem_ch12.adb:
12870 (Analyze_Formal_Type_Definition): Defend against Error.
12871 (Analyze_Formal_Subprogram): Defend against Error.
12872
12873 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
12874 remove following semicolon if present. Removes cascaded error.
12875
12876 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
12877
12878 * bindgen.adb:
12879 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
12880 exceptions equals 0.
12881 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
12882 Fixes PIWG E tests (which have to be run with -gnatL).
12883
12884 2001-12-04 Robert Dewar <dewar@gnat.com>
12885
12886 * einfo.ads: Minor reformatting
12887
12888 2001-12-04 Ed Schonberg <schonber@gnat.com>
12889
12890 * einfo.ads: Block_Node points to the identifier of the block, not to
12891 the block node itself, to preserve the link when the block is
12892 rewritten, e.g. within an if-statement with a static condition.
12893
12894 * inline.adb (Cleanup_Scopes): recover block statement from block
12895 entity using new meaning of Block_Node.
12896
12897 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
12898 identifier of block node, rather than to node itself.
12899
12900 2001-12-04 Gary Dismukes <dismukes@gnat.com>
12901
12902 * layout.adb:
12903 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
12904 (Discrimify): Go back to setting the Etypes of the selected component
12905 because the Vname component does not exist at this point and will
12906 fail name resolution. Also set Analyzed.
12907 Remove with and use of Sem_Res.
12908
12909 2001-12-04 Arnaud Charlet <charlet@gnat.com>
12910
12911 * Makefile.in: (HIE_SOURCES): add s-fat*.
12912
12913 2001-12-04 Robert Dewar <dewar@gnat.com>
12914
12915 * sem_attr.adb:
12916 (Compile_Time_Known_Attribute): New procedure.
12917 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
12918 proper range check.
12919
12920 2001-12-04 Ed Schonberg <schonber@gnat.com>
12921
12922 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
12923 processing discriminants to diagnose illegal default values.
12924
12925 2001-12-04 Ed Schonberg <schonber@gnat.com>
12926
12927 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
12928 access discriminant within a type extension that constrains its
12929 parent discriminants.
12930
12931 2001-12-04 Ed Schonberg <schonber@gnat.com>
12932
12933 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
12934 is malformed, use instance of Any_Id to allow analysis to proceed.
12935
12936 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
12937 type definition is illegal.
12938 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
12939 misplaced.
12940
12941 2001-12-04 Ed Schonberg <schonber@gnat.com>
12942
12943 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
12944 constants.
12945
12946 2001-12-04 Robert Dewar <dewar@gnat.com>
12947
12948 * errout.adb: Minor reformatting
12949
12950 2001-12-04 Robert Dewar <dewar@gnat.com>
12951
12952 * exp_util.adb: Minor reformatting from last change
12953
12954 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
12955 which is a rewriting of an expression, traverse the original
12956 expression to remove warnings that may have been posted on it.
12957
12958 2001-12-04 Ed Schonberg <schonber@gnat.com>
12959
12960 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
12961 record that has other packed components.
12962
12963 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
12964
12965 * adaint.c: Minor cleanups.
12966
12967 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
12968
12969 * adaint.c: Do not use utime.h on vxworks.
12970
12971 2001-12-04 Arnaud Charlet <charlet@gnat.com>
12972
12973 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
12974 more confusion than it solves.
12975
12976 2001-12-04 Geert bosch <bosch@gnat.com>
12977
12978 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
12979
12980 2001-12-04 Geert Bosch <bosch@gnat.com>
12981
12982 * Makefile.in (update-sources): New target.
12983 For use by gcc_release script.
12984
12985 2001-12-04 Ed Schonberg <schonber@gnat.com>
12986
12987 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
12988 a configuration pragma, it is now legal wherever a pragma can appear.
12989
12990 2001-12-04 Zack Weinberg <zack@codesourcery.com>
12991
12992 * Makefile.in: Don't set ALL. Delete @cross_defines@,
12993 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
12994 is now @CROSS@ -DIN_GCC; update comment.
12995
12996 2001-12-04 Robert Dewar <dewar@gnat.com>
12997
12998 * einfo.adb (Has_Pragma_Pure_Function): New flag.
12999 Fix problem that stopped ceinfo from working
13000
13001 * einfo.ads (Has_Pragma_Pure_Function): New flag.
13002
13003 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
13004
13005 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
13006
13007 * gnatchop.adb:
13008 (File_Time_Stamp): New procedure.
13009 (Preserve_Mode): New boolean.
13010 (Write_Unit): Pass time stamp.
13011 Implement -p switch (preserve time stamps).
13012
13013 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
13014
13015 * gnatchop.adb: Do usage info for -p switch
13016
13017 * adaint.h (__gnat_set_file_time_name): New function
13018
13019 * adaint.c (__gnat_set_file_time_name): Implement
13020
13021 * adaint.h: Fix typo
13022
13023 2001-12-03 Robert Dewar <dewar@gnat.com>
13024
13025 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
13026 have Associated_Node.
13027
13028 2001-12-03 Robert Dewar <dewar@gnat.com>
13029
13030 * prj-proc.adb: Minor reformatting
13031
13032 * make.adb: Minor reformatting
13033
13034 2001-12-03 Geert Bosch <bosch@gnat.com>
13035
13036 * make.adb: Minor reformatting.
13037
13038 2001-12-03 Robert Dewar <dewar@gnat.com>
13039
13040 * sem_ch12.adb: Minor reformatting
13041
13042 2001-12-03 Ed Schonberg <schonber@gnat.com>
13043
13044 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
13045 push Standard on the stack before analyzing the instance body,
13046 in order to have a clean visibility environment.
13047
13048 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
13049
13050 2001-12-03 Ed Schonberg <schonber@gnat.com>
13051
13052 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
13053 instantiation of a body that contains an inlined body.
13054
13055 2001-12-03 Ed Schonberg <schonber@gnat.com>
13056
13057 * sem_ch12.adb:
13058 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
13059 to prevent freezing within formal packages.
13060 (Freeze_Subprogram_Body): If body comes from another instance that
13061 appeared before its own body, place freeze node at end of current
13062 declarative part, to prevent a back-end crash.
13063 (Inline_Instance_Body): Handle properly a package instance within
13064 a subprogram instance that is a child unit.
13065
13066 2001-12-01 Graham Stott <grahams@redhat.com>
13067
13068 * Makefile.in (misc.o): Add missing $(srcdir) prefix
13069 and add optabs.h dependency.
13070
13071 * misc.c: Include optabs.h
13072 (gnat_tree_code_type): Make static and const.
13073 (gnat_tree_code_length): Likewise.
13074 (gnat_tree_code_name): Likewise.
13075 (update_setjmp_buf): Obtain operands mode from insn_data.
13076
13077 2001-11-29 Richard Henderson <rth@redhat.com>
13078
13079 * init.c: Remove obsolete dwarf2 frame.h section.
13080
13081 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
13082
13083 * Make-lang.in (ada.generated-manpages): New dummy target.
13084
13085 2001-11-29 Ed Schonberg <schonber@gnat.com>
13086
13087 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
13088 into Command, an array conversion is illegal here. Uncovered by
13089 ACATS B460005.
13090
13091 2001/11/28 Geert Bosch <bosch@gnat.com>
13092
13093 * init.c: Minor whitespace changes.
13094
13095 2001-11-28 Doug Rupp <rupp@gnat.com>
13096
13097 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
13098 signal stack.
13099
13100 2001-11-28 Zack Weinberg <zack@codesourcery.com>
13101
13102 * misc.c (gnat_expand_constant): Move declaration above
13103 definition of lang_hooks.
13104 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
13105 (gnat_init): lang_expand_constant no longer exists.
13106
13107 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
13108 always have vprintf.
13109 (gnat_init): Always call set_internal_error_function.
13110
13111 2001-11-27 Andreas Jaeger <aj@suse.de>
13112
13113 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
13114
13115 2001-11-27 Laurent Guerby <guerby@acm.org>
13116
13117 * Makefile.in: Regenerate Ada dependencies.
13118
13119 2001-11-26 Richard Henderson <rth@redhat.com>
13120
13121 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
13122 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
13123 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
13124
13125 2001-11-25 Laurent Guerby <guerby@acm.org>
13126
13127 * sysdep.c (rts_get_*): Fix style.
13128
13129 2001-11-19 Laurent Guerby <guerby@acm.org>
13130
13131 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
13132 since it is of no apparent use and cause warnings.
13133
13134 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
13135
13136 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
13137 static too.
13138 (gnat_init): Don't return NULL.
13139 (finish_parse): Remove.
13140
13141 2001-11-17 Laurent Guerby <guerby@acm.org>
13142
13143 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
13144 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
13145 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
13146 * lang-spec.h: Add missing struct field to silence warnings.
13147 * sysdep.c (rts_get_*): Provide K&R prototype.
13148 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
13149 * traceback.c (Unlock_Task, Lock_Task): Likewise.
13150 * tracebak.c (__gnat_backtrace): Remove unused variable.
13151 * utils.c (end_subprog_body): Move to K&R style.
13152
13153 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13154
13155 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
13156
13157 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
13158
13159 * misc.c (gnat_init): Change prototype. Include the
13160 functionality of the old init_parse and init_decl_processing.
13161 (gnat_init_decl_processing): New prototype.
13162 (init_parse): Remove.
13163 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
13164
13165 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
13166
13167 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
13168 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
13169 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
13170 set_yydebug): Remove.
13171
13172 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
13173
13174 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
13175 (struct lang_hooks): Constify.
13176 (language_string, lang_identify): Remove.
13177 * utils.c (init_decl_processing): Update.
13178
13179 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
13180
13181 * misc.c: Include langhooks-def.h.
13182 * Makefile.in: Update.
13183
13184 2001-10-30 Robert Dewar <dewar@gnat.com>
13185
13186 * style.adb:
13187 (Check_Identifier): Rewrite circuit to be compatible with use of letters
13188 in the upper half of ASCII.
13189 (Check_Identifier): Minor reformatting
13190
13191 2001-10-30 Geert Bosch <bosch@gnat.com>
13192
13193 * (Associated_Node, Set_Associated_Node): Do not check for
13194 Freeze_Entity.
13195
13196 2001-10-30 Robert Dewar <dewar@gnat.com>
13197
13198 * a-reatim.ads: Minor reformatting
13199
13200 2001-10-30 Robert Dewar <dewar@gnat.com>
13201
13202 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
13203 undocumented declarations.
13204
13205 2001-10-30 Pascal Obry <obry@gnat.com>
13206
13207 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
13208 to the binder and linker.
13209 Minor style fix.
13210
13211 * mdll.ads: Fix layout. Update copyright notice.
13212
13213 * mdll.adb: Fix layout. Update copyright notice.
13214
13215 2001-10-30 Robert Dewar <dewar@gnat.com>
13216
13217 * usage.adb: Minor fix to output for -gnaty.
13218
13219 2001-10-30 Ed Schonberg <schonber@gnat.com>
13220
13221 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
13222 to accommodate all its possible values.
13223
13224 * a-reatim.adb (Split): Special-case handling of Time_Span_First
13225 and of small absolute values of T.
13226
13227 2001-10-30 Richard Kenner <kenner@gnat.com>
13228
13229 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
13230 set_mem_attributes since not needed and wrong if RESULT if a REG;
13231 fixes ACATS failures.
13232
13233 2001-10-30 Geert Bosch <bosch@gnat.com>
13234
13235 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
13236 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
13237
13238 2001-10-30 Robert Dewar <dewar@gnat.com>
13239
13240 * bindusg.adb: Undocument -f switch.
13241
13242 * gnatcmd.adb: Remove /FULL_ELABORATION.
13243
13244 * opt.ads (Force_RM_Elaboration_Order): Document that this is
13245 obsolescent.
13246
13247 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
13248
13249 * gnatbind.adb: Minor update of warning msg.
13250
13251 2001-10-30 Vincent Celier <celier@gnat.com>
13252
13253 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
13254 for project file switches (-P (/PROJECT_FILE=),
13255 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
13256 or MEDIUM or HIGH)
13257
13258 2001-10-30 Geert Bosch <bosch@gnat.com>
13259
13260 * decl.c: Minor whitespace fixes.
13261
13262 2001-10-30 Richard Kenner <kenner@gnat.com>
13263
13264 * utils2.c (build_allocator): Test for SIZE overflow in array case too
13265
13266 2001-10-30 Geert Bosch <bosch@gnat.com>
13267
13268 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
13269 Found due to GCC 3.0 warning of using uninitialized value.
13270
13271 * layout.adb:
13272 (Get_Max_Size): Use variant record for tracking value/expression.
13273 Makes logic clearer and prevents warnings for uninitialized variables.
13274 (Layout_Array_Type): Use variant record for tracking value/expression.
13275 Makes logic clearer and prevents warnings for uninitialized variables.
13276
13277 2001-10-30 Robert Dewar <dewar@gnat.com>
13278
13279 * lib.adb: Minor reformatting
13280
13281 * s-taprop.ads: Minor reformatting
13282
13283 2001-10-29 Laurent Guerby <guerby@acm.org>
13284
13285 * init.c:
13286 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
13287 const.
13288 (_gnat_error_handler): Make MSG const.
13289
13290 2001-10-29 Richard Kenner <kenner@gnat.com>
13291
13292 * sysdep.c: Fix localtime_r problem on LynxOS.
13293 Also remove #elif to avoid warnings.
13294
13295 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
13296 used by this.
13297
13298 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
13299
13300 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
13301
13302 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
13303 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
13304 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
13305 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
13306 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
13307 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
13308 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
13309 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
13310 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
13311 types.ads, urealp.adb: Fix spelling errors.
13312
13313 2001-10-27 Laurent Guerby <guerby@acm.org>
13314
13315 * trans.c (gigi): Fix non determinism leading to bootstrap
13316 comparison failures for debugging information.
13317
13318 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
13319
13320 * gnat_rm.texi: Use @./@: where appropriate.
13321
13322 2001-10-26 Robert Dewar <dewar@gnat.com>
13323
13324 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
13325
13326 2001-10-26 Richard Kenner <kenner@gnat.com>
13327
13328 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
13329
13330 2001-10-26 Richard Kenner <kenner@gnat.com>
13331
13332 * decl.c (validate_size): Modify message for bad size to avoid
13333 implication that compiler is modifying the size.
13334
13335 2001-10-26 Robert Dewar <dewar@gnat.com>
13336
13337 * prj-util.adb: Minor reformatting. Fix bad header format.
13338
13339 2001-10-26 Robert Dewar <dewar@gnat.com>
13340
13341 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
13342
13343 * sinfo.ads: Clarify use of Associated_Node (documentation only).
13344
13345 * sem_ch12.adb: Change Node4 to Associated_Node. Change
13346 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
13347 much more narrowly in places where needed. These are cleanups.
13348
13349 2001-10-26 Joel Brobecker <brobecke@gnat.com>
13350
13351 * 5zosinte.ads (null_pthread): new constant.
13352
13353 * 5ztaprop.adb:
13354 (Initialize_TCB): Initialize thread ID to null, to be able to verify
13355 later that this field has been set.
13356 (Finalize_TCB): ditto.
13357 (Suspend_Task): Verify that the thread ID is not null before using it.
13358 (Resume_Task): ditto.
13359
13360 * s-tasdeb.adb:
13361 (Resume_All_Tasks): Lock the tasks list before using it.
13362 (Suspend_All_Tasks): ditto.
13363
13364 2001-10-26 Richard Kenner <kenner@gnat.com>
13365
13366 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
13367 Make constant variant of designated type for Is_Access_Constant.
13368 Call update_pointer_to with main variant.
13369
13370 * trans.c (process_freeze_entity, process_type):
13371 Call update_pointer_to on main variant.
13372
13373 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
13374 If main variant, update all other variants.
13375
13376 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
13377 TREE_STATIC.
13378
13379 2001-10-26 Robert Dewar <dewar@gnat.com>
13380
13381 * prj-util.adb: Minor reformatting
13382
13383 2001-10-26 Robert Dewar <dewar@gnat.com>
13384
13385 * prj-util.adb: Minor reformatting
13386
13387 2001-10-26 Robert Dewar <dewar@gnat.com>
13388
13389 * prj-attr.adb: Minor reformatting throughout
13390
13391 2001-10-26 Robert Dewar <dewar@gnat.com>
13392
13393 * prj-attr.ads: Minor reformatting
13394 Add ??? comment (this whole spec has almost no comments)
13395
13396 2001-10-26 Vincent Celier <celier@gnat.com>
13397
13398 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
13399 ("//") that precede the drive letter on Interix.
13400
13401 2001-10-26 Geert Bosch <bosch@gnat.com>
13402
13403 * gnat_rm.texi: Add GNAT Reference Manual.
13404
13405 2001-10-25 Robert Dewar <dewar@gnat.com>
13406
13407 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
13408 is Error. Similar change for other renaming cases.
13409
13410 2001-10-25 Robert Dewar <dewar@gnat.com>
13411
13412 * s-atacco.ads: Add pragma Inline_Always for functions.
13413 Fix header format. Add copyright 2001
13414
13415 2001-10-25 Ed Schonberg <schonber@gnat.com>
13416
13417 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
13418 return Error rather than Empty so that analysis can proceed.
13419
13420 2001-10-25 Ed Schonberg <schonber@gnat.com>
13421
13422 * sem_util.adb (Enter_Name): better handling of cascaded error
13423 messages when a unit appears in its own context.
13424
13425 2001-10-25 Ed Schonberg <schonber@gnat.com>
13426
13427 * sem_util.adb (Defining_Entity): in case of error, attach created
13428 entity to specification, so that semantic analysis can proceed.
13429
13430 2001-10-25 Robert Dewar <dewar@gnat.com>
13431
13432 * sem_util.adb
13433 (Defining_Entity): Deal with Error.
13434 (Process_End_Label): Deal with bad end label for.
13435
13436 2001-10-25 Ed Schonberg <schonber@gnat.com>
13437
13438 * sem_elab.adb (Check_A_Call): refine message when call is in an
13439 instance but callee is not declared in the generic unit.
13440
13441 2001-10-25 Ed Schonberg <schonber@gnat.com>
13442
13443 * sem_elab.adb (Check_A_Call): check for renaming before finding the
13444 enclosing unit, which may already be different from the calling unit.
13445
13446 2001-10-25 Geert Bosch <bosch@gnat.com>
13447
13448 * 4gintnam.ads: fix header format.
13449
13450 2001-10-25 Ed Schonberg <schonber@gnat.com>
13451
13452 * sem_res.adb (Resolve_Call): if the call is actually an indexing
13453 operation on the result of a parameterless call, perform elaboration
13454 check after the node has been properly rewritten.
13455
13456 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
13457 inlined within the generic tree, the defining identifier is not a
13458 compilation_unit.
13459
13460 2001-10-25 Ed Schonberg <schonber@gnat.com>
13461
13462 * sem_res.adb (Resolve): special-case resolution of Null in an
13463 instance or an inlined body to avoid view conflicts.
13464
13465 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
13466 compatibility by retrieving the access type of the generic copy.
13467
13468 2001-10-25 Robert Dewar <dewar@gnat.com>
13469
13470 * sem_ch3.adb:
13471 (Analyze_Number_Declaration): Handle error expression.
13472 (Signed_Integer_Type_Declaration): Handle error bound.
13473 (Analyze_Subtype_Indication): Handle error range.
13474
13475 * sem_util.adb (Get_Index_Bounds): Check for Error.
13476
13477 2001-10-25 Robert Dewar <dewar@gnat.com>
13478
13479 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
13480 in no run time mode.
13481
13482 2001-10-25 Pascal Obry <obry@gnat.com>
13483
13484 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
13485 mode case for ALLOC case.
13486
13487 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
13488 all platforms. Improvement of last change.
13489
13490 2001-10-25 Robert Dewar <dewar@gnat.com>
13491
13492 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
13493
13494 2001-10-25 Geert Bosch <bosch@gnat.com>
13495
13496 * osint.adb (Is_Relative): Remove duplicate.
13497
13498 2001-10-25 Pascal Obry <obry@gnat.com>
13499
13500 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
13501 pathnames in UNIX and DOS style with drive letter.
13502 (Is_Relative): new routine.
13503
13504 * osint.adb: Minor reformatting
13505
13506 * osint.adb (Is_Relative): implementation using
13507 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
13508
13509 2001-10-25 Pascal Obry <obry@gnat.com>
13510
13511 * g-dirope.adb (Basename): correctly compute offset between the
13512 original Path and the translated one.
13513
13514 * g-dirope.adb: (Base_Name): add some comments.
13515
13516 2001-10-25 Robert Dewar <dewar@gnat.com>
13517
13518 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
13519 in HIE mode, avoids compilation abandoned message
13520
13521 * exp_imgv.adb: Correct typo in previous change
13522
13523 * exp_imgv.adb: Correct typo in previous change (not my day!)
13524
13525 2001-10-25 Robert Dewar <dewar@gnat.com>
13526
13527 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
13528
13529 2001-10-25 Pascal Obry <obry@gnat.com>
13530
13531 * g-awk.ads: Move all pragma inlines next to the routine
13532 declarations. This is more uniform with other GNAT spec.
13533
13534 2001-10-22 Geert Bosch <bosch@gnat.com>
13535
13536 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
13537
13538 2001-10-19 Geert Bosch <bosch@gnat.com>
13539
13540 * Makefile.in (tools, gnattools): Remove gnatmem.
13541
13542 2001-10-17 Richard Henderson <rth@redhat.com>
13543
13544 * Makefile.in (misc.o): Depend on langhooks.h.
13545 * misc.c: Include it.
13546 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
13547 (LANG_HOOKS_DECODE_OPTION): New.
13548 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
13549
13550 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
13551
13552 * trans.c (tree_transform): Adjust to recent change in
13553 expand_asm_operands to implement named asm operands.
13554
13555 2001-10-11 Ed Schonberg <schonber@gnat.com>
13556
13557 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
13558 renaming of discriminant for mutable record type.
13559
13560 2001-10-11 Robert Dewar <dewar@gnat.com>
13561
13562 * validsw.adb: Properly save -gnatVn status.
13563
13564 2001-10-11 Robert Dewar <dewar@gnat.com>
13565
13566 * usage.adb: Add lines for V switch.
13567
13568 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
13569 (/VALIDITY_CHECKING).
13570
13571 2001-10-11 Ed Schonberg <schonber@gnat.com>
13572
13573 * sem_type.adb (Add_One_Interp): an operator for a type declared in
13574 an extension of System is known to be visible.
13575
13576 2001-10-11 Ed Schonberg <schonber@gnat.com>
13577
13578 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
13579 properly. Fixes regression on ACATS C34005G.
13580
13581 2001-10-11 Robert Dewar <dewar@gnat.com>
13582
13583 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
13584 loop in generic instance, since this is likely not very useful.
13585
13586 2001-10-11 Robert Dewar <dewar@gnat.com>
13587
13588 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
13589 the error message for high integrity mode.
13590
13591 * rtsfind.adb (RTE): Give message if we try to find an entity that
13592 is not available in high integrity mode.
13593
13594 * rtsfind.ads:
13595 (OK_To_Use_In_HIE_Mode): New array.
13596 (RTE): May return Empty in high integrity mode.
13597
13598 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
13599 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
13600
13601 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
13602 unit if not inlined always and in no runtime mode. Fixes problem
13603 caused by new Rtsfind changes.
13604
13605 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
13606 body is deleted.
13607
13608 * rtsfind.adb (RTE): Make sure we do not try to load unit after
13609 giving message for entity not available in high integrity mode.
13610
13611 2001-10-11 Pascal Obry <obry@gnat.com>
13612
13613 * impunit.adb: Add GNAT.CRC32.
13614
13615 2001-10-11 Ed Schonberg <schonber@gnat.com>
13616
13617 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
13618 properly the case where one universal operand in a non-static
13619 exponentiation of a real literal.
13620
13621 2001-10-11 Ed Schonberg <schonber@gnat.com>
13622
13623 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
13624 clause, return the gobal finalization list, for lack of anthing else.
13625
13626 2001-10-11 Ed Schonberg <schonber@gnat.com>
13627
13628 * exp_ch7.adb (Make_Transient_Block): if statement is within
13629 exception handler, always use new transient scope to place Clean
13630 procedure.
13631
13632 2001-10-11 Pascal Obry <obry@gnat.com>
13633
13634 * Makefile.in:
13635 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
13636 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
13637 (GNATLS_RTL_OBJS): add g-crc32.o
13638 (GNATMAKE_RTL_OBJS): add g-crc32.o
13639
13640 * ali-util.adb:
13641 (CRC_Match): new function.
13642 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
13643 instead of the previous simple checksum algorithm.
13644 (Time_Stamp_Mismatch): use CRC_Match for comparison.
13645 (Set_Source_Table): idem.
13646
13647 * ali-util.ads:
13648 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
13649 instead of simple checksum.
13650 (CRC_Match): new function.
13651 (CRC_Error): new constant.
13652
13653 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
13654 a CRC now and not a simple checksum. A CRC uses lower-case hex
13655 letters, fixes ambiguity in parsing.
13656
13657 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
13658 is what this variable will store.
13659
13660 * bcheck.adb: Change reference to chechsum in comments by CRC.
13661 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
13662 rename All_Checksum_Match to All_CRC_Match. Change due to API
13663 renaming since now GNAT does not use a simple checksum but a
13664 CRC using GNAT.CRC32.
13665
13666 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
13667 now and not anymore a simple checksum.
13668
13669 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
13670 places.
13671
13672 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
13673
13674 * scans.adb:
13675 (Restore_Scan_State): rename Checksum to CRC.
13676 (Save_Scan_State): idem.
13677
13678 * scans.ads:
13679 With GNAT.CRC32.
13680 (Checksum): rename to CRC.
13681 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
13682
13683 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
13684 GNAT.CRC32). Update copyright notice.
13685
13686 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
13687 GNAT.CRC32). Update copyright notice.
13688
13689 * scn.adb:
13690 (Accumulate_Checksum): removed.
13691 (Update): new procedure. Add a wide-character into the CRC.
13692
13693 * sinput-l.adb:
13694 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
13695 (Load_File): fix initialization of S (change Source_Checksum to
13696 Source_CRC)
13697
13698 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
13699 Source_CRC in S initialization.
13700
13701 * sinput.adb (Source_Checksum): renamed to Source_CRC.
13702
13703 * sinput.ads (Source_Checksum): renamed to Source_CRC.
13704 Update comments for the CRC.
13705
13706 * types.adb (Hex): Use lowercase for the letter part.
13707
13708 * types.ads (Get_Hex_String): Returns the hexadecimal representation
13709 for a word. This is currently used only for CRC. In previous version,
13710 the checksum was using a representation with all letter being
13711 upper-case. With the new implementation (using CRC) we do not remove
13712 the 32th bit of the CRC, so we can have an upper-case starting letter
13713 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
13714 It is ambigous since the CRC was optional and could be followed by
13715 options like EB, EE. So now this routines uses lower-case letter for
13716 the hexadecimal representation. Strange enough only lower case letters
13717 where checked in Scan_ALI (even if this was not a possible case).
13718
13719 * gnatvsn.ads (Library_Version): changed to 3.15a.
13720
13721 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
13722 for the compiler.
13723
13724 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
13725 for the compiler.
13726
13727 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
13728 Add 2001 to copyright notice
13729 (Accumulate_Checksum): Modify to use System.CRC32.
13730
13731 * ali-util.ads: Redo changes of previous revision to continue to use
13732 the word Checksum. Add 2001 to copyright notice.
13733
13734 * ali.adb: Undo some of previous changes, not needed.
13735 Keep the change for lower case letters in the checksum.
13736
13737 * ali.ads: Undo previous change not needed.
13738
13739 * bcheck.adb: Undo most of previous change, not needed.
13740 But do use Checksums_Match for checksum comparison.
13741
13742 * gnatls.adb: Undo most of previous change, not needed.
13743 But do use Checksums_Match for comparing checksums.
13744
13745 * lib-load.adb: Undo previous change, not needed.
13746
13747 * lib-writ.adb: Undo previous change, not needed.
13748
13749 * lib-writ.ads: Document that checksums use lower case,
13750 not upper case letters.
13751
13752 * scans.adb: Undo previous change, not needed
13753
13754 * scans.ads: Undo previous change, not needed.
13755
13756 * scn-nlit.adb: Undo previous changes, not needed.
13757
13758 * scn-slit.adb: Undo previous change, not needed. Fix header format.
13759
13760 * scn.adb:
13761 (Accumulate_Checksum): Use System.CRC32.
13762 (Initialize_Checksum): New procedure.
13763 Remove other changes of previous revision.
13764
13765 * sinput-p.adb: Undo previous change, not needed.
13766
13767 * sinput.adb: Undo previous change, not needed.
13768
13769 * sinput-l.adb: Undo previous change, not needed.
13770
13771 * sinput.ads: Undo previous change, not needed. Keep only comment
13772 on new checksum algorithm
13773
13774 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
13775 Also remove a-tags and a-stream from GNAT sources.
13776
13777 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
13778
13779 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
13780
13781 2001-10-11 Geert Bosch <bosch@gnat.com>
13782
13783 * einfo.h: Regenerate.
13784
13785 * nmake.ads: Regenerate.
13786
13787 * nmake.adb: Regenerate.
13788
13789 * sinfo.h: Regenerate.
13790
13791 * treeprs.adb: Regenerate.
13792
13793 2001-10-10 Geert Bosch <bosch@gnat.com>
13794
13795 * gnat-style.texi: New file describing coding guidelines for Ada.
13796
13797 2001-10-10 Ed Schonberg <schonber@gnat.com>
13798
13799 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
13800 is Flag174.
13801
13802 2001-10-10 Geert Bosch <bosch@gnat.com>
13803
13804 * snames.ads: Add new names for project facility.
13805
13806 * snames.adb: Update to reflect snames.ads changes.
13807
13808 * snames.h: Update to reflect snames.ads changes.
13809
13810 2001-10-10 Vincent Celier <celier@gnat.com>
13811
13812 * make.adb:
13813 (Add_Switches): reflect the changes for the switches attributes
13814 Default_Switches indexed by the programming language,
13815 Switches indexed by the file name.
13816 (Collect_Arguments_And_Compile): Idem.
13817 Reflect the attribute name changes.
13818
13819 * prj-attr.adb:
13820 (Initialisation_Data): Change the names of some packages and
13821 attributes.
13822 (Initialize): process case insensitive associative arrays.
13823
13824 * prj-attr.ads:
13825 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
13826
13827 * prj-dect.adb:
13828 (Parse_Attribute_Declaration): For case insensitive associative
13829 arrays, set the index string to lower case.
13830
13831 * prj-env.adb:
13832 Reflect the changes of the project attributes.
13833
13834 * prj-nmsc.adb:
13835 Replace Check_Naming_Scheme by Ada_Check and
13836 Language_Independent_Check.
13837
13838 * prj-nmsc.ads:
13839 Replaced Check_Naming_Scheme by 2 procedures:
13840 Ada_Check and Language_Independent_Check.
13841
13842 * prj-proc.adb:
13843 (Process_Declarative_Items): For case-insensitive associative
13844 arrays, set the index string to lower case.
13845 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
13846 Prj.Nmsc.Check_Naming_Scheme.
13847
13848 * prj-tree.adb:
13849 (Case_Insensitive): New function
13850 (Set_Case_Insensitive): New procedure
13851
13852 * prj-tree.ads:
13853 (Case_Insensitive): New function
13854 (Set_Case_Insensitive): New procedure
13855 (Project_Node_Record): New flag Case_Insensitive.
13856
13857 * prj-util.adb:
13858 (Value_Of): new function to get the string value of a single
13859 string variable or attribute.
13860
13861 * prj-util.ads:
13862 (Value_Of): new function to get the string value of a single
13863 string variable or attribute.
13864
13865 * prj.adb:
13866 (Ada_Default_Spec_Suffix): New function
13867 (Ada_Default_Impl_Suffix): New function
13868 Change definitions of several constants to reflect
13869 new components of record types.
13870
13871 * prj.ads:
13872 (Naming_Data): Change several components to reflect new
13873 elements of naming schemes.
13874 (Project_Data): New flags Sources_Present and
13875 Language_Independent_Checked.
13876 (Ada_Default_Spec_Suffix): New function.
13877 (Ada_Default_Impl_Suffix): New function.
13878
13879 * snames.ads:
13880 Modification of predefined names for project manager: added
13881 Implementation, Specification_Exceptions, Implementation_Exceptions,
13882 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
13883 Default_Switches, _Languages, Builder, Cross_Reference,
13884 Finder. Removed Body_Part, Specification_Append, Body_Append,
13885 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
13886 Gnatlink.
13887
13888 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
13889 Add comments.
13890
13891 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
13892 not that it is Nil_Variable_Value.
13893
13894 * prj.ads: Add ??? for uncommented declarations
13895
13896 2001-10-10 Ed Schonberg <schonber@gnat.com>
13897
13898 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
13899 constant, do not indicate possible modification, so that gigi can
13900 treat it as a bona fide constant.
13901
13902 2001-10-10 Robert Dewar <dewar@gnat.com>
13903
13904 * sem_prag.adb: Add processing for pragma External.
13905
13906 * snames.ads: Add entry for pragma External.
13907
13908 * par-prag.adb: Add pragma External.
13909
13910 * snames.adb: Updated to match snames.ads.
13911
13912 2001-10-10 Ed Schonberg <schonber@gnat.com>
13913
13914 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
13915 a dynamic task if the allocator appears in an indexed assignment
13916 or selected component assignment.
13917
13918 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
13919 For a dynamic task in an assignment statement, use target of
13920 assignment to generate meaningful name.
13921
13922 2001-10-10 Ed Schonberg <schonber@gnat.com>
13923
13924 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
13925 a generic package.
13926
13927 * einfo.ads: Body_Entity is also defined for generic package.
13928 Documentation change only
13929
13930 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
13931 others_choice for a discriminated component initialization,
13932 convert discriminant references into the corresponding discriminals.
13933
13934 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
13935 only if original type is private and expression has to be wrapped
13936 in a conversion.
13937
13938 * checks.adb:
13939 (Apply_Constraint_Check): Do not perform length check
13940 if expression is an aggregate with only an others_choice.
13941 (Length_N_Cond): two references to the same in_parameter
13942 (typically the discriminal in an init_proc) denote the same value.
13943 Two useful optimization uncovered by bugfixes above.
13944
13945 2001-10-10 Robert Dewar <dewar@gnat.com>
13946
13947 * xeinfo.adb: Change int to char in translation of enumeration types.
13948 This fixes a problem in the C representation of component alignment.
13949 Add 2001 to copyright notice
13950
13951 2001-10-10 Richard Kenner <kenner@gnat.com>
13952
13953 * decl.c: (validate_size): Do check size of object of integral type
13954 if it is a packed array type.
13955
13956 2001-10-10 Richard Kenner <kenner@gnat.com>
13957
13958 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
13959 VAR_DECL for constant if not Is_Public but -O0.
13960
13961 2001-10-10 Richard Kenner <kenner@gnat.com>
13962
13963 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
13964
13965 2001-10-10 Geert Bosch <bosch@gnat.com>
13966
13967 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
13968 use '/' as switch character, allowing for absolute file names.
13969
13970 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
13971
13972 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
13973 FSF address.
13974
13975 2001-10-08 Geert Bosch <bosch@gnat.com>
13976
13977 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
13978 Automatically build utilities when files need to be regenerated.
13979
13980 2001-10-08 Geert Bosch <bosch@gnat.com>
13981
13982 * xsnames.adb: New utility for updating snames.ads and snames.adb
13983
13984 2001-10-08 Zack Weinberg <zack@codesourcery.com>
13985
13986 * Make-lang.in (ADAFLAGS): Add -W -Wall.
13987 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
13988 (gnat1): Also depend on attribs.o.
13989 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
13990 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
13991 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
13992 (ADAFLAGS): Add -W -Wall.
13993 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
13994 take out CFLAGS.
13995
13996 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
13997 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
13998 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
13999 Use $(ADAC), not $(CC), as compilation command.
14000
14001 (gnattools): Depend directly on tools to build, don't use
14002 recursive make.
14003 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
14004
14005 * einfo.h, sinfo.h: New files (autogenerated).
14006
14007 2001-10-08 Richard Henderson <rth@redhat.com>
14008
14009 * comperr.adb (Abort_In_Progress): New.
14010 (Compiler_Abort): Use it to prevent recursion.
14011
14012 2001-10-08 Robert Dewar <dewar@gnat.com>
14013
14014 * atree.adb: Set Error_Posted in Error node, helps error recovery.
14015
14016 * par-endh.adb (Output_End_Expected): We should also not test
14017 Error_Posted on the Error node, since now it is always set.
14018
14019 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
14020 to help error recovery. Part of general work on 9407-004.
14021
14022 * par.adb: Add ??? for misuse of error
14023
14024 * sem_res.adb:
14025 (Resolve): Defend against Error, fixes 9407-003.
14026 (Resolve_Discrete_Subtype_Indication): Defend against Error.
14027
14028 * sinfo.ads (N_Error): Now has Etype field (which will be set
14029 to Any_Type to help error recovery).
14030
14031 2001-10-08 Richard Kenner (kenner@gnat.com)
14032
14033 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
14034 Consistently set MEM attributes from expression; fixes
14035 bootstrap failure on x86.
14036
14037 2001-10-08 Geert Bosch (bosch@gnat.com)
14038
14039 * 5oosinte.adb: Add 2001 to copyright notice.
14040
14041 2001-10-08 Geert Bosch (bosch@gnat.com)
14042
14043 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
14044
14045 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
14046
14047 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
14048
14049 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
14050
14051 2001-10-05 Geert Bosch (bosch@gnat.com)
14052
14053 * adaint.h: Small formatting fix.
14054
14055 2001-10-04 Geert Bosch <bosch@gnat.com>
14056
14057 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
14058 Arg is int, not FILE *, in dummy version of functions.
14059
14060 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
14061 Arg is int, not FILE *.
14062
14063 2001-10-04 Geert Bosch <bosch@gnat.com>
14064
14065 * 3lsoccon.ads: Added file, missed with initial check ins.
14066
14067 * 4lintnam.ads: Fix header format.
14068 Change Linux to GNU/Linux.
14069
14070 * 5iosinte.adb: Change Linux to GNU/Linux.
14071
14072 * 5iosinte.ads: Change Linux to GNU/Linux.
14073
14074 * 5itaprop.adb: Change Linux to GNU/Linux.
14075
14076 * 5itaspri.ads: Change Linux to GNU/Linux.
14077 Update copyright notice.
14078
14079 * 5lintman.adb: Change Linux to GNU/Linux.
14080
14081 * 5lml-tgt.adb: Change Linux to GNU/Linux.
14082
14083 * 5losinte.ads: Change Linux to GNU/Linux.
14084
14085 * 5lsystem.ads: Change Linux to GNU/Linux.
14086
14087 * 5qosinte.adb: Change Linux to GNU/Linux.
14088
14089 * 5qosinte.ads: Change Linux to GNU/Linux.
14090
14091 * 5qparame.ads: Change Linux to GNU/Linux.
14092
14093 * 5qtaprop.adb: Change Linux to GNU/Linux.
14094
14095 * 5qtaspri.ads: Change Linux to GNU/Linux.
14096 Add 2001 to copyright notice.
14097
14098 * 5vintman.ads: Change Linux to GNU/Linux.
14099 Fix header format. Add 2001 to copyright notice.
14100
14101 * g-soccon.ads: Change Linux to GNU/Linux.
14102
14103 * g-trasym.ads: Change Linux to GNU/Linux.
14104 Add 2001 to copyright notice.
14105
14106 * memtrack.adb: Change Linux to GNU/Linux.
14107
14108 * s-intman.ads: Change Linux to GNU/Linux.
14109 Add 2001 to copyright notice. Fix header format.
14110
14111 * s-stache.adb: Change Linux to GNU/Linux.
14112
14113 * adaint.c: Change Linux to GNU/Linux.
14114
14115 * cio.c: Change Linux to GNU/Linux.
14116
14117 * cstreams.c: Change Linux to GNU/Linux.
14118
14119 * init.c: Change Linux to GNU/Linux.
14120
14121 * gmem.c: Change Linux to GNU/Linux.
14122
14123 * tracebak.c: Change Linux to GNU/Linux.
14124
14125
14126 2001-10-02 Geert Bosch <bosch@gnat.com>
14127
14128 * misc.c (insert_default_attributes): Add dummy version.