1 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
4 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
7 2004-11-21 Andreas Jaeger <aj@suse.de>
9 * stylesw.adb: Change Style_Check_Subprogram_Order to
10 Style_Check_Order_Subprograms.
12 2004-11-18 Arnaud Charlet <charlet@adacore.com>
15 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
17 Add also a cast to kill another warning.
18 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
19 parameter with the priority class of the parent process instead of
20 always using the NORMAL_PRIORITY_CLASS.
21 (__gnat_dup): New function.
22 (__gnat_dup2): New function.
23 (__gnat_is_symbolic_link): Enable the effective body of this
24 function when __APPLE__ is defined.
26 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
29 2004-11-18 Olivier Hainque <hainque@adacore.com>
31 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
32 address of which may be used to represent "others" and "all others"
33 choices in exception tables, instead of the current harcoded
34 (void *)0 and (void *)1.
35 (Setup_Exception): Do nothing in the GNAT SJLJ case.
37 * gigi.h (others_decl, all_others_decl): New decls representing the
38 new Others_Value and All_Others_Value objects.
39 (struct attrib): Rename "arg" component as "args", since GCC expects a
40 list of arguments in there.
42 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
43 corresponding objects exported by a-exexpr, instead of hardcoded dummy
46 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
47 others_decl and all_others_decl instead of hardcoded dummy addresses
48 to represent "others" and "all others" choices, which is cleaner and
49 more flexible with respect to the possible eh pointer encoding policies.
51 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
52 (process_attributes): Account for the naming change of the "args"
53 attribute list entry component.
55 * decl.c (build_attr_list): Rename into prepend_attributes to allow
56 cumulating attributes for different entities into a single list.
57 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
58 attributes for the current entity and propagate first subtype
59 attributes to other subtypes.
60 <E_Procedure>: Attribute arguments are attr->args and not
62 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
63 argument provided, as this is what GCC expects. Use NULL_TREE instead
66 2004-11-18 Robert Dewar <dewar@adacore.com>
68 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
69 Minor reformatting througout (including new function specs)
70 Add ??? comments asking for clarification.
72 2004-11-18 Thomas Quinot <quinot@adacore.com>
74 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
75 incomplete duplicate implementation of this subprogram from butil.
77 2004-11-18 Thomas Quinot <quinot@adacore.com>
79 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
80 procedures factors the common processing for building an RPC receiver
81 for an RCI package or an RACW type.
82 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
83 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
84 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
86 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
88 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
90 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
91 distribution subprogram identifiers that are either subprogram numbers
93 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
94 string distribution identifiers assigned to a given subprogram.
95 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
96 (Add_RAS_Dereference_TSS): Add comments.
97 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
98 is not referenced yet because it will be used by the PolyORB DSA
100 (Insert_Partition_Check): Remove fossile code.
101 (First_RCI_Subprogram_Id): Document this constant.
102 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
104 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
105 replaced with calls to Get_Library_Unit_Name_String. Previously there
106 were several instances of the same code in different locations in the
107 compiler; this checkin completes the replacement of all of these
108 instances with calls to a common subprogram.
111 * sem_dist.adb: Remove comment noting that RPC receiver generation
112 should be disabled for RACWs that implement RASs.
113 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
115 * sem_util.ads, sem_util.adb (Has_Stream): New function
116 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
117 qualified name of a library unit into the name buffer.
118 (Note_Possible_Modification): Generate a reference only
119 if the context comes from source.
121 * snames.ads (PCS_Names): New subtype corresponding to names of
122 supported implementations of the Partition Communication Subsystem
123 (PCS) (i.e. the runtime library support modules for the distributed
126 2004-11-18 Robert Dewar <dewar@adacore.com>
127 Ed Schonberg <schonberg@adacore.com>
129 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
130 (Has_Rep_Pragma): New function
131 (Has_Attribute_Definition_Clause): New function
132 (Record_Rep_Pragma): Moved here from sem_ch13.adb
133 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
135 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
137 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
138 (Expand_Pragma_Psect_Object): New procedure
139 These procedures contain the revised and cleaned up processing for
140 these two pragmas. This processing was formerly in Sem_Prag, but
141 is more appropriately moved here. The cleanup involves making sure
142 that the pragmas are properly attached to the tree, and that no
143 nodes are improperly shared.
145 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
146 pragmas to Exp_Prag, which is more appropriate.
147 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
148 check for duplicates Remove use of Is_Psected flag, no longer needed.
149 Use new Make_String_Literal function with string.
151 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
152 that are functions return universal values, that have to be converted
154 Use new Make_String_Literal function with string.
155 (Get_Stream_Convert_Pragma): New function, replaces the use of
156 Get_Rep_Pragma, which had to be kludged to work in this case.
158 * freeze.adb: Use new Has_Rep_Pragma function
160 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
161 function with string.
162 Use new Has_Rep_Pragma function.
164 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
167 2004-11-18 Robert Dewar <dewar@adacore.com>
169 * errout.ads, errout.adb: (First_Sloc): New function
171 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
172 check (-gnatyx) instead of being included as a redundant construct
175 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
176 Style_Check_Order_Subprograms.
178 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
179 stylesw.adb: Add Style_Check_Xtra_Parens
181 * usage.adb: Add line for -gnatyx (check extra parens)
183 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
185 2004-11-18 Ed Schonberg <schonberg@adacore.com>
186 Robert Dewar <dewar@adacore.com>
188 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
189 discriminant of a constrained subtype, analyze the copy of the
190 corresponding constraint, because in some cases it may be only
192 Removes long-lived ??? comments.
194 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
195 handled controlled or secondary-stack expressions within the
196 iteration_scheme of a loop.
198 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
199 bounds that may contain functions calls, to prevent memory leaks when
200 the bound contains a call to a function that uses the secondary stack.
201 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
202 generate temporaries for loop bounds that might contain function calls
203 that require secondary stack and/or finalization actions.
205 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
206 selected component and the selector is overloadable (not just a
207 function) treat as function call, Analyze_Call will disambiguate if
209 (Analyze_Selected_Component): Do not generate an actual subtype for the
210 selected component if expansion is disabled. The actual subtype is only
211 needed for constraint checks.
212 (Analyze_Allocator): If restriction No_Streams is set, then do
213 not permit objects to be declared of a stream type, or of a
214 composite type containing a stream.
216 * restrict.ads: Remove the a-stream entry from Unit_Array, since
217 No_Streams no longer prohibits with'ing this package.
219 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
220 discriminants, but the parent base has unknown discriminants, there is
221 no discriminant constraint to inherit. Such a discrepancy can arise
222 when the actual for a formal type with unknown discriminants is a
223 similar private type whose full view has discriminants.
224 (Analyze_Object_Declaration): If restriction No_Streams is set, then
225 do not permit objects to be declared of a stream type, or of a
226 composite type containing a stream.
228 2004-11-18 Ed Schonberg <schonberg@adacore.com>
230 * exp_dbug.ads: Update documentation to reflect simpler encoding for
231 protected operations.
233 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
234 generated name, it complicates decoding in gdb and hinders debugging
235 of protected operations.
236 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
237 flag for the protected entry barrier function.
238 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
239 flag for the protected entry function.
241 2004-11-18 Nicolas Setton <setton@adacore.com>
243 * expect.c: Define __unix__ when __APPLE__ is defined.
245 * Makefile.in: Inform the value of the variable GMEM_LIB in the
246 Darwin-specific section.
248 * lang-specs.h: Change the placement of the %1 marker.
249 Works around the fact that gcc adds -fPIC by default under Darwin.
251 2004-11-18 Ed Schonberg <schonberg@adacore.com>
253 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
254 type of the object with the packed array type, set the Analyzed flag
255 on the object if it is an entity or simple indexed component, to avoid
256 spurious type errors.
258 2004-11-18 Gary Dismukes <dismukes@adacore.com>
260 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
261 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
262 separate line from the version message.
264 2004-11-18 Ed Falis <falis@adacore.com>
266 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
268 (init_float): Eliminate initialization of floating point status for
269 AE653. The instructions have no effect for vThreads.
271 2004-11-18 Vincent Celier <celier@adacore.com>
273 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
274 gnatbind is invoked with -shared.
276 2004-11-18 Jose Ruiz <ruiz@adacore.com>
278 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
279 for Detect_Blocking which is redundant with the check done within the
280 procedure Protected_Single_Entry_Call.
281 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
282 Detect_Blocking which is redundant with the check done within the
283 procedure Protected_Single_Entry_Call.
285 2004-11-18 Vincent Celier <celier@adacore.com>
287 * makegpr.adb (Compile): Put the compiling switches (in package
288 Compiler and on the command line) immediately after "-c", instead of
289 at the end of the command line invocation of the compiler, when
290 compiling a non-Ada file.
291 (Build_Global_Archive): When there is no need to rebuild the archive,
292 set Global_Archive_Exists, so that the archive is passed to the linker
295 2004-11-18 Robert Dewar <dewar@adacore.com>
296 Sergey Rybin <rybin@adacore.com>
299 Remove extra paren check from list of checks for redundant constructs
300 Add documentation of new -gnatyx style check (check extra parens)
301 Remove paragraph about gnatelim debug options.
303 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
304 objects rather than forbidding dependencies on the package Ada.Streams.
306 * sinfo.ads: Add ??? note that we should document pragmas passed to
309 * g-expect.ads: Fix a few typos in the comments.
311 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
313 * misc.c (gnat_handle_option): Use %< and %> for quoting in
316 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
318 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
320 2004-11-07 Andreas Schwab <schwab@suse.de>
322 * Makefile.in (install-gnatlib): Remove spurious hyphen.
324 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
327 * Makefile.in (darwin): Set soext to .dylib.
329 2004-10-26 Vincent Celier <celier@gnat.com>
330 Thomas Quinot <quinot@act-europe.fr>
332 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
333 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
334 there is no use of GNAT.Sockets.Constants.
335 Remove remaining pragma Import for C_Write
336 Remove C_Read and C_Write from internal implementation unit
337 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
338 the read and write functions from the system runtime library is fine
339 on UNIX but won't work under Windows).
341 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
342 (Check_Selector): Use C_Recv instead of C_Read.
343 Selectors are the GNAT.Sockets abstraction to perform a select()
344 call on a set of descriptors. To allow abortion of an ongoing
345 select operation, some data is written to a dedicated socket that
347 Under Windows, the write and read library functions cannot operate
348 on sockets, so we need to use send and recv instead, which is portable
349 across all supported platforms.
351 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
352 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
353 (using the read and write functions from the system runtime library is
354 fine on UNIX but won't work under Windows).
356 2004-10-26 Nicolas Setton <setton@act-europe.fr>
358 * mlib-tgt-darwin.adb: New file.
360 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
361 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
362 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
363 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
366 * Makefile.in: Add support for building shared libraries under Darwin.
367 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
368 the low level EH init subprogram to be called from __gnat_initialize.
370 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
371 indicates which options to pass to the archive indexer.
373 * mlib-utl.adb: Add support for calling ranlib with additional
374 options. This is needed for instance under Mac OS X.
375 (Ranlib_Options): New global variable, used to store the potential
376 options to pass to ranlib.
377 (Ar): Use Ranlib_Options when spawning ranlib.
378 (Initialize): Set the value of ranlib option.
380 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
382 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
383 instead of 8K, to reflect the real potential needs for stack-checking
386 2004-10-26 Pascal Obry <obry@gnat.com>
388 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
390 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
391 Windows only the initial thread stack size can be set so it is good to
392 start we a low stack size.
393 The OS will adjust the size as needed.
395 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
396 Nicolas Setton <setton@act-europe.fr>
398 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
399 "__unix__" instead of "unix".
400 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
401 sections were just mistakenly ignored. The former is
402 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
403 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
404 of hpux. This prevents an unwanted definition of the symbol
405 convert_addresses in adaint.o.
407 2004-10-26 Gary Dismukes <dismukes@gnat.com>
409 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
410 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
412 2004-10-26 Cyrille Comar <comar@act-europe.fr>
414 * a-filico.ads, a-filico.adb: fix incorrect header.
416 2004-10-26 Javier Miranda <miranda@gnat.com>
418 * a-ststio.ads: Fix typo in identifier
420 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
422 * sem_ch4.adb: Minor reformatting.
424 2004-10-26 Ed Schonberg <schonberg@gnat.com>
426 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
427 enabled, check the result of unary and binary operations when the
428 expression is the right-hand side of an assignment.
430 2004-10-26 Vincent Celier <celier@gnat.com>
432 * clean.adb (Delete): Do not output warnings when in quiet output and
434 (Force_Deletions): New Boolean flag, defaulted to False
435 (Delete): Only delete a file if it is writable, and when
436 Force_Deletions is True.
437 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
438 (Usage): Line for new switch -f
439 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
442 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
444 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
445 JM type only if its size matches that of the wrapper. When a size is
446 prescribed and the field is not aliased, remove the wrapper of a JM
447 type only if the size is not greater than that of the packed array.
448 (gnat_to_gnu_entity): Change the extension of packed array wrappers
451 2004-10-26 Geert Bosch <bosch@gnat.com>
453 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
454 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
455 (Pred): Implement in terms of Succ.
457 2004-10-26 Ed Schonberg <schonberg@gnat.com>
459 * exp_aggr.adb (Safe_Component): An aggregate component that is an
460 unchecked conversion is safe for in-place use if the expression of the
462 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
463 be expandable in place even if the aggregate does not come from source.
464 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
465 designated object of an allocator in place, rather than building it
466 first on the stack. The previous scheme forces a full copy of the array,
467 and may be altogether unsusable if the size of the array is too large
468 for stack allocation.
470 2004-10-26 Robert Dewar <dewar@gnat.com>
472 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
473 compares if the component is atomic.
475 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
476 array assignment if the component type is atomic.
478 2004-10-26 Ed Schonberg <schonberg@gnat.com>
479 Eric Botcazou <ebotcazou@act-europe.fr>
481 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
482 is aliased and is a by_reference type, do not pass by copy.
483 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
484 detect whether the call is in the right side of an assignment or
485 the expression of an object declaration. Recurse on component
486 association within aggregates.
487 Call it in the condition that determines whether the temporary is
488 necessary for correct stack-checking.
490 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
492 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
493 RACW_Type, used in the PolyORB version.
494 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
495 version and the GARLIC version.
497 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
498 Rename RCI_Info to RCI_Locator for better consistency between the
499 GARLIC and PolyORB versions of the distributed systems annex.
500 (DSA_Implementation_Name): This enumeration lists the possible
501 implementations of the Partition Communication Subsystem for the
502 Distributed Systems Annex (DSA). The three available implementations
503 are the dummy stub implementation (No_DSA), and two versions based on
504 two different distribution runtime libraries: GARLIC and PolyORB. Both
505 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
507 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
510 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
511 between the GARLIC and PolyORB versions of the distributed systems
513 Remove RE_Unbounded_Reclaim_Pool since it is unused.
515 2004-10-26 Gary Dismukes <dismukes@gnat.com>
517 * gnat1drv.adb: Suppress calling the back end when
518 Frontend_Layout_On_Target is true.
520 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
522 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
523 Set_Read_Only): New subprograms.
524 These new routines allow the user to set or unset the Owner execute
525 and Owner write permission flags on a file.
527 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
528 GNAT.OS_Lib.Set_Executable instead of rolling our own.
530 2004-10-26 Matthew Gingell <gingell@gnat.com>
532 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
534 2004-10-26 Pascal Obry <obry@gnat.com>
536 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
537 memory before the faulting page we properly test the process read
538 access for this address using appropriate Win32 routine.
539 (HPUX sections): guard with "__hpux__" instead of "hpux".
541 2004-10-26 Robert Dewar <dewar@gnat.com>
543 * lib-xref.adb (Generate_Reference): Don't complain about reference to
544 entry parameter if pragma Unreferenced set, since we do not properly
545 handle the case of multiple parameters.
547 2004-10-26 Vincent Celier <celier@gnat.com>
549 * prj-env.adb: (Contains_ALI_Files): New Boolean function
550 (Ada_Objects_Path.Add): For a library project, add to the object path
551 the library directory only if there is no object directory or if the
552 library directory contains ALI files.
553 (Set_Ada_Paths.Add.Recursive_Add): Ditto
555 2004-10-26 Vincent Celier <celier@gnat.com>
557 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
558 extension of library projects.
560 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
561 path defaults to ".:<prefix>/lib/gnat".
562 (Parse): For an extending all project, allow direct import of a project
563 that is virtually extended.
565 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
566 the specified name is directly imported, return its ID. Otherwise, if
567 an extension of this project is imported, return the ID of the
570 2004-10-26 Robert Dewar <dewar@gnat.com>
572 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
573 (Sub3): New procedure, used by Scaled_Divide
574 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
575 correct more than one instance of failure to propagate carries
577 (Double_Divide): Handle overflow case of largest negative number
578 divided by minus one.
580 * s-arit64.ads (Double_Divide): Document that overflow can occur in
581 the case of a quotient value out of range.
584 2004-10-26 Robert Dewar <dewar@gnat.com>
586 * s-bitops.adb (Bit_Eq): Remove redundant check.
588 * s-bitops.ads: Minor comment updates
589 Change some occurrences of Address to System.Address
591 * s-carsi8.ads: Fix minor cut-and-paste error in comments
593 2004-10-26 Ed Schonberg <schonberg@gnat.com>
595 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
596 accessibility check to prefix that is a protected operation.
598 2004-10-26 Ed Schonberg <schonberg@gnat.com>
600 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
601 empty, post message on stub.
603 2004-10-26 Ed Schonberg <schonberg@gnat.com>
604 Javier Miranda <miranda@gnat.com>
606 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
607 current instance appears within a unit that is directly in the context
609 Used to determine whether the body of the instance should be analyzed
610 immediately after its spec, to make its subprogram bodies available
611 for front-end inlining.
612 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
613 constraint is not allowed on the component type (AARM 12.5.3(3))
615 2004-10-26 Cyrille Comar <comar@act-europe.fr>
617 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
618 'Storage_Pool): enhance, document & limit detection of non-sharable
621 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
623 * s-pooglo.ads: Add more documentation now that this pool is properly
626 2004-10-26 Ed Schonberg <schonberg@gnat.com>
628 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
629 or protected type with discriminants, do not constrain the
630 corresponding record type if the subtype declaration has no
631 discriminant constraints. This can be the case in source code, or in
632 the subtype declaration created to rename an actual type within an
635 2004-10-26 Ed Schonberg <schonberg@gnat.com>
637 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
638 different kind of stub (possibly wrong name for file), do not check
640 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
641 includes call to some function that returns an unconstrained type, do
644 2004-10-26 Ed Schonberg <schonberg@gnat.com>
646 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
647 appear in the code for the main unit. Dependencies among units in the
648 context of the main unit are established when those other units are
649 compiled. Otherwise spurious elaboration constraints can generate
650 incorrect elaboration circularities.
652 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
653 Ed Schonberg <schonberg@gnat.com>
655 * sem_util.adb (Is_Aliased_View): Defend against the case where this
656 subprogram is called with a parameter that is not an object name. This
657 situation arises for some cases of illegal code, which is diagnosed
658 later, and in this case it is wrong to call Is_Aliased, as that might
659 cause a compiler crash.
660 (Explain_Limited_Type): Refine previous fix to include
661 inherited components of derived types, to provide complete information.
663 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
664 is the prival for a protected object.
665 It is necessary to mark this entity as a variable, in addition to
666 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
667 modified to avoid checking the Aliased flag on entities that are not
668 objects. (Checking that flag for non-objects is erroneous and could
669 lead to a compiler crash).
671 2004-10-26 Robert Dewar <dewar@gnat.com>
673 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
674 X_Frac = 0.5, then we know that the number X must be positive.
675 (Succ): Remove the same redundant test, and also fix the primary test
676 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
678 (Decompose): Add fuller comments to spec
680 2004-10-26 Pascal Obry <obry@gnat.com>
682 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
683 validity (process must have read access). Set to 0 in all other cases.
684 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
686 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
687 segmentation violation.
689 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
691 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
692 whose type is a constructed subtype of an aliased object with an
693 unconstrained nominal subtype, convert the actual to the constructed
694 subtype before taking its address.
696 2004-10-26 Vincent Celier <celier@gnat.com>
698 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
699 (Is_Path_Name_Case_Sensitive): New function
701 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
702 (Base_Name, Simple_Name, Current_Directory, Compose,
703 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
706 2004-10-26 Cyrille Comar <comar@act-europe.fr>
707 Vasiliy Fofanov <fofanov@act-europe.fr>
708 Vincent Celier <celier@gnat.com>
710 * gnat_ugn.texi: Generalize "finding memory problems" section into a
711 "memory management issues" section and document some of the useful
712 memory pools provided as part of the GNAT library.
713 Remove "virtual" from declaration of A::method2 in
714 the simple example of Ada/C++ mixed system.
715 Library Projects may be virtually extended: their virtual extensions
716 are not Library Projects.
717 Added section on extending project hierarchies.
719 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
721 * adaint.c (__gnat_get_libraries_from_registry): Cast value
723 (__gnat_portable_spawn): Remove const.
725 * mingw32.h (MAXPATHLEN): Check for previous definition.
727 2004-10-17 Matthias Klose <doko@debian.org>
729 * gnatvsn.ads: Set gnat library version to 4.0.
731 2004-10-05 Vincent Celier <celier@gnat.com>
733 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
735 2004-10-04 Laurent GUERBY <laurent@guerby.net>
738 * Makefile.in: Define and use RANLIB_FLAGS.
740 2004-10-04 Pascal Obry <obry@gnat.com>
742 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
743 other x86 platforms).
745 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
747 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
748 in general and triggers stack alignment adjustment for thread entry
749 points on targets where this is necessary.
751 2004-10-04 Bernard Banner <banner@gnat.com>
755 * Makefile.in: Add section for powerpc linux
756 Add variant i-vxwork-x86.ads
758 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
760 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
762 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
763 table registration calls when need be. Ensures no reference to the crt
764 ctors symbol are issued in the SJLJ case, which avoids possible
765 undefined symbol errors in the case of modules to be statically linked
768 2004-10-04 Javier Miranda <miranda@gnat.com>
770 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
771 in-line the code corresponding to subprogram Analyze_Actuals. In
772 addition, analyze the actuals only in case of subprogram call.
774 2004-10-04 Ed Falis <falis@gnat.com>
776 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
778 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
780 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
781 in the documentation.
783 2004-10-04 Robert Dewar <dewar@gnat.com>
785 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
787 (Analyze_Block_Statement): Add circuitry to detect following dead code
788 (Check_Unreachable_Code): Handle case of block exit
790 2004-10-04 Robert Dewar <dewar@gnat.com>
792 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
793 (XMatchD): Avoid warning for Logic_Error call
795 2004-10-04 Robert Dewar <dewar@gnat.com>
797 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
798 consider expressions buried within a procedure actual to be an actual.
799 This caused some blowups with uses of packed slices within a procedure
802 2004-10-04 Robert Dewar <dewar@gnat.com>
804 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
805 longer need to be initialized to zero.
806 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
809 * checks.adb (Expr_Known_Valid): Packed arrays are now always
810 considered valid, even if the representation is modular. That's correct
811 now that we no longer initialize packed modular arrays to zero.
813 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
814 suffixes. These are now documented as the only cases in which the
815 debugger ignores outer records.
816 Previously, the spec allowed arbitrary suffixes for this purpose.
817 Change name of LJM to JM for packed array pad records
818 Create separate section on packed array handling, and add a whole new
819 set of comments to this section describing the situation with packed
820 modular types and justification requirements depending on endianness.
822 2004-10-04 Robert Dewar <dewar@gnat.com>
824 * a-except.adb: Add a comment for last change
826 * einfo.ads: Minor spelling correction in comment
828 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
830 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
833 * sem_util.ads: Minor comment update
835 2004-10-04 Ed Schonberg <schonberg@gnat.com>
837 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
838 Inline_Always when in Configurable_Run_Time mode.
840 * sem_prag.adb (Process_Convention): If entity is an inherited
841 subprogram, apply convention to parent subprogram if in same scope.
842 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
843 when in Configurable_Run_Time mode.
845 2004-10-04 Ed Schonberg <schonberg@gnat.com>
847 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
848 class_wide type after component list has been inherited.
850 2004-10-04 Ed Schonberg <schonberg@gnat.com>
852 * sem_ch12.adb (Check_Generic_Actuals): New predicate
853 Denotes_Previous_Actual, to handle properly the case of a private
854 actual that is also the component type of a subsequent array actual.
855 The visibility status of the first actual is not affected when the
857 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
858 make fully recursive the treatment of formals of packages declared
860 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
861 the above on exit from an instantiation.
862 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
863 current instantiation which is now complete.
864 (Analyze_Package_Instantiation): No instantiated body is needed if the
865 main unit is generic. Efficient, and avoid anomalies when a instance
866 appears in a package accessed through rtsfind.
868 2004-10-04 Ed Schonberg <schonberg@gnat.com>
870 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
871 do not generate a declaration for a temporary if the call is part of a
872 library-level instantiation.
874 2004-10-04 Ed Schonberg <schonberg@gnat.com>
876 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
877 searching for a limited component to flag.
879 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
880 expansion of Input, to account for the fact that the implicit call
881 generated by the attribute reference must freeze the user-defined
882 stream subprogram. This is only relevant to 'Input, because it can
883 appear in an object declaration, prior to the body of the subprogram.
885 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
886 expansion can proceed and further errors uncovered.
887 (Minor clean up): Fix cases of using | instead of \ for continuation
890 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
892 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
894 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
895 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
896 Use gcc_assert and gcc_unreachable.
898 * decl.c (gnat_to_gnu_entity, case object): Check and process a
899 specified alignment before validating size.
900 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
901 stripped-down declaration for the type of the inner field when making
904 * utils.c (finish_record_type): Do not compute the size in units
905 incrementally. Instead compute it once for the rep clause case.
906 Use gcc_assert and gcc_unreachable.
908 2004-10-04 Vincent Celier <celier@gnat.com>
910 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
912 (Is_Valid_Path_Name): Take '/' as a directory separator.
914 2004-10-04 Vincent Celier <celier@gnat.com>
916 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
917 (Extended_Project) only if Extended_Project is defined, to avoid
919 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
921 (Parse_Single_Project): Ditto.
923 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
924 Add_To_Project_Path for virtual projects.
926 2004-10-04 Vincent Celier <celier@gnat.com>
928 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
929 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
930 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
931 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
934 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
935 Build_Dynamic_Library with an empty Options_2.
937 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
940 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
941 directory separator, if any.
942 (Gprmake): Do not allow mains on the command line for library projects.
943 Do not attempt to link when the project is a library project.
944 (Library_Opts): New table to store Library_Options.
945 (Build_Library): If Library_Options is specified, pass these options
946 when building a shared library.
948 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
950 * s-tposen.adb (Service_Entry): The object must be always unlocked at
951 the end of this procedure now that the unlock operation was inserted
954 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
956 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
957 corresponding to the Preallocated_Stacks flags in System.
958 (Get_Target_Parameters): Including the processing for
961 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
962 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
963 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
964 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
965 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
966 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
967 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
968 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
969 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
970 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
971 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
972 used to signal whether the compiler creates the required stacks and
973 descriptors for the different tasks (when True) or it is done by the
974 underlying operating system at run time (when False).
975 It is initially set to False in all targets.
977 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
978 if it is supported by the target.
979 (Make_Task_Create_Call): Pass the stack address if it has been
980 previously created. Otherwise pass a Null_Address.
982 * snames.adb: Add _stack.
984 * snames.ads: Add Name_uStack. Required to allow the expander to
985 statically allocated task stacks.
987 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
988 Stack_Address argument.
989 Check that its value is equal to Null_Address because this target does
990 not support the static stack allocation.
992 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
994 * usage.adb: Change "pragma inline" to "pragma Inline" in information
997 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
999 * exp_dist.adb: Split declaration of asynchronous flag out of
1000 Add_RACW_Read_Attribute.
1001 Minor reformatting for better alignment with PolyORB version.
1002 Store the entity for the asynchronous flag of an RACW, rather than the
1003 expression, in the asynchronous flags table. This will allow this flag
1004 to be used in other subprograms beside Add_RACW_Read_Attribute.
1006 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
1008 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
1009 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
1010 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
1011 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
1012 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
1013 sockets constant MSG_NOSIGNAL (Linux-specific).
1014 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
1015 all Send operations.
1016 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
1017 from trigerring SIGPIPE.
1018 Rename components to avoid clash with Ada 2005 possible reserved
1020 (Check_Selector): When the select system call returns with an error
1021 condition, propagate Socket_Error to the caller.
1023 2004-10-01 Jan Hubicka <jh@suse.cz>
1025 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
1027 2004-09-23 Robert Dewar <dewar@gnat.com>
1031 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
1032 instead do this at freeze time (we won't do it if there is an address
1034 Change "pragma inline" to "pragma Inline" in information and error
1038 * freeze.adb (Check_Address_Clause): Remove previous change, not the
1039 right way of doing things after all.
1040 (Freeze_Entity): For object, set Is_Public for imported entities
1041 unless there is an address clause present.
1043 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
1045 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
1046 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
1047 ensures proper handling of types with rep clauses, which might have
1048 their TYPE_SIZE set already.
1050 2004-09-21 Robert Dewar <dewar@gnat.com>
1052 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
1053 packed array types in both little- and big-endian cases. This change
1054 ensures that we no longer count on the unused bits being initialized
1055 for such types (and in particular ensures that equality testing will
1056 only read the relevant bits).
1057 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
1058 These changes mean that we no longer need to initialize small packed
1060 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
1061 optimization to an LJM field as to its parent field.
1063 * ada-tree.h, trans.c, utils.c, utils2.c:
1064 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
1066 2004-09-20 Jan Hubicka <jh@suse.cz>
1068 * utils.c (gnat_finalize): Remove.
1069 (end_subprog_body): Directly call cgraph_finalize_function;
1070 do not lower the nested functions.
1072 2004-09-20 Robert Dewar <dewar@gnat.com>
1076 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
1077 if an address clause is present, since that means that the Import
1080 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
1082 * 5tsystem.ads: Removed, no longer used.
1084 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
1085 Zack Weinberg <zack@codesourcery.com>
1087 * ada-tree.def: Use tree_code_class enumeration constants
1088 instead of code letters.
1089 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
1090 Update for new tree-class enumeration constants.
1092 2004-09-17 Vincent Celier <celier@gnat.com>
1094 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
1095 capabilities of the general project manager.
1097 2004-09-09 Vincent Celier <celier@gnat.com>
1099 * a-direct.ads: Add pragma Ada_05
1100 (Directory_Entry_Type): Give default value to component Kind to avoid
1101 not initialized warnings.
1103 * a-direct.adb (Current_Directory): Remove directory separator at the
1105 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
1106 an existing directory.
1107 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
1108 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
1109 Convert the result to File_Size.
1111 * prj.ads: (Project_Error): New exception
1113 * prj-attr.adb: Except in procedure Initialize, Fail comes from
1114 Prj.Com, not from Osint.
1115 (Attrs, Package_Attributes): Tables moved to private part of spec
1116 (Add_Attribute, Add_Unknown_Package): Moved to new child package
1118 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
1119 Prj.Project_Error after call to Fail.
1120 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
1121 Fail. Check that package name is not already in use.
1123 * prj-attr.ads: Comment updates to indicate that all subprograms may be
1124 used by tools, not only by the project manager, and to indicate that
1125 exception Prj.Prj_Error may be raised in case of problem.
1126 (Add_Unknown_Package, Add_Attribute): Moved to new child package
1128 (Attrs, Package_Attributes): Table instantiations moved from the body to
1129 the private part to be accessible from Prj.Attr.PM body.
1131 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
1132 from new package Prj.Attr.PM.
1133 (Parse_Attribute_Declaration): Call Add_Attribute from new package
1136 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
1138 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
1139 instead of Elaboration_Checks).
1141 * a-calend.adb: Minor reformatting
1143 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1145 * gigi.h (maybe_pad_type): New declaration.
1146 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
1148 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
1150 * cuintp.c: Convert to use buildN.
1152 * decl.c (maybe_pad_type): No longer static.
1153 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
1155 Convert to use buildN.
1157 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
1158 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
1159 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
1161 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
1162 (gnat_gimplify_expr, case ADDR_EXPR): New case.
1163 Convert to use buildN.
1165 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
1166 TREE_READONLY for const.
1167 Convert to use buildN.
1169 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
1170 (create_var_decl): Refine when TREE_STATIC is set.
1171 Convert to use buildN.
1173 2004-09-09 Gary Dismukes <dismukes@gnat.com>
1175 * gnat_ugn.texi: Delete text relating to checking of ali and object
1178 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
1181 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
1183 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
1184 pragmas recognized by GNAT.
1186 * gnat_rm.texi: Document pragma Detect_Blocking.
1188 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
1189 raise Program_Error if called from a protected operation.
1191 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
1192 the protected action nesting level.
1193 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
1194 protected action nesting level.
1195 (Unlock): When pragma Detect_Blocking is active decrease the protected
1196 action nesting level.
1198 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
1199 Protected_Action_Nesting.
1201 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
1202 Common_ATCB record. It contains the dynamic level of protected action
1203 nesting for each task. It is needed for checking whether potentially
1204 blocking operations are called from protected operations.
1205 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
1206 Detect_Blocking is active or not in the partition.
1208 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
1209 raise Program_Error if called from a protected operation.
1210 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
1211 Program_Error if called from a protected operation.
1212 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
1213 Program_Error if called from a protected operation.
1215 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
1216 raise Program_Error if called from a protected operation.
1218 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
1219 raise Program_Error if called from a protected operation, and increase
1220 the protected action nesting level.
1221 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
1222 Program_Error if called from a protected operation, and increase the
1223 protected action nesting level.
1224 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
1225 protected action nesting level.
1227 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
1228 raise Program_Error if called from a protected operation, and increase
1229 the protected action nesting level.
1230 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
1231 Program_Error if called from a protected operation, and increase the
1232 protected action nesting level.
1233 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
1234 raise Program_Error if called from a protected operation.
1235 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
1236 active, raise Program_Error if called from a protected operation.
1237 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
1238 protected action nesting level.
1240 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
1241 insertion of the statement raising Program_Error. The run time
1242 contains the required machinery for handling that.
1244 * sem_util.ads: Change comment associated to procedure
1245 Check_Potentially_Blocking_Operation.
1246 This procedure does not insert a call for raising the exception because
1247 that is currently done by the run time.
1249 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
1251 * init.c: Add the global variable __gl_detect_blocking that indicates
1252 whether pragma Detect_Blocking is active (1) or not (0). Needed for
1253 making the pragma available at run time.
1254 (__gnat_set_globals): Pass and update the detect_blocking parameter.
1256 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
1257 pragma Detect_Blocking is active.
1259 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
1261 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
1262 DB is found in the ali file. Any unit compiled with pragma
1263 Detect_Blocking active forces its effect in the whole partition.
1265 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
1266 Detect_Blocking is active and delay is called from a protected
1269 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
1270 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
1271 Detect_Blocking is active (0 otherwise).
1272 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
1273 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
1276 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
1278 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
1279 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
1282 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
1283 (Register_Receiving_Stub): Add Subp_Info formal parameter.
1284 Update API in placeholder implemetation of s-parint to reflect changes
1285 in distribution runtime library.
1287 * sem_ch3.adb (Expand_Derived_Record): Rename to
1288 Expand_Record_Extension.
1290 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
1291 primitive operations of potentially distributed object types that have
1292 non-controlling anonymous access formals.
1294 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
1296 New implementation of expansion for remote access-to-subprogram types,
1297 based on the RACW infrastructure.
1298 This version of sem_dist is compatible with PolyORB/DSA as well as
1301 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
1302 Asynchrronous that applies to a remote access-to-subprogram type, mark
1303 the underlying RACW type as asynchronous.
1305 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
1306 __gnat_using_gnu_linker to 1.
1308 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
1309 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
1310 GNAT.Perfect_Hash_Generators, and remove the empty
1311 GNAT.Perfect_Hash package.
1313 * atree.adb: Minor reformatting
1315 * exp_ch3.adb (Expand_Derived_Record): Rename to
1316 Expand_Record_Extension.
1317 (Build_Record_Init_Proc.Build_Assignment): The default expression in
1318 a component declaration must remain attached at that point in the
1319 tree so New_Copy_Tree copies it if the enclosing record type is derived.
1320 It is therefore necessary to take a copy of the expression when building
1321 the corresponding assignment statement in the init proc.
1322 As a side effect, in the case of a derived record type, we now see the
1323 original expression, without any rewriting that could have occurred
1324 during expansion of the ancestor type's init proc, and we do not need
1325 to go back to Original_Node.
1327 * exp_ch3.ads (Expand_Derived_Record): Rename to
1328 Expand_Record_Extension.
1330 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
1331 Returns the RACW type used to implement a remote access-to-subprogram
1333 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
1334 New subprograms. Used to create a proxy tagged object for a remote
1335 subprogram. The proxy object is used as the designated object
1336 for RAS values on the same partition (unless All_Calls_Remote applies).
1337 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
1338 System.Partition_Interface.Get_Unique_Remote_Pointer.
1339 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
1340 Renamed from Add_RAS_*_Attribute.
1341 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
1343 New implementation of expansion for remote access-to-subprogram types,
1344 based on the RACW infrastructure.
1346 * exp_dist.ads (Copy_Specification): Update comment to note that this
1347 function can copy the specification from either a subprogram
1348 specification or an access-to-subprogram type definition.
1350 2004-09-09 Ed Schonberg <schonberg@gnat.com>
1352 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
1353 in an instance, between an explicit subprogram an one inherited from a
1354 type derived from an actual.
1356 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
1357 add a polling call if the subprogram is to be inlined by the back-end,
1358 to avoid repeated calls with multiple inlinings.
1360 * checks.adb (Apply_Alignment_Check): If the expression in the address
1361 clause is a call whose name is not a static entity (e.g. a dispatching
1362 call), treat as dynamic.
1364 2004-09-09 Robert Dewar <dewar@gnat.com>
1366 * g-trasym.ads: Minor reformatting
1368 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
1369 packed arrays, since unused bits are expected to be zero for a
1372 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
1374 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
1377 2004-09-09 Pascal Obry <obry@gnat.com>
1379 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
1380 enable map file generation. Add the right option to generate the map
1381 file if Map_File is set to True.
1383 * gnatdll.adb (Gen_Map_File): New variable.
1384 (Syntax): Add info about new -m (Map_File) option.
1385 (Parse_Command_Line): Add support for -m option.
1386 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
1389 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
1391 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
1392 new gnatdist implementation.
1393 Define a subpackage isolating the output routines specific to this
1396 2004-09-09 Joel Brobecker <brobecker@gnat.com>
1398 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
1400 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
1402 2004-09-09 Cyrille Comar <comar@act-europe.fr>
1404 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
1407 * opt.ads: Add Ada_Version_Runtime constant used to decide which
1408 version of the language is used to compile the run time.
1410 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
1412 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
1413 of variable length temporaries for function return now that the
1414 back-end and gigi support it.
1416 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1418 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
1420 * trans.c (struct stmt_group): Delete field GLOBAL.
1421 (gnat_init_stmt_group): Do not initialize it.
1422 (call_to_gnu): Use save_expr, not protect_multiple_eval.
1423 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
1424 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
1425 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
1426 (start_stmt_group): Likewise.
1427 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
1429 * utils2.c (ggc.h): Include.
1430 (build_call_raise): Call build_int_cst, not build_int_2.
1432 * utils.c (gnat_init_decl_processing): Fix arg to
1433 build_common_tree_nodes.
1434 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
1435 (gnat_define_builtin): Set built_in_decls.
1436 (init_gigi_decls): Call build_int_cst, not build_int_2.
1438 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
1439 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
1440 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
1441 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
1442 SET_TYPE_MODULE): Use them.
1443 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
1444 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
1445 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
1446 SET_TYPE_ADA_SIZE): Likewise.
1447 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
1448 (DECL_CONST_CORRESPONDING_VAR,
1449 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
1450 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
1451 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
1452 (TYPE_RM_SIZE_NUM): New macro.
1453 (TYPE_RM_SIZE): Modified to use above.
1455 * cuintp.c: (build_cst_from_int): New function.
1456 (UI_To_gnu): Use it.
1458 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
1459 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
1460 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
1461 MIN_EXPR for the size, copy it into new.
1463 2004-09-01 Robert Dewar <dewar@gnat.com>
1465 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
1466 packed indexed component where array is an IN OUT formal. This
1467 generated garbage code previously.
1469 * gnat_ugn.texi: Document -fverbose-asm
1471 * gnat-style.texi: Minor updates (note that boolean constants and
1472 variables are joined with AND/OR rather than short circuit forms).
1474 2004-09-01 Ed Schonberg <schonberg@gnat.com>
1476 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
1477 it is an upward conversion of an untagged type with no representation
1480 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
1482 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
1483 System.Partition_Interface.
1485 * checks.adb (Apply_Access_Checks): Do not generate checks when
1486 expander is not active (but check for unset reference to prefix of
1489 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
1490 pragma Debug as an if statement with a constant condition, for
1491 consistent treatment of entity references contained within the
1492 enclosed procedure call.
1494 2004-09-01 Vincent Celier <celier@gnat.com>
1496 * bindgen.adb: (Set_EA_Last): New procedure
1497 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
1499 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
1500 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
1501 linked without errors.
1502 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
1504 (Gen_Exception_Table_C): Correct same bugs
1506 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
1508 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
1509 on Windows, make sure that the drive letter is in upper case.
1511 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
1512 Windows, when the drive letter is added and Case_Sensitive is True, the
1513 drive letter is forced to upper case.
1515 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
1516 to Options_2 for the call to MLib.Utl.Gcc.
1518 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
1519 directory separator when defining BASE_DIR.
1521 2004-09-01 Pascal Obry <obry@gnat.com>
1523 * gprcmd.adb (Extend): Do not output trailing directory separator. This
1524 is not needed and it confuses Windows GNU/make which does not report
1525 directory terminated by a slash as a directory.
1526 (gprcmd): Idem for "pwd" internal command.
1528 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
1529 target names rewrite to fix regressions with recent version of
1530 GNU/make. Starting with GNU/make 3.80 the pipe character was not
1531 handled properly anymore.
1533 2004-09-01 Andreas Schwab <schwab@suse.de>
1535 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
1536 * raise.c [!IN_RTS]: Undef abort.
1538 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
1540 * utils2.c (build_allocator): Use ssize_int.
1542 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
1544 2004-08-27 Andreas Schwab <schwab@suse.de>
1546 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
1548 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
1549 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1551 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
1553 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
1555 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
1556 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
1557 * utils.c (init_gigi_decls): Likewise.
1558 * utils2.c (build_call_raise, build_allocator): Likewise.
1560 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
1562 * utils.c (gnat_init_decl_processing): Adjust
1563 build_common_tree_nodes call.
1565 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
1567 * utils2.c (build_allocator): Use build_int_cst for negative
1570 2004-08-18 Richard Henderson <rth@redhat.com>
1572 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
1574 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
1576 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
1578 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
1579 (gnat_to_gnu): Likewise.
1581 2004-08-16 Pascal Obry <obry@gnat.com>
1583 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
1584 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
1585 option and not mdll anymore. Update comment.
1587 2004-08-16 Pascal Obry <obry@gnat.com>
1589 * bld.adb (Put_Include_Project): Properly handle directory separators
1592 2004-08-16 Ed Schonberg <schonberg@gnat.com>
1594 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
1595 decreasing the number of allocated junk nodes while searching for the
1596 appropriate subprogram.
1598 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
1600 * cuintp.c (UI_To_gnu): Use build_int_cst..
1601 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
1602 * utils.c (init_gigi_decls): Likewise.
1603 * utils2.c (build_call_raise): Likewise.
1605 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
1607 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
1608 for a global aliased object with a variable size and an unconstrained
1609 nominal subtype, pretend there is no initializer if the one we have is
1610 incomplete, and avoid referencing an inexistant component in there. The
1611 part we have will be rebuilt anyway and the reference may confuse
1614 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
1616 * einfo.ads: Minor reformatting
1618 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
1619 restrictions in the ALI if we only want to warn about violations.
1621 2004-08-13 Vincent Celier <celier@gnat.com>
1623 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
1624 when creating a new Unit_Record in table Units.
1626 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
1627 that are violated, if any.
1629 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
1630 add directory separator if path already ends with a directory separator.
1632 2004-08-13 Ed Schonberg <schonberg@gnat.com>
1634 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
1635 unit, this is an attempt to inline a construct that is not available in
1636 the current restricted mode, so abort rather than trying to continue.
1638 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
1639 discriminants that rename those of the parent, recover names of
1640 original discriminants for the constraint on the full view of the
1642 (Complete_Private_Subtype): Do not create a subtype declaration if the
1643 subtype is an itype.
1645 * gnat_rm.texi: Added section on implementation of discriminated
1646 records with default values for discriminants.
1648 2004-08-13 Ed Schonberg <schonberg@gnat.com>
1651 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
1652 the second operand is overloaded.
1654 2004-08-10 Richard Henderson <rth@redhat.com>
1656 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
1657 add __builtin_alloca.
1659 2004-08-10 Richard Henderson <rth@redhat.com>
1661 * config-lang.in (boot_language): Yes.
1663 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
1665 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
1666 from complaining on potential uninitialized reference.
1667 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
1668 new specification and test explicitly for non-zero return value.
1670 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
1671 returning C.int, to avoid using a derived boolean type.
1673 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
1674 Duplicate_Subexpr_No_Checks in preference to direct use of
1675 Remove_Side_Effects and New_Copy_Tree.
1676 Clear Comes_From_Source on prefix of 'Size attribute reference.
1678 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
1679 g-socthi-vxworks.adb: Change calls to
1680 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
1681 and test explicitly for non-zero return value.
1683 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
1684 (Is_Socket_In_Set): Declare imported function as returning C.int, to
1685 avoid using a derived boolean type.
1687 2004-08-09 Albert Lee <lee@gnat.com>
1689 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
1691 2004-08-09 Pascal Obry <obry@gnat.com>
1693 * gnat_ugn.texi: Document new way to build DLLs on Windows using
1694 GCC's -shared option.
1696 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
1697 Options_2 parameter (options put after object files).
1699 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
1701 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
1702 ignore overflows on low and high bounds of an index to also account for
1703 differences in signedness between sizetype and gnu_index_subtype.
1704 These are as legitimate as the ones caused by a lower TYPE_PRECISION
1707 2004-08-09 Robert Dewar <dewar@gnat.com>
1709 * s-solita.ads, s-solita.adb: Minor reformatting
1711 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
1712 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
1714 Add note that No_Implicit_Conditionals does not suppress
1715 run time constraint checks.
1717 * vms_conv.ads: Minor reformatting
1719 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
1720 and necessary for following change).
1721 (Mark): Return new format Mark_Id containing sec stack address
1722 (Release): Use sec stack address from Mark_Id avoiding Self call
1724 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
1725 pointer (cleanup and necessary for following change).
1726 Define Mark_Id as record containing address of secondary stack, that way
1727 Release does not need to find the stack again, decreasing the number of
1728 calls to Self and improving efficiency.
1730 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
1732 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
1733 case variable into the individual case branches when possible.
1735 * sem_ch11.adb: Minor reformatting
1737 * prj.ads: Correct spelling of suffixs
1739 * prj-nmsc.adb: Minor reformatting
1740 Correct spelling suffixs throughout (also in identifiers)
1742 * freeze.adb: Minor spelling correction
1744 * exp_ch2.adb: Cleanups to handling of Current_Value
1745 (no functional effect).
1747 * bld.adb: Correct spelling of suffixs
1749 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
1751 2004-08-09 Ed Schonberg <schonberg@gnat.com>
1755 * sem_ch7.adb (Install_Private_Declarations): In the body of the
1756 package or of a child, private entities are both immediately_visible
1759 2004-08-09 Ed Schonberg <schonberg@gnat.com>
1761 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
1762 there are no range checks on the value of the literal.
1764 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
1765 wrapped is the triggering alternative of an asynchronous select, action
1766 statements mustbe inserted before the select itself.
1768 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
1769 case where the prefix is a protected function call.
1770 (Resolve_Attribute, case 'Access): The attribute reference on a
1771 subprogram is legal in a generic body if the subprogram is declared
1774 2004-08-09 Vincent Celier <celier@gnat.com>
1776 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
1777 languages, otherwise building the library may fail with unresolved
1779 (Compile_Sources): Do not build libraries if -c switch is used
1781 * gnatlink.adb (Process_Args): New switches -M and -Mmap
1782 (Write_Usage): If map file creation is supported, output new switches
1784 (Gnatlink): When -M is specified, add the necessary switch(es) to the
1785 gcc call, when supported.
1787 * Makefile.in: Added indepsw.o to the object list for gnatlink
1788 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
1790 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
1791 indepsw.adb, indepsw.ads: New files.
1793 2004-08-09 Bernard Banner <banner@gnat.com>
1795 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
1797 * Makefile.in: add section for vxworks x86
1799 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
1801 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
1802 per-object constrained components where the discriminant is of an
1804 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
1805 the parent initialization procedure for derived Unchecked_Unions.
1806 Instead, derived Unchecked_Unions build their own initialization
1808 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
1809 Check the body of the subprogram for details.
1810 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
1811 functions for derived Unchecked_Union types by introducing a condition.
1812 Allow the creation of TSS equality functions for Unchecked_Unions.
1813 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
1814 Add formal parameter Discr to function signature. Discr is used to
1815 control the generated case statement for Unchecked_Union types.
1816 (Make_Eq_If): Rename formal parameter Node to E in function signature.
1818 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
1820 Check the body of the subprogram for details.
1821 (Expand_Composite_Equality): Augment composite type equality to include
1822 correct handling of Unchecked_Union components.
1823 (Expand_N_In): Add condition to detect illegal membership tests when the
1824 subtype mark is a constrained Unchecked_Union and the expression lacks
1825 inferable discriminants, and build a Raise_Program_Error node.
1826 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
1827 to detect types that contain components of unconstrained Unchecked_Union
1828 subtype. Add condition to detect equality between types that have an
1829 unconstrained Unchecked_Union component, and build a Raise_Program_Error
1830 node. Add condition to detect equality between Unchecked_Union types
1831 that lack inferable discriminants, and build a Raise_Program_Error node.
1832 Otherwise build a TSS equality function call.
1833 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
1834 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
1835 with the operand lacking inferable discriminants, and build a Raise_
1837 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
1839 (Has_Inferable_Discriminants): Implement new predicate for objects and
1840 expressions of Unchecked_Union type. Check the body of subprogram for
1842 (Has_Unconstrained_UU_Components): Add function
1843 Component_Is_Unconstrained_UU. It is used to detect whether a single
1844 component is of an unconstrained Unchecked_Union subtype. Add function
1845 Variant_Is_Unconstrained_UU. It is used to detect whether a single
1846 component inside a variant is of an unconstrained Unchecked_Union type.
1848 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
1849 inferred discriminant values. Add condition to generate a case
1850 statement with an inferred discriminant as the switch.
1851 (Make_Component_List_Assign): Introduce a Boolean flag that determines
1852 the behaviour of the subprogram in the presence of an Unchecked_Union.
1853 Add condition to trigger the usage of the inferred discriminant value
1854 as the generated case statement switch.
1855 (Make_Field_Assign): Introduce a Boolean flag that determines the
1856 behaviour of the subprogram in the presence of an Unchecked_Union. Add
1857 condition to trigger the usage of the inferred discriminant value as
1858 the right-hand side of the generated assignment.
1860 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
1861 parameter generation when dealing with Unchecked_Unions.
1863 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
1864 checks for Unchecked_Unions.
1866 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
1868 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
1869 Raise_Program_Error nodes for the execution of Read and Write
1870 attributes of Unchecked_Union types and the execution of Input and
1871 Output attributes of Unchecked_Union types that lack default
1872 discriminant values.
1874 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
1875 Unchecked_Union. Add procedure Check_Component. It is used to inspect
1876 per-object constrained components of Unchecked_Unions for being
1877 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
1878 check individual components withing a variant.
1880 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
1881 comparison of Unchecked_Unions.
1882 (Resolve_Equality_OP): Remove guard that prevents equality between
1885 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
1886 of component subtypes for Unchecked_Union components.
1887 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
1888 since it is the actual subtype.
1890 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
1891 pass of Unchecked_Union subtypes as generic actuals to formal types
1892 that lack known_discriminant_parts or that are derived Unchecked_Union
1893 types, and do nothing. In any other case, produce an error message.
1895 * sem_ch3.adb (Analyze_Component_Declaration): Add function
1896 Contains_POC. It determines whether a constraint uses the discriminant
1897 of an enclosing record type.
1898 Add condition to detect per-object constrained component and set the
1900 (Derived_Type_Declaration): Remove guard that prevents derivation from
1901 Unchecked_Union types.
1902 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
1905 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
1906 references to Unchecked_Union discriminants.
1908 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
1909 formal generation when dealing with Unchecked_Unions.
1910 (Set_Actual_Subtypes): Add condition to prevent generation of actual
1911 subtypes for Unchecked_Unions.
1913 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
1914 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
1915 completions of discriminated partial views by Unchecked_Unions and
1916 produce an error message.
1918 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1920 * trans.c (struct stmt_group): New field, GLOBAL.
1921 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
1922 (struct elab_info): New struct.
1923 (elab_info_list, gnu_elab_proc_stack): New variables.
1924 (Compilation_Unit_to_gnu): New procedure.
1925 (gigi): Call it and also handle elaboration procs we've saved.
1926 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
1927 global field from parent.
1928 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
1929 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
1930 (start_stmt_group): Initialize global field from parent.
1931 (add_decl_expr): Set to global for current statement group.
1932 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
1935 * utils.c (global_bindings_p): True when no current_function_decl; no
1936 longer check current_binding_level.
1938 2004-08-09 Ben Brosgol <brosgol@gnat.com>
1940 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
1943 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
1945 2004-08-06 Andreas Schwab <schwab@suse.de>
1947 * utils.c (gnat_define_builtin): Remove second parameter of
1949 (begin_subprog_body): Likewise.
1951 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
1953 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
1954 optimization, not supported by the tree-ssa back-end.
1956 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
1958 * s-mastop-irix.adb: Update comments.
1960 * a-except.adb (Exception_Information): Raise Constraint_Error if
1961 exception Id is Null_Id.
1962 This is required behavior, which is more reliably and clearly checked
1963 at the top level interface level.
1965 2004-07-26 Javier Miranda <miranda@gnat.com>
1967 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
1968 call if a component has no default_expression and the box is used.
1970 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
1971 default_expression and you use box, it behaves as if you had declared a
1973 (Resolve_Record_Aggregate): If a component has no default_expression and
1974 you use box, it behaves as if you had declared a stand-alone object.
1976 * sem_ch10.adb (Install_Siblings): Do not make visible the private
1977 entities of private-with siblings.
1979 2004-07-26 Ed Schonberg <schonberg@gnat.com>
1981 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
1982 for a component of an itype, set the parent pointer for analysis,
1983 there is no list in which to insert it.
1985 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
1986 bona-fide renamings, not for inherited operations.
1988 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
1989 actual for a formal that is an access parameter, create local
1990 finalization list even if the expression is not an aggregate.
1992 2004-07-26 Ed Schonberg <schonberg@gnat.com>
1995 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
1996 Diagnose properly illegal subprogram renamings that are library units.
1998 2004-07-26 Ed Schonberg <schonberg@gnat.com>
2001 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
2002 conversion rewritten as an unchecked conversion, check that original
2003 expression is a variable.
2005 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
2006 unchecked_conversion, create new node rather than rewriting in place,
2007 to preserve original construct.
2009 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2011 * gigi.h (gnat_expand_body): Deleted.
2013 * Make-lang.in: (trans.o): Depends on function.h.
2015 * misc.c: (gnat_expand_body): Moved to here.
2017 * trans.c (gnat_expand_body_1): Deleted.
2018 (gnat_expand_body): Moved from here.
2019 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
2020 (add_stmt): Check for marked visited with global_bindings_p.
2021 (gnat_gimplify_expr, case COMPONENT_REF): New case.
2022 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
2024 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
2025 VIEW_CONVERT_EXPR if not operation type.
2027 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
2030 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
2031 changes: reformatting of negation operators, removing unneeded
2032 inequality comparison with zero, converting equality comparisons with
2033 zero to negations, changing int/0/1 to bool/false/true, replace calls
2034 to gigi_abort with abort, and various other similar changes.
2036 2004-07-26 Vincent Celier <celier@gnat.com>
2038 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
2041 * make.adb (Gnatmake): Fail when a library is not present and there is
2042 no object directory.
2044 * mlib-prj.adb (Check_Library): No need to check if the library needs
2045 to be rebuilt if there is no object directory, hence no object files
2046 to build the library.
2048 * opt.ads (Setup_Projects): New Boolean flag.
2050 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
2052 Create directory when Kind /= "" and in "gnat setup". Report error if
2053 directory cannot be created.
2054 (Ada_Check): Create library interface copy dir if it does not exist
2055 and we are in "gnat setup".
2056 (Find_Sources): No error if in "gnat setup" and no Ada sources were
2058 (Language_Independent_Check): Create object directory, exec directory
2059 and/or library directory if they do not exist and we are in
2062 * vms_conv.ads: (Command_Type): New command Setup.
2064 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
2066 * vms_data.ads: Add qualifiers/switches for new built-in command
2069 2004-07-25 Richard Henderson <rth@redhat.com>
2071 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
2072 DECL_IGNORED_P on RESULT_DECL.
2074 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
2076 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
2077 allocation and potentially overflowing update with
2078 Tailored_Exception_Information. Use the sec-stack free procedural
2079 interface to output Exception_Information instead.
2081 * a-except.adb (To_Stderr): New subprogram for character, and string
2082 version moved from a-exextr to be visible from other separate units.
2083 (Tailored_Exception_Information): Remove the procedural version,
2084 previously used by the default Last_Chance_Handler and not any more.
2085 Adjust various comments.
2087 * a-exexda.adb: Generalize the exception information procedural
2088 interface, to minimize the use of secondary stack and the need for
2089 local buffers when the info is to be output to stderr:
2090 (Address_Image): Removed.
2091 (Append_Info_Character): New subprogram, checking for overflows and
2092 outputing to stderr if buffer to fill is of length 0.
2093 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
2094 (Append_Info_Address, Append_Info_Exception_Name,
2095 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
2096 Append_Info_Basic_Exception_Traceback,
2097 Append_Info_Exception_Information): New subprograms.
2098 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
2099 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
2100 Exception_Info_Maxlength, Exception_Name_Length,
2101 Exception_Message_Length): New subprograms.
2102 (Exception_Information): Use Append_Info_Exception_Information.
2103 (Tailored_Exception_Information): Use
2104 Append_Info_Basic_Exception_Information.
2105 Export services for the default Last_Chance_Handler.
2107 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
2108 other separate units.
2110 2004-07-20 Vincent Celier <celier@gnat.com>
2112 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
2114 2004-07-20 Ed Schonberg <schonberg@gnat.com>
2116 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
2117 emit itype references for the designated types of component types that
2118 are declared outside of the full record declaration, and that may
2119 denote a partial view of that record type.
2121 2004-07-20 Ed Schonberg <schonberg@gnat.com>
2124 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
2125 which is the designated type in an access component declaration, to the
2126 list of incomplete dependents of the parent type, to avoid elaboration
2127 issues with out-of-scope subtypes.
2128 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
2129 full view of the parent.
2131 2004-07-20 Ed Schonberg <schonberg@gnat.com>
2134 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
2135 entities that are hidden, such as references to generic actuals
2136 outside an instance.
2138 2004-07-20 Javier Miranda <miranda@gnat.com>
2140 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
2141 support to the new notation.
2142 (Analyze_Selected_Component): Add call to Try_Object_Operation.
2144 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
2146 * s-taprob.adb: Adding the elaboration code required for initializing
2147 the tasking soft links that are common to the full and the restricted
2150 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
2151 restricted run time has been moved to the package
2152 System.Soft_Links.Tasking.
2154 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
2155 restricted run time has been moved to the package
2156 System.Soft_Links.Tasking.
2158 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
2160 * s-solita.ads, s-solita.adb: New files.
2162 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2164 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
2165 Case_Statement_to_gnu): Split off from gnat_to_gnu.
2166 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
2167 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
2168 Exception_Handler_to_gnu_zcx): Likewise.
2170 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
2172 * gigi.h (builtin_function): Declare.
2174 2004-07-15 Robert Dewar <dewar@gnat.com>
2176 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
2179 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
2180 access values as an example of a warning.
2182 * gnat_rm.texi: Document new attribute Has_Access_Values
2184 * gnat-style.texi: Document that box comments belong on nested
2187 * sem_util.ads (Has_Access_Values): Improved documentation
2189 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
2191 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
2192 (Process_Interface_Name): Call to this new procedure
2193 (Set_Extended_Import_Export_External_Name): Call to this new procedure
2195 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
2197 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
2199 * einfo.ads: Minor comment typo fixed
2201 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
2203 * snames.adb: Add _atcb.
2205 * snames.ads: Add Name_uATCB.
2207 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
2208 (in the expanded code) when using the restricted run time.
2210 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
2211 a in parameter in order to allow ATCBs to be preallocated (in the
2214 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
2215 order to allow ATCBs to be preallocated. In case of error, the ATCB is
2216 deallocated in System.Tasking.Stages.
2218 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
2219 order to allow ATCBs to be preallocated.
2221 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
2222 here. It was previously done in Initialize_ATCB.
2224 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
2226 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
2227 Restricted run time.
2229 * exp_ch3.adb: When using the Restricted run time, pass the
2230 preallocated Ada_Task_Control_Block when creating a task.
2232 2004-07-15 Ed Schonberg <schonberg@gnat.com>
2234 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
2235 function call that is itself an actual in an enclosing call, diagnose
2236 problem here rather than assuming that resolution will catch it.
2238 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
2239 the local copy of a generic unit for a formal package, and the generic
2240 is a child unit, install private part of ancestors before compiling
2241 private part of spec.
2243 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
2244 use scope entities rather than tree structures, to handle properly
2245 parent units that are instances rewritten as bodies for inlining
2248 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
2249 Remove_Parents): Handle properly a parent unit that is an
2250 instantiation, when the unit has been rewritten as a body for inlining
2253 * par.adb (Goto_List): Global variable to collect goto statements in a
2254 given unit, for use in detecting natural loops.
2256 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
2257 use in detecting natural loops.
2259 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
2260 backwards goto's, and rewrite as a infinite loop, to improve locality
2263 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
2264 subcomponent that includes an indexed reference, to prevent the
2265 generation of copies that would miscompile the desired assignment
2267 (Build_Task_Image_Decls): Add a numeric suffix to
2268 generated name for string variable, to avoid spurious conflicts with
2269 the name of the type of a single protected object.
2271 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
2272 loop with an explicit exit statement, to avoid generating an
2273 out-of-range value with 'Succ leading to spurious constraint_errors
2274 when compiling with -gnatVo.
2276 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
2278 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
2279 might not be analyzed yet, even if its Etype is already set (case of an
2280 unchecked conversion built using Unchecked_Convert_To, for example).
2281 If the prefix has already been analyzed, this will be a nop anyway.
2283 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
2284 controller type, or an assignment of a record type with controlled
2285 components, copy only user data, and leave the finalization chain
2288 2004-07-15 Vincent Celier <celier@gnat.com>
2290 * make.adb (Collect_Arguments): Improve error message when attempting
2291 to compile a source not part of any project, when -x is not used.
2293 * prj.ads: (Defined_Variable_Kind): New subtype
2295 * prj-attr.adb (Register_New_Package): Two new procedures to register
2296 a package with or without its attributes.
2297 (Register_New_Attribute): Mew procedure to register a new attribute in a
2299 New attribute oriented subprograms: Attribute_Node_Id_Of,
2300 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
2301 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
2303 New package oriented subprograms: Package_Node_Id_Of,
2304 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
2306 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
2308 (Package_Node_Id): Now a private, self initialized type
2309 (Register_New_Package): New procedure to register a package with its
2311 New attribute oriented subprograms: Attribute_Node_Id_Of,
2312 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
2313 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
2315 New package oriented subprograms: Package_Node_Id_Of,
2316 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
2318 * prj-dect.adb (Parse_Attribute_Declaration,
2319 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
2321 * prj-makr.adb (Make): Parse existing project file before creating
2322 other files. Fail if there was an error during parsing.
2324 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
2325 new spec of Prj.Attr.
2327 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
2328 to new spec of Prj.Attr.
2330 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2332 * utils2.c: Fix typo in comment.
2334 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2336 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
2337 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
2339 2004-07-14 Andreas Schwab <schwab@suse.de>
2341 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
2343 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2345 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
2347 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
2350 * misc.c (gnat_types_compatible_p): New function.
2351 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
2352 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
2354 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
2355 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
2356 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
2357 (mark_visited): Don't mark dummy type.
2358 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
2359 parameter, we must remove any LJM building from GNU_NAME.
2360 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
2361 (pos_to_constructor): Use int_const_binop.
2362 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
2365 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
2366 (gnat_pushlevel): Set TREE_USE on BLOCK node.
2367 (gnat_install_builtins): Add __builtin_memset.
2369 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
2371 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
2372 for a renaming, stabilize the initialization expression if we are at a
2373 local level. At the local level, uses of the renaming may be performed
2374 by a direct dereference of the initializing expression, and we don't
2375 want possible variables there to be evaluated for every use.
2377 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
2378 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
2379 them on the way. Account for the fact that we may introduce side
2380 effects in the process.
2382 2004-07-13 Richard Henderson <rth@redhat.com>
2384 * misc.c (default_pass_by_ref): Use pass_by_reference.
2386 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
2388 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
2389 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
2391 2004-07-08 Richard Henderson <rth@redhat.com>
2393 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
2396 2004-07-06 Vincent Celier <celier@gnat.com>
2398 * vms_conv.ads: Minor reformatting.
2399 Alphabetical order for enumerated values of type Command_Type, to have
2400 the command in alphabetical order for the usage.
2402 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
2403 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
2405 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
2407 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
2408 (Add_Archive_Path): Only add the global archive if there is one.
2409 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
2410 or not any object file to put in the global archive, and don't build
2411 a global archive if there is none.
2412 (X_Switches): New table
2413 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
2414 in the X_Switches table, if any.
2415 (Initialize): Make sure the X_Switches table is empty
2416 (Scan_Arg): Record -X switches in table X_Switches
2418 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
2420 * make.adb: Minor comment fix
2422 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
2423 invoked with directory information, add the directory in front of the
2426 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
2427 invoked with directory information, add the directory in front of the
2430 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
2431 when Keep_Temporary_Files is False.
2432 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
2433 directory information, add the directory in front of the path.
2434 When not on VMS, handle new switch -dn before the command to set
2435 Keep_Temporary_Files to True.
2436 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
2439 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
2440 invoked with directory information, add the directory in front of the
2443 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
2445 * snames.ads, snames.adb (Name_Stub): New name for the distributed
2448 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
2449 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
2451 * g-socket.adb (To_Timeval): Fix incorrect conversion of
2452 Selector_Duration to Timeval for the case of 0.0.
2454 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
2455 documentation from Evolve_And_Then.
2457 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
2459 * s-taprop-tru64.adb, s-taprop-os2.adb,
2460 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
2462 2004-07-06 Robert Dewar <dewar@gnat.com>
2464 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
2465 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
2466 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
2467 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
2468 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
2469 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
2470 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
2471 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
2472 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
2473 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
2474 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
2475 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
2476 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
2477 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
2478 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
2479 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
2480 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
2481 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
2482 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
2483 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
2484 vms_data.ads: Minor reformatting,
2485 Fix bad box comment format.
2487 * gnat_rm.texi: Fix minor grammatical error
2489 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
2491 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
2492 more cases of discriminated records to be recognized as not needing a
2494 (Has_Access_Values): New function.
2496 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
2498 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
2499 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
2500 with LRM terminology).
2501 Change terminology in comments primitive type => elementary type.
2503 2004-07-06 Ed Schonberg <schonberg@gnat.com>
2506 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
2507 parameters do not impose any requirements on the presence of a body.
2509 2004-07-06 Ed Schonberg <schonberg@gnat.com>
2512 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
2513 compilation unit and is in an open scope at the point of instantiation,
2514 assume that a body may be present later.
2516 2004-07-06 Ed Schonberg <schonberg@gnat.com>
2518 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
2519 Improve error message when specified size is not supported.
2521 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
2522 is never a primitive operation.
2524 2004-07-05 Andreas Schwab <schwab@suse.de>
2526 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
2527 RECORD_OR_UNION_CHECK.
2528 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
2530 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
2532 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
2533 dependency on xgnatugn, instead build it via a submake.
2534 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
2536 2004-07-04 Richard Henderson <rth@redhat.com>
2538 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
2540 2004-07-01 Richard Henderson <rth@redhat.com>
2542 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
2543 * utils.c (max_size): Likewise.
2545 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2547 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
2548 and rest_of_type_compilation; add arg to create_*_decl.
2549 (annotate_decl_with_node): Deleted.
2550 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
2551 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
2552 (get_current_block_context, gnat_pushdecl): New declarations.
2553 (gnat_init_stmt_group): Likewise.
2554 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
2555 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
2556 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
2557 (gnat_init): Call gnat_init_stmt_group.
2558 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
2559 (gnu_pending_elaboration_list): Deleted.
2560 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
2561 (gigi): Rearrange initialization calls and move some to last above.
2562 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
2563 Delete calls to add_decl_expr; add arg to create_*_decl.
2564 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
2565 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
2566 begin_subprog_body and call it.
2567 Don't push and pop ggc context.
2568 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
2569 (add_stmt): Remove handling of DECL_EXPR from here.
2570 If not in function, mark visited.
2571 (add_decl_expr): Put global at top level.
2572 Check for cases of DECL_INITIAL we have to handle here.
2573 (process_type): Add extra arg to create_type_decl.
2574 (build_unit_elab): Rework to just gimplify.
2575 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
2576 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
2577 (get_pending_elaborations, pending_elaborations_p): Likewise.
2578 (push_pending_elaborations, pop_pending_elaborations): Likewise.
2579 (get_elaboration_location, insert_elaboration_list): Likewise.
2580 (gnat_binding_level): Renamed from ada_binding_level.
2581 (init_gnat_to_gnu): Don't clear pending_elaborations.
2582 (global_bindings_p): Treat as global if no current_binding_level.
2583 (set_current_block_context): New function.
2584 (gnat_pushdecl): Renamed from pushdecl; major rework.
2585 All callers changed.
2586 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
2587 (finish_record_type): Call call pushdecl for stub decl.
2588 (function_nesting_depth): Deleted.
2589 (begin_subprog_body): Delete obsolete code.
2590 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
2592 2004-06-28 Robert Dewar <dewar@gnat.com>
2594 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
2595 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
2596 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
2597 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
2598 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
2600 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
2601 deal with problem of inefficient slices on machines with strict
2602 alignment, when the slice is a component of a composite.
2604 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
2605 machines, we need the check there as well.
2607 2004-06-28 Ed Schonberg <schonberg@gnat.com>
2609 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
2610 determine safe copying direction for overlapping slice assignments
2611 when component is controlled.
2613 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
2614 formal derived type in the actual for a formal package are visible in
2615 the enclosing instance.
2617 2004-06-28 Ed Schonberg <schonberg@gnat.com>
2620 * sem_util.adb (Trace_Components): Diagnose properly an illegal
2621 circularity involving a private type whose completion includes a
2622 self-referential component.
2623 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
2624 renaming or an instantiation from an implicit derived operation.
2626 2004-06-28 Pascal Obry <obry@gnat.com>
2628 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
2630 (Library_File_Name_For): Idem.
2632 2004-06-28 Matthew Gingell <gingell@gnat.com>
2634 * g-traceb.ads: Add explanatory note on the format of addresses
2635 expected by addr2line.
2637 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
2639 * Makefile.in: Force debugging information on s-tasdeb.adb,
2640 a-except.adb and s-assert.adb needed by the debugger.
2642 2004-06-28 Vincent Celier <celier@gnat.com>
2644 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
2648 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
2650 * prj.adb: Minor reformatting
2651 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
2653 * prj.ads: Comment updates
2655 (Project_Data): Change Flag1 to Need_To_Build_Lib.
2656 Remove Flag2: not used.
2658 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
2661 * gnat_ugn.texi: Put a "null;" declaration in one project file example
2663 * gnat_rm.texi: Document Empty declarations "null;".
2665 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
2666 front of the linker options.
2667 (Link_Foreign): Put the global archives and the libraries in front of
2670 2004-06-28 Javier Miranda <miranda@gnat.com>
2672 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
2673 (RTU_Loaded): Code cleanup
2674 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
2675 withed predefined units.
2677 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
2678 explicitly withed predefined units.
2681 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
2682 explicitly withed predefined units.
2684 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2686 * ada-tree.def (DECL_STMT): Deleted.
2687 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
2688 (DECL_STMT_VAR): Deleted.
2689 * decl.c: add_decl_stmt now add_decl_expr.
2691 * trans.c: Likewise.
2692 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
2693 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
2694 (add_stmt): Only handle padded type here.
2695 (add_stmt_with_node): Allow gnat_node to not be present.
2696 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
2697 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
2698 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
2699 make a SAVE_EXPR for the entire fat pointer.
2700 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
2701 (create_index_type): Make a DECL_EXPR.
2702 (end_subprog_body): Don't call allocate_struct_function here but
2705 2004-06-25 Pascal Obry <obry@gnat.com>
2707 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
2708 Relocatable from Build_Dynamic_Library call.
2710 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
2711 Relocatable are now synonym.
2713 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
2715 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
2716 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
2719 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
2720 Lib_Address and Relocatable.
2721 (Default_DLL_Address): Removed.
2723 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
2724 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
2725 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
2726 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
2727 (Default_DLL_Address): Removed.
2729 * mlib-tgt-mingw.adb: Ditto.
2730 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
2732 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
2733 the initial thread stack size.
2735 * a-strmap.ads: Move package L to private part as it is not used in
2736 the spec. Found while reading code.
2738 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
2740 * tracebak.c: Introduce support for a GCC infrastructure based
2741 implementation of __gnat_backtrace.
2743 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
2744 any more. Use accessors instead. This eases maintenance and relaxes
2745 some alignment constraints.
2746 (_GNAT_Exception structure): Remove the Ada specific fields
2747 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
2749 (is_handled_by, __gnat_eh_personality): Replace component references to
2750 exception structure by use of the new accessors.
2752 * init.c (__gnat_initialize): Adjust comments to match the just
2753 reverted meaning of the -static link-time option.
2755 * adaint.c (convert_addresses): Arrange not to define a stub for
2756 mips-irix any more, as we now want to rely on a real version from a
2757 recent libaddr2line.
2759 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
2760 the personality routine can use them and not have to rely on a C
2761 counterpart of the record anymore. This simplifies maintenance and
2762 relaxes the constraint of having Standard'Maximum_Alignment match
2764 Update comments, and add a section on the common header alignment issue.
2766 2004-06-25 Geert Bosch <bosch@gnat.com>
2768 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
2769 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
2771 2004-06-25 Robert Dewar <dewar@gnat.com>
2773 * gnat_rm.texi: Fix section on component clauses to indicate that the
2774 restriction on byte boundary placement still applies for bit packed
2776 Add comment on stack usage from Initialize_Scalars
2778 * gnat_ugn.texi: Add documentation for -gnatyLnnn
2780 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
2781 limiting nesting level.
2783 * usage.adb: Add line for -gnatyLnnn switch
2785 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
2786 sem_ch13.adb, exp_aggr.adb: Minor reformatting
2788 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
2789 type as well as on the subtype. This corrects a problem in freeze in
2790 setting alignments of atomic types.
2792 * sem_eval.ads: Minor comment typo fixed
2794 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
2795 level. Minor reformatting.
2797 * fname.adb (Is_Predefined_File_Name): Require a letter after the
2798 minus sign. This means that file names like a--b.adb will not be
2799 considered predefined.
2801 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
2802 record Test new flag and give diagnostic for bad component clause.
2803 (Freeze_Entity): Set alignment of array from component alignment in
2804 cases where this is safe to do.
2806 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
2809 * cstand.adb: (Create_Standard): Set alignment of String to 1
2811 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
2813 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
2814 code in the common constrained array cases.
2816 * a-storio.adb: Change implementation to avoid possible alignment
2817 problems on machines requiring strict alignment (data should be moved
2818 as type Buffer, not type Elmt).
2820 * checks.adb (Apply_Array_Size_Check): Improve these checks by
2821 killing the overflow checks which we really do not need (64-bits is
2824 2004-06-25 Vincent Celier <celier@gnat.com>
2826 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
2827 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
2828 inconditionally for the main project.
2829 (Recursive_Add_Archives.Add_Archive_Path): New procedure
2830 (Link_Executables.Check_Time_Stamps): New procedure
2831 (Link_Executables.Link_Foreign): New procedure
2832 Changes made to reduce nesting level of this package
2833 (Check): New procedure
2834 (Add_Switches): When not in quiet output, check that a switch is not
2835 the concatenation of several valid switches. If it is, issue a warning.
2836 (Build_Global_Archive): If the global archive is rebuilt, linking need
2838 (Compile_Sources): Rebuilding a library archive does not imply
2839 rebuilding the global archive.
2840 (Build_Global_Archive): New procedure
2841 (Build_Library): New name for Build_Archive, now only for library
2843 (Check_Archive_Builder): New procedure
2844 (Create_Global_Archive_Dependency_File): New procedure
2845 (Gprmake): Call Build_Global_Archive before linking
2846 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
2848 (Scan_Arg): Display the Copyright notice when -v is used
2850 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
2853 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
2855 Add new GNAT LIST qualifier /FILES=
2856 Added qualifier /DIRECTORY= to GNAT METRIC
2857 Added qualifier /FILES= to GNAT METRIC
2858 Added qualifier /FILES to GNAT PRETTY
2860 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
2861 to take into account both versions of the switch.
2863 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
2864 always be the last switch to the gcc driver. Disable switch storing so
2865 that switches automatically added by the gcc driver are not put in the
2868 * prj.adb (Project_Empty): Take into account changes in components of
2871 * prj.ads (Languages_Processed): New enumaration value All_Languages.
2873 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
2874 used. Split Boolean component Ada_Sources_Present in two Boolean
2875 components Ada_Sources_Present and Other_Sources_Present.
2878 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
2879 instead of Sources_Present.
2880 (Set_Ada_Paths.Add.Recursive_Add): Ditto
2882 * prj-nmsc.adb: Minor reformatting
2883 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
2884 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
2885 Check_Ada_Naming_Scheme.
2886 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
2889 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
2891 Make sure that all cycles where there is at least one "limited with"
2893 (Parse_Single_Project): New Boolean parameter In_Limited
2895 * prj-proc.adb (Recursive_Check): When Process_Languages is
2896 All_Languages, call first Prj.Nmsc.Ada_Check, then
2897 Prj.Nmsc.Other_Languages_Check.
2899 * prj-proc.adb (Process): Use Ada_Sources_Present or
2900 Other_Sources_Present (instead of Sources_Present) depending on
2903 * lang-specs.h: Keep -g and -m switches in the same order, and as the
2906 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
2907 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
2909 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
2912 * lib.ads (Disable_Switch_Storing): New procedure.
2914 * make.adb: Modifications to reduce nesting level of this package.
2915 (Check_Standard_Library): New procedure
2916 (Gnatmake.Check_Mains): New procedure
2917 (Gnatmake.Create_Binder_Mapping_File): New procedure
2918 (Compile_Sources.Compile): Add switch -gnatez as the last option
2919 (Display): Never display -gnatez
2922 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
2924 * gnatcmd.adb (Check_Project): New function
2925 (Process_Link): New procedure to reduce nesting depth
2926 (Check_Files): New procedure to reduce the nesting depth.
2927 For GNAT METRIC, include the inherited sources in extending projects.
2928 (GNATCmd): When GNAT LS is invoked with a project file and no files,
2929 add the list of files from the sources of the project file. If this list
2930 is too long, put it in a temp text files and use switch -files=
2931 (Delete_Temp_Config_Files): Delete the temp text file that contains
2932 a list of source for gnatpp or gnatmetric, if one has been created.
2933 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
2934 in the project file is too large, create a temporary text file that
2935 list them and pass it to the tool with "-files=<temp text file>".
2936 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
2938 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
2939 generated file is in not in Ada.
2941 * gnatls.adb: Remove all parameters And_Save that are no longer used.
2942 (Scan_Ls_Arg): Add processing for -files=
2943 (Usage): Add line for -files=
2945 * g-os_lib.adb (On_Windows): New global constant Boolean flag
2946 (Normalize_Pathname): When on Windows and the path starts with a
2947 directory separator, make sure that the resulting path will start with
2950 * clean.adb (Clean_Archive): New procedure
2951 (Clean_Project): When there is non-Ada code, delete the global archive,
2952 the archive dependency files, the object files and their dependency
2953 files, if they exist.
2954 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
2956 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
2958 * sinfo.ads: Fix typo in comment.
2960 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
2961 the TSS for remote access-to-subprogram types, since these TSS are
2962 always present once the type has been analyzed.
2963 (RAS_E_Dereference): Same.
2965 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
2966 reference raises Bad_Attribute, mark the reference as analyzed so the
2967 node (and any children resulting from rewrites that could have occurred
2968 during the analysis that ultimately failed) is not analyzed again.
2970 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
2972 * exp_dist.adb: Minor comment fix.
2974 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
2975 type is an anonymous access type, no unchecked deallocation of the
2976 allocated object can occur. If the object is controlled, attach it with
2977 a count of 1. This allows attachment to the Global_Final_List, if
2978 no other relevant list is available.
2979 (Get_Allocator_Final_List): For an anonymous access type that is
2980 the type of a discriminant or record component, the corresponding
2981 finalisation list is the one of the scope of the type.
2983 2004-06-25 Ed Schonberg <schonberg@gnat.com>
2985 * sem_ch3.adb (Replace_Type): When computing the signature of an
2986 inherited subprogram, use the first subtype if the derived type
2987 declaration has no constraint.
2989 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
2990 before applying previous optimization. Minor code cleanup.
2992 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
2993 placed at the beginning of an unpacked record without explicit
2994 alignment, a slice of it will be aligned and does not need a copy when
2997 2004-06-25 Ed Schonberg <schonberg@gnat.com>
3001 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
3002 reference is written with expressions mimicking parameters.
3004 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
3007 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
3008 STEP 2a. The constraints of a full type declaration of a derived record
3009 type are checked for conformance with those declared in the
3010 corresponding private extension declaration. The message
3011 "not conformant with previous declaration" is emitted if an error is
3014 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
3016 * g-traceb.ads: Document the need for -E binder switch in the spec.
3018 * g-trasym.ads: Document the need for -E binder switch in the spec.
3020 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
3022 * sem_prag.adb: Add handling of pragma Detect_Blocking.
3024 * snames.h, snames.ads, snames.adb: Add entry for pragma
3027 * s-rident.ads: Change reference to pragma Detect_Blocking.
3029 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
3032 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
3033 to indicate whether pragma Detect_Blocking is active.
3035 * par-prag.adb: Add entry for pragma Detect_Blocking.
3037 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
3038 of not handling WITH.
3039 Note that this replaces the previous update which was incorrect.
3041 2004-06-25 Javier Miranda <miranda@gnat.com>
3043 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
3044 use-clauses to have a clean environment.
3046 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
3047 the installation of the use-clauses to stablish a clean environment in
3048 case of compilation of a separate unit; otherwise the call to
3049 use_one_package is protected by the barrier Applicable_Use.
3051 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
3052 the installation of the use-clauses to stablish a clean environment in
3053 case of compilation of a separate unit.
3054 (End_Use_Clauses): Minor comment cleanup.
3056 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
3058 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
3060 2004-06-23 Richard Henderson <rth@redhat.com>
3062 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
3064 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3066 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
3067 now bool instead of int.
3068 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
3069 * trans.c (gnu_switch_label_stack): New function.
3070 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
3071 elaboration of renamed entity returns.
3072 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
3073 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
3074 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
3075 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
3076 DECL_SIZE_UNIT and simplify variable-sized case.
3077 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
3078 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
3079 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
3080 (build_unit_elab): Disable for now.
3081 * utils.c (mark_visited): New function.
3082 (pushdecl): Walk tree to call it for global decl.
3083 (update_pointer_to): Update all variants of pointer and ref types.
3084 Add arg to COMPONENT_REF.
3085 (convert): Likewise.
3086 Move check for converting between variants lower down.
3087 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
3088 (build_allocator): Don't force type of MODIFY_EXPR.
3089 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
3092 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3094 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
3095 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
3096 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
3098 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
3099 all callers changed.
3100 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
3101 the way that EXIT_STMT finds the loop label.
3102 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
3103 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
3104 (add_stmt): Use annotate_with_locus insted of setting directly.
3105 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
3106 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
3107 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
3108 (build_vms_descriptor): Add extra args to ARRAY_REF.
3109 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
3110 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
3112 (build_binary_op): Don't make explicit CONVERT_EXPR.
3113 Add extra rgs to ARRAY_REF.
3115 2004-06-14 Pascal Obry <obry@gnat.com>
3117 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
3118 Windows. Fix minor typo.
3120 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
3121 which is now supported on Windows. With this implementation using the
3122 Library Project feature is no different on Windows than on UNIX.
3124 2004-06-14 Vincent Celier <celier@gnat.com>
3126 * makegpr.adb (Compile_Sources): Nothing to do when there are no
3129 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
3131 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
3132 found, show the project name and the path of the previously parsed
3135 2004-06-14 Ed Schonberg <schonberg@gnat.com>
3137 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
3138 array, avoid copying the actual before the call.
3140 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
3142 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
3143 Instead, allocate memory on worst-case alignment assumptions, and then
3144 return an aligned address within the allocated zone.
3146 2004-06-14 Robert Dewar <dewar@gnat.com>
3148 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
3149 elab entities in predefined units in No_Run_Time_Mode.
3150 (Gen_Adainit_C): Same fix
3151 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
3152 units in No_Run_Time_Mode
3153 (Gen_Elab_Calls_C): Same fix
3155 * symbols-vms-alpha.adb: Minor reformatting
3157 * g-debpoo.ads: Minor reformatting
3159 * lib.adb (In_Same_Extended_Unit): Version working on node id's
3161 * lib.ads (In_Same_Extended_Unit): Version working on node id's
3163 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
3166 * make.adb: Minor reformatting
3168 * par-ch12.adb: Minor reformatting
3170 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
3172 * prj-strt.adb: Minor reformatting
3174 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
3177 * sem_attr.adb: Minor reformatting
3179 * sem_ch7.adb: Minor reformatting
3181 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
3182 for type in the same unit as the object declaration.
3184 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
3185 static string expressions and not just string literals.
3187 (Set_Warning): Reset restriction warning flag for restriction pragma
3188 Implement pragma Profile_Warnings
3189 Implement pragma Profile (Restricted)
3190 Give obolescent messages for old restrictions and pragmas
3192 * snames.h, snames.ads, snames.adb: Add new entry for pragma
3195 * s-rident.ads: Add declarations for restrictions required by profile
3196 Restricted and profile Ravenscar.
3198 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
3200 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
3201 configuration pragmas.
3203 2004-06-11 Vincent Celier <celier@gnat.com>
3205 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
3206 gnatsym, when symbol policy is Restricted.
3208 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
3209 gnatsym, when symbol policy is Restricted.
3211 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
3212 read the symbol file.
3213 (Finalize): Fail in symbol policy Restricted if a symbol in the original
3214 symbol file is not in the object files. Do not create a new symbol file
3215 when symbol policy is Restricted.
3217 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
3220 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
3222 (Usage): Line for new switch -R
3224 * make.adb (Initialize): When the platform is not VMS, add the
3225 directory where gnatmake is invoked in the front of the path, if
3226 gnatmake is invoked with directory information. Change the Scan_Args
3227 while loop to a for loop.
3228 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
3229 if Depth is equal or greater than the proposed depth, there is nothing
3231 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
3234 * prj.ads: Add new symbol policy Restricted.
3236 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
3237 with the new parameters Check_All_Labels and Case_Location.
3239 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
3240 (Library_Symbol_File needs to be defined).
3242 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
3243 and Case_Location If Check_All_Labels is True, check that all values of
3244 the string type are used, and output warning(s) if they are not.
3246 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
3249 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
3251 * gnat_ugn.texi: Update documentation about the library directory in
3254 * makegpr.adb (Display_Command): In verbose mode, also display the
3255 value of the CPATH env var, when the compiler is gcc.
3256 (Initialize): Change the Scan_Args while loop to a for loop
3257 (Compile_Individual_Sources): Change directory to object directory
3258 before compilations.
3260 * symbols.ads: New symbol policy Restricted.
3262 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
3264 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
3265 is now taken care of internally in the Exception_Propagation package
3266 and does not require clients assistance any more.
3268 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
3269 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
3270 functions. Helpers to maintain a predicate required in the handling of
3271 occurrence transfer between tasks.
3272 This is now handled internally and does not require clients assistance
3273 for the setup/propagate separation anymore.
3274 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
3275 allocation strategy, handle the Setup_And_Not_Propagated predicate and
3278 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
3279 raise_after_setup, now that everything is handled internally within the
3280 setup/propagation engine.
3282 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
3284 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
3285 Add additional conditions for the case of an actual being a simple
3286 name or literal. Improve inlining by preventing the generation
3287 of temporaries with a short lifetime (one use).
3289 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
3293 * einfo.ads: Minor comment updates for Has_Completion and
3294 E_Constant list of flags.
3296 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
3297 and constant redeclarations now set the Has_Completion flag of their
3298 defining identifiers.
3300 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
3301 Inspect_Deferred_Constant_Completion.
3302 Used to detect private deferred constants that have not been completed
3303 either by a constant redeclaration or pragma Import. Emits error message
3304 "constant declaration requires initialization expression".
3306 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
3307 completes a deferred constant.
3309 2004-06-11 Geert Bosch <bosch@gnat.com>
3311 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
3313 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
3314 calculating exponent for scaling denormal numbers.
3315 (Leading_Part): Properly raise Constraint_Error for zero or negative
3317 (Remainder): Properly raise Constraint_Error for zero divisor.
3319 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
3321 * sem_util.adb: Minor reformatting.
3323 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
3324 dereference when accessing the entry parameter record.
3325 (Check_Array_Type): Always check for possible implicit dereference.
3326 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
3327 Abort if a pointer is still present (denoting that an implicit
3328 dereference was left in the tree by the front-end).
3330 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
3331 dereference when accessing the entry parameter record.
3332 (Check_Array_Type): Always check for possible implicit dereference.
3333 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
3334 Abort if a pointer is still present (denoting that an implicit
3335 dereference was left in the tree by the front-end).
3337 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
3339 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
3340 message, like the compiler itself does. Easier to parse the output.
3342 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
3344 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
3345 be base names, and not includes directories.
3347 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
3349 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
3350 so that dependencies are properly taken into account by make.
3352 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
3355 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
3356 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
3358 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
3360 * Makefile.in (install-gnatlib): install target-specific run-time files.
3362 * Make-lang.in: Remove obsolete targets.
3364 2004-06-11 Ed Schonberg <schonberg@gnat.com>
3366 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
3367 specification, to catch misuses of program unit names.
3369 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
3370 superfluous conversions in an instance.
3372 2004-06-11 Ed Schonberg <schonberg@gnat.com>
3376 * sem_ch12.adb (Save_References): If operator node has been folded to
3377 enumeration literal, associated_node must be discarded.
3379 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
3381 * s-stchop-vxworks.adb: Add required pragma Convention to
3382 Task_Descriptor because it is updated by a C function.
3384 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
3388 * Makefile.in: Remove target specific SO_OPT on IRIX
3390 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3392 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
3393 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
3394 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
3395 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
3396 (STMT_STMT, USE_STMT): New statement codes.
3397 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
3398 * ada-tree.h: Reflect above changes.
3399 (struct tree_loop_id): Deleted.
3400 (union lang_tree_node, struct lang_decl, struct lang_type):
3401 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
3402 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
3403 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
3404 (IS_ADA_STMT): New macro.
3405 * decl.c (annotate_decl_with_node): New function.
3406 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
3407 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
3408 Call add_stmt_with_node to do needed assignments.
3409 Add call to update setjmp buffer directly, not via EXPR_STMT.
3410 (maybe_variable): Argment GNAT_NODE deleted.
3411 * gigi.h (maybe_variable): Likewise.
3412 (make_transform, add_stmt_with_node, set_block_for_group): New.
3413 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
3414 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
3415 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
3416 (set_lineno, set_lineno_from_sloc): Likewise.
3417 (record_code_position, insert_code_for): Likewise.
3418 (gnat_poplevel): Now returns void.
3419 (end_subprog_body): Now takes argument.
3420 * misc.c (cgraph.h, tree-inline.h): New includes.
3421 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
3422 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
3423 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
3424 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
3425 (gnat_parse_file): Don't set immediate_size_expand.
3426 Call cgraph functions.
3427 (gnat_expand_expr): Remove most cases.
3428 (record_code_position, insert_code_for): Remove from here.
3429 * trans.c (toplev.h, tree-gimple.h): Now included.
3430 (discard_file_names): Deleted.
3431 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
3432 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
3433 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
3434 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
3435 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
3436 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
3437 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
3438 (set_block_for_group, add_stmt_list): Likewise.
3439 (start_stmt_group): Renamed from start_block_stmt.
3440 (end_stmt_group): Likewise, from end_block_stmt.
3441 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
3442 (gigi): Don't set discard_file_names or call set_lineno.
3443 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
3444 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
3445 Numerous changes throughout to reflect new names and complete
3446 function-at-a-time implementation.
3447 (gnat_expand_stmt): Delete or comment out all cases.
3448 (process_inlined_subprograms): Use add_stmt.
3449 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
3450 call set_lineno; also remove unneeded block handling.
3451 (process_type): Remove unneeded block handling.
3452 (build_unit_elab): Remove calls to deleted functions.
3453 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
3454 (tree-dump.h): Likewise.
3455 (struct ada_binding_level): Add field jmpbuf_decl.
3456 (gnat_define_builtin, gnat_install_builtins): New.
3457 (gnat_gimplify_function, gnat_finalize): Likewise.
3458 (gnat_poplevel): No longer return BLOCK, set it instead.
3459 Remove code dealing with nested functions.
3460 (gnat_init_decl_processing): Also set size_type_node.
3461 Call gnat_install_builtins.
3462 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
3463 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
3464 Remove special-case for "main".
3465 (end_subprog_body): Add arg and rework for tree-ssa.
3466 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
3467 Add case for BOOLEAN_TYPE.
3468 * utils2.c (rtl.h): Now include.
3469 (build_call_raise): Test Debug_Flag_NN directly.
3470 (build_call_alloc_dealloc): Don't use local stack allocation for now.
3471 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
3472 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
3474 2004-06-07 Robert Dewar <dewar@gnat.com>
3476 * a-direct.ads, einfo.ads: Minor comment updates
3478 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
3479 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
3480 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
3481 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
3482 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
3484 * s-interr-sigaction.adb: Remove unreferenced variable
3485 (Attached_Interrupts). Minor reformatting.
3486 Avoid use of variable I (replace by J).
3488 * par-ch10.adb: Fix text of one error message
3490 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
3491 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
3492 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
3493 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
3494 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
3495 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
3496 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
3497 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
3498 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
3499 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
3500 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
3503 2004-06-07 Doug Rupp <rupp@gnat.com>
3505 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
3507 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
3509 * mlib-tgt-vms-ia64.adb: New file.
3511 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
3512 Add mlib-tgt-vms-ia64.adb
3513 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
3514 Move to alpha specific ifeq section.
3515 Add VMS specific versions of symbols.adb
3516 Renaming of 5q vms files.
3518 * 5qsystem.ads renamed to system-vms_64.ads.
3520 2004-06-07 Vincent Celier <celier@gnat.com>
3522 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
3523 explain that when a time of day corresponding to the non existing hour
3524 on the day switching to DST is specified, Split may return a different
3527 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
3530 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
3531 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
3533 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
3535 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
3536 the linking options.
3537 (Build_Library.Check_Libs): On VMS, if there is a dependency on
3538 g-trasym.ads, set Gtrasymobj_Needed to True.
3540 * prj-attr.adb: Add new package Metrics for gnatmetric
3542 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
3543 canonical case to take into account files with upper case characters on
3545 (Ada_Check): Load the reference symbol file name in the name buffer to
3546 check it, not the symbol file name.
3548 * snames.ads, snames.adb: Add standard name Metrics (name of project
3549 file package for gnatmetric).
3551 * vms_conv.ads: Add Metric to Comment_Type
3553 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
3555 * vms_data.ads: Add qualifiers for GNAT METRIC
3557 * makegpr.adb (Link_Executables): Take into account the switches
3558 specified in package Linker of the main project.
3560 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
3562 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
3563 the index of the last element is Units.Last, not Units.Table'Last
3564 (which is usually not a valid index within the actually allocated
3565 storage for the table).
3567 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
3568 determines whether to generate a call to a checked storage pool
3570 Generate such a call only for a dereference that either comes from
3571 source, or is the result of rewriting a dereference that comes from
3574 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
3576 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
3578 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
3580 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
3581 file level, elaborate the stride for inner dimensions in alignment
3584 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
3587 2004-06-07 Javier Miranda <miranda@gnat.com>
3589 * exp_ch6.adb: Correct wrong modification in previous patch
3591 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
3593 * g-trasym.ads: Corrected comment to properly reflect level of support
3596 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
3598 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
3599 includes case of a variable referenced on the left hand side of an
3600 assignment, therefore remove redundant code. Variables and prefixes of
3601 indexed or selected components are now marked as referenced on left
3602 hand side. Warnings are now properly emitted when variables or prefixes
3603 are assigned but not read.
3605 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
3606 left hand side referenced variables. Private access types do not
3607 produce the warning "variable ... is assigned but never read".
3608 Add also additional checks to left hand side referenced variables.
3609 Aliased, renamed objects and access types do not produce the warning
3610 "variable ... is assigned but never read" since other entities may read
3611 the memory location.
3613 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
3615 * Makefile.in: In the powerpc/vxworks-specific section, restore
3616 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
3619 2004-06-07 Ed Schonberg <schonberg@gnat.com>
3621 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
3622 predefined operators.
3623 Removes spurious type errors from g-trasym-vms.adb.
3625 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
3626 distinct from the operator appearing in the source, call appropriate
3627 routine to insert conversions when needed, and complete resolution of
3629 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
3630 interpretations for rewritten right operand.
3631 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
3632 the other operand is overloaded and the context is a type conversion.
3634 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3636 * ada-tree.def (BLOCK_STMT): Now has two operands.
3639 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
3641 * gigi.h: (gnat_poplevel): Now returns a tree.
3643 * trans.c (end_block_stmt): Add arg; all callers changed.
3644 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
3645 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
3646 (add_stmt): Set TREE_TYPE.
3647 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
3648 (gnat_expand_stmt, case BREAK_STMT): New case.
3650 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
3652 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
3654 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
3655 procedure Set_Stack_Size that is not needed.
3657 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
3659 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
3660 used for gnatpp input file and for the files upon which it depends
3662 2004-06-07 Ben Brosgol <brosgol@gnat.com>
3664 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
3666 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
3668 * gnatvsn.ads: Bump version numbers appropriately.
3671 2004-06-07 Pascal Obry <obry@gnat.com>
3673 * gnat_ugn.texi: Improve comments about imported names and link names
3674 on Windows. Add a note about the requirement to use -k gnatdll's option
3675 when working with a DLL which has stripped stdcall symbols (no @nn
3678 2004-05-27 Vincent Celier <celier@gnat.com>
3680 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
3681 COMMENTS_LAYOUT=UNTOUCHED
3683 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
3684 symbols-vms-alpha.adb
3686 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
3688 * sem.ads: Clarify documentation on checks suppression.
3690 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
3692 2004-05-27 Ed Schonberg <schonberg@gnat.com>
3694 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
3695 the case of multiple derivations.
3696 (Is_Object_Reference): For a selected component, verify that the prefix
3697 is itself an object and not a value.
3699 * sem_ch12.adb (Same_Instantiated_Constant): New name for
3700 Same_Instantiated_Entity.
3701 (Same_Instantiated_Variable): Subsidiary to
3702 Check_Formal_Package_Instance, to recognize actuals for in-out generic
3703 formals that are obtained from a previous formal package.
3704 (Instantiate_Subprogram_Body): Emit proper error when
3705 generating code and the proper body of a stub is missing.
3707 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
3708 has a universal interpretation, do the disambiguation here.
3710 * exp_ch4.adb (Expand_N_Type_Conversion,
3711 Expand_N_Unchecked_Type_Conversion): Special handling when target type
3712 is Address, to avoid typing anomalies when Address is a visible integer
3715 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
3716 to determine whether a subprogram should not be marked Pure, even when
3717 declared in a pure package.
3719 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
3721 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
3723 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
3724 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
3725 Update the documentation about the Ravenscar profile, following the
3726 definition found in AI-249.
3728 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
3729 setting the Profile (Ravenscar). This must be done in addition to
3730 setting the required restrictions.
3732 * rtsfind.ads: Add the set of operations defined in package
3735 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
3738 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
3740 lang-specs.h: Always require -c or -S and always redirect to /dev/null
3741 if -gnatc or -gnats is passed.
3743 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
3745 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
3746 a significant reference. Warnings are now properly emitted when a
3747 discriminated type is not referenced.
3749 * lib-xref.adb (Generate_Reference): A deferred constant completion,
3750 record representation clause or record type discriminant does not
3751 produce a reference to its corresponding entity. Warnings are now
3752 properly emitted when deferred constants and record types are not
3755 2004-05-27 Geert Bosch <bosch@gnat.com>
3757 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
3758 Fixes ACATS Annex G tests.
3760 2004-05-27 Robert Dewar <dewar@gnat.com>
3762 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
3765 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
3767 * s-interr.adb (Server_Task): Take into account case of early return
3768 from sigwait under e.g. linux.
3770 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
3772 * gnat_ugn.texi: Add description for the new gnatpp options:
3773 -rnb - replace the original source without creating its backup copy
3774 -c0 - do not format comments
3776 2004-05-24 Geert Bosch <bosch@gnat.com>
3778 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
3779 with 192 bits of precision, sufficient to reduce a double-extended
3780 arguments X with a maximum relative error of T'Machine_Epsilon, for X
3781 in -2.0**32 .. 2.0**32.
3782 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
3783 reduction by the processor, which only uses a 68-bit approximation of
3785 (Tan): Always reduce arguments and compute function either using
3786 the processor's fptan instruction, or by dividing sin and cos as needed.
3788 2004-05-24 Doug Rupp <rupp@gnat.com>
3790 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
3791 gcc error on 32/64 bit VMS.
3793 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
3795 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
3796 since this is what we get for stack overflows although not documented
3798 Document the issues which may require adjustments to our signal
3801 2004-05-24 Ed Schonberg <schonberg@gnat.com>
3803 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
3804 enclosing dynamic scope if the instantiation is within a generic unit.
3806 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
3808 * exp_dbug.ads: Fix typo.
3810 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
3811 Rename it to its proper name: system-linux-ia64.ads
3812 (stamp-gnatlib1): Remove extra target specific run time files when
3813 setting up the rts directory.
3815 2004-05-24 Javier Miranda <miranda@gnat.com>
3817 * einfo.ads, einfo.adb (Limited_Views): Removed.
3818 (Limited_View): New attribute that replaces the previous one. It is
3819 now a bona fide package with the limited-view list through the
3820 first_entity and first_private attributes.
3822 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
3823 limited-private-with clause.
3824 (Install_Limited_Withed_Unit): Install the private declarations of a
3825 limited-private-withed package. Update the installation of the shadow
3826 entities according to the new structure (see Build_Limited_Views)
3827 (Build_Limited_Views): Replace the previous implementation of the
3828 limited view by a package entity that references the first shadow
3829 entity plus the first shadow private entity (required for limited-
3830 private-with clause)
3831 (New_Internal_Shadow_Entity): Code cleanup.
3832 (Remove_Limited_With_Clause): Update the implementation to undo the
3833 new work carried out by Build_Limited_Views.
3834 (Build_Chain): Complete documentation.
3835 Replace Ada0Y by Ada 0Y in comments
3838 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
3839 types the level of accessibility depends on the enclosing type
3842 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
3843 entities. Complete documentation of previous change.
3845 2004-05-24 Robert Dewar <dewar@gnat.com>
3847 * namet.adb: Minor reformatting
3848 Avoid use of name I (replace by J)
3849 Minor code restructuring
3851 * sem_ch6.adb: Minor reformatting
3853 * lib-writ.adb: Do not set restriction as active if this is a
3854 Restriction_Warning case.
3856 * sem_prag.adb: Reset restriction warning flag if real pragma
3857 restriction encountered.
3859 * s-htable.adb: Minor reformatting
3860 Change rotate count to 3 in Hash (improves hash for small strings)
3862 * 5qsystem.ads: Add comments for type Address (no literals allowed).
3864 * gnat_ugn.texi: Add new section of documentation "Code Generation
3865 Control", which describes the use of -m switches.
3867 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
3869 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
3870 through the DECL_INITIAL for renamed variables.
3872 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
3874 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
3876 2004-05-19 Joel Brobecker <brobecker@gnat.com>
3878 * exp_dbug.ads: Correct comments concerning handling of overloading,
3879 since we no longer use $ anymore.
3881 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
3883 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
3884 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
3885 with illegal subunits.
3887 2004-05-19 Ed Schonberg <schonberg@gnat.com>
3889 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
3890 body with front-end inlining enabled, check whether an inline pragma
3891 appears immediately after the body and applies to it.
3893 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
3894 enabled and the pragma appears after the body of the subprogram.
3896 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3898 Part of function-at-a-time conversion
3900 * misc.c (adjust_decl_rtl): Deleted.
3901 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
3904 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
3905 (add_decl_stmt, add_stmt, block_has_vars): New functions.
3906 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
3908 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
3910 (gnat_to_gnu_entity): Likewise.
3911 Use add_stmt to update setjmp buffer.
3912 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
3914 No longer call adjust_decl_rtl.
3915 (DECL_INIT_BY_ASSIGN_P): New macro.
3916 (DECL_STMT_VAR): Likewise.
3918 * trans.c (gigi): Call start_block_stmt to make the outermost
3920 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
3921 Call start_block_stmt and end_block_stmt temporarily.
3922 Use gnat_expand_stmt instead of expand_expr_stmt.
3923 (add_decl_stmt): New function.
3924 (tree_transform): Call it.
3925 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
3926 (end_block_stmt): Set type and NULL_STMT.
3927 (gnat_expand_stmt): Make recursize call instead of calling
3929 (gnat_expand_stmt, case DECL_STMT): New case.
3930 (set_lineno_from_sloc): Do nothing if global.
3931 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
3932 (start_block_stmt, add_stmt, end_block_stmt): New functions.
3933 (build_block_stmt): Call them.
3934 (gnat_to_code): Don't expand NULL_STMT.
3935 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
3937 (tree_transform): Likewise.
3938 (tree_transform, case N_Null_Statement): Return NULL_STMT.
3939 (gnat_expand_stmt, case NULL_STMT): New case.
3940 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
3943 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
3946 * utils.c (create_var_decl): Do not call expand_decl or
3948 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
3949 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
3951 (struct e_stack): Add chain_next to GTY.
3952 (struct binding_level): Deleted.
3953 (struct ada_binding_level): New struct.
3954 (free_block_chain): New.
3955 (global_binding_level, clear_binding_level): Deleted.
3956 (global_bindings_p): Rework to see if no chain.
3957 (kept_level_p, set_block): Deleted.
3958 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
3959 new data structure and work directly on BLOCK node.
3960 (gnat_poplevel): Similarly.
3961 (get_decls): Look at BLOCK_VARS.
3962 (insert_block): Work directly on BLOCK node.
3963 (block_has_var): New function.
3964 (pushdecl): Rework for new binding structures.
3965 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
3967 (build_subprog_body): Likewise.
3968 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
3970 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
3972 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
3973 (DECL_STMT_VAR): Likewise.
3975 2004-05-17 Robert Dewar <dewar@gnat.com>
3977 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
3980 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
3981 of restriction synonyums by using
3982 Restrict.Process_Restriction_Synonyms.
3984 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
3986 * s-restri.ads (Tasking_Allowed): Correct missing comment
3988 * s-rident.ads: Add entries for restriction synonyms
3990 * ali.adb: Fix some problems with badly formatted ALI files that can
3991 result in infinite loops.
3993 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
3994 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
3995 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
3996 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
3997 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
3998 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
3999 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
4000 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
4001 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
4002 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
4003 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
4004 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
4005 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
4006 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
4007 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
4008 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
4009 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
4010 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
4011 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
4012 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
4013 to Task_Id (minor cleanup).
4015 2004-05-17 Vincent Celier <celier@gnat.com>
4017 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
4018 directory separator.
4020 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
4021 project being extended, if Languages is not declared in extending
4024 2004-05-17 Javier Miranda <miranda@gnat.com>
4026 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
4027 limited view of a visible sibling.
4029 2004-05-14 Robert Dewar <dewar@gnat.com>
4031 * gnat_ugn.texi: Minor change to -gnatS documentation
4033 * sprint.adb: Remove some instances of Assert (False) and for this
4034 purpose replace them by output of a ??? string.
4036 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
4039 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
4040 flag processing. This was suppressing required dependencies in
4041 No_Run_Time mode and is not needed since the binder does not generate
4042 references for things in libgnat anyway.
4044 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
4047 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
4049 * gnat_ugn.texi: Document AIX-specific issue with initialization of
4052 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
4053 action for the case of an actual parameter in an init proc call.
4055 2004-05-14 Ed Schonberg <schonberg@gnat.com>
4057 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
4058 subtype, check visible entities in base type.
4060 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
4061 actions if the object is a renaming.
4063 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
4064 Check_Formal_Package_Instance, to determine more precisely when the
4065 formal and the actual denote the same entity.
4067 2004-05-14 Javier Miranda <miranda@gnat.com>
4069 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
4071 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
4072 corresponding to a private_with must be removed from visibility; it
4073 will be made visible later, just before we analyze the private part of
4075 (Check_Private_Child_Unit): Allow private_with clauses in public
4077 (Install_Siblings): Make visible the private entities of private-withed
4079 (Install_Withed_Unit): Do not install the private withed unit if we
4080 are compiling a package declaration and the Private_With_OK flag was
4081 not set by the caller. These declarations will be installed later,
4082 just before we analyze the private part of the package.
4084 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
4085 during the evaluation of the expression that initializes the object,
4086 decorate it with the expected type to avoid cascade errors.
4089 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
4090 subprogram we have to install the private_with clauses after its
4091 specification has been analyzed (as documented in AI-262.TXT).
4093 * sem_ch8.adb (Has_Private_With): New function. Determines if the
4094 current compilation unit has a private with on a given entity.
4095 (Find_Direct_Name): Detect the Beaujolais problem described in
4098 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
4099 provides the functionality of the function Is_Ancestor that was
4100 previously available in sem_ch10. It has been renamed to avoid
4103 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
4105 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4107 * utils.c (build_vms_descriptor): Use SImode pointers.
4109 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
4111 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
4113 2004-05-14 GNAT Script <nobody@gnat.com>
4115 * Make-lang.in: Makefile automatically updated
4117 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
4119 Renaming of target specific files for clarity
4121 * Makefile.in: Rename GNAT target specific files.
4123 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
4124 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
4125 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
4126 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
4127 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
4128 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
4129 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
4130 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
4131 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
4132 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
4133 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
4134 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
4135 51osinte.adb, 51osinte.ads, 51system.ads,
4136 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
4137 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
4138 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
4139 56tpopsp.adb, 57system.ads, 58system.ads,
4140 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
4141 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
4142 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
4143 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
4144 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
4145 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
4146 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
4147 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
4148 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
4149 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
4150 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
4151 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
4152 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
4153 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
4154 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
4155 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
4156 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
4157 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
4158 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
4159 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
4160 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
4161 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
4162 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
4163 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
4164 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
4165 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
4166 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
4167 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
4168 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
4169 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
4170 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
4171 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
4172 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
4173 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
4174 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
4175 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
4176 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
4177 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
4178 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
4179 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
4181 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
4182 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
4183 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
4184 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
4185 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
4186 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
4187 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
4188 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
4189 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
4190 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
4191 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
4192 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
4193 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
4194 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
4195 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
4196 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
4197 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
4198 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
4199 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
4200 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
4201 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
4202 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
4203 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
4204 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
4205 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
4206 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
4207 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
4208 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
4209 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
4210 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
4211 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
4212 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
4213 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
4214 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
4215 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
4216 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
4217 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
4218 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
4219 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
4220 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
4221 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
4222 s-osinte-vms.ads, s-osinte-vxworks.adb,
4223 s-osinte-vxworks.ads, s-osprim-mingw.adb,
4224 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
4225 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
4226 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
4227 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
4228 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
4229 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
4230 s-stchop-vxworks.adb, s-taprop-dummy.adb,
4231 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
4232 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
4233 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
4234 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
4235 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
4236 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
4237 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
4238 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
4239 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
4240 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
4241 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
4242 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
4243 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
4244 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
4245 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
4246 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
4247 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
4248 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
4249 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
4250 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
4251 system-irix-o32.ads, system-linux-x86_64.ads,
4252 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
4253 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
4254 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
4255 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
4256 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
4257 system-vxworks-mips.ads, system-vxworks-ppc.ads,
4258 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
4261 2004-05-13 Zack Weinberg <zack@codesourcery.com>
4263 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
4265 2004-05-13 Diego Novillo <dnovillo@redhat.com>
4267 Merge from tree-ssa-20020619-branch.
4269 * config-lang.in (boot_language, build_by_default): Set
4271 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
4272 (max_size): Add static chain op for call_expr.
4274 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
4277 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
4279 2004-05-11 Roger Sayle <roger@eyesopen.com>
4281 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
4284 2004-05-10 Doug Rupp <rupp@gnat.com>
4286 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
4289 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
4291 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
4293 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
4294 Fixes undefined symbols in IA64 gnatlib.
4296 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
4298 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
4299 Short_Address). This will be moved to system.auxdec.
4301 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
4303 * sem_util.adb: Replace test for presence of a node that is always
4304 present with a call to Discard_Node.
4306 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
4307 Analyze on the library unit node after generation of distribution stub
4308 constructs. The call was a no-op because Unit_Node has already been
4309 Analyzed, and the tree fragments for the distribution stubs are
4310 analyzed as they are inserted in Exp_Dist.
4311 Update comment regarding to distribution stubs to reflect that we
4312 do not generate stub in separate files anymore.
4314 * einfo.ads: Clarify the fact that a tagged private type has the
4315 E_Record_Type_With_Private Ekind.
4317 * erroutc.adb: Minor reformatting
4319 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
4320 values if line length is increased using -gnatyM (noticed during code
4323 * eval_fat.adb: Minor reformatting
4324 Put spaces around exponentiation operator
4326 2004-05-10 Ed Schonberg <schonberg@gnat.com>
4329 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
4330 has been rewritten as an explicit dereference, retrieve type of
4331 original node to check for possibly unconstrained record type.
4333 2004-05-10 Ed Schonberg <schonberg@gnat.com>
4335 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
4336 overriding, use the operation of the parent unconditionally.
4338 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
4339 operation when either operand is a literal, to avoid further
4342 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
4343 overridden by a previous explicit declaration, mark the previous entity
4346 * sem_disp.adb (Check_Dispatching_Operation): New predicate
4347 Is_Visibly_Controlled, to determine whether a declaration of a
4348 primitive control operation for a derived type overrides an inherited
4349 one. Add warning if the explicit declaration does not override.
4351 2004-05-10 Vincent Celier <celier@gnat.com>
4353 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
4354 some cases when the sources are no longer present.
4356 * make.adb (Collect_Arguments): Fail if an external source, not part
4357 of any project need to be compiled, when switch -x has not been
4360 * makeusg.adb: Document new switch -x
4362 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
4365 * switch-m.adb (Scan_Make_Switches): New switch -x
4367 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
4370 * gnat_ugn.texi: Document new gnatmake switch -x
4372 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
4374 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
4376 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
4377 (process_attributes): Likewise.
4379 2004-05-10 Joel Brobecker <brobecker@gnat.com>
4381 * s-inmaop.ads: Fix spelling mistake in one of the comments.
4383 2004-05-10 Robert Dewar <dewar@gnat.com>
4385 * gnat_ugn.texi: Document that for config pragma files, the maximum
4386 line length is always 32767.
4388 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
4389 literals is now allowed.
4391 * gnat-style.texi: Remove statement about splitting long lines before
4392 an operator rather than after, since we do not follow this rule at all.
4393 Clarify rule (really lack of rule) for spaces around exponentiation
4395 * sem_elim.adb: Allow concatenation of string literals as well as a
4396 single string literal for pragma arguments.
4398 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
4400 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
4401 written for append case.
4403 * frontend.adb: Changes to avoid checking max line length in config
4406 * g-os_lib.ads: Minor reformatting
4408 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
4409 wrong in any case. Instead use standard value. Noticed during code
4412 * opt.ads (Max_Line_Length): New field, used to implement removal of
4413 limitation on length of lines when scanning config pragma files.
4415 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
4416 makeutl.ads, makeutl.adb: Minor reformatting
4418 * scn.adb: Do not check line length while scanning config pragma files
4419 Do not check line length while scanning out license information
4421 * scng.adb: Changes to avoid line length checks while parsing config
4424 2004-05-10 GNAT Script <nobody@gnat.com>
4426 * Make-lang.in: Makefile automatically updated
4428 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
4430 * osint.adb (Find_Program_Name): Fix handling of VMS version
4433 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
4435 * g-os_lib.ads (Invalid_Time): New constant
4437 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
4438 return OS_Time instead of time_t to match what is imported by Ada.
4439 Now return -1 if the file doesn't exist, instead of a random value
4441 2004-05-05 Robert Dewar <dewar@gnat.com>
4443 * usage.adb: Add line for -gnatR?s switch
4445 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
4447 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
4448 and for Match (Data_First, Data_last)
4450 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
4451 written when we are dealing with multi-unit files.
4453 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
4455 * Makefile.in: Remove unused targets and variables.
4457 2004-05-05 Vincent Celier <celier@gnat.com>
4459 * switch-m.adb: New gnatmake switch -eI
4461 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
4462 of new gnatmake switch -eInnn.
4464 * makegpr.adb: Take into account new parameters Index and Src_Index in
4467 * clean.adb: Implement support for multi-unit sources, including new
4470 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
4473 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
4474 (Extract_From_Q): New out parameter Index
4475 (Mark, Is_Marked): Subprograms moved to Makeutl
4476 (Switches_Of): New parameter Source_Index
4477 (Add_Switch): New parameter Index
4478 (Check): New parameter Source_Index
4479 (Collect_Arguments): New parameter Source_Index
4480 (Collect_Arguments_And_Compile): New parameter Source_Index
4481 (Compile): New parameter Source_Index
4482 Put subprograms in alphabetical order
4483 Add support for multi-source sources, including in project files.
4485 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
4486 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
4489 * makeusg.adb: New gnatmake switch -eInnn
4491 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
4494 * opt.ads (Main_Index): New variable, defaulted to 0.
4496 * osint.ads, osinte.adb (Add_File): New parameter Index
4497 (Current_Source_Index): New function
4499 * prj.adb: Take into account new components Index and Src_Index
4501 * prj.ads (String_Element): New component Index
4502 (Variable_Value): New component Index
4503 (Array_Element): New component Src_Index
4505 * prj-attr.adb: Indicate that optional index may be specified for
4506 attributes Main, Executable, Spec, Body and some of Switches.
4508 * prj-attr.ads (Attribute_Kind): New values for optional indexes
4509 (Attribute_Record): New component Optional_Index
4511 * prj-com.ads (File_Name_Data): New component Index
4513 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
4515 * prj-env.adb (Put): Output optional index
4517 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
4518 attributes Spec and Body.
4520 * prj-nmsc.adb: Process optional indexes
4522 * prj-pp.adb: Ouput "at" for optional indexes
4524 * prj-proc.adb: Take into account optional indexes
4526 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
4527 Optional_Index. For string literal,
4528 process optional index when Optional_Index is True.
4529 (Parse_Expresion): New Boolean parameter Optional_Index
4531 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
4532 (Set_Source_Index_Of): New procedure
4534 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
4537 * prj-util.ads (Executable_Of): New parameter Index
4538 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
4539 New parameter Src_Index, defaulted to 0.
4541 2004-05-05 Ed Schonberg <schonberg@gnat.com>
4544 * sem_ch3.adb (Access_Definition): If this is an access parameter
4545 whose designated type is imported through a limited_with clause, do
4546 not add the enclosing subprogram to the list of private dependents of
4549 2004-05-05 Ed Schonberg <schonberg@gnat.com>
4552 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
4553 a limited_with clause, and the other is its non-limited view.
4555 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
4557 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
4559 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
4560 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
4561 Stand.Boolean_Literals to produce references to entities
4562 Standard_False and Standard_True from compile-time computed boolean
4565 * stand.ads (Boolean_Literals): New variable, provides the entity
4566 values for False and True, for use by the expander.
4568 2004-05-05 Doug Rupp <rupp@gnat.com>
4570 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
4571 5vinmaop.adb: Unchecked convert Short_Address vice Address
4573 * adaint.c, raise.c: Caste CRTL function return value
4574 to avoid gcc error on 32/64 bit IVMS.
4576 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
4579 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
4581 * 5qsystem.ads (Address): Declare as Long_Integer
4582 (Short_Address): Declare as 32 bit subtype of Address
4583 Declare abstract address operations to avoid gratuitous ambiguities.
4585 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
4587 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
4588 instead of the old Boolean_Entry_Barriers.
4589 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
4591 2004-05-05 GNAT Script <nobody@gnat.com>
4593 * Make-lang.in: Makefile automatically updated
4595 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
4597 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
4599 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
4603 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
4604 alone. Replacing object references by literals is inappropriate in a
4605 so low level context.
4607 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
4609 * a-exexpr.adb: Add comments
4611 2004-05-03 Joel Brobecker <brobecker@gnat.com>
4613 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
4614 declare the Ancestor_Tags array in Type_Specific_Data with a small size
4615 without risking a bounds check error when accessing one of its
4617 (Type_Specific_Data): Define Ancestor_Tags as a small array.
4618 This prevents us from hitting a limitation during the debug info
4619 generation when using stabs.
4621 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
4623 This prevents us from hitting a limitation during the debug info
4624 generation when using stabs.
4626 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
4628 lang-specs.h: Remove -gnatz* from specs.
4630 2004-05-03 Vincent Celier <celier@gnat.com>
4632 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
4634 * Make-lang.in, Makefile.in: Add gprmake
4636 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
4638 * sem_aggr.adb: Fix typo in comment.
4640 2004-05-03 Robert Dewar <dewar@gnat.com>
4642 * make.adb: Minor reformatting
4644 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
4646 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
4647 so that it works when address is not a private type.
4649 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
4650 properly with rewritten unchecked conversions. This prevents
4651 order-of-elaboration issues that can otherwise arise.
4652 (Minimum_Size): Don't check size of access types under VMS
4654 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
4655 interpretations of integer literals as type System.Address.
4657 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
4658 (Is_Descendent_Of): New function
4660 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
4662 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
4663 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
4664 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
4666 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
4667 of the old Max_Entry_Queue_Depth.
4669 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
4670 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
4671 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
4673 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
4674 New entry for proper handling of Max_Entry_Queue_Depth.
4675 New entry for proper handling of No_Dynamic_Interrupts.
4677 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
4678 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
4679 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
4680 the GNAT specific restriction Max_Entry_Queue_Depth.
4681 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
4682 the GNAT specific restriction No_Dynamic_Interrupts.
4684 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
4685 instead of the old Boolean_Entry_Barriers.
4686 Use the new restriction No_Dynamic_Attachment instead of the old
4687 No_Dynamic_Interrupts.
4689 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
4690 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
4692 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
4693 of the old Max_Entry_Queue_Depth.
4695 2004-05-03 GNAT Script <nobody@gnat.com>
4697 * Make-lang.in: Makefile automatically updated
4699 2004-04-29 Ed Schonberg <schonberg@gnat.com>
4701 * checks.adb (Enable_Range_Check): If the prefix of an index component
4702 is an access to an unconstrained array, perform check unconditionally.
4704 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4706 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
4709 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
4711 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
4712 alternate stack setting. There was no support for the tasking cases
4713 and the changes eventually caused a number of side-effect failures in
4714 the non-tasking case too.
4716 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
4718 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
4721 2004-04-29 Vincent Celier <celier@gnat.com>
4723 * make.adb (Gnatmake): Increase max size of argument array for
4724 gnatbind for the potential addition of -F.
4725 If there are Stand-Alone Library projects, invoke gnatbind with -F to
4726 be sure that elaboration flags will be checked.
4728 * switch-c.adb: Correct call to Scan_Pos for -gnateI
4730 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
4732 * sem_warn.adb (Check_References): Move '<access-variable> may be
4733 null' warning out of under Warn_On_No_Value_Assigned.
4735 2004-04-29 Ed Falis <falis@gnat.com>
4737 * gnat_ugn.texi: Fixed texi error
4739 2004-04-29 Robert Dewar <dewar@gnat.com>
4741 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
4742 abstract operations if they come from predefined files.
4744 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
4747 * s-addope.adb: Correct obvious error in mod function
4749 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
4751 * Makefile.in: Add target pairs for powerpc darwin*
4754 * a-intnam-darwin.ads, s-osinte-darwin.adb,
4755 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
4757 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
4759 * Makefile.in: Add target macro definitions for s390*-linux*.
4760 * system-linux-s390.ads: New file.
4761 * system-linux-s390x.ads: New file.
4763 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
4765 * gnat_ugn.texi: Correct argument to @setfilename.
4767 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
4769 * a-exexpr.adb (Unwind_Word): New data type.
4770 (Unwind_Exception): Use it as type of Private1 and Private2.
4772 * raise.c (db_action_for): Fix debug printf.
4774 2004-04-27 Ed Schonberg <schonberg@gnat.com>
4776 * a-wtmoio.ads: Formal type must be a modular type, not a signed
4779 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4781 * decl.c (gnat_to_gnu_entity, case object): Call
4782 __builtin_update_setjmp_buf.
4784 * gigi.h (update_setjmp_buf): Deleted.
4785 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
4787 * misc.c: (update_setjmp_buf): Deleted.
4789 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
4790 around block of RTL.
4792 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
4794 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
4796 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
4797 subprogram for which no pragma All_Calls_Remote applies, store the
4798 address of the real subprogram in the underlying record type, so local
4799 dereferences do not go through the PCS.
4801 2004-04-26 Robert Dewar <dewar@gnat.com>
4803 * i-c.ads: Add some type qualifications to avoid ambiguities when
4804 compiling with s-auxdec.ads and a non-private address type.
4806 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
4808 * Makefile.rtl: Fix error in previous check-in:
4809 Add s-addope.o to non tasking object list (rather than tasking object
4812 2004-04-26 Javier Miranda <miranda@gnat.com>
4814 * sem_aggr.adb: Fix typo in comments
4815 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
4816 Required to check the null-exclusion attribute.
4818 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
4819 case of anonymous access types in record and array components. For a
4820 component definition the level is the same of the enclosing composite
4823 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
4824 that are anonymous access types the level of accessibility depends on
4825 the enclosing type declaration. In order to have this information, set
4826 the scope of the anonymous access type to the enclosing record type
4828 (Array_Type_Declaration): In case of components that are anonymous
4829 access types the level of accessibility depends on the enclosing type
4830 declaration. In order to have this information, set the scope of the
4831 anonymous access type to the enclosing array type declaration.
4833 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
4836 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
4837 renaming of anonymous access-to-constant types allowed if and only if
4838 the renamed object is access-to-constant.
4840 * sem_util.adb (Type_Access_Level): In case of anonymous access types
4841 that are component_definition or discriminants of a nonlimited type,
4842 the level is the same as that of the enclosing component type.
4844 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
4846 * sem_elim.adb: Some minor code reorganization from code reading. Fix
4847 misprint in the function name (File_Name_Match).
4849 2004-04-23 Laurent GUERBY <laurent@guerby.net>
4851 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
4854 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4856 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
4858 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
4860 * adaint.c (__gnat_try_lock): No longer requires that the parent
4861 directory be writable, the directory itself is enough.
4862 (gnat_is_absolute_path): Change profile, so that the call from
4863 GNAT.OS_Lib can be made more efficient.
4865 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
4866 from GNAT.OS_Lib can be made more efficient.
4868 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
4869 one copy of the file name. Found by code reading.
4871 2004-04-23 Vincent Celier <celier@gnat.com>
4873 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
4874 Correct documentation on gnatmake switches transmitted to the compiler
4876 * ali.ads: Minor comment fix
4878 2004-04-23 Javier Miranda <miranda@gnat.com>
4880 * sem_ch6.adb: (Confirming Types): Code cleanup
4882 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
4883 subprogram types: E_Anonymous_Access_Subprogram_Type and
4884 E_Anonymous_Access_Protected_Subprogram_Type.
4886 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
4888 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
4889 whether a pragma All_Calls_Remote applies to the subprogram on which
4891 No functional change is introduced by this revision; the new parameter
4892 will be used to allow calls to local RCI subprograms to be optimized
4893 to not use the PCS in the case where no pragma All_Calls_Remote applies,
4894 as is already done in the PolyORB implementation of the DSA.
4896 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
4897 whether a pragma All_Calls_Remote applies to the subprogram on which
4899 No functional change is introduced by this revision; the new parameter
4900 will be used to allow calls to local RCI subprograms to be optimized
4901 to not use the PCS in the case where no pragma All_Calls_Remote applies,
4902 as is already done in the PolyORB implementation of the DSA.
4904 2004-04-23 Robert Dewar <dewar@gnat.com>
4906 * Makefile.rtl: Add entry for s-addope.o in run time library list
4907 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
4908 * s-addope.ads, s-addope.adb: New files.
4910 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
4911 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
4912 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
4913 System.Address to be non-private and signed.
4915 * sem_elim.adb: Minor reformatting (fairly extensive)
4916 Some minor code reorganization from code reading
4917 Add a couple of ??? comments
4919 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4921 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
4922 (tree_transform, case N_If_Statement): Remove non-determinism.
4924 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
4926 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
4928 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
4931 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
4932 no longer used as a parameter name for Eliminate pragma).
4934 2004-04-22 Laurent GUERBY <laurent@guerby.net>
4936 PR optimization/14984
4937 PR optimization/14985
4938 * trans.c (gigi): Fix non determinism leading to bootstrap
4939 comparison failures.
4941 2004-04-21 Pascal Obry <obry@gnat.com>
4943 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
4944 passed to spawnvp() to properly handle program pathname with spaces on
4947 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
4949 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
4950 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
4951 unlocked in case of exceptions.
4953 2004-04-21 Joel Brobecker <brobecker@gnat.com>
4955 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
4956 This function does not exist anymore.
4958 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
4960 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
4962 * link.c: Move variables to the __gnat name space.
4964 * Makefile.in: list link.o explicitly when needed.
4966 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
4968 2004-04-21 Javier Miranda <miranda@gnat.com>
4970 * einfo.adb (Original_Access_Type): New subprogram
4971 (Set_Original_Access_Type): New subprogram
4972 (Write_Field21_Name): Write the name of the new field
4974 * einfo.ads (Original_Access_Type): New field present in access to
4976 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
4977 E_Anonymous_Access_Protected_Subprogram_Type.
4979 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
4982 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
4983 to anonymous access to subprogram types.
4985 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
4986 to subprogram types.
4988 * sem_ch3.adb (Access_Definition): Complete decoration of entities
4989 corresponding to anonymous access to subprogram types.
4990 (Analyze_Component_Declaration): Add new actual to the call to
4991 subprogram replace_anonymous_access_to_protected_subprogram.
4992 (Array_Type_Declaration): Add new actual to the call to subprogram
4993 replace_anonymous_access_to_protected_subprogram.
4994 (Process_Discriminants): Add new actual to the call to subprogram
4995 replace_anonymous_access_to_protected_subprogram.
4996 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
4998 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
5001 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
5002 access to subprogram types.
5004 * sem_util.adb (Has_Declarations): Addition of package_specification
5007 2004-04-21 Ed Schonberg <schonberg@gnat.com>
5009 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
5010 inlined flags to renamed entity only if in current unit.
5012 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
5014 * s-parint.ads: Add DSA implementation marker.
5016 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
5017 value of System.Partition_Interface.DSA_Implementation to determine
5018 what version of the distributed systems annex is available (no
5019 implementation, GLADE, or PolyORB).
5021 2004-04-21 Joel Brobecker <brobecker@gnat.com>
5023 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
5025 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5027 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
5028 with new type if alias sets differ.
5029 Fixes ACATS c41103b.
5031 2004-04-21 Vincent Celier <celier@gnat.com>
5033 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
5034 Add array Lang_Args for the language specific compiling argument
5037 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
5039 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
5041 * gnat_rm.texi: Update the descripton of the Eliminate pragma
5042 according to the recent changes in the format of the parameters of the
5043 pragma (replacing Homonym_Number with Source_Location).
5045 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
5047 * 5isystem.ads: Removed, unused.
5049 * gnat_rm.texi: Redo 1.13 change.
5051 2004-04-19 Robert Dewar <dewar@gnat.com>
5053 * s-stoele.ads: Clean up definition of Storage_Offset (the new
5054 definition is cleaner, avoids the kludge of explicit Standard operator
5055 references, and also is consistent with a visible System.Address with
5056 no visible operations.
5058 * s-geveop.adb: Add declarations to avoid assumption of visible
5059 operations on type System.Address (since these might not be available
5060 if Address is a non-private type for which the operations
5063 * sem_eval.adb: Minor reformatting
5065 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
5066 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
5067 reformatting (new function spec format).
5069 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
5070 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
5071 s-caun64.adb: Add declarations to avoid assumption of visible
5072 operations on type System.Address (since these might not be available
5073 if Address is a non-private type for which the operations are made
5076 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
5078 * exp_intr.adb: Minor comment update
5080 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
5082 * 5omastop.adb: Add declarations to avoid assumption of visible
5083 operations on type System.Address (since these might not be available
5084 if Address is a non-private type for which the operations
5087 2004-04-19 Vincent Celier <celier@gnat.com>
5089 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
5091 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
5094 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
5096 Call Check with Process_Languages.
5097 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
5098 with Process_Languages.
5099 (Recursive_Check): New Boolean parameter Process_Languages. Call
5100 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
5103 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
5105 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
5106 parameter Ada_Main, defaulted to True.
5107 Check for Ada specific characteristics only when Ada_Main is True.
5109 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
5111 * prj.adb: (Project_Empty): Add new Project_Data components.
5113 * prj.ads: New types and tables for non Ada languages.
5114 (Project_Data): New components Languages, Impl_Suffixes,
5115 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
5116 Include_Path, Include_Data_Set.
5118 * prj-env.ads, prj-env.adb: Minor reformatting
5120 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
5121 Put subprograms in alphabetical order
5123 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
5124 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
5127 * mlib-prj.adb: Back out modification in last version, as they are
5129 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
5131 * make.adb: (Mains): Moved to package Makeutl
5132 (Linker_Opts): Moved to package Makeutl
5133 (Is_External_Assignment): Moved to package Makeutl
5134 (Test_If_Relative_Path): Moved to package Makeutl
5135 (Gnatmake): Move sorting of linker options to function
5136 Makeutl.Linker_Options_Switches.
5138 * makeutl.ads, makeutl.adb: New files.
5140 * Makefile.in: Add makeutl.o to the object files for gnatmake
5142 * makeusg.adb: Add line for new switch -eL.
5144 * gnatls.adb (Image): New function.
5145 (Output_Unit): If in verbose mode, output the list of restrictions
5146 specified by pragmas Restrictions.
5148 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
5151 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
5152 needed, to put it in the range 1970 (included) - 2026 (excluded).
5153 (Time_Of): Do not shift Unix_Min_Year (1970).
5154 Shift the date by multiple of 56 years, if needed, to put it in the
5155 range 1970 (included) - 2026 (excluded).
5157 * adaint.h, adaint.c (__gnat_set_executable): New function.
5159 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5161 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
5163 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
5164 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
5165 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
5166 (tree_transform, case N_Code_Statement): Likewise.
5167 (gnat_expand_stmt, case LABEL_STMT): Don't look at
5168 LABEL_STMT_FIRST_IN_EH.
5169 (gnat_expand_stmt, case ASM_STMT): New case.
5171 * utils2.c (build_unary_op): Properly set TREE_READONLY of
5172 UNCONSTRAINED_ARRAY_REF.
5174 * utils.c (poplevel): Temporarily push/pop GC context around inline
5177 * decl.c (maybe_variable): Properly set TREE_READONLY of
5178 UNCONSTRAINED_ARRAY_REF.
5179 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
5181 * ada-tree.def: (ASM_STMT): New.
5183 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
5184 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
5185 ASM_STMT_INPUT): New.
5186 (ASM_STMT_CLOBBER): Likewise.
5188 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
5190 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
5191 general rcheck mechanism to raise Program_Error for E.4(18), instead
5192 of a custom raiser in System.Partition_Interface.
5193 Part of general cleanup work before PolyORB integration.
5195 * snames.ads, snames.adb: Add new runtime library entities and names
5198 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
5200 (Build_Subprogram_Id): New subprogram provided by exp_dist
5201 Code reorganisation in preparation for PolyORB integration.
5203 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
5205 (Build_Subprogram_Id): New subprogram provided by exp_dist
5207 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
5208 actual parameter types for call to dereference of an
5209 access-to-subprogram type.
5211 * rtsfind.ads: Add new runtime library entities and names for PolyORB
5214 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
5215 instead, which has the same behaviour here since we never pass it a
5218 * link.c (run_path_option, Solaris case): Use -Wl, as for other
5221 * Makefile.in: adjust object file lists for gnatlink and gnatmake
5222 to account for new dependency upon Interfaces.C.Strings + link.o
5223 For x86 FreeBSD, use 86numaux.
5225 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
5226 from Mlib.Tgt to Mlib.
5228 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
5231 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
5232 target-specific versions of this subprogram, now implemented as a
5233 target-independent function in Mlib.
5235 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
5236 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
5237 (Linker_Library_Path_Option): Remove target-specific versions of this
5238 subprogram, now implemented as a target-independent function in Mlib.
5240 * atree.adb: (Allocate_Initialize_Node): New subprogram.
5241 Factors out node table slots allocation.
5242 (Fix_Parents): New subprogram.
5243 Encapsulate the pattern of fixing up parent pointers for syntactic
5244 children of a rewritten node.
5245 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
5246 (Rewrite): Use New_Copy when creating saved copy of original node.
5247 (Replace): Use Copy_Node to copy nodes.
5249 2004-04-19 Javier Miranda <miranda@gnat.com>
5251 * sprint.adb (Sprint_Node_Actual): Give support to the new
5252 Access_To_Subprogram node available in Access_Definition nodes. In
5253 addition, give support to the AI-231 node fields: null-exclusion,
5254 all-present, constant-present.
5256 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
5258 * sinfo.ads, sinfo.adb:
5259 New field Access_To_Subprogram_Definition in Access_Definition nodes
5261 * sem_ch6.adb (Process_Formals): Move here the code that creates and
5262 decorates internal subtype declaration corresponding to the
5263 null-excluding formal. This code was previously in Set_Actual_Subtypes.
5264 In addition, carry out some code cleanup on this code. In case of
5265 access to protected subprogram call
5266 Replace_Anonymous_Access_To_Protected_Subprogram.
5267 (Set_Actual_Subtypes): Code cleanup.
5269 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
5270 Find_Type in case of anonymous access renamings. Add warning in case of
5271 null-excluding attribute used in anonymous access renaming.
5273 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
5276 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
5278 (Access_Definition): In case of anonymous access to subprograms call
5279 the corresponding semantic routine to decorate the node.
5280 (Access_Subprogram_Declaration): Addition of some comments indicating
5281 some code that probably should be added here. Detected by comparison
5282 with the access_definition subprogram.
5283 (Analyze_Component_Declaration): In case of access to protected
5284 subprogram call Replace_Anonymous_Access_To_Protected.
5285 (Array_Type_Declaration): In case of access to protected subprogram call
5286 Replace_Anonymous_Access_To_Protected_Subprogram.
5287 (Process_Discriminants): In case of access to protected subprogram call
5288 Replace_Anonymous_Access_To_Protected_Subprogram.
5290 * par.adb (P_Access_Definition): New formal that indicates if the
5291 null-exclusion part was present.
5292 (P_Access_Type_Definition): New formal that indicates if the caller has
5293 already parsed the null-excluding part.
5295 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
5296 (P_Identifier_Declarations): Code cleanup and give support to renamings
5297 of anonymous access to subprogram types.
5298 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
5299 (P_Array_Type_Definition): Give support to AI-254.
5300 (P_Component_Items): Give support to AI-254.
5301 (P_Access_Definition): New formal that indicates if the header was
5302 already parsed by the caller.
5303 (P_Access_Type_Definition): New formal that indicates if the caller has
5304 already parsed the null-excluding part.
5306 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
5307 call to P_Access_Definition.
5309 2004-04-19 Geert Bosch <bosch@gnat.com>
5311 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
5312 the delicate semantics of floating-point to integer conversion.
5313 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
5315 * eval_fat.adb (Machine_Mantissa): Moved to spec.
5316 (Machine_Radix): New function.
5318 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
5320 (Machine_Radix): New function also for use in conversion checks.
5322 2004-04-19 Ed Schonberg <schonberg@gnat.com>
5324 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
5326 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
5327 to decorate the access-to-protected subprogram and the equivalent type.
5329 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
5330 to anonymous access to subprogram types.
5332 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
5333 constant-folding, for legality checks in contexts that require an RM
5336 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
5337 temporary but stack checking is not enabled, increment serial number
5338 to so that symbol generation is consistent with and without stack
5341 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
5342 independent on whether stack checking is enabled, caller must check
5343 the corresponding flag.
5345 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
5347 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
5348 parent if it has discriminants.
5349 (Build_Derived_Private_Type): Constructed full view does
5350 not come from source.
5351 (Process_Discriminants): Default discriminants on a tagged type are
5352 legal if this is the internal completion of a private untagged
5355 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
5356 no constraint checks, because it corresponds to an existing object.
5358 * sem_prag.adb (Process_Convention): Pragma applies
5359 only to subprograms in the same declarative part, i.e. the same unit,
5362 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
5363 ignore type mismatch on a numeric conversion if expression comes from
5366 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
5368 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
5369 Homonym_Number parameter, add processing for Source_Location parameter
5371 (Check_Eliminated): Remove the check for homonym numbers, add the check
5372 for source location traces.
5374 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
5375 with Arg_Source_Location corresponding to the changes in the format of
5378 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
5379 Eliminate pragma corresponding to the changes in the format of the
5380 pragma: Homonym_Number is replaced with Source_Location, two ways of
5381 distinguishing homonyms are mutially-exclusive.
5383 2004-04-19 Joel Brobecker <brobecker@gnat.com>
5385 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
5387 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
5388 No_Dollar_In_Label, no longer necessary, as it is always True.
5389 (Strip_Suffixes): Likewise.
5391 2004-04-19 Gary Dismukes <dismukes@gnat.com>
5393 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
5394 modulus for compatibility with size clause on targets with 16-bit
5397 * layout.adb (Discrimify): In the case of private types, set Vtyp to
5398 full type to fix type mismatches on calls to size functions for
5399 discriminant-dependent array components.
5401 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
5403 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
5406 2004-04-19 Pascal Obry <obry@gnat.com>
5408 * mdll-utl.adb (Locate): New version is idempotent.
5410 2004-04-17 Laurent Guerby <laurent@guerby.net>
5412 PR ada/14988 (partial)
5413 * impunit.adb: Fix typo.
5415 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
5417 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
5418 and install-rts-cert targets. Remove all gnatlib and gnattools
5419 targets and all other rts-* targets (moved to libada). Remove (now)
5420 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
5421 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
5423 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5425 * trans.c (tree_transform): Shortcut returning error_mark_node for
5426 statements in annotate_only_mode.
5427 (tree_transform, case N_Label, case N_Return_Statement,
5428 N_Goto_Statement): Make statement tree instead of generating code.
5429 (tree_transform, case N_Assignment_Statement): No longer check
5431 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
5433 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
5435 (gnat_to_gnu): Collect any RTL generated and deal with it.
5436 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
5437 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
5438 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
5440 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
5442 * ada-tree.def (EXPR_STMT): Fix typo in name.
5443 (BLOCK_STMT, IF_STMT): New nodes.
5445 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
5446 LABEL_STMT_FIRST_IN_EH): New macros.
5447 (RETURN_STMT_EXPR): Likewise.
5449 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
5450 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
5452 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
5454 * atree.ads: Correct documentation on extended nodes.
5456 * link.c: Set run_path_option for FreeBSD.
5458 2004-04-08 Vincent Celier <celier@gnat.com>
5460 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
5461 one of the ALI file, do not link with DEC lib.
5463 * par.adb Remove the last two characters ("%s" or "%b") when checking
5464 if a language defined unit may be recompiled.
5466 2004-04-08 Ed Schonberg <schonberg@gnat.com>
5468 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
5469 removal of abstract operation leaves no possible interpretation for
5472 * sem_eval.adb (Eval_Qualified_Expression): Use
5473 Set_Raises_Constraint_Error on node when needed, so that it does not
5474 get optimized away by subsequent optimizations.
5476 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
5477 operands even when they are not wrapped in a type conversion.
5479 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
5481 * sem_prag.adb (Set_Exported): Warn about making static as result of
5482 export only when the export is coming from source. This may be not
5483 be true e.g. on VMS where we expand export pragmas for exception codes
5484 together with imported or exported exceptions, and we don't want the
5485 user to be warned about something he didn't write.
5487 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
5489 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
5490 duplication between normal entities and those declared as renamings.
5491 No functional change.
5493 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
5494 inline functions returning an unconstrained result.
5496 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
5498 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
5499 conform to what other front-ends do.
5501 2004-04-08 Doug Rupp <rupp@gnat.com>
5503 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
5506 2004-04-06 Pascal Obry <obry@gnat.com>
5508 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
5510 * osint.adb (Program_Name): Do not look past a directory separator.
5512 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
5514 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
5516 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
5517 requirement for preserving a copy of the original assignment node.
5519 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
5521 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
5523 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
5526 2004-04-06 Ed Schonberg <schonberg@gnat.com>
5528 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
5529 operator calls in functional notation, and apply
5530 Universal_Interpretation to operands, not to their type.
5532 2004-04-06 Robert Dewar <dewar@gnat.com>
5534 * 5wdirval.adb: Minor reformatting
5536 2004-04-06 Ed Falis <falis@gnat.com>
5538 * gnat_rm.texi: Improve a reference to the GCC manual
5540 2004-04-05 Vincent Celier <celier@gnat.com>
5542 * adaint.h, adaint.c: Add function __gnat_named_file_length
5544 * impunit.adb: Add Ada.Directories to the list
5546 * Makefile.in: Add VMS and Windows versions of
5547 Ada.Directories.Validity package body.
5549 * Makefile.rtl: Add a-direct and a-dirval
5551 * mlib-tgt.ads: Minor comment update.
5553 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
5554 a-direct.ads, a-direct.adb: New files.
5556 2004-04-05 Vincent Celier <celier@gnat.com>
5559 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
5560 just to the compiler.
5562 2004-04-05 Robert Dewar <dewar@gnat.com>
5564 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
5565 returned string is 1.
5567 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
5569 * eval_fat.ads: Minor reformatting
5571 * g-curexc.ads: Document that lower bound of returned string values
5574 * gnatlink.adb: Add ??? comment for previous change
5575 (need to document why this is VMS specific)
5577 * s-stoele.ads: Minor reformatting
5579 * tbuild.ads: Minor reformatting throughout (new function specs)
5581 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
5584 * scng.adb: Minor reformatting
5586 2004-04-05 Geert Bosch <bosch@gnat.com>
5588 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
5589 (Leading_Part): Still perform truncation to machine number if the
5590 specified radix_digits is greater or equal to machine_mantissa.
5592 2004-04-05 Javier Miranda <miranda@gnat.com>
5594 * par-ch3.adb: Complete documentation of previous change
5595 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
5596 (aliased must appear before constant).
5598 * par-ch4.adb: Complete documentation of previous change.
5600 * par-ch6.adb: Complete documentation of previous change.
5602 * sinfo.ads: Fix typo in commment.
5604 2004-04-05 Ed Schonberg <schonberg@gnat.com>
5606 * sem_ch3.adb (Inherit_Components): If derived type is private and has
5607 stored discriminants, use its discriminants to constrain parent type,
5608 as is done for non-private derived record types.
5610 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
5611 Ada 2005 AI-310: an abstract non-dispatching operation is not a
5612 candidate interpretation in an overloaded call.
5614 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
5615 expression is Null and target type is not an access type (e.g. a
5616 non-private address type).
5618 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
5620 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
5621 statement whose right-hand side is an inlined call, save a copy of the
5622 original assignment subtree to preserve enough consistency for
5623 Analyze_Assignment to proceed.
5625 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
5626 complete assignment subtree which is now unnecessary, as the expansion
5627 of inlined call has been improved to preserve a consistent assignment
5628 tree. Note_Possible_Modification must be called only
5629 after checks have been applied, or else unnecessary checks will
5632 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
5633 of explicit dereferences that do not Come_From_Source:
5634 - be selective on cases where we must go back to the dereferenced
5635 pointer (an assignment to an implicit dereference must not be
5636 recorded as modifying the pointer);
5637 - do not rely on Original_Node being present (Analyze_Assignment
5638 calls Note_Possible_Modification on a copied tree).
5640 * sem_warn.adb (Check_References): When an unset reference to a pointer
5641 that is never assigned is encountered, prefer '<pointer> may be null'
5642 warning over '<pointer> is never assigned a value'.
5644 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
5646 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
5649 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
5651 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
5652 libexc. We currently don't reference anything in this library and
5653 linking it in triggers linker warnings we don't want to see.
5655 * init.c: Update comments.
5657 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5659 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
5660 * utils.c (create_field_decl): Likewise.
5661 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
5663 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
5665 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
5666 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
5667 Add info directory entry and category.
5669 2004-04-02 Jan Hubicka <jh@suse.cz>
5671 * utils.c: Include function.h
5672 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
5674 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
5677 * Make-lang.in: Clean up generation of documentation
5679 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
5681 * xgnatug.adb: Removed, replaced by xgnatugn.adb
5683 * xgnatugn.adb: Replaces xgnatug.adb
5685 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
5687 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
5689 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
5690 gnat_ug_wnt.texi: Removed.
5692 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
5694 * utils2.c: Update copyright notice.
5696 2004-04-01 Robert Dewar <dewar@gnat.com>
5698 * checks.adb: Minor reformatting throughout
5699 Note that prev checkin added RM reference to alignment warning
5701 2004-04-01 Ed Schonberg <schonberg@gnat.com>
5703 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
5704 non-static when building aggregate for bit-packed array.
5706 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
5707 function call that is itself the actual in a procedure call, build
5710 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
5711 a string literal, create a temporary for it, constant folding only
5712 handles scalars here.
5714 2004-04-01 Vincent Celier <celier@gnat.com>
5716 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
5717 Error_Msg_SP): New empty procedures to instantiate the Scanner.
5718 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
5720 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
5721 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
5722 and get the checksum.
5724 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
5726 Increase the Marking_Label at the end of the Multiple_Main_Loop,
5727 instead of at the beginning.
5729 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
5731 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
5734 * osint.ads (Multi_Unit_Index_Character): New Character global variable
5736 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
5739 * par.adb: Remove test on file name to detect language defined units.
5740 Add test on unit name, after parsing, to detect language defined units
5741 that are not compiled with -gnatg (except System.RPC and its children)
5743 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
5744 following units without style checking.
5746 * switch-c.adb: Change -gnatC to -gnateI
5748 * usage.adb: Document new switch -gnateInnn
5750 * scng.adb (Accumulate_Token_Checksum): New procedure
5751 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
5752 word or literal number.
5753 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
5756 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
5759 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
5760 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
5761 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
5762 5vtpopde.adb: Add missing 'constant' keywords.
5764 2004-04-01 Javier Miranda <miranda@gnat.com>
5766 * par-ch4.adb: (P_Allocator): Code cleanup
5768 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
5771 * sinfo.ads: Complete documentation of previous change
5773 2004-04-01 Pascal Obry <obry@gnat.com>
5775 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
5776 only on VMS. This special handling was done because an old GNU/ld bug
5777 on Windows which has been fixed.
5779 2004-04-01 GNAT Script <nobody@gnat.com>
5781 * Make-lang.in: Makefile automatically updated
5783 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5785 * decl.c (gnat_to_gnu_entity, make_type_from_size):
5786 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
5787 * trans.c (tree_transform, convert_with_check): Likewise.
5788 * utils.c (gnat_signed_or_unsigned_type): Likewise.
5789 (build_vms_descriptor, unchecked_convert): Likewise.
5790 * utils2.c (nonbinary_modular_operation): Likewise.
5792 2004-03-29 Javier Miranda <miranda@gnat.com>
5794 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
5795 (Install_Null_Excluding_Check): Local subprogram that determines whether
5796 an access node requires a runtime access check and if so inserts the
5797 appropriate run-time check.
5798 (Apply_Access_Check): Call Install_Null_Excluding check if required
5799 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
5801 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
5803 * einfo.ads: Fix typo in comment
5805 * exp_ch3.adb (Build_Assignment): Generate conversion to the
5806 null-excluding type to force the corresponding run-time check.
5807 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
5808 type to force the corresponding run-time check.
5810 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
5811 the null-excluding type to force the corresponding run-time check.
5813 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
5814 case of access types unless they have the null-excluding attribute.
5816 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
5819 * exp_util.ads: Fix typo in comment
5821 * par.adb (P_Null_Exclusion): New subprogram
5822 (P_Subtype_Indication): New formal that indicates if the null-excluding
5823 part has been scanned-out and it was present
5825 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
5827 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
5828 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
5829 type to force the corresponding run-time check
5830 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
5832 (Resolve_Array_Aggregate): Carry out some static checks
5833 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
5835 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
5836 attribute must be set only if specified by means of the null-excluding
5837 part. In addition, we must also propagate the access-constant attribute
5839 (Access_Subprogram_Declaration, Access_Type_Declaration,
5840 Analyze_Component_Declaration, Analyze_Object_Declaration,
5841 Array_Type_Declaration, Process_Discriminants,
5842 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
5843 and carry out some static checks.
5844 (Build_Derived_Access_Type): Set the null-excluding attribute
5845 (Derived_Type_Declaration, Process_Subtype): Carry out some static
5848 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
5850 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
5852 * sem_ch6.adb (Process_Formals): Carry out some static checks.
5853 (Set_Actual_Subtypes): Generate null-excluding subtype if the
5854 null-excluding part was present; it is not required to be done here in
5855 case of anonymous access types.
5856 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
5859 * sem_res.adb (Resolve_Actuals): Carry out some static check
5860 (Resolve_Null): Allow null in anonymous access
5862 * sinfo.adb: New subprogram Null_Exclusion_Present
5863 All_Present and Constant_Present available on access_definition nodes
5865 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
5866 object_declaration, derived_type_definition, component_definition,
5867 discriminant_specification, access_to_object_definition,
5868 access_function_definition, allocator, access_procedure_definition,
5869 access_definition, parameter_specification, All_Present and
5870 Constant_Present flags available on access_definition nodes.
5872 2004-03-29 Robert Dewar <dewar@gnat.com>
5874 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
5875 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
5876 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
5877 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
5878 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
5879 sem_prag.adb: Updates to handle multiple units/file
5881 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
5883 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
5884 sem_util.adb: Minor reformatting
5886 * sem_ch12.adb: Add comment for previous change
5888 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
5890 * osint.adb (Executable_Prefix): Set Exec_Name to the current
5891 executable name when not initialized. Otherwise, use its current value.
5893 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
5894 initialize it to another executable name than the current one. This
5895 allows to configure paths for an executable name (gnatmake) different
5896 from the current one (gnatdist).
5898 2004-03-29 Ed Schonberg <schonberg@gnat.com>
5900 * exp_ch6.adb (Expand_Call): A call to a function declared in the
5901 current unit cannot be inlined if it appears in the body of a withed
5902 unit, to avoid order of elaboration problems in gigi.
5904 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
5905 information for protected (wrapper) operation as well, to simplify gdb
5908 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
5909 protected body, indicate that the entity for the generated spec comes
5910 from source, to ensure that references are properly generated for it.
5911 (Build_Body_To_Inline): Do not inline a function that returns a
5914 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
5915 apply convention to homonyms that are declared explicitly.
5917 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
5918 that renames an equality operator and the operands are overloaded,
5919 resolve them with the declared formal types, before rewriting as an
5922 2004-03-29 GNAT Script <nobody@gnat.com>
5924 * Make-lang.in: Makefile automatically updated
5926 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
5928 * memtrack.adb: Log realloc calls, which are treated as free followed
5931 2004-03-25 Vincent Celier <celier@gnat.com>
5933 * prj-makr.adb (Process_Directories): Detect when a file contains
5934 several units. Do not include such files in the config pragmas or
5935 in the naming scheme.
5937 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
5938 Resolve links only when not in Trusted_Mode.
5939 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
5940 Do not resolve links for the display names.
5942 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
5943 resolve links when computing the display names.
5945 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
5947 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
5948 attribute reference does not denote a subtype, it can be any
5949 expression that has a classwide type, potentially after an implicit
5950 dereference. In particular, the prefix can be a view conversion for
5951 a classwide type (for which Is_Object_Reference holds), but it can
5952 also be a value conversion for an access-to-classwide type. In the
5953 latter case, there is an implicit dereference, and the original node
5954 for the prefix does not verify Is_Object_Reference.
5956 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
5957 conversion of a discriminant-dependent component of a mutable object
5960 2004-03-25 Ed Schonberg <schonberg@gnat.com>
5962 * freeze.adb (Freeze_Entity): When an inherited subprogram is
5963 inherited, has convention C, and has unconstrained array parameters,
5964 place the corresponding warning on the derived type declaration rather
5965 than the original subprogram.
5967 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
5968 indication on renaming declaration, if formal has a box and actual
5971 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
5972 determine whether to generate an implicit or explicit reference to
5975 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
5976 subprogram renaming comes from a defaulted formal subprogram in an
5979 2004-03-25 Gary Dismukes <dismukes@gnat.com>
5981 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
5982 value expressions to ensure that calls within a component definition
5983 will be checked (since those are evaluated during the record type's
5986 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
5988 * s-tpobop.adb: Code clean up:
5989 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
5991 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
5993 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
5995 * Makefile.in: Clean up in the ravenscar run time.
5997 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5999 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
6000 of No_Strict_Aliasing to build_pointer_type_for_mode.
6001 * utils.c (update_pointer_to): Walk pointer and ref chains.
6003 2004-03-22 Cyrille Comar <comar@act-europe.fr>
6005 * ali.ads: Fix Comment about Dynamic_Elab.
6007 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
6008 Has_RACW, Is_Generic, etc.)
6009 (Output_Object, Gnatls): Take into account ALI files not attached to
6012 2004-03-22 Vincent Celier <celier@gnat.com>
6014 * gprep.adb: Change all String_Access to Name_Id
6015 (Is_ASCII_Letter): new function
6016 (Double_File_Name_Buffer): New procedure
6017 (Preprocess_Infile_Name): New procedure
6018 (Process_Files): New procedure
6019 (Gnatprep): Check if output and input are existing directories.
6020 Call Process_Files to do the real job.
6022 2004-03-22 Robert Dewar <dewar@gnat.com>
6024 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
6025 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
6027 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
6029 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
6030 case when the source contains only comments.
6032 2004-03-22 Ed Schonberg <schonberg@gnat.com>
6034 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
6035 declaration for a child subprogram body that acts as a spec, indicate
6036 that the entity in the declaration needs debugging information.
6038 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
6039 full view if the subtype is created for a constrained record component;
6040 gigi has enough information to construct the record, and there is no
6041 place in the tree for the declaration.
6043 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
6044 serial number for the dummy body that is built for analysis, to avoid
6045 inconsistencies in the generation of internal names when compiling
6048 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
6050 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
6053 2004-03-22 GNAT Script <nobody@gnat.com>
6055 * Make-lang.in: Makefile automatically updated
6057 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6059 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
6060 * trans.c (tree_transform, emit_index_check): Likewise.
6061 * utils.c (build_template): Likewise.
6062 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
6063 (maybe_unconstrained_array, unchecked_convert): Likewise.
6064 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
6065 (build_unary_op): Likewise.
6066 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
6067 (fill_vms_descriptor): Likewise.
6068 (build_call_alloc_dealloc): Likewise.
6070 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
6072 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
6075 * gnat_ug.texi: Add info directory category and entry.
6076 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
6077 gnat_ug_wnt.texi: Regenerate.
6079 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
6081 * ada-tree.h: Update copyright notice.
6084 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
6086 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
6087 as regular exception objects and not as mere integers representing the
6088 condition code. The latter approach required some dynamics to mask off
6089 severity bits, which did not fit well into the GCC table based model.
6090 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
6091 exception data objects. We don't it and it would conflict with the other
6092 external symbol we have to generate for such exceptions.
6094 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
6095 the special code for VMS exceptions, since these are now represented
6096 as regular exceptions objects.
6098 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6100 * decl.c (debug_no_type_hash): Remove.
6101 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
6102 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
6104 2004-03-19 Laurent Guerby <laurent@guerby.net>
6106 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
6107 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
6109 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6111 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
6112 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
6113 (TYPE_RM_SIZE_INT): Directly use type.values.
6114 (TREE_LOOP_ID): Clean up check.
6115 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
6116 TYPE_VALUES, not TYPE_FIELDS.
6117 * trans.c (convert_with_check): Delay access of bounds of basetype
6118 until sure is numeric.
6120 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
6122 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
6125 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
6126 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
6127 Specific.Set instead of direct call to e.g pthread_setspecific.
6129 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
6131 * adaint.c: Update comments.
6133 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
6134 GNATLIB_SHARED for FreeBSD.
6136 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
6138 * init.c [VxWorks]: Do not fix the stack size for the environment task.
6139 When needed (stack checking) the stack size is retrieved
6140 from the VxWorks kernel.
6142 * Makefile.in: Flag -nostdinc is required when building the run time
6143 for avoiding looking for files in the base compiler.
6144 Add the VxWorks specific version of the package body for
6145 System.Stack_checking.Operations (5zstchop.adb).
6147 * Make-lang.in: Add the object file for
6148 System.Stack_Checking.Operations.
6150 * Makefile.rtl: Add object file for the package
6151 System.Stack_Checking.Operations.
6153 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
6155 * s-stache.ads, s-stache.adb: Move the operations related to stack
6156 checking from this package to package System.Stack_Checking.Operations.
6157 This way, stack checking operations are only linked in the final
6158 executable when using the -fstack-check flag.
6160 2004-03-18 Doug Rupp <rupp@gnat.com>
6162 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
6165 * 5qsystem.ads, 5xcrtl.ads: New files.
6167 2004-03-18 Vincent Celier <celier@gnat.com>
6169 * prj.adb (Reset): Reset hash table Files_Htable
6171 * prj-env.adb (Source_Paths, Object_Paths): New tables.
6172 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
6173 the procedures Add_To_Path_File.
6174 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
6175 making sure that each directory is present only once and, for object
6176 dirs, when a directory already present is added, the duplicate is
6177 removed and the directory is always put as the last in the table.
6178 Write the path files at the end of these accumulations.
6180 * prj-nmsc.adb (Record_Source): Add source file name in hash table
6181 Files_Htable for all sources.
6183 * prj-proc.adb (Process): Remove restrictions between not directly
6184 related extending projects.
6186 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
6188 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
6189 (Find_Sources): Minor speed optimization.
6191 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
6192 parameter Trusted_Mode.
6194 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
6196 * scn.adb (Determine_License): Take into account a degenerated case
6197 when the source contains only comments.
6199 2004-03-18 Ed Schonberg <schonberg@gnat.com>
6201 * sem_warn.adb (Check_References): For a warning on a selected
6202 component that does not come from source, locate an uninitialized
6203 component of the record type to produce a more precise error message.
6205 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
6207 * 3zsoccon.ads: Fix multicast options.
6209 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
6212 2004-03-15 Robert Dewar <dewar@gnat.com>
6214 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
6215 pragma used for a private type.
6217 * lib-xref.adb (Generate_Reference): Do not generate warning if
6218 reference is in a different unit from the pragma Unreferenced.
6220 * 5vtpopde.adb: Minor reformatting
6221 Fix casing of To_Task_ID
6223 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
6224 flag if we have an unchecked conversion to an access type in the same
6227 2004-03-15 Geert Bosch <bosch@gnat.com>
6229 * a-ngcoty.adb (Modulus): In alternate formula for large real or
6230 imaginary parts, use Double precision throughout.
6232 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
6233 we want to be able to compile run-time with -gnata for testing, but
6234 this may also be instantiated in user code that is compiled with -gnata.
6236 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
6238 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
6239 codes. Having a separate type for this is useful to enforce consistency
6240 throughout the various run-time units.
6241 (Exception_Data): Use Exception_Code for Import_Code.
6243 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
6244 Natural and Integer in various places.
6245 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
6246 with the severity bits masked off.
6247 (Register_VMS_Exception): Handle the additional exception data pointer
6250 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
6251 component, now reflected by an exported accessor.
6252 (is_handled_by): New routine to compute whether the propagated
6253 occurrence matches some handler choice specification. Extracted out of
6254 get_action_description_for, and expanded to take care of the VMS
6256 (get_action_description_for): Use is_handled_by instead of an explicit
6257 complex condition to decide if the current choice at hand catches the
6258 propagated occurrence.
6260 * raise.h (Exception_Code): New type for C.
6262 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
6263 System.Standard_Library.Exception_Code, to allow references from the
6264 pragma import/export expander.
6266 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
6267 New accessors to allow easy access to GNAT exception data
6269 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
6270 redundant Handled_By_Others component, helper for the personality
6271 routine which will now be able to call the appropriate exception data
6274 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
6275 component of Standard_Exception_Type to be the closest possible to
6276 Exception_Code in System.Standard_Library, that we cannot get at this
6277 point. Expand a ??? comment to notify that this type node should
6278 probably be rewritten later on.
6280 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
6281 registration call to include a pointer to the exception object in the
6284 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
6285 instead of int and explicit bitmasks.
6287 2004-03-15 Vincent Celier <celier@gnat.com>
6289 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
6290 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
6292 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
6293 longer needed now that it is in the spec of
6294 System.Tasking.Task_Attributes.
6296 * adaint.h, adaint.c: (__gnat_create_output_file): New function
6298 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
6300 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
6302 * make.adb (Gnatmake): Do not check the executable suffix; it is being
6303 taken care of in Scan_Make_Arg.
6304 (Scan_Make_Arg): Add the executable suffix only if the argument
6305 following -o, in canonical case, does not end with the executable
6306 suffix. When in verbose mode and executable file name does not end
6307 with executable suffix, output the executable name, in canonical case.
6309 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
6310 to avoid warnings when instantiating Ada.Task_Attributes.
6313 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
6314 in the correct order.
6316 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
6317 redirect standard output and error to a file for the invocation of the
6318 compiler, then read the file.
6320 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
6321 directory, instead of the Value.
6322 (Find_Source_Dirs): Remove useless code & comments.
6324 2004-03-15 Ed Schonberg <schonberg@gnat.com>
6326 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
6327 tagged type is inherited, and the parent operation is not frozen yet,
6328 force generation of a freeze node for the inherited operation, so the
6329 corresponding dispatch entry is properly initialized.
6330 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
6331 when looking for user-defined equality operation.
6333 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
6334 boolean when locating primitive equality of tagged component.
6336 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
6337 bit-aligned field and the right-hand side a string literal, introduce
6338 a temporary before expanding assignment into a loop.
6340 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
6341 priority in full, to ensure that any expanded subepxressions of it are
6342 elaborated in the scope of the init_proc.
6344 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
6345 after object declaration, skipping over code that may have been
6346 generated for validity checks.
6348 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
6349 discriminants, ignore the known discriminants of its full view, if
6350 any, to check legality.
6352 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
6353 component if type has unknown discriminants.
6354 (Analyze_Private_Extension_Declaration): Discriminant constraint is
6355 null if type has unknown discriminants.
6357 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
6358 for end label when present.
6360 * s-fileio.adb (Open): When called with a C_Stream, use given name for
6361 temporary file, rather than an empty string.
6363 2004-03-15 Ed Falis <falis@gnat.com>
6365 * s-thread.adb: Removed, no longer used.
6367 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6369 * decl.c (target.h): Now include.
6370 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
6371 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
6372 (validate_size): For POINTER_TYPE, get smallest size permitted on
6375 * fe.h: Sort Einfo decls and add Set_Mechanism.
6377 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
6378 (ada/decl.o): Depends on target.h.
6380 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
6381 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
6383 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
6385 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
6387 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
6388 Insert_Dereference_Action when rewriting an implicit dereference into
6389 an explicit one, this will be taken care of during expansion of the
6390 explicit dereference.
6391 (Expand_N_Slice): Same. Always do the rewriting, even for the case
6392 of non-packed slices, since the dereference action generated by
6393 expansion of the explicit dereference is needed in any case.
6394 (Expand_N_Selected_Component): When rewriting an implicit dereference,
6395 analyze and resolve the rewritten explicit dereference so it is seen
6397 (Insert_Dereference_Action): This procedure is now called only for the
6398 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
6399 dereferences that do not come from source (including explicit
6400 dereferences resulting from rewriting implicit ones), but do not
6401 recursively insert a check for the dereference nodes contained within
6403 (Insert_Dereference_Action): Clarify and correct comment.
6405 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
6408 Move language detection to the top level.
6409 * config-lang.in: Build by default.
6411 2004-03-05 Robert Dewar <dewar@gnat.com>
6413 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
6415 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
6416 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
6417 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
6418 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
6419 unchecked conversion to spec to avoid warnings.
6421 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
6424 * 7stpopsp.adb: Correct casing in To_Task_ID call
6426 * a-strsea.ads, a-strsea.adb: Minor reformatting
6428 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
6430 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
6431 Adjust Max_Msg_Length to be clearly large enough.
6433 * fe.h: Define In_Same_Source_Unit
6435 * osint.adb: Add pragma Warnings Off to suppress warnings
6436 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
6439 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
6441 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
6443 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
6445 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
6447 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
6449 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
6450 node. We now do generate them for gcc back end.
6452 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
6455 * sinput-c.adb: Fix bad name in header.
6456 Add pragma Warnings Off to suppress aliasing warning.
6458 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
6460 * snames.h, snames.ads, snames.adb: Add entry for pragma
6463 2004-03-05 Vincent Celier <celier@gnat.com>
6465 * prj-com.ads: Add hash table Files_Htable to check when a file name
6466 is already a source of another project.
6468 * prj-nmsc.adb (Record_Source): Before recording a new source, check
6469 if its file name is not already a source of another project. Report an
6472 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
6473 source file name, call gnatpp with all the sources of the main project.
6475 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
6478 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
6479 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
6480 /RUNTIME_SYSTEM=, converted to --RTS=
6481 /NOTABS, converted to -notabs
6483 2004-03-05 Pascal Obry <obry@gnat.com>
6485 * make.adb: Minor reformatting.
6487 2004-03-05 Ed Schonberg <schonberg@gnat.com>
6489 Part of implemention of AI-262.
6490 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
6492 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
6495 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
6496 when component type is a partially constrained class-wide subtype.
6497 (Constrain_Discriminated_Type): If parent type has unknown
6498 discriminants, a constraint is illegal, even if full view has
6500 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
6501 with unknown discriminants whose full view is a discriminated record.
6503 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
6504 flag, to handle properly derivations of tagged types with unknown
6506 (Analyze_Package_Spec, Analyze_Package_Body): Install
6507 Private_With_Clauses before analyzing private part or body.
6509 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
6510 Has_Discriminants can be true for a given type (documentation).
6512 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
6514 * s-restri.ads: Fix license (GPL->GMGPL).
6516 * s-tassta.adb: Minor reformatting.
6518 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
6519 by calls to Exit_One_ATC_Level, since additional clean up is performed
6522 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
6523 by calls to Exit_One_ATC_Level, since additional clean up is performed
6526 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6528 * trans.c: Reflect GCC changes to fix bootstrap problem.
6529 Add warning for suspicious aliasing unchecked conversion.
6531 2004-03-05 GNAT Script <nobody@gnat.com>
6533 * Make-lang.in: Makefile automatically updated
6535 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
6537 * ali.adb (Read_Instantiation_Instance): Do not modify the
6538 current_file_num when reading information about instantiations, since
6539 this corrupts files in later references.
6541 2004-03-02 Vincent Celier <celier@gnat.com>
6543 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
6544 before checking if it is read-only.
6546 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
6547 of SRC_DIRS and eliminate duplicates.
6549 * gprcmd.adb: Replace command "path" with command "path_sep" to return
6551 (Usage): Document path_sep
6553 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
6554 C++ compiler. No need for a script.
6555 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
6556 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
6559 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
6560 where there are Ada sources.
6561 (Set_Ada_Paths): Only add to the include path the source dirs of project
6563 (Add_To_Path): Add the Display_Values of the directories, not their
6566 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
6569 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
6571 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
6572 Value is canonicalized.
6573 (Language_Independent_Check): Do not copy Value to Display_Value when
6574 canonicalizing Value.
6576 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
6577 path to find limited with cycles.
6578 (Parse_Single_Project): Use canonical cased path to find the end of a
6581 2004-03-02 Ed Schonberg <schonberg@gnat.com>
6583 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
6584 and not a child unit.
6586 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
6587 appear in a with_clause.
6589 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
6590 only happen in type_annotate mode, do not try to elaborate it.
6592 * exp_util.adb (Force_Evaluation): If expression is a selected
6593 component on the left of an assignment, use a renaming rather than a
6594 temporary to remove side effects.
6596 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
6597 inlined instance body, which is analyzed before the end of the
6600 2004-03-02 Robert Dewar <dewar@gnat.com>
6602 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
6603 sem_ch4.adb: Use new feature for substitution of keywords in VMS
6605 * errout.ads, errout.adb: Implement new circuit for substitution of
6608 * sem_case.adb (Analyze_Choices): Place message properly when case is
6609 a subtype reference rather than an explicit range.
6611 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
6613 2004-03-02 Doug Rupp <rupp@gnat.com>
6615 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
6617 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
6619 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
6621 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6623 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
6626 2004-02-25 Robert Dewar <dewar@gnat.com>
6628 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
6629 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
6630 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
6631 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
6632 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
6633 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
6634 the defining instance of the type to avoid aliasing problems.
6635 Fix copyright header. Fix bad comments in package header.
6637 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
6639 2004-02-25 Ed Schonberg <schonberg@gnat.com>
6641 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
6642 rewritten as references when aliased through an address clause.
6644 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
6645 whether call can be interpreted as an indirect call to the result of a
6646 parameterless function call returning an access subprogram.
6648 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
6651 * exp_ch7.adb (Make_Clean): Remove generation of calls to
6652 Unlock[_Entries], since this is now done by Service_Entries directly.
6654 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
6656 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
6657 Requeue_Call for better code readability. Change spec and update calls:
6658 PO_Service_Entries now unlock the PO on exit.
6659 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
6662 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
6664 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
6666 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
6668 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
6669 protected subprogram call and analyzing the result of such expanding
6670 in case when the called protected subprogram is eliminated.
6672 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
6675 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
6677 * Makefile.in: Clean ups.
6679 2004-02-23 Ed Schonberg <schonberg@gnat.com>
6681 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
6682 protected operations if original subprogram is flagged as eliminated.
6683 (Expand_N_Subprogram_Body): For a protected operation, create
6684 discriminals for next operation before checking whether the operation
6687 * exp_ch9.adb (Expand_N_Protected_Body,
6688 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
6689 for internal protected operations if the original subprogram is
6692 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
6693 declared in a single protected object.
6695 2004-02-23 Vincent Celier <celier@gnat.com>
6697 * prj-attr.adb: Make attribute Builder'Executable an associative array,
6698 case insensitive if file names are case insensitive, instead of a
6699 standard associative array.
6701 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
6702 them as case insensitive on platforms where the file names are case
6705 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
6706 project file has already been parsed that canonical path are compared.
6708 2004-02-23 Robert Dewar <dewar@gnat.com>
6710 * sinput-c.ads: Correct bad unit title in header
6712 * freeze.adb: Minor reformatting
6714 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6716 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
6717 nonaddressable COMPONENT_REF that is removing padding that we are
6718 taking the address of, take the address of the padded record instead
6719 if item is variable size.
6721 2004-02-20 Robert Dewar <dewar@gnat.com>
6723 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
6725 2004-02-20 Ed Schonberg <schonberg@gnat.com>
6727 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
6728 itype references for the constrained designated type of a component
6729 whose base type is already frozen.
6731 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
6733 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
6736 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
6738 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
6739 identifier for a phantom package that rewrites the formal package
6740 declaration with a box. The Add semantic decorations for the defining
6741 identifier from the original node (that represents the formal package).
6743 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
6745 * Make-lang.in (ada/stamp-sdefault): Use the top level
6748 2004-02-19 Richard Henderson <rth@redhat.com>
6750 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
6752 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
6754 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
6755 Scan_ALI can be used for multiple ALI files without reinitializing
6758 2004-02-18 Robert Dewar <dewar@gnat.com>
6760 * debug.adb: Minor reformatting.
6762 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6764 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
6765 to zero if there is an address clause.
6767 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
6769 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
6771 2004-02-18 Gary Dismukes <dismukes@gnat.com>
6773 * layout.adb (Layout_Component_List): Revise generation of call to
6774 discriminant-checking function to pass selections of all of the type's
6775 discriminants rather than just the variant-controlling discriminant.
6777 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
6779 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
6780 fail in the current setup and triggers spurious system error messages.
6781 Pretend it occurred and failed instead.
6783 2004-02-18 Vincent Celier <celier@gnat.com>
6785 * bld.adb: Mark FLDFLAGS as saved
6786 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
6787 it is not the root project. Put each directory to be
6788 extended between double quotes to prevent it to be expanded on Windows.
6789 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
6790 the project file. Set them back to their initial values if they have not
6791 been set in the project file.
6793 * gprcmd.adb: (Gprdebug, Debug): New global variables
6794 (Display_Command): New procedure
6795 (Usage): Document new command "linkopts"
6796 Call Display_Command when env var GPRDEBUG has the value "TRUE"
6797 Implement new command "linkopts"
6798 Remove quotes that may be around arguments for "extend"
6799 Always call Normalize_Pathname with arguments formatted for the platform
6801 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
6802 Change @echo to @$(display) in target clean to be able to clean silently
6804 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
6806 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
6809 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
6810 = Extending_All when current project is an extending all project.
6812 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
6813 set to True only for LINK command, after Unix switch -o.
6814 (Process_Arguments): Set Output_File_Expected to True for LINK command
6815 after Unix switch -o. When Output_File_Expected is True, never add an
6816 extension to a file name.
6818 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
6819 option file name, only to the --for-linker= switch.
6820 (Option_File_Name): If option file name do not end with ".opt", append
6823 2004-02-18 GNAT Script <nobody@gnat.com>
6825 * Make-lang.in: Makefile automatically updated
6827 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
6829 * Make-lang.in (stamp-sdefault): Do not depend on
6832 2004-02-12 Zack Weinberg <zack@codesourcery.com>
6834 * config-lang.in: Disable Ada by default until probe logic for
6835 a bootstrap Ada compiler can be moved to the top level configure
6838 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
6840 * decl.c (components_to_record): Don't claim that the internal fields
6841 we make to hold the variant parts are semantically addressable, because
6844 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
6845 adjust the comment describing the modular type form when we can use it.
6846 (Install_PAT): Account for the Esiz renaming.
6848 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
6849 sc_onstack context indication before raising the exception to which
6850 the signal is mapped. Allows better handling of later signals possibly
6851 triggered by the resumed user code if the exception is handled.
6853 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
6855 * 5zinit.adb: Removed, no longer used.
6857 2004-02-12 Robert Dewar <dewar@gnat.com>
6859 * ali.adb: Remove separating space between parameters on R line. Makes
6860 format consistent with format used by the binder for Set_Globals call.
6862 * atree.ads, atree.adb: Minor reformatting (new function header format)
6864 * bindgen.adb: Add Run-Time Globals documentation section containing
6865 detailed documentation of the globals passed from the binder file to
6868 * gnatls.adb: Minor reformatting
6870 * init.c (__gnat_set_globals): Add note pointing to documentation in
6873 * lib-writ.ads, lib-writ.adb: Remove separating space between
6874 parameters on R line.
6875 Makes format consistent with format used by the binder for Set_Globals
6878 * osint.ads: Add 2004 to copyright notice
6881 * snames.ads: Correct capitalization of FIFO_Within_Priorities
6882 Noticed during code reading, documentation issue only
6884 * usage.adb: Remove junk line for obsolete C switch
6885 Noticed during code reading
6887 2004-02-12 Vincent Celier <celier@gnat.com>
6889 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
6890 extend for each directory, so that multiple /** directories are
6891 extended individually.
6892 (Recursive_Process): Set the default for LANGUAGES to ada
6894 * gprcmd.adb: Define new command "ignore", to do nothing.
6895 Implement new comment "path".
6897 * Makefile.generic: Suppress output when SILENT is set
6898 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
6899 used, so that the correct compiler is invoked.
6900 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
6901 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
6903 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
6905 * Makefile.in: Clean ups and remove obsolete targets.
6907 2004-02-12 Ed Schonberg <schonberg@gnat.com>
6909 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
6910 predicate declared in exp_util.
6912 * exp_util.adb: Add comments.
6914 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
6915 visibility before compiling context of the subunit.
6917 * sem_res.adb (Check_Parameterless_Call): If the context expects a
6918 value but the name is a procedure, do not attempt to analyze as a call,
6919 in order to obtain more telling diagnostics.
6921 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
6922 'Access on parameterless function calls.
6923 (Normalize_Actuals): For a parameterless function call with missing
6924 actuals, defer diagnostic until resolution of enclosing call.
6926 * sem_util.adb (Wrong_Type): If the context type is an access to
6927 subprogram and the expression is a procedure name, suggest a missing
6930 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
6931 Nathanael Nerode <neroden@gcc.gnu.org>
6933 PR ada/6637, PR ada/5911
6934 Merge with libada-branch:
6935 * config-lang.in: Build libada only when ada is built.
6937 2004-02-09 Ed Schonberg <schonberg@gnat.com>
6939 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
6940 for a tagged type, verify that both formals have the same type.
6942 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
6943 temporary when the formal is an in-parameter and the actual a possibly
6946 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
6947 when expansion is disabled, to ensure proper name capture with
6948 overloaded literals. Condition can be of any boolean type, resolve
6951 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
6952 renaming is for a formal subprogram with a default operator name, and
6953 there is a usable operator that is visible at the point of
6956 2004-02-09 Robert Dewar <dewar@gnat.com>
6958 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
6959 rewrite to ignore errors in ali files, intended to allow tools downward
6960 compatibility with new versions of ali files.
6962 * ali.ads: Add new parameter Ignore_Errors
6964 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
6965 duplicating the error message giving the file with restrictions.
6967 * debug.adb: Add debug flag I for gnatbind
6969 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
6970 operators for the case where the operator is a defining operator.
6972 * exp_ch3.adb: Minor reformatting (new function spec format).
6974 * exp_ch4.adb: Add comment for previous change, and make minor
6975 adjustment to loop to always check for improper loop termination.
6976 Minor reformatting throughout (new function spec format).
6978 * gnatbind.adb: Implement -di debug flag for gnatbind
6980 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
6982 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
6984 * lib-load.adb: Fix bad assertion.
6985 Found by testing and code reading.
6988 * lib-load.ads: Minor reformatting.
6990 * lib-writ.adb: There is only one R line now.
6992 * lib-writ.ads: Add documentation on making downward compatible changes
6993 to ali files so old tools work with new ali files.
6994 There is only one R line now.
6995 Add documentation on format incompatibilities (with special GPS note)
6997 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
6999 * par-load.adb: Minor reformatting
7001 * sem_ch8.adb: Fix to error message from last update
7002 Minor reformatting and restructuring of code from last update
7004 * par-prag.adb, snames.adb, snames.ads, snames.h,
7005 sem_prag.adb: Implement pragma Profile.
7007 * stylesw.adb: Implement -gnatyN switch to turn off all style check
7010 * usage.adb: Add line for -gnatyN switch
7012 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
7014 2004-02-09 Albert Lee <lee@gnat.com>
7016 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
7018 2004-02-09 Ed Schonberg <schonberg@gnat.com>
7020 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
7023 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
7024 is nested in an instance that is not frozen yet, to avoid
7025 order-of-elaboration problems in gigi.
7027 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
7028 body the attribute is legal.
7030 2004-02-09 Robert Dewar <dewar@gnat.com>
7032 * s-rident.ads: Minor comment correction
7034 * targparm.adb: Remove dependence on uintp completely. There was
7035 always a bug in Make in that it called Targparm before initializing
7036 the Uint package. The old code appeared to get away with this, but
7037 the new code did not! This caused an assertion error in gnatmake.
7039 * targparm.ads: Fix bad comment, restriction pragmas with parameters
7040 are indeed fully supported.
7042 2004-02-06 Alan Modra <amodra@bigpond.net.au>
7044 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
7046 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
7048 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
7049 with targetm.calls.promote_prototypes.
7051 2004-02-04 Robert Dewar <dewar@gnat.com>
7053 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
7054 ali.ads, gprcmd.adb: Minor reformatting
7056 * bindgen.adb: Output restrictions string for new style restrictions
7059 * impunit.adb: Add s-rident.ads (System.Rident) and
7060 s-restri (System.Restrictions)
7062 * lib-writ.adb: Fix bug in writing restrictions string (last few
7065 * s-restri.ads, s-restri.adb: Change name Restrictions to
7066 Run_Time_Restrictions to avoid conflict with package name.
7067 Add circuit to read and acquire run time restrictions.
7069 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
7071 * restrict.ads, restrict.adb: Use the new restriction
7072 No_Task_Attributes_Package instead of the old No_Task_Attributes.
7074 * sem_prag.adb: No_Task_Attributes is a synonym of
7075 No_Task_Attributes_Package.
7077 * snames.ads, snames.adb: New entry for proper handling of
7080 * s-rident.ads: Adding restriction No_Task_Attributes_Package
7081 (AI-00249) that supersedes the GNAT specific restriction
7084 2004-02-04 Ed Schonberg <schonberg@gnat.com>
7087 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
7088 body, an identifier may be wrapped in an unchecked conversion.
7090 2004-02-04 Vincent Celier <celier@gnat.com>
7092 * lib-writ.ads: Comment update for the W lines
7094 * bld.adb: (Expression): An empty string list is static
7096 * fname-uf.adb: Minor comment update
7098 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
7100 * gnatbind.adb: Initialize Cumulative_Restrictions with the
7101 restrictions on the target.
7103 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
7105 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
7108 2004-02-02 Arnaud Charlet <charlet@gnat.com>
7110 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
7112 2004-02-02 Vincent Celier <celier@gnat.com>
7114 * gprcmd.adb (Check_Args): If condition is false, print the invoked
7115 comment before the usage.
7116 Gprcmd: Fail when command is not recognized.
7117 (Usage): Document command "prefix"
7119 * g-md5.adb (Digest): Process last block.
7120 (Update): Do not process last block. Store remaining characters and
7123 * g-md5.ads (Update): Document that several call to update are
7124 equivalent to one call with the concatenated string.
7125 (Context): Add fields to allow new Update behaviour.
7127 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
7129 When May_Fail is True and no existing file can be found, return No_File.
7131 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
7134 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
7135 spec file name instead on the W line.
7137 2004-02-02 Robert Dewar <dewar@gnat.com>
7139 * ali.adb: Read and acquire info from new format restrictions lines
7141 * bcheck.adb: Add circuits for checking restrictions with parameters
7143 * bindgen.adb: Output dummy restrictions data
7146 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
7147 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
7148 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
7149 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
7150 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
7152 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
7153 the warning message on access to possibly uninitialized variable S)
7154 Minor changes for new restrictions handling.
7156 * gnatbind.adb: Minor reformatting
7157 Minor changes for new restrictions handling
7158 Move circuit for -r processing here from bcheck (cleaner)
7160 * gnatcmd.adb, gnatlink.adb: Minor reformatting
7162 * lib-writ.adb: Output new format restrictions lines
7164 * lib-writ.ads: Document new R format lines for new restrictions
7167 * s-restri.ads/adb: New files
7169 * Makefile.rtl: Add entry for s-restri.ads/adb
7171 * par-ch3.adb: Fix bad error messages starting with upper case letter
7174 * restrict.adb: Major rewrite throughout for new restrictions handling
7175 Major point is to handle restrictions with parameters
7177 * restrict.ads: Major changes in interface to handle restrictions with
7178 parameters. Also generally simplifies setting of restrictions.
7180 * snames.ads/adb: New entry for proper handling of No_Requeue
7182 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
7183 restriction counting.
7184 Other minor changes for new restrictions handling
7186 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
7187 Restriction_Warnings now allows full parameter notation
7188 Major rewrite of Restrictions for new restrictions handling
7190 2004-02-02 Javier Miranda <miranda@gnat.com>
7192 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
7193 syntax rule for object renaming declarations.
7194 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
7195 component definitions.
7197 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
7199 (Array_Type_Declaration): Give support to access components. In addition
7200 it was also modified to reflect the name of the object in anonymous
7201 array types. The old code did not take into account that it is possible
7202 to have an unconstrained anonymous array with an initial value.
7203 (Check_Or_Process_Discriminants): Allow access discriminant in
7205 (Process_Discriminants): Allow access discriminant in non-limited types
7206 Initialize the new Access_Definition field in N_Object_Renaming_Decl
7207 node. Change Ada0Y to Ada 0Y in comments
7209 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
7211 Change Ada0Y to Ada 0Y in comments
7213 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
7214 renamings Change Ada0Y to Ada 0Y in comments
7216 * sem_type.adb (Find_Unique_Type): Give support to the equality
7217 operators for universal access types
7218 Change Ada0Y to Ada 0Y in comments
7220 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
7222 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
7224 (N_Object_Renaming_Declaration): Addition of Access_Definition field
7225 Change Ada0Y to Ada 0Y in comments
7227 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
7228 component definition and object renaming nodes
7229 Change Ada0Y to Ada 0Y in comments
7231 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
7233 * restrict.adb: Use the new restriction identifier
7234 No_Requeue_Statements instead of the old No_Requeue for defining the
7237 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
7238 No_Requeue_Statements.
7240 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
7241 that supersedes the GNAT specific restriction No_Requeue. The later is
7242 kept for backward compatibility.
7244 2004-02-02 Ed Schonberg <schonberg@gnat.com>
7246 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
7247 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
7248 pragma and fix incorrect ones.
7250 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
7251 warning if the pragma is redundant.
7253 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
7255 * 5staprop.adb: Add missing 'constant' keywords.
7257 * Makefile.in: use consistent value for SYMLIB on
7258 platforms where libaddr2line is supported.
7260 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7262 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
7265 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
7267 * init.c (__gnat_install_handler): Setup an alternate stack for signal
7268 handlers in the environment thread. This allows proper propagation of
7269 an exception on stack overflows in this thread even when the builtin
7270 ABI stack-checking scheme is used without support for a stack reserve
7273 * utils.c (create_field_decl): Augment the head comment about bitfield
7274 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
7275 here, because the former is not accurate enough at this point.
7276 Let finish_record_type decide instead.
7277 Don't make a bitfield if the field is to be addressable.
7278 Always set a size for the field if the record is packed, to ensure the
7279 checks for bitfield creation are triggered.
7280 (finish_record_type): During last pass over the fields, clear
7281 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
7282 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
7283 from DECL_BIT_FIELD.
7285 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
7287 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
7288 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
7289 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
7291 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7293 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
7295 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
7296 (ZCX_By_Default): Likewise.
7297 (Front_End_ZCX_Support): Likewise.
7299 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
7300 (Initialize_Lock): Mark Level unreferenced.
7301 (Sleep): Mark Reason unreferenced.
7302 (Timed_Sleep): Likewise.
7304 (Exit_Task): Use Result.
7305 (Check_No_Locks): Mark Self_ID unreferenced.
7307 * 5gtasinf.adb (New_Sproc): Make Attr constant.
7308 (Bound_Thread_Attributes): Make Sproc constant.
7309 (New_Bound_Thread_Attributes): Likewise.
7311 2004-01-26 Ed Schonberg <schonberg@gnat.com>
7313 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
7314 one-dimensional array an slice assignments, when component type is
7317 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
7318 component type is controlled, and control_actions are in effect, use
7319 TSS procedure rather than generating inline code.
7321 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
7322 arrays with controlled components.
7324 2004-01-26 Vincent Celier <celier@gnat.com>
7326 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
7327 command line for the non VMS case.
7329 * gnatlink.adb (Process_Binder_File): When building object file, if
7330 GNU linker is used, put all object paths between quotes, to prevent ld
7331 error when there are unusual characters (such as '!') in the paths.
7333 * Makefile.generic: When there are sources in Ada and the main is in
7334 C/C++, invoke gnatmake with -B, instead of -z.
7336 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
7337 from VMS_Conversion.
7338 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
7339 specification of argument file on the command line.
7341 2004-01-26 Bernard Banner <banner@gnat.com>
7343 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
7345 2004-01-26 Ed Schonberg <schonberg@gnat.com>
7347 * snames.adb: Update copyright notice.
7348 Add info on slice assignment for controlled arrays.
7350 2004-01-23 Robert Dewar <dewar@gnat.com>
7352 * exp_aggr.adb: Minor reformatting
7354 * exp_ch9.adb: Minor code clean up
7356 Fix bad character in comment
7359 * targparm.adb (Get_Target_Parameters): Give clean abort error on
7360 unexpected end of file, along with more detailed message.
7362 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7364 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
7367 * decl.c (copy_alias_set): New function.
7368 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
7370 2004-01-23 Doug Rupp <rupp@gnat.com>
7372 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
7373 lib$${file} in case subsequent character is not a separator.
7375 2004-01-23 Vincent Celier <celier@gnat.com>
7377 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
7378 when the GCC version is at least 3.
7380 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
7381 Remove all "Opt.", to prepare for opt split
7383 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
7384 Extends_All. Set to True when the project parsed is an extending all
7385 project. Fails for importing an extending all project only when the
7386 imported project is an extending all project.
7387 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
7388 depending on the value of Extends_All returned.
7390 * prj-proc.adb (Process): Check that no project shares its object
7391 directory with a project that extends it, directly or indirectly,
7392 including a virtual project.
7393 Check that no project extended by another project shares its object
7394 directory with another also extended project.
7396 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
7397 Kind = N_With_Clause
7399 * prj-tree.ads: Minor reformatting
7400 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
7402 2004-01-23 Ed Schonberg <schonberg@gnat.com>
7404 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
7405 applies to a type with an incomplete view, use full view in Name of
7406 clause, for consistency with uses of Get_Attribute_Definition_Clause.
7408 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
7410 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
7411 SCHED_RR, since other values are not supported by this policy.
7412 (Initialize): Move initialization of mutex attribute to package
7413 elaboration, to prevent early access to this variable.
7415 * Makefile.in: Remove mention of Makefile.adalib, unused.
7417 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
7418 1ssecsta.ads: Removed, unused.
7420 2004-01-21 Javier Miranda <miranda@gnat.com>
7422 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
7423 entity if already built in the current scope.
7425 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
7426 reminder in internal scopes. Required for nested limited aggregates.
7428 2004-01-21 Doug Rupp <rupp@gnat.com>
7430 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
7431 VMS. Replace all occurences of libgnat- and libgnarl- with
7432 libgnat$(hyphen) and libgnarl$(hyphen).
7433 Fixed shared library build problem on VMS.
7435 2004-01-21 Robert Dewar <dewar@gnat.com>
7437 * mlib-prj.adb: Minor reformatting
7439 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
7441 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
7442 'constant' keywords for declaration of pointers that are not modified.
7444 * exp_pakd.adb: Fix English in comment.
7446 2004-01-21 Ed Schonberg <schonberg@gnat.com>
7449 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
7450 copy all attributes of the parent, including the foreign language
7453 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
7456 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
7457 for 'delay until' statement.
7459 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
7461 * Make-lang.in: Replace $(docdir) with doc.
7462 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
7463 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
7464 to use consistent MAKEINFO rule.
7465 (ada.man, ada.srcman): Dummy entry.
7466 (ADA_INFOFILES): Define.
7467 (ada.info, ada.srcinfo): New rules.
7469 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
7471 * utils.c: Update copyright notice, missed in previous change.
7473 2004-01-19 Vincent Celier <celier@gnat.com>
7475 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
7476 args if Bind is True. Set First_ALI, if not already done.
7477 (Build_Library): For Stand Alone Libraries, extract from one ALI file
7478 an eventual --RTS switch, for gnatbind, and all backend switches +
7481 2004-01-19 Robert Dewar <dewar@gnat.com>
7483 * sem_attr.adb, memtrack.adb: Minor reformatting
7485 2004-01-19 Ed Schonberg <schonberg@gnat.com>
7487 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
7488 that rename enumeration literals. This is properly done in sem_eval.
7490 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
7491 to functions that rename enumeration literals.
7493 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
7494 functions that rename enumeration literals.
7496 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
7498 * Make-lang.in (utils.o): Depend on target.h.
7499 * utils.c: Include target.h.
7500 (process_attributes): Use targetm.have_named_sections instead
7501 of ASM_OUTPUT_SECTION_NAME.
7503 2004-01-16 Andreas Jaeger <aj@suse.de>
7505 * Makefile.in: Add $(DESTDIR).
7507 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
7509 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
7510 also when not defining if a Size clause applies. That information is
7513 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
7515 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
7516 symbolic links for the shared gnat run time when needed.
7518 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
7520 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
7521 for writing, and terminate with an error message if not.
7523 2004-01-15 Ed Schonberg <schonberg@gnat.com>
7525 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
7526 warning on an access to subprogram in an instance, when the target
7527 type is declared in the same generic unit.
7528 (Eval_Attribute): If 'access is known to fail accessibility check,
7529 rewrite as a raise statement.
7531 2004-01-15 GNAT Script <nobody@gnat.com>
7533 * Make-lang.in: Makefile automatically updated
7535 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
7537 * Make-lang.in (ada.srcextra): Dummy entry.
7539 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
7541 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
7543 2004-01-13 Ed Schonberg <schonberg@gnat.com>
7545 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
7546 components that are initialized with aggregates.
7548 2004-01-13 Vincent Celier <celier@gnat.com>
7550 * gnatlink.adb (Process_Binder_File): To find directory of shared
7551 libgcc, if "gcc-lib" is not a subdirectory, look for the last
7552 subdirectory "lib" in the path of the shared libgnat or libgnarl.
7554 * make.adb (Gnatmake): If GCC version is at least 3, link with
7555 -shared-libgcc, when there is at least one shared library project.
7557 * opt.ads (GCC_Version): New integer constant.
7559 * adaint.c (get_gcc_version): New function.
7561 2004-01-13 Robert Dewar <dewar@gnat.com>
7563 * sem_dist.adb, sem_res.adb, sem_util.adb,
7564 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
7565 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
7567 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
7569 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
7570 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
7573 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
7575 * misc.c: Remove trailing spaces.
7576 Update copyright notice missed in previous change.
7579 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
7582 * Makefile.generic: Update copyright.
7585 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
7586 of prefix/share/make.
7588 * Makefile.prolog: Update copyright.
7591 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
7593 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
7594 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
7595 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
7598 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
7601 2004-01-12 Javier Miranda <miranda@gnat.com>
7603 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
7604 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
7605 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
7606 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
7607 Component_Definition node.
7609 2004-01-12 Ed Falis <falis@gnat.com>
7611 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
7613 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
7615 * link.c: Change default libgnat kind to STATIC for FreeBSD.
7617 2004-01-12 Bernard Banner <banner@gnat.com>
7619 * Makefile.in: map 86numaux to a-numaux for x86_64
7621 2004-01-12 Ed Schonberg <schonberg@gnat.com>
7623 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
7624 generated to rename a generic actual, go to the actual itself, the
7625 subtype is not a user-visible entity.
7627 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
7628 part is a private subtype, reset the visibility of its full view, if
7629 any, to be consistent.
7632 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
7633 to use a generic package G as a formal package for another generic
7636 2004-01-12 Robert Dewar <dewar@gnat.com>
7638 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
7640 * usage.adb: Remove mention of obsolete -gnatwb switch
7641 Noticed during code reading
7643 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
7645 * 1ssecsta.adb: Minor changes for -gnatwa warnings
7647 2004-01-12 GNAT Script <nobody@gnat.com>
7649 * Make-lang.in: Makefile automatically updated
7651 2004-01-09 Mark Mitchell <mark@codesourcery.com>
7653 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
7655 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7657 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
7659 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
7661 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
7662 Update comment and copyright date.
7663 * stamp-xgnatug: Delete.
7665 2004-01-05 Robert Dewar <dewar@gnat.com>
7667 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
7668 be modified by the binder generated main program if the -D switch is
7671 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
7672 imported functions (since now we expect this to be done for imported
7675 * 5vtaprop.adb: Add several ??? for sections requiring more comments
7676 Minor reformatting throughout
7678 * 5zinit.adb: Minor reformatting
7679 Add 2004 to copyright date
7680 Minor changes to avoid -gnatwa warnings
7681 Correct some instances of using OR instead of OR ELSE (noted while
7684 * sprint.adb: Minor updates to avoid -gnatwa warnings
7686 * s-secsta.ads, s-secsta.adb:
7687 (SS_Get_Max): New function to obtain high water mark for ss stack
7688 Default_Secondary_Stack is not a constant since it may be modified by
7689 the binder generated main program if the -D switch is used.
7691 * switch-b.adb: New -Dnnn switch for binder
7694 Make -gnatg imply all warnings currently in -gnatwa
7696 * vms_conv.adb: Minor reformatting
7697 Add 2004 to copyright notice
7698 Add 2004 to printed copyright notice
7700 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
7701 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
7702 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
7703 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
7704 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
7705 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
7706 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
7707 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
7708 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
7709 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
7710 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
7711 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
7712 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
7713 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
7714 checks.adb, clean.adb, cstand.adb, einfo.ads,
7715 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
7716 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
7717 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
7718 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
7719 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
7720 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
7721 Minor reformatting and code clean ups.
7722 Minor changes to prevent -gnatwa warnings
7724 * ali.adb: Minor reformatting and cleanup of code
7725 Acquire new SS indication of secondary stack use from ali files
7727 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
7728 (since now we expect this to be done for imported functions)
7730 * bindgen.adb: Generate call to modify default secondary stack size if
7733 * bindusg.adb: Add line for new -D switch
7735 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
7736 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
7737 Add circuitry for both records and arrays to avoid gigi
7738 processing if the type involved has non-bit-aligned components
7740 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
7741 N_String_Literal node always references an E_String_Literal_Subtype
7742 entity. This may not be true in the future.
7743 (Possible_Bit_Aligned_Component): Move processing of
7744 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
7746 * exp_ch6.adb (Expand_Thread_Body): Pick up
7747 Default_Secondary_Stack_Size as variable so that we get value modified
7748 by possible -Dnnn binder parameter.
7750 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
7751 (Type_May_Have_Bit_Aligned_Components): New function.
7753 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
7754 (Type_May_Have_Bit_Aligned_Components): New function.
7756 * fe.h: (Set_Identifier_Casing): Fix prototype.
7757 Add declaration for Sem_Elim.Eliminate_Error_Msg.
7760 * freeze.adb (Freeze_Entity): Add RM reference to error message about
7761 importing constant atomic/volatile objects.
7762 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
7763 unless explicit Pure_Function pragma given, to avoid insidious bug of
7764 call to non-pure imported function getting eliminated.
7766 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
7767 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
7768 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
7769 Add 2004 to printed copyright notice
7771 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
7774 * Makefile.rtl: Add entry for g-sestin.o
7775 g-sestin.ads: New file.
7777 * mdll.adb: Minor changes to avoid -gnatwa warnings
7779 * mlib-tgt.adb: Minor reformatting
7781 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
7782 New switch Sec_Stack_Used (GNAT, GNATBIND)
7783 Make Default_Secondary_Stack_Size a variable instead of a constant,
7784 so that it can be modified by the new -Dnnn bind switch.
7786 * rtsfind.adb (Load_Fail): Give full error message in configurable
7787 run-time mode if all_errors mode is set. This was not done in the case
7788 of a file not found, which was an oversight.
7789 Note if secondary stack unit is used by compiler.
7791 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
7792 ineffective elaborate all pragmas on non-visible packages (this
7793 happened when a renamed subprogram was called). Now the elaborate all
7794 always goes on the package containing the renaming rather than the one
7795 containing the renamed subprogram.
7797 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
7798 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
7800 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
7801 has an Etype that references an E_String_Literal.
7802 (Eval_String_Literal): Avoid assumption that N_String_Literal node
7803 always references an E_String_Literal_Subtype entity. This may not
7804 be true in the future.
7806 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
7809 * sem_res.adb (Resolve): Specialize msg for function name used in proc
7812 2004-01-05 Ed Falis <falis@gnat.com>
7814 * g-debuti.adb: Replaced direct boolean operator with short-circuit
7817 2004-01-05 Vincent Celier <celier@gnat.com>
7819 * bld.adb: Minor comment updates
7820 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
7823 * make.adb (Gnatmake): Special process for files to compile/check when
7824 -B is specified. Fail when there are only foreign mains in attribute
7825 Main of the project file and -B is not specified. Do not skip bind/link
7826 steps when -B is specified.
7828 * makeusg.adb: Document new switch -B
7830 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
7832 * switch-m.adb: (Scan_Make_Switches): Process -B switch
7834 * vms_data.ads: Add new GNAT PRETTY qualifier
7835 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
7837 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7839 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
7842 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
7843 Set_Identifier_Casing.
7845 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
7846 has size that overflows.
7848 2004-01-05 Gary Dismukes <dismukes@gnat.com>
7850 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
7851 -gnatwa warning on static condition.
7853 2004-01-05 Doug Rupp <rupp@gnat.com>
7855 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
7857 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
7859 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
7860 all attributes, including read-only attribute.
7862 2004-01-05 Pascal Obry <obry@gnat.com>
7864 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
7865 library naming scheme.
7867 * mlib-prj.adb (Build_Library): Generate different names for the static
7868 or dynamic version of the GNAT runtime. This is needed to support the
7869 new shared library naming scheme.
7870 (Process_Binder_File): Add detection of shared library in binder file
7871 based on the new naming scheme.
7873 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
7874 scheme for the shared runtime libraries.
7877 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
7879 (install-gnatlib): Do not create symlinks for shared libraries.
7880 (gnatlib-shared-default): Idem.
7881 (gnatlib-shared-dual-win32): New target. Not used for now as the
7882 auto-import feature does not support arrays/records.
7883 (gnatlib-shared-win32): Do not create copy for the shared libraries.
7884 (gnatlib-shared-vms): Fix shared runtime libraries names.
7886 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
7887 dependent runtime shared library name.
7889 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
7891 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
7894 2004-01-05 Ed Schonberg <schonberg@gnat.com>
7896 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
7897 protected objects when allocator has a subtype indication, not a
7898 qualified expression. Note that qualified expressions may have to be
7899 checked when limited aggregates are implemented.
7901 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
7903 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
7904 subprogram is imported, remove warning.
7906 2004-01-05 Geert Bosch <bosch@gnat.com>
7908 * s-poosiz.adb: Update copyright notice.
7909 (Allocate): Use Task_Lock to protect against concurrent access.
7910 (Deallocate): Likewise.
7912 2004-01-05 Joel Brobecker <brobecker@gnat.com>
7914 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
7917 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
7919 * gnat_ug.texi: Force a CVS commit by updating copyright.
7920 * gnat_ug_vxw.texi: Regenerate.
7921 * gnat_ug_wnt.texi: Regenerate.
7922 * gnat_ug_vms.texi: Regenerate.
7923 * gnat_ug_unx.texi: Regenerate.
7925 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
7927 * trans.c: Remove uses of "register" specifier in
7928 declarations of local variables.
7930 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
7932 * stamp-xgnatug: New stamp file.
7933 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
7934 (ada/doctools/xgnatug): Add $(build_exeext).
7935 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
7936 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
7938 2003-12-17 Ed Falis <falis@gnat.com>
7940 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
7943 * a-exextr.adb: Add context clause for
7944 Ada.Exceptions.Last_Chance_Handler.
7946 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
7948 * cstand.adb (Create_Standard): Change the way how the declaration of
7949 the Duration type is created (making it the same way as it is for all
7950 the other standard types).
7952 2003-12-17 Robert Dewar <dewar@gnat.com>
7954 * s-crtl.ads: Fix header format
7955 Change Pure to Preelaborate
7957 2003-12-17 Ed Schonberg <schonberg@gnat.com>
7959 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
7960 the expression type only if it is declared in the current unit.
7962 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
7963 are universal and already analyzed, as can occur in constrained
7964 subcomponents that depend on discriminants, when one constraint is a
7967 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
7968 type Any_Fixed is legal as the argument of a conversion, if only one
7969 fixed-point type is in context.
7971 2003-12-17 GNAT Script <nobody@gnat.com>
7973 * Make-lang.in: Makefile automatically updated
7975 2003-12-15 Robert Dewar <dewar@gnat.com>
7977 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
7980 2003-12-15 Vincent Celier <celier@gnat.com>
7982 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
7983 (Gnatchop): Do not set failure status when reporting the number of
7986 2003-12-15 Doug Rupp <rupp@gnat.com>
7988 * s-ctrl.ads: New file.
7990 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
7992 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
7993 (GNATBIND_OBJS): Add ada/s-crtl.o.
7995 * Makefile.in [VMS]: Clean up ifeq rules.
7997 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
7998 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
7999 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
8000 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
8001 s-tasdeb.adb: Update copyright.
8003 Make minor modifications to use System.CRTL declared functions instead
8004 of importing locally.
8006 2003-12-15 GNAT Script <nobody@gnat.com>
8008 * Make-lang.in: Makefile automatically updated
8010 2003-12-11 Ed Falis <falis@gnat.com>
8012 * 5zinit.adb: Clean up.
8014 * 5zintman.adb (Notify_Exception): replaced case statement with a call
8015 to __gnat_map_signal, imported from init.c to support
8016 signal -> exception mappings that depend on the vxWorks version.
8019 Created and exported __gnat_map_signal to support signal -> exception
8020 mapping that is dependent on the VxWorks version.
8021 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
8023 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
8025 * 5wosinte.ads: Link with -mthreads switch.
8027 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
8029 * init.c (__gnat_install_handler [NetBSD]): Set
8030 __gnat_handler_installed, as done on all other platforms.
8031 Remove duplicated code.
8033 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
8035 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
8037 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
8039 * sinfo.ads: Fix inconsistent example code in comment.
8041 2003-12-11 Robert Dewar <dewar@gnat.com>
8043 * a-tiinau.adb: Add a couple of comments
8045 * sem_ch3.adb: Minor reformatting
8048 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
8049 Minor reformatting throughout
8051 2003-12-11 Ed Schonberg <schonberg@gnat.com>
8053 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
8054 bounds of a loop, create a separate block in order to generate proper
8055 cleanup actions to prevent memory leaks.
8057 * sem_res.adb (Resolve_Call): After a call to
8058 Establish_Transient_Scope, the call may be rewritten and relocated, in
8059 which case no further processing is needed.
8061 * sem_util.adb: (Wrong_Type): Refine previous fix.
8062 Fixes ACATS regressions.
8066 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
8069 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
8071 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
8072 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
8075 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
8078 2003-12-08 Robert Dewar <dewar@gnat.com>
8080 * 7sintman.adb: Minor reformatting
8082 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
8083 standard linker options to get standard libraries linked. We now plan
8084 to provide dummy versions of these libraries to match the appropriate
8085 configurable run-time (e.g. if a library is not needed at all, provide
8086 a dummy empty library).
8088 * targparm.ads: Configurable_Run_Time mode no longer affects linker
8089 options (-L parameters and standard libraries). What we plan to do is
8090 to provide dummy libraries where the libraries are not required.
8092 * gnatbind.adb: Minor comment improvement
8094 2003-12-08 Javier Miranda <miranda@gnat.com>
8096 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
8097 aggregate in the parent. Otherwise constants with limited aggregates
8098 are not supported. Add new formal to pass the component type (Ctype).
8099 It is required to call the corresponding IP subprogram in case of
8100 default initialized components.
8101 (Gen_Assign): In case of default-initialized component, generate a
8102 call to the IP subprogram associated with the component.
8103 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
8104 of aggregate with default initialized components.
8105 (Has_Default_Init_Comps): Improve implementation to recursively check
8106 all the present expressions.
8108 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
8109 to indicate that the initialization call corresponds to a
8110 default-initialized component of an aggregate.
8111 In case of default initialized aggregate with tasks this parameter is
8112 used to generate a null string (this is just a workaround that must be
8113 improved later). In case of discriminants, this parameter is used to
8114 generate a selected component node that gives access to the discriminant
8117 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
8118 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
8119 allocated aggregates with default-initialized components.
8121 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
8122 the box notation is used in positional aggregates.
8124 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
8126 * lib.ads: Fix typo in comment
8128 2003-12-08 Vincent Celier <celier@gnat.com>
8130 * prj.adb (Project_Empty): New component Unkept_Comments
8131 (Scan): Remove procedure; moved to Prj.Err.
8133 * prj.ads (Project_Data): New Boolean component Unkept_Comments
8134 (Scan): Remove procedure; moved to Prj.Err.
8136 * prj-dect.adb: Manage comments for the different declarations.
8138 * prj-part.adb (With_Record): New component Node
8139 (Parse): New Boolean parameter Store_Comments, defaulted to False.
8140 Set the scanner to return ends of line and comments as tokens, if
8141 Store_Comments is True.
8142 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
8143 comments are associated with these nodes. Store the node IDs in the
8145 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
8147 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
8148 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
8149 current project. Call Tree.Restore afterwards. Set the various nodes
8150 for comment storage (Next_End, End_Of_Line, Previous_Line,
8153 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
8156 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
8157 to False. When Truncated is True, truncate the string, never go to the
8159 (Write_End_Of_Line_Comment): New procedure
8160 (Print): Process comments for nodes N_With_Clause,
8161 N_Package_Declaration, N_String_Type_Declaration,
8162 N_Attribute_Declaration, N_Typed_Variable_Declaration,
8163 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
8164 Process nodes N_Comment.
8166 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
8167 without comments and there are some comments, set the flag
8168 Unkept_Comments to True.
8169 (Scan): If there are comments, set the flag Unkept_Comments to True and
8171 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
8172 (Next_End_Nodes: New table
8173 (Comment_Zones_Of): New function
8174 (Scan): New procedure; moved from Prj. Accumulate comments in the
8175 Comments table and set end of line comments, comments after, after end
8177 (Add_Comments): New procedure
8178 (Save, Restore, Seset_State): New procedures
8179 (There_Are_Unkept_Comments): New function
8180 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
8181 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
8183 (First_Comment_After, First_Comment_After_End): New functions
8184 (First_Comment_Before, First_Comment_Before_End): New functions
8185 (Next_Comment): New function
8186 (End_Of_Line_Comment, Follows_Empty_Line,
8187 Is_Followed_By_Empty_Line): New functions
8188 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
8189 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
8190 (Set_Next_Comment): New procedure
8191 (Default_Project_Node): Associate comment before if the node can store
8194 * scans.ads (Token_Type): New enumeration value Tok_Comment
8195 (Comment_Id): New global variable
8197 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
8199 (Scan): Store position of start of comment. If comments are tokens, set
8200 Comment_Id and set Token to Tok_Comment when scanning a comment.
8201 (Set_Comment_As_Token): New procedure
8203 * sinput-p.adb: Update Copyright notice
8204 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
8205 that no longer exists.
8207 2003-12-08 Javier Miranda <miranda@gnat.com>
8209 * sem_aggr.adb: Add dependence on Exp_Tss package
8210 Correct typo in comment
8211 (Resolve_Aggregate): In case of array aggregates set the estimated
8212 type of the aggregate before calling resolve. This is needed to know
8213 the name of the corresponding IP in case of limited array aggregates.
8214 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
8215 in case of default initialized array components.
8217 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
8218 types. Required to give support to limited aggregates in generic
8221 2003-12-08 Ed Schonberg <schonberg@gnat.com>
8223 * sem_ch3.adb (Check_Initialization): For legality purposes, an
8224 inlined body functions like an instantiation.
8225 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
8226 until bounds are analyzed, to diagnose premature use of type.
8228 * sem_util.adb (Wrong_Type): Improve error message when the type of
8229 the expression is used prematurely.
8231 2003-12-08 GNAT Script <nobody@gnat.com>
8233 * Make-lang.in: Makefile automatically updated
8235 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
8237 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
8238 they are automatically generated by Make-lang.in and cause nothing but
8239 maintenance troubles.
8241 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
8243 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
8244 version of this unit).
8246 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
8248 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
8249 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
8250 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
8251 the body of System.Interrupt_Management common to several targets.
8252 Update copyright notice when appropriate.
8254 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
8257 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
8258 to ensure that the kernel fills in the interrupted context structure
8259 before calling a signal handler, which is necessary to be able to
8260 unwind past it. Update the copyright notice.
8262 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
8264 * a-elchha.ads: New file.
8266 * a-elchha.adb: New default last chance handler. Contents taken from
8267 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
8269 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
8270 is moved to a-elchha.adb to provide a target-independent default last
8273 * Makefile.rtl: Add a-elchha.o
8275 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
8277 2003-12-05 Ed Schonberg <schonberg@gnat.com>
8279 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
8280 declared in an instance, do not inline the call if the instance is not
8281 frozen yet, to prevent order of elaboration problems.
8283 * sem_prag.adb: Add comments for previous fix.
8285 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
8287 * g-table.adb: Use the right variable in Set_Item.
8288 Update copyright notice.
8290 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
8292 * Makefile.in: Remove unused rules.
8294 2003-12-05 Vincent Celier <celier@gnat.com>
8296 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
8297 -nostdlib. Not needed here after all.
8299 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
8303 * adaint.h, adaint.c, g-os_lib.ads:
8304 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
8305 on some platforms (including FreeBSD), it is a 64 bit value.
8306 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
8308 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
8310 * gnatvsn.ads (Library_Version): Now contain only the relevant
8312 (Verbose_Library_Version): New constant.
8314 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
8315 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
8316 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
8318 * gnatlbr.adb: Clean up: replace Library_Version by
8319 Verbose_Library_Version.
8321 * make.adb, lib-writ.adb, exp_attr.adb:
8322 Clean up: replace Library_Version by Verbose_Library_Version.
8324 * 5lintman.adb: Removed.
8327 Update and simplify computation of LIBRARY_VERSION.
8328 Fix computation of GSMATCH_VERSION.
8329 5lintman.adb is no longer used: replaced by 7sintman.adb.
8331 2003-12-03 Robert Dewar <dewar@gnat.com>
8334 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
8335 name. Modified to consider small non-bit-packed arrays as troublesome
8336 and in need of component-by-component assigment expansion.
8338 2003-12-03 Vincent Celier <celier@gnat.com>
8340 * lang-specs.h: Process nostdlib as nostdinc
8342 * back_end.adb: Update Copyright notice
8343 (Scan_Compiler_Arguments): Process -nostdlib directly.
8345 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
8348 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
8349 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
8350 included in HIE_NONE_TARGET_PAIRS.
8352 2003-12-03 Ed Schonberg <schonberg@gnat.com>
8355 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
8356 is legal in an instance, because legality is cheched in the template.
8359 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
8360 appplied to an unchecked conversion of a formal parameter.
8363 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
8366 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
8368 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
8369 routines. The second one is new functionality to deal with backtracing
8370 through signal handlers.
8371 (unwind): Split into the two separate subroutines above.
8372 Update the documentation, and deal properly with sizeof (REG) different
8373 from sizeof (void*).
8375 2003-12-01 Nicolas Setton <setton@act-europe.fr>
8377 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
8378 so that the debugger can reliably access the value of the parameter,
8379 and therefore is able to display the exception name when an exception
8380 breakpoint is reached.
8382 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
8384 * fmap.adb: Fix typo in warning message.
8386 * g-socket.ads, g-socket.adb: Make Free a visible instance of
8387 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
8389 2003-12-01 Vincent Celier <celier@gnat.com>
8391 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
8393 (Build_Library): Get the switches only if Default_Switches is declared
8396 2003-12-01 Ed Schonberg <schonberg@gnat.com>
8398 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
8399 actuals that are indexed components, reanalyze actual to ensure that
8400 packed array references are properly expanded.
8402 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
8403 attempted assignment to a discriminant.
8405 2003-12-01 Robert Dewar <dewar@gnat.com>
8407 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
8410 * switch-c.adb: Minor reformatting of comments
8412 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
8414 * Makefile.in: Clean ups.
8416 2003-12-01 GNAT Script <nobody@gnat.com>
8418 * Make-lang.in: Makefile automatically updated
8420 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
8422 * 5wsystem.ads: Disable zero cost exception, not ready yet.
8424 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
8426 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
8427 to force serialization.
8429 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
8431 * g-socket.ads, g-socket.adb:
8432 Clarify documentation of function Stream. Introduce a Free procedure
8433 to release the returned Stream once it becomes unused.
8435 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
8437 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
8439 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
8440 since NT 4 cannot handle timeout values that are too large,
8441 e.g. DWORD'Last - 1.
8443 2003-11-26 Ed Schonberg <schonberg@gnat.com>
8446 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
8447 in procedure calls and whose expansion must be deferred.
8449 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
8453 (Build_Derived_Array_Type): Create operator for unconstrained type
8454 if ancestor is unconstrained.
8456 2003-11-26 Vincent Celier <celier@gnat.com>
8458 * make.adb (Project_Object_Directory): New global variable
8459 (Change_To_Object_Directory): New procedure
8460 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
8461 of Change_Dir directly. Do not change working directory to object
8462 directory of main project after each compilation.
8463 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
8465 Change to object directory of main project before binding step.
8466 (Initialize): Initialize Project_Object_Directory to No_Project
8469 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
8470 binding a Stand-Alone Library.
8472 * output.adb: Update Copyright notice
8473 (Write_Char): Output buffer when full
8475 2003-11-26 Robert Dewar <dewar@gnat.com>
8477 * sem_ch13.adb: (Check_Size): Reset size if size is too small
8480 (Check_Size): Fix documentation to include bit-packed array case
8482 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
8484 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
8486 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
8488 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
8491 * utils.c (init_gigi_decls): Change name of built-in setjmp to
8492 __builtin_setjmp, since this is apparently needed by recent
8495 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8497 * adadecode.c: Only include ctype.h if not IN_GCC.
8498 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
8500 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
8503 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
8504 signals and interrupts.
8506 * 5zintman.ads: New File.
8508 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
8509 add exception signals to the set of unmasked signals.
8512 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
8513 between signals and interrupts.
8514 Add to Unblocked_Signal_Mask the set of signals that are in
8518 Adding a check to see whether the Interrupt_ID we want to unmask is in
8519 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
8520 reason is that the index type of the Keep_Unmasked array is not always
8521 Interrupt_ID; it may be a subtype of Interrupt_ID.
8523 2003-11-24 Gary Dismukes <dismukes@gnat.com>
8526 (Remove_Side_Effects): Condition constantness of object created for a
8527 an unchecked type conversion on the constantness of the expression
8528 to ensure the correct value for 'Constrained when passing components
8529 of view-converted class-wide objects.
8531 2003-11-24 Robert Dewar <dewar@gnat.com>
8533 * par-load.adb (Load): Improve handling of misspelled and missing units
8534 Removes several cases of compilation abandoned messages
8536 * lib.adb: (Remove_Unit): New procedure
8538 * lib.ads: (Remove_Unit): New procedure
8540 * lib-load.adb: Minor reformatting
8542 2003-11-24 Vincent Celier <celier@gnat.com>
8545 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
8546 (Marking_Label): Label to mark processed source files. Incremented for
8548 (Gnatmake): Increase Marking_Labet for each executable
8549 (Is_Marked): Compare against marking label
8550 (Mark): Mark with marking label
8552 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
8555 Move the declaration of the TSD for System.Threads to System.Soft_Links.
8558 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
8559 (rts-cert): build a single relocatable object for the run-time lib.
8562 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
8565 Use gnatls rather than gcc to obtain the location of GNAT RTL for
8568 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
8570 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
8571 can not use it as before (that is, as a variable) when dumping it into
8572 the tree file. Add a local variable to store the result of this
8573 function and to be used as the string to be written into the tree.
8575 * scn.adb (Initialize_Scanner): Add comments explaining the recent
8578 * sinput.adb (Source_First, Source_Last): In case of
8579 Internal_Source_File, replace returning attributes of
8580 Internal_Source_Ptr (which is wrong) with returning attributes of
8583 2003-11-24 Ed Schonberg <schonberg@gnat.com>
8586 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
8587 used for implicit concatenation operators.
8591 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
8592 task bodies that are in the scope of a Suppress pragma.
8593 (Check_A Call): Use the flag to prevent spurious elaboration checks.
8595 * sinfo.ads, sinfo.adb:
8596 New flag No_Elaboration_Check on function/procedure calls, to properly
8597 suppress checks on calls in task bodies that are within a local suppress
8601 (Expand_Concatenate_Other): Use the proper integer type for the
8602 expression for the upper bound, to avoid universal_integer computations
8605 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
8607 * .cvsignore: Delete.
8609 2003-11-21 Andreas Schwab <schwab@suse.de>
8611 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
8613 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
8615 * 5wsystem.ads: Enable zero cost exception.
8617 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
8619 * 5ztiitho.adb: Remove an unreferenced variable.
8621 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
8623 * adaint.c: For FreeBSD, use mkstemp.
8625 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
8627 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
8629 2003-11-21 Robert Dewar <dewar@gnat.com>
8631 * bld.adb: Remove useless USE of gnatvsn
8633 * gnatchop.adb: Minor reformatting
8634 Clean up version handling to be more consistent
8636 * gnatxref.adb: Minor reformatting
8638 * gprcmd.adb: Minor reformatting
8639 Fix output of copyright to be more consistent with other tools
8641 2003-11-21 Vincent Celier <celier@gnat.com>
8643 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
8645 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
8647 * atree.adb (Initialize): Add initializations for global variables
8648 used in New_Copy_Tree.
8650 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
8651 Internal_Source_File as the actual).
8652 Put the set of statements creating Any_Character before the set of
8653 statements creating Any_Array to have Any_Character fully initialized
8654 when it is used in creating Any_Array.
8656 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
8657 not call Scan in case if the actual is Internal_Source_File
8658 Add 2003 to copyright note.
8660 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
8661 processing Internal_Source_File.
8663 * types.ads: Add the constant Internal_Source_File representing the
8664 source buffer for artificial source-code-like strings created within
8665 the compiler (the definition of Source_File_Index is changed).
8667 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
8669 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
8670 56system.ads: New file, FreeBSD version.
8672 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
8674 * Make-lang.in (ada.extraclean): Delete.
8676 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
8678 * gnatmem.adb: Clean up verbose output.
8680 * gprcmd.adb: Change copyright to FSF.
8682 2003-11-19 Vincent Celier <celier@gnat.com>
8684 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
8685 and Version (ignored).
8687 * symbols.ads: (Policy): New type
8688 (Initialize): New parameter Reference, Symbol_Policy and
8690 Remove parameter Force.
8693 * snames.ads, snames.adbadb: New standard names
8694 Library_Reference_Symbol_File and Library_Symbol_Policy
8697 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
8701 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
8703 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
8705 * prj.adb: (Project_Empty): New component Symbol_Data
8707 * prj.ads: (Policy, Symbol_Record): New types
8708 (Project_Data): New component Symbol_Data
8711 New attributes Library_Symbol_File, Library_Symbol_Policy and
8712 Library_Reference_Symbol_File.
8715 (Ada_Check): When project is a Stand-Alone library project, process
8716 attribute Library_Symbol_File, Library_Symbol_Policy and
8717 Library_Reference_Symbol_File.
8719 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
8720 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
8721 5sml-tgt.adb (Build_Dynamic_Library): New parameter
8722 Symbol_Data (ignored).
8724 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
8725 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
8726 functions Option_File_Name and Version_String. Set new options of
8727 gnatsym related to symbol file, symbol policy and reference symbol
8731 Extensive modifications to take into account the reference symbol file,
8732 the symbol policy, the library version and to put in the symbol file the
8733 minor and major IDs.
8735 * bld.adb (Process_Declarative_Items): Put second argument of
8736 gprcmd to_absolute between single quotes, to avoid problems with
8739 * bld-io.adb: Update Copyright notice.
8740 (Flush): Remove last character of a line, if it is a back slash, to
8741 avoid make problems.
8744 Implement new scheme with reference symbol file and symbol policy.
8746 * g-os_lib.ads: (Is_Directory): Clarify comment
8748 2003-11-19 Robert Dewar <dewar@gnat.com>
8750 * atree.adb: Move New_Copy_Tree global variables to head of package
8752 * errout.adb: Minor reformatting
8754 2003-11-19 Javier Miranda <miranda@gnat.com>
8756 * sem_ch4.adb: (Diagnose_Call): Improve error message.
8757 Add reference to Ada0Y (AI-50217)
8759 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
8760 sem_util.adb: Add reference to AI-50217
8762 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
8764 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
8766 * sem_aggr.adb: Complete documentation of AI-287 changes
8768 * par-ch4.adb: Document previous changes.
8770 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
8771 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
8774 * exp_aggr.adb: Add references to AI-287 in previous changes
8776 2003-11-19 Ed Schonberg <schonberg@gnat.com>
8779 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
8780 in the rewriting is the result of an inlined call.
8782 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
8783 parameter is a type conversion, use original node to construct the
8784 post-call assignment, because expression may have been rewritten, e.g.
8785 if it is a packed array.
8788 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
8789 body, just as it is in an instance.
8790 Categorization routines
8792 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
8793 Instantiate_Object): Set proper sloc reference for message on missing
8796 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
8798 * Makefile.in: Add FreeBSD libgnat pairs.
8800 * usage.adb: Fix typo in usage message.
8802 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
8804 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
8805 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
8807 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
8809 * s-thread.adb: This file is now a dummy implementation of
8812 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
8814 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
8816 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
8818 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
8819 instanciation references in the parent type description.
8821 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8823 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
8825 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
8826 TYPE_PRECISION directly from esize.
8828 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
8831 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
8833 * init.c: Initialization routines for FreeBSD
8835 * link.c: Link info for FreeBSD
8837 * sysdep.c: Add the case of FreeBSD
8839 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
8841 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
8842 already called in System.Threads.
8844 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
8845 environment task, as it has been moved to System.Threads.Initialization.
8847 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
8849 * adaint.c (__gnatlib_install_locks): Only reference
8850 __gnat_install_locks on VMS, since other platforms can avoid using
8851 --enable-threads=gnat
8853 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8855 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
8857 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
8858 TYPE_PACKED_ARRAY_TYPE_P.
8859 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
8861 Part of PR ada/12806
8862 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
8863 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
8865 2003-11-17 Vincent Celier <celier@gnat.com>
8867 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
8869 Do not set exit status to Failure when Warning is True.
8870 (Gnatchop): Make errors "no compilation units found" and
8871 "no source files written" warnings only.
8873 * make.adb (Gnatmake): When using a project file, set
8874 Look_In_Primary_Dir to False.
8875 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
8876 and Local_Configuration_Pragmas in the project where they are declared
8877 not an extending project which might have inherited them.
8879 * osint.adb (Locate_File): If Name is already an absolute path, do not
8880 look for a directory.
8882 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
8883 -gnats (Check_Syntax) is used, issue only a warning, not an error.
8885 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
8886 in objects of type Variable_Value.
8888 * prj.ads: (Variable_Value): New component Project
8890 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
8891 is in a project extended by Project.
8893 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
8894 Project of Variable_Values to this new parameter value.
8895 (Expression): Set component Project of Variable_Values.
8896 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
8897 Set the component Project in array elements.
8899 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
8901 * errout.adb: (Initialize): Add initialization for error nodes.
8903 * sem_ch12.adb (Initialize): Add missing initializations for
8904 Exchanged_Views and Hidden_Entities.
8906 2003-11-17 Ed Schonberg <schonberg@gnat.com>
8908 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
8909 already instantiated tree for use in subsequent inlining.
8910 (Analyze_Associations, Instantiate_Formal_Subprogram,
8911 Instantiate_Object): improve error message for mismatch in
8914 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
8915 instantiations of subprograms declared in instances.
8917 2003-11-17 Javier Miranda <miranda@gnat.com>
8919 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
8920 executed only under the Extensions_Allowed flag.
8922 2003-11-17 Robert Dewar <dewar@gnat.com>
8924 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
8926 (Address_Image): Fix bug of returning 0x instead of 0x0
8927 Minor reformatting (function specs).
8929 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
8930 (missed case of 33-63)
8932 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
8934 * s-thread.adb: Add comments for pragma Restriction
8936 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
8937 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
8939 2003-11-17 Ed Falis <falis@gnat.com>
8941 * s-thread.adb: Added No_Tasking restriction for this implementation.
8943 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
8945 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
8946 instanciation references in the parent type description.
8948 2003-11-17 GNAT Script <nobody@gnat.com>
8950 * Make-lang.in: Makefile automatically updated
8952 2003-11-16 Jason Merrill <jason@redhat.com>
8954 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
8955 and TAGS files that include them for each front end.
8957 2003-11-14 Andreas Jaeger <aj@suse.de>
8959 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
8960 is the canonical version.
8961 * misc.c (gnat_handle_option): Likewise.
8963 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
8965 * 5nsystem.ads: New file for x86_64-linux-gnu.
8967 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
8969 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
8971 * comperr.adb: Fix logic in previous change.
8973 2003-11-13 Vincent Celier <celier@gnat.com>
8975 * 5bml-tgt.adb (Build_Dynamic_Library): Use
8976 Osint.Include_Dir_Default_Prefix instead of
8977 Sdefault.Include_Dir_Default_Name.
8979 * gnatlbr.adb: Update Copyright notice
8980 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
8981 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
8982 instead of Sdefault.Object_Dir_Default_Name
8985 (Process_Binder_File): Never suppress the option following -Xlinker
8988 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
8989 Sdefault.Object_Dir_Default_Name.
8991 * osint.ads, osint.adb:
8992 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
8995 * vms_conv.ads: Minor reformating
8996 Remove GNAT STANDARD and GNAT PSTA
8999 Allow GNAT MAKE to have several files on the command line.
9000 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
9001 Sdefault.Object_Dir_Default_Name.
9003 Remove data for GNAT STANDARD
9006 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
9007 Remove data for GNAT STANDARD
9008 Remove options and documentation for -gnatwb/-gnatwB: these warning
9009 options no longer exist.
9011 2003-11-13 Ed Falis <falis@gnat.com>
9013 * 5zthrini.adb: (Init_RTS): Made visible
9016 (Register): Removed unnecessary call to taskVarGet that checked whether
9017 an ATSD was already set as a task var for the argument thread.
9020 Updated comment to reflect that this is a VxWorks version
9021 Added context clause for System.Threads.Initialization
9022 Added call to System.Threads.Initialization.Init_RTS
9024 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
9027 (Init_RTS): New procedure, for the initialization of the run-time lib.
9030 Remove dependancy on System.Init, so that this file can be used in the
9031 AE653 sequential run-time lib.
9033 2003-11-13 Robert Dewar <dewar@gnat.com>
9035 * bindgen.adb: Minor reformatting
9037 2003-11-13 Ed Schonberg <schonberg@gnat.com>
9040 (Apply_Discriminant_Check): Do no apply check if target type is derived
9041 from source type with no applicable constraint.
9044 (Ensure_System_Dependency): Do not apply the style checks that may have
9045 been specified for the main unit.
9048 (Find_Selected_Component): Further improvement in error message, with
9052 (Resolve): Handle properly the case of an illegal overloaded protected
9055 2003-11-13 Javier Miranda <miranda@gnat.com>
9058 (Has_Default_Init_Comps): New function to check the presence of
9059 default initialization in an aggregate.
9060 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
9061 extension aggregate of a limited record. In addition, a new formal
9062 was added to do not initialize the record controller (if any) during
9063 this recursive expansion of ancestors.
9064 (Init_Controller): Add support for limited record components.
9065 (Expand_Record_Aggregate): In case of default initialized components
9066 convert the aggregate into a set of assignments.
9068 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
9069 describing the new syntax.
9070 Nothing else needed to be done because this subprogram delegates part of
9071 its work to P_Precord_Or_Array_Component_Association.
9072 (P_Record_Or_Array_Component_Association): Give support to the new
9073 syntax for default initialization of components.
9076 (Resolve_Aggregate): Relax the strictness of the frontend in case of
9078 (Resolve_Record_Aggregate): Give support to default initialized
9080 (Get_Value): In case of default initialized components, duplicate
9081 the corresponding default expression (from the record type
9082 declaration). In case of default initialization in the *others*
9083 choice, do not check that all components have the same type.
9084 (Resolve_Extension_Aggregate): Give support to limited extension
9088 (Check_Initialization): Relax the strictness of the front-end in case
9089 of aggregate and extension aggregates. This test is now done in
9090 Get_Value in a per-component manner.
9092 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
9093 expression corresponds to a limited aggregate. This test is now done
9096 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
9099 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
9100 present in an N_Component_Association node
9102 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
9104 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
9105 type-conformant entry only if they are homographs.
9107 2003-11-13 GNAT Script <nobody@gnat.com>
9109 * Make-lang.in: Makefile automatically updated
9111 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9113 * adadecode.c: Use <> form of include for ctype.h.
9114 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
9116 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9118 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
9119 Works around PR middle-end/6552.
9121 2003-11-10 Ed Falis <falis@gnat.com>
9123 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
9125 * 5zinit.adb: (Install_Handler): Moved back to spec
9126 (Install_Signal_Handlers): Deleted
9128 * 5zthrini.adb: Added context clause for System.Storage_Elements
9129 (Register): Only handles creation of taskVar; initialization moved to
9131 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
9132 Added declaration of environment task secondary stack and
9135 * s-thread.adb: Implement bodies for thread body processing
9138 Added comment identifying supported targets for pragma Thread_Body.
9140 2003-11-10 Pascal Obry <obry@gnat.com>
9142 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
9146 (Open): Properly check for string length before copying into the buffer.
9147 Raises Name_Error if buffer is too small. Note that this was a potential
9150 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
9152 * bindgen.adb, comperr.adb: Code clean ups.
9153 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
9155 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
9157 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
9159 2003-11-10 Vincent Celier <celier@gnat.com>
9162 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
9165 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
9167 * prj.adb: (Project_Empty): Add new boolean component Virtual
9169 * prj.ads: (Virtual_Prefix): New constant string
9170 (Project_Data): New boolean component Virtual
9172 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
9173 a library project is extended by a virtual extending project.
9176 Modifications throughout to implement extending-all project, including:
9177 (Virtual_Hash, Processed_Hash): New hash tables
9178 (Create_Virtual_Extending_Project): New procedure
9179 (Look_For_Virtual_Projects_For): New procedure
9182 (Process): After checking the projects, if main project is an
9183 extending-all project, set the object directory of all virtual extending
9184 project to the object directory of the main project.
9185 Adjust error message when a virtual extending project has the same
9186 object directory as an project being extended.
9187 (Recursive_Process): If name starts with the virtual prefix, set Virtual
9188 to True in the project data.
9191 (Default_Project_Node): Add new boolean component Extending_All
9192 (Is_Extending_All): New function
9193 (Set_Is_Extending_All): New procedure
9195 * prj-tree.ads: (Is_Extending_All): New function
9196 (Set_Is_Extending_All): New procedure
9197 (Project_Node_Record): New boolean component Extending_All
9199 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
9202 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
9204 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
9205 "gprcmd prefix" to define it.
9207 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
9209 * einfo.ads: Fix a typo and remove an extraneous word in comments.
9212 (Create_Dummy_Package_Unit): Set the scope of the entity for the
9213 created dummy package to Standard_Standard, not to itself, to
9214 defend other parts of the front-end against encoutering a cycle in
9218 (Analyze_With_Clause): When setting the entities for the successive
9219 N_Expanded_Names that constitute the name of a child unit, do not
9220 attempt to go further than Standard_Standard in the chain of scopes.
9221 This case arises from the placeholder units created by
9222 Create_Dummy_Package_Unit in the case of a with_clause for a
9223 nonexistent child unit.
9225 2003-11-10 Ed Schonberg <schonberg@gnat.com>
9228 (Expand_Thread_Body): Place subprogram on scope stack, so that new
9229 declarations are given the proper scope.
9232 (Check_Expr_Constants): Reject an expression that contains a constant
9233 created during expansion, and that appears after the object to which
9234 the address clause applies.
9236 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
9237 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
9238 that uses 'Range of a function call with controlled components, so
9239 that the function result can be finalized before starting the loop.
9242 (Find_Selected_Component): Improve error message when prefix is
9243 an implicit dereference of an incomplete type.
9245 2003-11-10 Robert Dewar <dewar@gnat.com>
9247 * opt.ads: New Print_Standard flag for -gnatS switch
9249 * sem_ch13.adb: Remove some additional checks for unaligned arrays
9251 * cstand.adb (Create_Standard): Print out package standard if -gnatS
9254 * debug.adb: Update doc for -gnatds to discuss relationship with new
9257 * sinfo.adb: Add new field Entity_Or_Associated_Node
9259 * sinfo.ads: Add new field Entity_Or_Associated_Node
9260 Update documentation for Associated_Node and Entity fields to clarify
9261 relationship and usage.
9264 (Write_Id): Properly process Associated_Node field in generic template
9267 Recognize new -gnatS switch for printing package Standard
9268 This replaces gnatpsta
9271 Add line for new -gnatS switch for printing package Standard
9272 This replaces gnatpsta
9274 2003-11-10 Andreas Jaeger <aj@suse.de>
9276 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
9279 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
9281 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
9284 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
9286 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
9289 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
9291 * sysdep.c: Add handling of cygwin.
9293 2003-11-10 GNAT Script <nobody@gnat.com>
9295 * Make-lang.in: Makefile automatically updated
9297 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
9300 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
9301 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
9302 Replace GNAT_ROOT by GCC_ROOT.
9304 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
9306 2003-11-06 Zack Weinberg <zack@codesourcery.com>
9308 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
9309 and update for changed meaning of GET_MODE_BITSIZE.
9311 2003-11-04 Doug Rupp <rupp@gnat.com>
9313 * sysdep.c: Problem discovered during IA64 VMS port.
9314 [VMS] #include <unixio.h> to get proper prototypes.
9317 Issues discovered/problems fixed during IA64 VMS port.
9318 [VMS] #define _POSIX_EXIT for proper semantics.
9319 [VMS] #include <unixio.h> for proper prototypes.
9320 [VMS] (fork): #define IA64 version.
9321 (__gnat_os_exit): Remove unnecessary VMS specific code.
9323 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9325 Part of PR ada/12806
9327 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
9331 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
9334 * targtyps.c, decl.c, misc.c,
9335 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
9336 routines to work around change in FP sizing semantics in GCC.
9339 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
9341 * gigi.h: (enumerate_modes): New function.
9343 * Make-lang.in: (ada/misc.o): Add real.h.
9345 * misc.c: (enumerate_modes): New function.
9347 2003-11-04 Robert Dewar <dewar@gnat.com>
9349 * 3vtrasym.adb: Minor reformatting
9350 Use terminology encoded/decoded name, rather than C++ specific notion
9351 of mangling (this is the terminology used throughout GNAT).
9353 * einfo.h: Regenerated
9355 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
9358 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
9360 * par-prag.adb: Add dummy entry for Thread_Body pragma
9363 Add entries for System.Threads entities for thread body processing
9366 (Analyze_Pragma, Access attributes): Check these are not applied to a
9367 thread body, since this is not permitted
9369 * sem_prag.adb: Add processing for Thread_Body pragma.
9373 (Resolve_Call): Check for incorrect attempt to call a thread body
9374 procedure with a direct call.
9376 * snames.ads, snames.adb: Add entry for Thread_Body pragma
9377 Add names associated with thread body expansion
9379 * snames.h: Add entry for Thread_Body pragma
9381 * s-thread.adb: Add entries for thread body processing
9382 These are dummy bodies so far
9384 * s-thread.ads: Add documentation on thread body handling.
9385 Add entries for thread body processing.
9387 2003-11-04 Javier Miranda <miranda@gnat.com>
9390 (Build_Limited_Views): Return after posting an error in case of limited
9391 with_clause on subprograms, generics, instances or generic renamings
9392 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
9393 on subprograms, generics, instances or generic renamings
9395 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
9397 * raise.c (setup_to_install): Correct mistake in last revision; two
9398 arguments out of order.
9400 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
9401 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
9402 notice, missed in previous change.
9403 Remove trailing blanks and other style errors introduced in previous
9406 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
9408 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
9409 rid of the wrapper for a LJM type, ensuring we don't do that if the
9410 field is addressable. This avoids potential low level type view
9411 mismatches later on, for instance in a by-reference argument passing
9414 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9416 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
9417 aligned at byte boundary.
9419 2003-11-04 Joel Brobecker <brobecker@gnat.com>
9421 * decl.c (components_to_record): Do not delete the empty variants from
9422 the end of the union type.
9424 2003-11-04 Ed Schonberg <schonberg@gnat.com>
9426 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
9427 operation for a derived type, an explicit declaration may use a local
9430 2003-11-04 Vincent Celier <celier@gnat.com>
9432 * make.adb (Gnatmake): Allow main sources on the command line with a
9433 library project when it is only for compilation (no binding or
9436 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9438 * Makefile.in: Remove many duplicate variables.
9440 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
9442 * Make-lang.in (dvi): Move targets to $(docobjdir).
9443 (gnat_ug_vms.dvi): Simplify rule and adjust target.
9444 (gnat_ug_wnt.dvi): Likewise.
9445 (gnat_ug_unx.dvi): Likewise.
9446 (gnat_ug_vxw.dvi): Likewise.
9447 (gnat_rm.dvi): Likewise.
9448 (gnat-style.dvi): Likewise.
9450 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
9452 * gigi.h: Missed commit from update for C90.
9454 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
9456 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
9458 2003-10-31 Andreas Schwab <schwab@suse.de>
9460 * raise.c (get_action_description_for): Fix typo in last change.
9462 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
9465 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
9466 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
9468 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
9470 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
9471 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
9472 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
9473 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
9474 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
9476 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
9479 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
9480 numbers when symbol name is too long.
9482 2003-10-30 Ed Falis <falis@gnat.com>
9484 * g-signal.ads, g-signal.adb: New files
9486 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
9488 * Makefile.rtl: Introduce GNAT.Signals
9490 2003-10-30 Robert Dewar <dewar@gnat.com>
9492 * freeze.adb: Minor reformatting
9494 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
9496 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
9497 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
9498 New handling of Id_Check parameter to improve recognition of keywords
9499 used as identifiers.
9500 Update copyright notice to include 2003
9502 2003-10-29 Robert Dewar <dewar@gnat.com>
9504 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
9505 sem_ch10.adb: Minor reformatting
9507 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
9508 (Expand_Assign_Record): Test right hand side for bit unaligned as well
9510 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
9512 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
9513 Support for TBK$SYMBOLIZE-based symbolic traceback.
9515 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
9518 Revert previous change, that did not work well when pragma No_Run_Time
9519 was used in conjunction with a run-time other than ZFP.
9521 2003-10-29 Vincent Celier <celier@gnat.com>
9524 (Gnatmake): When there are no Ada mains in attribute Main, disable the
9525 bind and link steps only is switch -z is not used.
9527 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
9529 * Makefile.generic: Remove duplicated setting of CC.
9531 * Makefile.prolog: Set CC to gcc by default, to override make's
9534 * einfo.h: Regenerated.
9536 2003-10-29 Ed Schonberg <schonberg@gnat.com>
9538 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
9539 current body, after compiling subunit.
9541 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
9542 when in deleted code, because gigi needs properly ordered freeze
9543 actions to annotate types.
9545 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
9546 prevent the premature freezing of record type that contains
9547 subcomponents with a private type that does not yet have a completion.
9549 2003-10-29 Javier Miranda <miranda@gnat.com>
9552 (Analyze_Package_Instantiation): Check that instances can not be used in
9553 limited with_clauses.
9556 (Analyze_Package_Renaming): Check that limited withed packages cannot
9557 be renamed. Improve text on error messages related to limited
9560 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
9562 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
9563 Update copyright notice.
9565 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
9566 (Install_Limited_Context_Clauses): New subprogram that isolates all the
9567 checks required for limited context_clauses and installs the limited
9569 (Install_Limited_Withed_Unit): Complete its documentation.
9570 (Analyze_Context): Check that limited with_clauses are only allowed in
9572 (Install_Context): Call Install_Limited_Context_Clauses after the
9573 parents have been installed.
9574 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
9575 package as 'From_With_Type'; this mark indicates that the limited view
9576 is installed. Used to check bad usages of limited with_clauses.
9577 (Build_Limited_Views): Do not add shadow entities to the scope's list
9578 of entities. Do not add real entities to the Non_Limited_Views chain.
9579 Improve error notification.
9580 (Remove_Context_Clauses): Remove context clauses in two phases:
9581 limited views first and regular views later (to maintain the
9583 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
9584 its visible entities.
9586 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
9588 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
9589 with any type that Is_Fixed_Point_Type.
9591 * sinfo.ads: Fix documentation for Associated_Node attribute.
9593 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
9595 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
9596 both '-gnatc' and '-gnatt' are specified.
9598 * atree.adb (Initialize): Add initialization for Node_Count (set to
9601 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9603 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
9604 do not consider as Pure.
9606 Part of implementation of function-at-a-time:
9608 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
9609 (tree_transform): Add new argument to build_component_ref.
9610 (tree_transform, case N_Assignment_Statement): Make and return an
9612 (tree_transform): If result IS_STMT, set flags and return it.
9613 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
9615 * utils2.c (build_simple_component_ref, build_component_ref): Add new
9617 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
9618 (build_allocator): Likewise.
9620 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
9621 Add new arg to build_component_ref.
9622 (maybe_unconstrained_array, unchecked_convert): Likewise.
9624 * ada-tree.def (EXPR_STMT): New code.
9626 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
9628 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
9629 build_component_ref calls.
9631 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
9633 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
9634 (build_component_ref): Add new argument, NO_FOLD_P.
9636 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
9638 * Makefile.generic: Add missing substitution on object_deps handling.
9641 * Make-lang.in (check-ada): Enable ACATS test suite.
9643 2003-10-27 Robert Dewar <dewar@gnat.com>
9646 (Freeze_Array_Type): We do not need an initialization routine for types
9647 derived from String or Wide_String. They should be treated the same
9648 as String and Wide_String themselves. This caused problems with the
9649 use of Initialize_Scalars.
9652 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
9653 composites. This allows use of component clauses that are not byte
9657 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
9658 is an attempt to pack an array of atomic objects.
9660 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
9662 2003-10-27 Pascal Obry <obry@gnat.com>
9665 (Basename): Check for drive letters in a pathname only on DOS based OS.
9667 2003-10-27 Vincent Celier <celier@gnat.com>
9670 (Gnatmake): When unable to change dir to the object dir, display the
9671 content of the parent dir of the obj dir, to try to understand why this
9674 2003-10-27 GNAT Script <nobody@gnat.com>
9676 * Make-lang.in: Makefile automatically updated
9678 2003-10-27 Ed Schonberg <schonberg@gnat.com>
9681 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
9682 should not be done in Save/Restore_Scope_Stack, because it is performed
9686 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
9687 whether use clauses should be removed/restored.
9690 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
9691 whether use clauses should be removed/restored.
9693 2003-10-26 Andreas Jaeger <aj@suse.de>
9695 * Makefile.in: Remove duplicated lines.
9697 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
9699 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
9700 minimize the differences with ACT tree.
9702 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
9703 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
9704 Gnatvsn.Gnat_Static_Version_String to reduce differences between
9707 2003-10-24 Pascal Obry <obry@gnat.com>
9709 * adadecode.c (ostrcpy): New function.
9710 (__gnat_decode): Use ostrcpy of strcpy.
9711 (has_prefix): Set first parameter a const.
9712 (has_suffix): Set first parameter a const.
9713 Update copyright notice. Fix source name in header.
9714 Removes a trailing space.
9717 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
9720 Remove the test against being in No_Run_Time_Mode before generating a
9721 call to Register_Tag. It is redundant with the test against the
9722 availability of the function Register_Tag.
9724 2003-10-24 Vincent Celier <celier@gnat.com>
9726 * g-catiio.adb: (Month_Name): Correct spelling of February
9728 * make.adb: (Mains): New package
9729 (Initialize): Call Mains.Delete
9730 (Gnatmake): Check that each main on the command line is a source of a
9731 project file and, if there are several mains, each of them is a source
9732 of the same project file.
9733 (Gnatmake): When a foreign language is specified in attribute Languages,
9734 no main is specified on the command line and attribute Mains is not
9735 empty, only build the Ada main. If there is no Ada main, just compile
9736 the Ada sources and their closure.
9737 (Gnatmake): If a main is specified on the command line with directory
9738 information, check that the source exists and, if it does, that the path
9739 is the actual path of a source of a project.
9742 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
9743 Full_Path is True, return the full path instead of the simple file name.
9744 (Project_Of): New function
9747 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
9749 (Project_Of): New function
9751 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
9754 Ensure objects of main project are always checked and rebuilt if needed.
9755 Set CC to gcc by default.
9756 Prepare new handling of link by creating a global archive (not activated
9759 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
9760 stringt.h: Update copyright notice. Remove trailing blanks.
9761 Fix source name in header.
9763 2003-10-24 Robert Dewar <dewar@gnat.com>
9765 * sem_ch12.adb: Minor reformatting
9768 Minor reformatting (including new function return style throughout)
9771 Minor reformatting (including new function return style throughout)
9773 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
9775 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
9776 stringt.h: Update copyright notice. Remove trailing blanks.
9777 Fix source name in header.
9779 2003-10-24 GNAT Script <nobody@gnat.com>
9781 * Make-lang.in: Makefile automatically updated
9783 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
9785 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
9786 stringt.h: Convert to ISO C90 declarations and definitions.
9788 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
9791 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
9792 External_Tag attribute definition clauses.
9794 2003-10-23 Ed Schonberg <schonberg@gnat.com>
9797 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
9798 child unit, generate a fully qualified name to avoid spurious errors
9799 when the context contains renamings of different child units with
9800 the same simple name.
9802 * exp_dbug.ads: Add documentation on name qualification for renamings
9805 2003-10-23 Robert Dewar <dewar@gnat.com>
9807 * g-regpat.ads, g-regpat.adb: Minor reformatting
9809 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
9811 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
9813 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9815 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
9818 * urealp.h: (Machine): Update to proper definition.
9820 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
9822 * init.c, adaint.c: Minor reformatting.
9824 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
9826 * adaint.c (w32_epoch_offset): Define static const at file level.
9827 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
9828 rather than t_create, t_access in call to GetFileTime. Use union
9829 to convert between FILETIME and unsigned long long.
9830 (__gnat_file_time_name): Test for invalid file handle.
9831 (__gnat_set_filetime_name): Support win32 targets using
9834 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
9836 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
9838 * ctrl_c.c (__gnat_int_handler): Remove declaration.
9840 * decl.c (creat_concat_name): Const-ify prefix.
9842 * adaint.c: Include ctype.h if __MINGW32__.
9843 (__gnat_readlink): Mark arguments as possibly unused.
9844 (__gnat_symlink): Likewise.
9845 (__gnat_is_symbolic_link): Likewise.
9846 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
9848 (__gnat_file_time_name): Don't declare struct stat statbuf when
9850 (__gnat_is_absolute_path): Add parenthesis around condition of
9851 'if' statement to avoid warning.
9852 (__gnat_plist_init): Specify void as parameter.
9853 (plist_enter): Likewise.
9854 (plist_leave): Likewise.
9855 (remove_handle): Make static. Initialize prev.
9857 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
9859 * Makefile.in: Disable build of gnatpsta. PR ada/10110.
9860 * cstreams.c (__gnat_full_name): Minor improvements and clean up
9863 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9865 * tracebak.c (MAX): Avoid redefinition warning.
9867 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
9868 Change msg to const char *.
9869 (__gnat_install_handler): Remove ss, unused.
9870 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
9872 * cstreams.c (__gnat_full_name): Declare p only when used.
9873 (__gnat_full_name) [sgi] Return buffer.
9875 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
9877 * mingw32.h: New file.
9878 * gnat_wrapper.adb: New file.
9880 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
9882 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
9883 string match a pre compiled regular expression (the corresponding
9884 version of the function working on a raw regular expression)
9885 Fix typos in various comments
9886 Update copyright notice in spec
9888 2003-10-21 Gary Dismukes <dismukes@gnat.com>
9891 (Component_Needs_Simple_Initialization): Return False when the type is a
9892 packed bit array. Revise spec comments to document this case.
9895 (Expand_Pragma_Import): Set any expression on the imported object to
9896 empty to avoid initializing imported objects (in particular this
9897 covers the case of zero-initialization of bit arrays).
9898 Update copyright notice.
9900 2003-10-21 Ed Schonberg <schonberg@gnat.com>
9903 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
9904 a subunit is missing.
9905 (Instantiate_Subprogram_Body): If body of function is missing, set type
9906 of return expression explicitly in dummy body, to prevent cascaded
9907 errors when a subunit is missing.
9911 (Access_Subprogram_Declaration): Verify that return type is valid.
9915 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
9920 (Corresponding_Discriminant): If the scope of the discriminant is a
9921 private type without discriminant, use its full view.
9924 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
9926 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
9927 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
9928 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
9929 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
9930 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
9931 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
9932 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
9933 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
9934 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
9935 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
9936 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
9937 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
9938 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
9939 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
9940 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
9941 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
9942 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
9943 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
9944 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
9945 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
9946 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
9947 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
9948 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
9949 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
9950 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
9951 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
9952 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
9953 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
9954 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
9955 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
9956 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
9957 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
9958 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
9959 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
9960 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
9961 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
9962 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
9963 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
9964 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
9965 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
9966 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
9967 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
9968 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
9969 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
9970 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
9971 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
9972 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
9973 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
9974 vms_conv.ads, vms_conv.adb, vms_data.ads,
9975 vxaddr2line.adb: Files added. Merge with ACT tree.
9977 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
9978 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
9979 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
9980 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
9981 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
9982 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
9983 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
9984 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
9985 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
9986 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
9988 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
9989 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
9990 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
9991 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
9992 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
9993 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
9994 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
9995 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
9996 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
9997 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
9998 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
9999 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
10000 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
10001 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
10002 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
10003 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
10004 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
10005 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
10006 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
10007 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
10008 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
10009 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
10010 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
10011 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
10012 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
10013 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
10014 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
10015 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
10016 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
10017 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
10018 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
10019 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
10020 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
10021 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
10022 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
10023 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
10024 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
10025 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
10026 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
10027 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
10028 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
10029 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
10030 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
10031 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
10032 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
10033 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
10034 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
10035 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
10036 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
10037 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
10038 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
10039 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
10040 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
10041 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
10042 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
10043 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
10044 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
10045 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
10046 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
10047 checks.adb, checks.ads, cio.c, comperr.adb,
10048 comperr.ads, csets.adb, cstand.adb, cstreams.c,
10049 debug_a.adb, debug_a.ads, debug.adb, decl.c,
10050 einfo.adb, einfo.ads, errout.adb, errout.ads,
10051 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
10052 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
10053 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
10054 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
10055 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
10056 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
10057 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
10058 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
10059 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
10060 fe.h, fmap.adb, fmap.ads, fname.adb,
10061 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
10062 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
10063 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
10064 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
10065 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
10066 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
10067 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
10068 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
10069 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
10070 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
10071 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
10072 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
10073 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
10074 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
10075 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
10076 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
10077 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
10078 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
10079 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
10080 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
10081 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
10082 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
10083 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
10084 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
10085 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
10086 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
10087 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
10088 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
10089 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
10090 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
10091 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
10092 layout.adb, lib.adb, lib.ads, lib-list.adb,
10093 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
10094 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
10095 link.c, live.adb, make.adb, make.ads,
10096 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
10097 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
10098 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
10099 misc.c, mkdir.c, mlib.adb, mlib.ads,
10100 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
10101 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
10102 namet.adb, namet.ads, namet.h, nlists.ads,
10103 nlists.h, nmake.adt, opt.adb, opt.ads,
10104 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
10105 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
10106 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
10107 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
10108 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
10109 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
10110 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
10111 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
10112 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
10113 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
10114 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
10115 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
10116 prj-util.adb, prj-util.ads, raise.c, raise.h,
10117 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
10118 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
10119 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
10120 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
10121 scans.ads, scn.adb, scn.ads, s-crc32.adb,
10122 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
10123 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
10124 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
10125 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
10126 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
10127 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
10128 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
10129 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
10130 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
10131 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
10132 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
10133 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
10134 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
10135 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
10136 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
10137 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
10138 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
10139 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
10140 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
10141 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
10142 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
10143 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
10144 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
10145 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
10146 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
10147 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
10148 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
10149 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
10150 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
10151 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
10152 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
10153 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
10154 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
10155 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
10156 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
10157 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
10158 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
10159 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
10160 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
10161 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
10162 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
10163 stringt.adb, stringt.ads, stringt.h, style.ads,
10164 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
10165 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
10166 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
10167 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
10168 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
10169 table.adb, table.ads, targparm.adb, targparm.ads,
10170 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
10171 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
10172 ttypes.ads, types.ads, types.h, uintp.adb,
10173 uintp.ads, uintp.h, uname.adb, urealp.adb,
10174 urealp.ads, urealp.h, usage.adb, utils2.c,
10175 utils.c, validsw.adb, validsw.ads, widechar.adb,
10176 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
10177 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
10178 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
10179 gnatvsn.ads: Merge with ACT tree.
10181 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
10183 2003-10-20 Mark Mitchell <mark@codesourcery.com>
10185 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
10186 (gnat_ug_vmx.info): Likewise.
10187 (gnat_ug_vxw.info): Likewise.
10188 (gnat_ug_wnt.info): Likewise.
10189 (gnat_rm.info): Likewise.
10190 (gnat-style.info): Likewise.
10192 * Make-lang.in (ada.install-info): Remove target.
10193 (info): New target.
10194 (install-info): Likewise.
10195 (gnat_ug_unx.info): Simplify rule.
10196 (gnat_ug_vmx.info): Likewise.
10197 (gnat_ug_vxw.info): Likewise.
10198 (gnat_ug_wnt.info): Likewise.
10199 (gnat_rm.info): Likewise.
10200 (gnat-style.info): Likewise.
10202 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
10204 * Make-lang.in: Replace uses of $(target_alias) with
10205 $(target_noncanonical).
10206 * ada/Makefile.in: Remove unused mention of $(target_alias).
10208 2003-10-06 Mark Mitchell <mark@codesourcery.com>
10210 * Make-lang.in (ada.info): Replace with ...
10212 (ada.dvi): Replace with ...
10215 2003-09-29 Zack Weinberg <zack@codesourcery.com>
10217 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
10218 initialize dconstp5 and dconstmp5.
10220 2003-09-28 Richard Henderson <rth@redhat.com>
10222 * trans.c (tree_transform): Update call to expand_asm_operands.
10224 2003-09-21 Richard Henderson <rth@redhat.com>
10226 * trans.c, utils.c: Revert.
10228 2003-09-21 Richard Henderson <rth@redhat.com>
10230 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
10233 2003-09-04 Michael Matz <matz@suse.de>
10235 * misc.c: Include "target.h".
10236 * Make-lang.in (misc.o): Add dependency on target.h.
10238 2003-09-03 DJ Delorie <dj@redhat.com>
10240 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
10243 2003-08-30 Zack Weinberg <zack@codesourcery.com>
10245 * Makefile.in: Update substitutions to match changes to
10246 configure. Use include directives instead of @-insertions
10247 to read in host and target fragments. Add a rule to
10248 regenerate ada/Makefile.
10250 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
10252 * lang-options.h: Remove.
10253 * lang.opt: Add help text.
10255 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
10257 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
10260 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
10262 * misc.c (gnat_handle_option): Don't handle filenames.
10264 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
10266 * Make-lang.in: Replace PWD with PWD_COMMAND.
10267 * Makefile.adalib: Likewise.
10268 * Makefile.in: Likewise.
10270 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
10272 * misc.c (gnat_argv): Revert last change.
10273 (gnat_handle_option, gnat_init_options): Copy arguments.
10275 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
10277 * misc.c (gnat_argv): Make const.
10279 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
10281 * misc.c (save_argc, save_argv): Keep non-static!
10283 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
10285 * misc.c (save_argc, save_argv): Make static.
10286 (gnat_init_options): New prototype.
10287 (gnat_init_options): Update.
10289 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
10291 * gnat_ug.texi: Remove unlikely characters from @vars.
10292 * gnat_ug_vms.texi: Regenerate.
10294 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
10296 * misc.c (record_code_position): Adjust emit_note call.
10298 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
10300 * misc.c (gnat_handle_option): Don't check for missing arguments.
10302 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
10304 * utils.c (end_subprog_body): Adjust expand_function_end call.
10306 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
10308 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
10311 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
10313 * lang.opt: Declare Ada.
10314 * misc.c (gnat_init_options): Update.
10316 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
10318 * utils.c (begin_subprog_body): Adjust init_function_start call.
10320 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
10322 * Make-lang.in: Update to use options.c and options.h.
10323 * misc.c: Include options.h not aoptions.h.
10324 (gnat_handle_option): Abort on unrecognized switch.
10325 (gnat_init_options): Request Ada switches.
10327 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
10329 * lang.opt: Add -Wall.
10330 * misc.c (gnat_handle_option): Handle it.
10332 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
10334 * misc.c (gnat_handle_option): Fix warnings.
10336 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
10338 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
10340 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
10342 * Make-lang.in: Update to handle command-line options.
10343 * lang.opt: New file.
10344 * misc.c: Include aoptions.h.
10345 (cl_options_count, cl_options): Remove.
10346 (gnat_handle_option): New.
10347 (gnat_decode_option): Remove.
10348 (LANG_HOOKS_DECODE_OPTION): Remove.
10349 (LANG_HOOKS_HANDLE_OPTION): Override.
10351 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
10353 * init.c, misc.c, trans.c, utils.c: Remove dead code.
10355 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
10357 * Makefile.in: Replace "host_canonical" with "host" for autoconf
10360 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
10362 * Make-lang.in: Update.
10363 * misc.c: Include opts.h. Define cl_options_count and cl_options.
10365 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
10367 * misc.c (gnat_init_options): Update.
10369 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
10371 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
10372 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
10373 __attribute__ ((__unused__)).
10375 2003-06-05 Jan Hubicka <jh@suse.cz>
10377 * Make-lang.in: Add support for stageprofile and stagefeedback
10379 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
10381 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
10382 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
10384 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
10386 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
10387 Remove non-VMS directive.
10388 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
10390 (Examples of gnatls Usage): Remove VMS alternative.
10392 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
10395 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
10396 and turn ZCX_By_Default back to False since the underlying support
10397 is not quite there yet.
10399 2003-06-01 Andreas Jaeger <aj@suse.de>
10401 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
10402 and ROUND_TYPE_SIZE_UNIT.
10404 2003-05-22 Geert Bosch <bosch@gnat.com>
10406 * gnat_rm.texi : Remove reference to Ada Core Technologies.
10408 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
10410 * trans.c (tree_transform): Use location_t and input_location
10412 (build_unit_elab): Likewise.
10413 * utils.c (create_label_decl): Likewise.
10415 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
10417 * trans.c (tree_transform, build_unit_elab,
10418 set_lineno): Rename lineno to input_line.
10419 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
10420 end_subprog_body): Likewise.
10421 * utils2.c (build_call_raise): Likewise.
10423 2003-05-01 Laurent Guerby <guerby@acm.org>
10426 * 5iosinte.ads: Increase pthread_cond_t size to match recent
10427 LinuxThread and NPTL version, merge from ACT.
10429 2003-04-28 Zack Weinberg <zack@codesourcery.com>
10431 * utils.c (convert): No need to clear TREE_CST_RTL.
10433 2003-04-23 Geert Bosch <bosch@gnat.com>
10435 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
10436 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
10437 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
10438 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
10439 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
10440 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
10441 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
10442 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
10443 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
10444 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
10445 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
10446 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
10447 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
10448 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
10449 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
10450 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
10451 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
10452 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
10453 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
10454 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
10455 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
10456 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
10457 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
10458 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
10459 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
10460 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
10461 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
10462 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
10463 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
10464 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
10465 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
10466 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
10467 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
10468 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
10469 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
10470 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
10471 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
10472 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
10473 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
10474 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
10475 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
10476 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
10477 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
10478 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
10479 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
10480 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
10481 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
10482 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
10483 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
10484 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
10485 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
10486 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
10487 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
10488 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
10489 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
10490 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
10491 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
10492 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
10493 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
10494 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
10495 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
10496 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
10497 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
10498 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
10499 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
10500 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
10501 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
10502 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
10503 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
10504 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
10505 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
10506 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
10507 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
10508 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
10509 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
10510 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
10511 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
10512 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
10513 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
10514 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
10515 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
10516 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
10517 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
10518 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
10519 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
10520 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
10521 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
10522 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
10523 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
10524 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
10525 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
10526 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
10527 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
10528 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
10529 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
10530 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
10531 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
10532 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
10533 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
10534 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
10535 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
10536 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
10537 ali.adb, ali.ads, alloc.ads, argv.c,
10538 atree.adb, atree.ads, atree.h, aux-io.c,
10539 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
10540 binde.adb, binde.ads, binderr.adb, binderr.ads,
10541 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
10542 butil.adb, butil.ads, cal.c, calendar.ads,
10543 casing.adb, casing.ads, ceinfo.adb, checks.adb,
10544 checks.ads, cio.c, comperr.adb, comperr.ads,
10545 config-lang.in, csets.adb, csets.ads, csinfo.adb,
10546 cstand.adb, cstand.ads, cuintp.c, debug.adb,
10547 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
10548 dec-io.ads, dec.ads, deftarg.c, directio.ads,
10549 einfo.adb, einfo.ads, elists.adb, elists.ads,
10550 elists.h, errno.c, errout.adb, errout.ads,
10551 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
10552 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
10553 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
10554 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
10555 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
10556 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
10557 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
10558 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
10559 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
10560 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
10561 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
10562 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
10563 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
10564 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
10565 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
10566 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
10567 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
10568 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
10569 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
10570 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
10571 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
10572 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
10573 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
10574 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
10575 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
10576 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
10577 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
10578 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
10579 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
10580 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
10581 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
10582 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
10583 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
10584 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
10585 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
10586 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
10587 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
10588 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
10589 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
10590 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
10591 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
10592 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
10593 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
10594 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
10595 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
10596 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
10597 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
10598 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
10599 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
10600 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
10601 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
10602 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
10603 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
10604 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
10605 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
10606 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
10607 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
10608 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
10609 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
10610 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
10611 lib.adb, lib.ads, live.adb, live.ads,
10612 machcode.ads, make.adb, make.ads, makeusg.adb,
10613 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
10614 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
10615 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
10616 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
10617 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
10618 mlib.ads, namet.adb, namet.ads, nlists.adb,
10619 nlists.ads, opt.adb, opt.ads, osint-b.adb,
10620 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
10621 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
10622 osint.ads, output.adb, output.ads, par-ch10.adb,
10623 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
10624 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
10625 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
10626 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
10627 par-tchk.adb, par-util.adb, par.adb, par.ads,
10628 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
10629 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
10630 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
10631 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
10632 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
10633 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
10634 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
10635 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
10636 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
10637 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
10638 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
10639 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
10640 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
10641 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
10642 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
10643 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
10644 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
10645 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
10646 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
10647 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
10648 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
10649 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
10650 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
10651 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
10652 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
10653 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
10654 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
10655 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
10656 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
10657 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
10658 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
10659 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
10660 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
10661 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
10662 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
10663 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
10664 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
10665 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
10666 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
10667 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
10668 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
10669 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
10670 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
10671 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
10672 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
10673 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
10674 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
10675 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
10676 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
10677 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
10678 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
10679 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
10680 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
10681 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
10682 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
10683 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
10684 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
10685 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
10686 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
10687 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
10688 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
10689 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
10690 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
10691 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
10692 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
10693 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
10694 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
10695 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
10696 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
10697 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
10698 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
10699 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
10700 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
10701 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
10702 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
10703 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
10704 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
10705 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
10706 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
10707 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
10708 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
10709 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
10710 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
10711 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
10712 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
10713 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
10714 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
10715 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
10716 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
10717 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
10718 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
10719 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
10720 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
10721 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
10722 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
10723 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
10724 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
10725 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
10726 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
10727 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
10728 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
10729 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
10730 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
10731 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
10732 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
10733 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
10734 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
10735 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
10736 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
10737 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
10738 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
10739 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
10740 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
10741 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
10742 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
10743 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
10744 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
10745 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
10746 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
10747 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
10748 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
10749 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
10750 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
10751 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
10752 snames.ads, sprint.adb, sprint.ads, stand.adb,
10753 stand.ads, stringt.adb, stringt.ads, style.adb,
10754 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
10755 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
10756 switch-m.ads, switch.adb, switch.ads, system.ads,
10757 table.adb, table.ads, targparm.adb, targparm.ads,
10758 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
10759 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
10760 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
10761 ttypef.ads, ttypes.ads, types.adb, types.ads,
10762 uintp.adb, uintp.ads, uname.adb, uname.ads,
10763 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
10764 usage.adb, usage.ads, validsw.adb, validsw.ads,
10765 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
10766 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
10767 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
10768 formatting and other trivial changes from ACT.
10770 2003-04-12 Zack Weinberg <zack@codesourcery.com>
10772 * gigi.h, utils2.c (build_constructor):
10773 Rename gnat_build_constructor. Use build_constructor.
10774 * decl.c (gnat_to_gnu_entity)
10775 * trans.c (tree_transform, pos_to_constructor, extract_values)
10776 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
10777 (unchecked_convert)
10778 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
10779 (fill_vms_descriptor):
10782 2003-04-06 Zack Weinberg <zack@codesourcery.com>
10784 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
10785 * misc.c (gnat_tree_size): New function.
10786 (LANG_HOOKS_TREE_SIZE): Override.
10788 2003-04-03 Jason Merrill <jason@redhat.com>
10790 * misc.c (gnat_adjust_rli): #if 0.
10792 2003-03-31 Geert Bosch <bosch@gnat.com>
10795 * link.c : Fix misspelled "const" keyword
10797 2003-03-23 Mark Mitchell <mark@codesourcery.com>
10800 * utils2.c: Adjust calls to put_var_into_stack.
10802 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
10804 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
10806 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
10808 * misc.c (gnat_init): Update for new prototype.
10810 2003-03-05 Olivier Hainque <hainque@gnat.com>
10813 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
10814 warning, and fix return type for the IN_RTS && !SJLJ case.
10816 2003-03-04 Tom Tromey <tromey@redhat.com>
10818 * Make-lang.in (ada.tags): New target.
10820 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
10823 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
10824 wrapper, which name remains constant whatever underlying GCC
10827 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
10828 the stable interface needed for a-except.
10830 2003-03-02 Andreas Jaeger <aj@suse.de>
10832 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
10833 gnat_ug_wnt.texi: Regenerate.
10835 2003-03-02 Laurent Guerby <guerby@acm.org>
10837 * Makefile.in (install-gnatlib): Match previous change there
10840 2003-02-28 Andreas Schwab <schwab@suse.de>
10842 * Make-lang.in (install-gnatlib): Change to ada directory before
10843 running make instead of using ada/Makefile directly.
10845 2003-02-18 Ben Elliston <bje@redhat.com>
10847 Part of fix for PR ada/9406
10848 * gnat_ug.texi (Binder output file): Grammar fix.
10850 2003-02-18 Ben Elliston <bje@redhat.com>
10853 * 5qtaprop.adb (Sleep): Fix typo in comment.
10855 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
10857 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
10858 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
10859 gnat_ug_wnt.texi: Regenerate.
10861 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
10863 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
10864 be created if necessary.
10865 (ada.install-common): Let $(DESTDIR)$(bindir) be created
10866 if necessary. Remove erroneous and redundant gnatchop
10867 installation commands. Test for gnatdll before attempting
10869 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
10870 and gnatdll from all plausible locations.
10872 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
10874 * utils2.c (build_unary_op): Don't check flag_volatile.
10875 * gnat_ug.texi: Remove -fvolatile from example.
10876 * gnat_ug_vxw.texi: Likewise.
10878 2003-01-29 Laurent Guerby <guerby@acm.org>
10881 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
10882 * Makefile.in: match previous change.
10883 * Make-lang.in: match previous change.
10885 2003-01-29 Joel Sherrill <joel@OARcorp.com>
10887 * 5rosinte.ads: Add SIGXCPU.
10888 * 5rtpopsp.adb: New file.
10889 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
10890 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
10891 specific file 5rtpopsp.adb.
10892 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
10893 is likely needed for all newlib targets.
10894 * init.c: Add RTEMS specific version of __gnat_initialize().
10896 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10898 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
10900 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10902 * init.c (__gnat_error_handler): Make msg const.
10904 * gmem.c (convert_addresses): Move declaration ...
10905 * adaint.h: ... here.
10906 * adaint.c (convert_addresses): Adapt addrs type to match
10909 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
10911 2003-01-24 Andreas Schwab <schwab@suse.de>
10913 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
10914 size_t to avoid warning.
10916 2003-01-21 Zack Weinberg <zack@codesourcery.com>
10918 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
10920 2003-01-09 Geoffrey Keating <geoffk@apple.com>
10922 * gnat_rm.texi: Remove RCS version number.
10924 * ada-tree.h (union lang_tree_node): Add chain_next option.
10926 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
10928 * Make-lang.in (ada.install-info, ada.install-common,
10929 ada.uninstall): Prepend $(DESTDIR) to the destination
10930 directory in all (un)installation commands.
10931 * Makefile.in (install-gnatlib, install-rts): Ditto.
10933 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
10935 * gnat_rm.texi, gnat_ug.texi: Use @copying.
10936 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
10937 gnat_ug_wnt.texi: Regenerate.
10939 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
10941 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
10943 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
10944 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
10945 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
10946 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
10947 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
10948 $(srcdir)/doc/include/gcc-common.texi.
10950 2002-12-15 Geert Bosch <bosch@gnat.com>
10952 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
10954 2002-12-14 Geert Bosch <bosch@gnat.com>
10956 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
10957 case of a body created for a Renaming_As_Body, on which
10958 conformance checks are not performed. Fixes PR ada/5690.
10960 2002-11-30 Zack Weinberg <zack@codesourcery.com>
10962 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
10963 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
10964 not already included.
10965 * Make-lang.in: Update dependencies.
10967 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
10968 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
10969 solution to buffer overflow bug on GNU/Linux.
10971 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
10972 Closes PR ada/5856 and PR ada/6919 !
10973 * bindgen.adb: Remove all references to Public_Version.
10974 * comperr.adb: Remove all references to Public_Version and
10975 GNATPRO_Version; correct bug reporting instructions.
10976 * comperr.ads: Change to match bug box.
10977 * gnatvsn.ads: Remove all references to Public version and
10980 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
10982 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
10986 * config-lang.in: Remove diff_excludes.
10988 2002-11-05 Graham Stott <graham.stott@btinternet.com>
10990 * trans.c (gnu_pending_elaboration_lists): New GC root.
10991 (build_unit_elab): Use..
10993 2002-10-30 Geert Bosch <bosch@gnat.com>
10995 * misc.c : Include optabs.h
10997 * Make-lang.in (misc.o): Add dependency on optabs.h
10999 2002-10-29 Geert Bosch <bosch@gnat.com>
11001 * Make-lang.in (gnatbind): Depend on CONFIG_H
11003 2002-10-29 Geert bosch <bosch@gnat.com>
11005 * misc.c: Unrevert misc.c (1.13)
11007 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
11009 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
11010 maintainership comments.
11012 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
11014 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
11015 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
11016 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
11017 7staprop.adb: Correct statements in comments about
11018 maintainership of GNAT.
11021 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
11022 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
11023 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
11024 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
11025 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
11026 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
11027 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
11028 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
11029 comments about maintainership of GNAT.
11031 PR ada/6919 (forward port of patch for PR ada/5904)
11032 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
11033 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
11034 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
11035 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
11036 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
11037 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
11038 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
11039 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
11040 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
11041 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
11042 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
11043 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
11044 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
11045 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
11046 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
11047 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
11048 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
11049 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
11050 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
11051 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
11052 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
11053 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
11054 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
11055 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
11056 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
11057 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
11058 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
11059 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
11060 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
11061 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
11062 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
11063 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
11064 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
11065 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
11066 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
11067 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
11068 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
11069 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
11070 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
11071 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
11072 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
11073 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
11074 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
11075 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
11076 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
11077 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
11078 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
11079 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
11080 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
11081 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
11082 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
11083 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
11084 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
11085 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
11086 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
11087 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
11088 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
11089 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
11090 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
11091 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
11092 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
11093 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
11094 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
11095 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
11096 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
11097 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
11098 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
11099 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
11100 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
11101 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
11102 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
11103 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
11104 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
11105 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
11106 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
11107 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
11108 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
11109 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
11110 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
11111 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
11112 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
11113 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
11114 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
11115 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
11116 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
11117 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
11118 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
11119 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
11120 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
11121 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
11122 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
11123 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
11124 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
11125 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
11126 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
11127 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
11128 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
11129 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
11130 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
11131 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
11132 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
11133 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
11134 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
11135 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
11136 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
11137 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
11138 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
11139 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
11140 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
11141 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
11142 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
11143 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
11144 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
11145 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
11146 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
11147 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
11148 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
11149 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
11150 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
11151 par-endh.adb par-labl.adb par-load.adb par-prag.adb
11152 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
11153 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
11154 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
11155 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
11156 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
11157 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
11158 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
11159 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
11160 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
11161 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
11162 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
11163 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
11164 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
11165 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
11166 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
11167 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
11168 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
11169 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
11170 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
11171 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
11172 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
11173 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
11174 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
11175 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
11176 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
11177 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
11178 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
11179 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
11180 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
11181 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
11182 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
11183 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
11184 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
11185 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
11186 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
11187 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
11188 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
11189 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
11190 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
11191 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
11192 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
11193 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
11194 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
11195 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
11196 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
11197 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
11198 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
11199 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
11200 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
11201 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
11202 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
11203 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
11204 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
11205 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
11206 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
11207 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
11208 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
11209 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
11210 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
11211 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
11212 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
11213 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
11214 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
11215 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
11216 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
11217 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
11218 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
11219 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
11220 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
11221 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
11222 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
11223 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
11224 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
11225 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
11226 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
11227 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
11228 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
11229 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
11230 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
11231 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
11232 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
11233 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
11234 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
11235 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
11236 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
11237 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
11238 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
11239 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
11240 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
11241 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
11242 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
11243 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
11244 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
11245 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
11246 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
11247 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
11248 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
11249 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
11250 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
11251 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
11252 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
11253 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
11254 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
11255 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
11256 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
11257 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
11258 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
11259 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
11260 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
11261 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
11262 stringt.ads stringt.h style.adb style.ads stylesw.adb
11263 stylesw.ads switch.adb switch.ads sysdep.c system.ads
11264 table.adb table.ads targparm.adb targparm.ads targtyps.c
11265 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
11266 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
11267 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
11268 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
11269 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
11270 usage.ads utils.c utils2.c validsw.adb validsw.ads
11271 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
11272 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
11273 xtreeprs.adb: Correct statements in comments about maintainership
11276 2002-09-23 Zack Weinberg <zack@codesourcery.com>
11278 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
11279 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
11280 * gnatvsn.ads: Gnat_Version_String is now a function.
11281 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
11282 copy the C version_string into a String and return it.
11283 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
11284 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
11285 Remove pragma Ident (Gnat_Version_String). If this was the
11286 sole use of package Gnatvsn, remove the with statement too.
11287 * gnat1drv.adb: Tweak -gnatv output.
11289 2002-09-17 Richard Henderson <rth@redhat.com>
11291 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
11292 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
11293 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
11294 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
11295 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
11296 and real_2expN instead of a loop.
11297 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
11298 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
11300 2002-08-25 Andre Leis <a.leis@gmx.net>
11301 David Billinghurst (David.Billinghurst@riotinto.com>
11303 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
11305 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11307 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
11308 Remove $(CONFIG_H) dependency.
11310 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
11312 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
11314 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11316 * adadecode.c (ada_demangle): Use xstrdup in lieu of
11318 * misc.c (gnat_decode_option): Likewise.
11320 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
11322 * make.adb (Add_Switch): Make Generic_Position a procedure. The
11323 function approach did not work well because of a side effect (the
11324 function call could reallocate the table which was being indexed
11325 using its result). Fixes ada/4851. [RESURRECTED]
11327 2002-07-01 Roger Sayle <roger@eyesopen.com>
11329 * ada/utils.c (builtin_function): Accept an additional parameter.
11331 2002-06-28 Andreas Jaeger <aj@suse.de>
11334 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
11337 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11339 * Makefile.in (SHELL): Set to @SHELL@.
11341 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11343 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
11344 array size calculation.
11346 2002-06-04 Andreas Jaeger <aj@suse.de>
11348 * Make-lang.in (gnatbind): Readd rule that has been lost in last
11351 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
11353 Merge from pch-branch:
11355 * config-lang.in (gtfiles): Add ada-tree.h.
11356 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
11357 (SET_TYPE_MODULUS): New.
11358 (SET_TYPE_INDEX): New.
11359 (SET_TYPE_DIGITS_VALUE): New.
11360 (SET_TYPE_RM_SIZE): New.
11361 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
11362 (SET_TYPE_ADA_SIZE): New.
11363 (SET_TYPE_ACTUAL_BOUNDS): New.
11364 (SET_DECL_CONST_CORRESPONDING_VAR): New.
11365 (SET_DECL_ORIGINAL_FIELD): New.
11366 (TREE_LOOP_ID): Correct typo.
11367 * decl.c: Use new macros.
11368 * utils.c: Include debug.h, use new macros.
11369 * utils2.c: Use new macros.
11371 * ada-tree.h: Update all macros for new tree description.
11372 (struct tree_loop_id): New.
11373 (union lang_tree_node): New.
11374 (struct lang_decl): New.
11375 (struct lang_type): New.
11376 * misc.c (gnat_mark_tree): Delete.
11377 (LANG_HOOKS_MARK_TREE): Delete.
11378 * trans.c (tree_transform): No longer any need to cast
11381 * utils.c (struct language_function): New dummy structure.
11383 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
11384 (misc.o): Likewise.
11385 (utils.o): Likewise; also gtype-ada.h.
11386 * Make-lang.in (gnat1): Add dependency on s-gtype.
11387 (gnatbind): Add dependency on $(CONFIG_H).
11388 * utils.c: Correct last #include.
11389 (stuct e_stack): Remove unnecessary 'static'.
11390 (mark_e_stack): Remove unused prototype.
11392 * scn-nlit.adb: Remove whitespace after version number to
11393 keep lines under 80 chars.
11394 * snames.adb: Likewise.
11395 * treepr.ads: Likewise.
11397 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
11398 (misc.o): Likewise.
11399 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
11400 * config-lang.in (gtfiles): New.
11401 * decl.c: Use gengtype for roots.
11402 * gigi.h: Use gengtype for roots.
11403 * trans.c: Use gengtype for roots.
11404 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
11406 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
11408 * misc.c (gnat_init): Adjust setting of internal_error_function.
11410 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
11412 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
11413 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
11414 gnat_ug_wnt.texi: Regenerate.
11416 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
11418 * 5ntaprop.adb (with System.OS_Primitives): Remove.
11420 * cstreams.c (max_path_len): Move from here ...
11421 * adaint.c (__gnat_max_path_len): ... to here.
11422 * adaint.c (__gnat_max_path_len): Declare.
11423 * g-dirope.adb (Max_Path): Adjust.
11424 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
11425 * i-cstrea.ads (max_path_len): Adjust.
11426 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
11427 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
11429 * Makefile.in, Make-lang.in: Documentation is now built in
11430 Make-lang.in. Store Info and generated Texinfo files in the
11432 * gnat_ug.texi: Remove CVS keywords, correct version number.
11433 Set file name correctly.
11435 * gnat_ug_*.texi: Add.
11436 * .cvsignore: Ignore generated Texinfo files.
11438 2002-05-30 Zack Weinberg <zack@codesourcery.com>
11440 * ada.h: Add MI guard macro.
11441 (SUBTYPE): Define constants with an anonymous enum, not static
11443 (IN): Cast constants to appropriate type before use.
11445 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
11447 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
11450 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11452 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
11453 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
11454 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
11455 (ALL_ADA_CFLAGS): Likewise.
11456 (ADA_INCLUDES): Likewise.
11457 Adapt for new working dir.
11458 (GNATBIND): Use Makefile.in version.
11459 (.SUFFIXES): Copy from Makefile.in.
11460 (ada-warn): Define.
11461 (.adb.o, .ads.o): Copy from Makefile.in.
11462 Added $(OUTPUT_OPTION).
11463 (GNAT1_C_OBJS): Moved from Makefile.in.
11464 Prefix with ada subdir.
11465 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
11466 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
11467 Adapt for new working dir.
11468 (EXTRA_GNATBIND_OBJS): Likewise.
11469 (ADA_BACKEND): Moved from Makefile.in.
11470 Renamed to avoid conflict with global BACKEND.
11472 (TARGET_ADA_SRCS): Moved from Makefile.in.
11473 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
11475 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
11476 (ada_extra_files): Moved from Makefile.in.
11477 Prefix with ada subdir.
11478 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
11479 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
11480 (ada/nmake.ads): Likewise.
11481 (update-sources): Moved from Makefile.in.
11482 Prefix with ada subdir.
11483 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
11484 (ADA_TREE_H): Likewise.
11485 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
11486 (ada/memtrack.o): Likewise.
11487 (ada/adadecode.o): Likewise.
11488 Update dependencies.
11489 (ada/adaint.o): New.
11490 (ada/argv.o): Moved from Makefile.in.
11491 Prefix with ada subdir.
11492 Update dependencies.
11493 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
11494 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
11495 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
11496 Prefix with ada subdir.
11497 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
11498 (GNAT DEPENDENCIES): Regenerate.
11499 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
11500 toplevel Makefile.in.
11501 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
11502 (TARGET_ADA_SRCS): Removed.
11503 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
11504 (GNATBIND_OBJS): Likewise.
11505 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
11506 (BACKEND): Removed.
11507 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
11508 (TREE_H): Likewise.
11509 (ada_extra_files): Likewise.
11510 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
11511 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
11512 (update-sources): Likewise.
11513 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
11514 (ADA_TREE_H): Likewise.
11515 (adadecoce.o): Likewise.
11516 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
11517 (GNAT DEPENDENCIES): Likewise.
11519 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11521 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
11522 * Makefile.in: Likewise.
11524 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11526 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
11527 Restore $(CONFIG_H) and prefix.o dependencies.
11528 (ada.stage[1-4]): Depend on stage?-start.
11530 * Makefile.in (b_gnatb.c): Depend on interfac.o.
11532 2002-05-02 Jim Wilson <wilson@redhat.com>
11534 * utils.c (finish_record_type): Change record_size to record_type.
11536 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
11538 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
11539 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
11540 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
11542 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
11544 * misc.c (gnat_parse_file): Update.
11546 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
11548 * misc.c (gnat_init): Don't set lang_attribute_common.
11550 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
11552 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
11554 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
11556 * gnat_ug.texi: New file.
11558 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
11559 instead of gfdl.texi
11561 * xgnatug.adb, ug_words: New files.
11563 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
11564 gnat_rm and gnat-style manuals.
11566 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
11568 * gigi.h (incomplete_type_error): Remove.
11569 * utils.c (incomplete_type_error): Remove.
11571 2002-04-16 Mark Mitchell <mark@codesourcery.com>
11573 * trans.c (tree_transform): Add has_scope argument to
11574 expand_start_stmt_expr.
11576 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
11578 * gigi.h (truthvalue_conversion): Rename.
11579 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
11580 * trans.c (tree_transform): Update.
11581 * utils2.c (truthvalue_conversion): Rename, update.
11582 (build_binary_op, build_unary_op): Update.
11584 2002-04-04 Laurent Guerby <guerby@acm.org>
11586 * make.adb: Implement -margs, remove restriction about file name placement.
11587 * makeusg.adb: Documentation update.
11588 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
11589 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
11591 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
11593 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
11594 (builtin_function): Similarly.
11596 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
11598 * decl.c (gnat_to_gnu_entity): Update.
11599 * gigi.h (mark_addressable): Rename.
11600 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
11601 * trans.c (tree_transform): Update.
11602 * utils.c (create_var_decl): Update.
11603 * util2.c (build_binary_op, build_unary_op,
11604 fill_vms_descriptor): Update.
11605 (mark_addressable): Rename, update.
11607 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
11609 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
11611 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
11612 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
11613 * trans.c (tree_transform, convert_with_check): Update.
11614 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
11617 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
11619 * gigi.h (finish_incomplete_decl): Rename.
11620 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
11621 * utils.c (gnat_init_decl_processing): Don't set hook.
11622 (finish_incomplete_decl): Rename.
11624 2002-03-29 Andreas Schwab <schwab@suse.de>
11626 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
11629 2001-03-28 Robert Dewar <dewar@gnat.com>
11632 (Remove_Checks): New procedure
11635 (Remove_Checks): New procedure
11638 Use new Duplicate_Subexpr functions
11639 (Duplicate_Subexpr_No_Checks): New procedure
11640 (Duplicate_Subexpr_No_Checks_Orig): New procedure
11641 (Duplicate_Subexpr): Restore original form (checks duplicated)
11642 (Duplicate_Subexpr): Call Remove_Checks
11645 (Duplicate_Subexpr_No_Checks): New procedure
11646 (Duplicate_Subexpr_No_Checks_Orig): New procedure
11647 Add 2002 to copyright notice
11649 * sem_util.adb: Use new Duplicate_Subexpr functions
11652 (Eval_Indexed_Component): This is the place to call
11653 Constant_Array_Ref and to replace the value. We simply merge
11654 the code of this function in here, since it is now no longer
11655 used elsewhere. This fixes the problem of the back end not
11656 realizing we were clever enough to see that this was
11658 (Expr_Val): Remove call to Constant_Array_Ref
11659 (Expr_Rep_Val): Remove call to Constant_Array_Ref
11661 (Constant_Array_Ref): Deal with string literals (patch
11662 suggested by Zack Weinberg on the gcc list)
11664 2001-03-28 Ed Schonberg <schonber@gnat.com>
11666 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
11667 Duplicate_Subexpr_Move_Checks.
11669 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
11670 Duplicate_Subexpr_Move_Checks.
11672 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
11673 value of array exists before retrieving it (it may a private
11674 protected component in a function).
11676 2002-03-28 Geert Bosch <bosch@gnat.com>
11678 * prj-pp.adb : New file.
11680 * prj-pp.ads : New file.
11682 2002-03-28 Andreas Jaeger <aj@suse.de>
11684 * Makefile.in (stamp-sdefault): Fix path for Makefile.
11686 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
11688 * misc.c (gnat_expand_expr): Move prototype.
11690 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
11692 * misc.c (insert_default_attributes): Remove.
11694 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
11696 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
11697 (gnat_init): Don't set hook.
11698 (gnat_expand_expr): Fix prototype.
11700 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
11702 * misc.c (ggc_p): Remove.
11704 2002-03-27 Geert Bosch <bosch@gnat.com>
11706 * prj-makr.ads, prj-makr.adb : New files.
11708 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
11710 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
11711 (lang_mark_tree): Make static, rename.
11713 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
11715 * misc.c (maybe_build_cleanup): Remove.
11717 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
11719 * gigi.h (yyparse): Remove.
11721 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
11723 * gnat_rm.texi: Sync with ACT version.
11724 (From Ben Brosgol <brosgol@gnat.com>)
11726 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
11728 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
11729 (gnat_init): Remove old hook.
11731 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
11733 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
11734 (yyparse): Rename gnat_parse_file.
11736 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
11738 Delete all lines containing "$Revision:".
11739 * xeinfo.adb: Don't look for revision numbers.
11740 * xnmake.adb: Likewise.
11741 * xsinfo.adb: Likewise.
11742 * xsnames.adb: Likewise.
11743 * xtreeprs.adb: Likewise.
11745 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11747 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
11748 gnat_tree_code_name): Delete.
11749 (tree_code_type, tree_code_length, tree_code_name): Define.
11750 (gnat_init): Don't try to copy into the various tree_code
11753 2002-03-11 Richard Henderson <rth@redhat.com>
11755 * Makefile.in (.NOTPARALLEL): Add fake tag.
11757 2002-03-07 Geert Bosch <bosch@gnat.com>
11759 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
11760 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
11761 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
11762 switch-m.adb, switch-m.ads : New files.
11764 2002-03-07 Geert Bosch <bosch@gnat.com>
11766 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
11767 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
11768 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
11769 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
11770 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
11771 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
11772 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
11773 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
11774 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
11775 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
11776 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
11777 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
11778 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
11779 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
11780 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
11781 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
11782 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
11783 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
11784 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
11785 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
11786 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
11787 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
11788 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
11789 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
11790 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
11791 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
11792 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
11793 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
11794 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
11795 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
11796 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
11797 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
11798 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
11799 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
11800 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
11801 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
11802 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
11803 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
11804 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
11805 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
11806 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
11807 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
11808 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
11809 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
11810 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
11811 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
11812 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
11813 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
11814 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
11815 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
11816 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
11817 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
11818 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
11819 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
11820 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
11821 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
11822 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
11823 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
11824 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
11825 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
11826 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
11827 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
11828 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
11829 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
11830 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
11831 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
11832 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
11833 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
11834 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
11835 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
11836 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
11837 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
11838 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
11839 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
11840 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
11841 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
11842 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
11843 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
11844 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
11845 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
11846 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
11847 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
11848 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
11849 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
11850 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
11851 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
11852 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
11853 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
11854 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
11855 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
11856 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
11857 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
11858 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
11859 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
11860 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
11861 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
11862 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
11864 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
11865 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
11866 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
11867 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
11869 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
11870 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
11872 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
11873 to mdll-fil.ad[bs] and mdll-util.ad[bs]
11875 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
11876 from mdllfile.ad[bs] and mdlltool.ad[bs]
11878 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11880 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
11881 lieu of explicit sizeof/sizeof.
11883 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
11885 * misc.c (copy_lang_decl): Remove.
11887 2002-02-27 Zack Weinberg <zack@codesourcery.com>
11889 * misc.c: Delete traditional-mode-related code copied from the
11890 C front end but not used, or used only to permit the compiler
11893 2002-02-07 Richard Henderson <rth@redhat.com>
11895 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
11896 * adaint.h (__gnat_to_gm_time): Update prototype.
11898 2002-01-30 Richard Henderson <rth@redhat.com>
11900 * trans.c (tree_transform) [N_Loop_Statement]: Use
11901 expand_exit_loop_top_cond.
11903 2001-12-23 Richard Henderson <rth@redhat.com>
11905 * utils.c (end_subprog_body): Push GC context around
11906 rest_of_compilation for nested functions.
11908 2001-12-23 Richard Henderson <rth@redhat.com>
11910 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
11912 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
11914 * gnat-style.texi (Declarations and Types): Remove ancient style
11915 rule which was mandated by code generation issues.
11917 * gnat-style.texi (header): Add @dircategory, @direntry.
11918 (title page): Remove date.
11919 (general) Add @./@: where approriate, and two spaces after the
11920 full stop at the end of a sentence. Use @samp markup when
11921 referring concrete lexical entities (keywords, attribute names
11922 etc.), and @syntax for ARM grammar elements. Use @r for English
11923 text in comments. Use @emph for emphasis. Change "if-statements"
11924 etc. to "if statements" (without @samp). Break long lines. Make
11925 casing of section names consistent.
11926 (Identifiers): Use @samp markup for variable names.
11927 (Comments): Use @samp markup for comment characters. Line-end
11928 comments may follow any Ada code, not just statements. Fix
11929 misspelling of "Integer" as "integer".
11930 (Loop statements): Do not use variable name "I", use "J".
11931 (Subprogram Declarations): Document alignment.
11932 (Subprogram Bodies, Block statements): Document empty line before
11935 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
11937 * make.adb (Add_Switch): Make Generic_Position a procedure. The
11938 function approach did not work well because of a side effect (the
11939 function call could reallocate the table which was being indexed
11940 using its result). Fixes ada/4851.
11942 2001-12-19 Robert Dewar <dewar@gnat.com>
11944 * bindgen.adb: Minor reformatting
11946 * cstand.adb: Minor reformatting
11948 * fmap.adb: Minor reformatting
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
11955 Change name from Add for Add_To_File_Map (Add is much too generic)
11956 Change Path_Name_Of to Mapped_Path_Name
11957 Change File_Name_Of to Mapped_File_Name
11958 Fix copyright dates in header
11960 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
11961 Add use clause for Fmap.
11963 * make.adb: Minor reformatting
11965 * osint.adb: Minor reformatting. Change of names in Fmap.
11966 Add use clause for Fmap.
11968 * prj-env.adb: Minor reformatting
11970 * prj-env.ads: Minor reformatting
11972 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
11973 error found (there were odd exceptions to this general rule in
11974 -gnatec/-gnatem processing)
11976 2001-12-19 Olivier Hainque <hainque@gnat.com>
11978 * raise.c (__gnat_eh_personality): Exception handling personality
11979 routine for Ada. Still in rough state, inspired from the C++ version
11980 and still containing a bunch of debugging artifacts.
11981 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
11982 inspired from the C++ library.
11984 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
11985 exception handling integration.
11987 2001-12-19 Arnaud Charlet <charlet@gnat.com>
11989 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
11990 (HIE_SOURCES): Add s-secsta.ad{s,b}.
11991 (HIE_OBJS): Add s-fat*.o
11992 (RAVEN_SOURCES): Remove files that are no longer required. Add
11993 interrupt handling files.
11994 (RAVEN_MOD): Removed, no longer needed.
11996 2001-12-19 Robert Dewar <dewar@gnat.com>
11998 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
11999 Add 2001 to copyright date
12001 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
12002 need to force universal inlining for these cases.
12004 2001-12-19 Arnaud Charlet <charlet@gnat.com>
12006 * s-taprob.adb: Minor clean ups so that this unit can be used in
12009 * exp_ch7.adb: Allow use of secondary stack in HI mode.
12010 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
12012 2001-12-19 Vincent Celier <celier@gnat.com>
12014 * prj-tree.ads (Project_Node_Record): Add comments for components
12015 Pkg_Id and Case_Insensitive.
12017 2001-12-19 Pascal Obry <obry@gnat.com>
12019 * g-socket.adb: Minor reformatting. Found while reading code.
12021 2001-12-19 Robert Dewar <dewar@gnat.com>
12023 * prj-tree.ads: Minor reformatting
12025 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
12027 * config-lang.in (diff_excludes): Remove.
12029 2001-12-17 Ed Schonberg <schonber@gnat.com>
12031 * sem_res.adb (Resolve_Selected_Component): do not generate a
12032 discriminant check if the selected component is a component of
12033 the argument of an initialization procedure.
12035 * trans.c (tree_transform, case of arithmetic operators): If result
12036 type is private, the gnu_type is the base type of the full view,
12037 given that the full view itself may be a subtype.
12039 2001-12-17 Robert Dewar <dewar@gnat.com>
12041 * sem_res.adb: Minor reformatting
12043 * trans.c (tree_transform, case N_Real_Literal): Add missing third
12044 parameter in call to Machine (unknown horrible effects from this
12047 * urealp.h: Add definition of Round_Even for call to Machine
12048 Add third parameter for Machine
12050 2001-12-17 Ed Schonberg <schonber@gnat.com>
12052 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
12053 predefined units in No_Run_Time mode.
12055 2001-12-17 Richard Kenner <kenner@gnat.com>
12057 * misc.c (insn-codes.h): Now include.
12059 2001-12-17 Olivier Hainque <hainque@gnat.com>
12061 * a-except.adb: Preparation work for future integration of the GCC 3
12062 exception handling mechanism
12063 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
12064 to factorize previous code sequences and make them externally callable,
12065 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
12066 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
12067 Use the new notification routines.
12069 2001-12-17 Emmanuel Briot <briot@gnat.com>
12071 * prj-tree.ads (First_Choice_Of): Document the when others case
12073 2001-12-17 Arnaud Charlet <charlet@gnat.com>
12075 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
12076 HI-E mode, in order to support Ravenscar profile properly.
12078 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
12079 mode on 32 bits targets.
12081 2001-12-17 Vincent Celier <celier@gnat.com>
12083 * fmap.adb: Initial version.
12085 * fmap.ads: Initial version.
12087 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
12088 If search is successfully done, add to mapping.
12090 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
12093 (Gnatmake): Add new local variable Mapping_File_Name.
12094 Create mapping file when using project file(s).
12095 Delete mapping file before exiting.
12097 * opt.ads (Mapping_File_Name): New variable
12099 * osint.adb (Find_File): Use path name found in mapping, if any.
12101 * prj-env.adb (Create_Mapping_File): New procedure
12103 * prj-env.ads (Create_Mapping_File): New procedure.
12105 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
12108 * usage.adb: Add entry for new switch -gnatem.
12110 * Makefile.in: Add dependencies for fmap.o.
12112 2001-12-17 Ed Schonberg <schonber@gnat.com>
12114 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
12115 is a package instantiation rewritten as a package body.
12116 (Install_Withed_Unit): Undo previous change, now redundant.
12118 2001-12-17 Gary Dismukes <dismukes@gnat.com>
12121 (Compute_Length): Move conversion to Unsigned to callers.
12122 (Get_Max_Size): Convert Len expression to Unsigned after calls to
12123 Compute_Length and Determine_Range.
12124 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
12125 Compute_Length and Determine_Range.
12126 Above changes fix problem with length computation for supernull arrays
12127 where Max (Len, 0) wasn't getting applied due to the Unsigned
12128 conversion used by Compute_Length.
12130 2001-12-17 Arnaud Charlet <charlet@gnat.com>
12133 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
12134 System.Secondary_Stack.
12135 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
12137 Remove unused entity RE_Exception_Data.
12139 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
12141 * rident.ads (No_Secondary_Stack): New restriction.
12143 2001-12-17 Joel Brobecker <brobecke@gnat.com>
12145 * gnat_rm.texi: Fix minor typos. Found while reading the section
12146 regarding "Bit_Order Clauses" that was sent to a customer.
12147 Very interesting documentation!
12149 2001-12-17 Robert Dewar <dewar@gnat.com>
12151 * sem_case.adb (Choice_Image): Avoid creating improper character
12152 literal names by using the routine Set_Character_Literal_Name. This
12153 fixes bombs in certain error message cases.
12155 2001-12-17 Arnaud Charlet <charlet@gnat.com>
12157 * a-reatim.adb: Minor reformatting.
12159 2001-12-17 Ed Schonberg <schonber@gnat.com>
12161 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
12162 case where the formal is an extension of another formal in the current
12163 unit or in a parent generic unit.
12165 2001-12-17 Arnaud Charlet <charlet@gnat.com>
12167 * s-tposen.adb: Update comments. Minor reformatting.
12168 Minor code clean up.
12170 * s-tarest.adb: Update comments. Minor code reorganization.
12172 2001-12-17 Gary Dismukes <dismukes@gnat.com>
12174 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
12177 2001-12-17 Robert Dewar <dewar@gnat.com>
12179 * exp_attr.adb: Minor reformatting
12181 2001-12-17 Ed Schonberg <schonber@gnat.com>
12183 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
12184 derivations nested within a child unit: verify that the parent
12185 type is declared in an outer scope.
12187 2001-12-17 Robert Dewar <dewar@gnat.com>
12189 * sem_ch12.adb: Minor reformatting
12191 2001-12-17 Ed Schonberg <schonber@gnat.com>
12193 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
12194 warning if current unit is a predefined one, from which bodies may
12197 2001-12-17 Robert Dewar <dewar@gnat.com>
12199 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
12200 Fix header format. Add 2001 to copyright date.
12202 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
12203 which caused CE during compilation if checks were enabled.
12205 2001-12-17 Vincent Celier <celier@gnat.com>
12208 (Switches_Of): New function
12209 (Test_If_Relative_Path): New procedure
12210 (Add_Switches): Use new function Switches_Of
12211 (Collect_Arguments_And_Compile): Use new function Switches_Of.
12212 When using a project file, test if there are any relative
12213 search path. Fail if there are any.
12214 (Gnatmake): Only add switches for the primary directory when not using
12215 a project file. When using a project file, change directory to the
12216 object directory of the main project file. When using a project file,
12217 test if there are any relative search path. Fail if there are any.
12218 When using a project file, fail if specified executable is relative
12219 path with directory information, and prepend executable, if not
12220 specified as an absolute path, with the exec directory. Make sure
12221 that only one -o switch is transmitted to the linker.
12223 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
12226 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
12227 when using a non standard naming scheme.
12228 (Check_Ada_Naming_Scheme): Make sure that error messages
12229 do not raise exceptions.
12230 (Is_Illegal_Append): Return True if there is no dot in the suffix.
12231 (Language_Independent_Check): Check the exec directory.
12233 * prj.adb (Project_Empty): Add new component Exec_Directory
12236 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
12237 (Project_Data): Add component Exec_Directory
12239 * snames.adb: Updated to match snames.ads revision 1.215
12241 * snames.ads: Added Exec_Dir
12243 2001-12-17 Robert Dewar <dewar@gnat.com>
12245 * make.adb: Minor reformatting
12247 * prj-nmsc.adb: Minor reformatting
12249 * snames.adb: Updated to match snames.ads
12251 * snames.ads: Alphebetize entries for project file
12253 2001-12-17 Ed Schonberg <schonber@gnat.com>
12255 * trans.c (process_freeze_entity): Do nothing if the entity is a
12256 subprogram that was already elaborated.
12258 2001-12-17 Richard Kenner <kenner@gnat.com>
12260 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
12261 and Esize if object is referenced via pointer.
12263 2001-12-17 Ed Schonberg <schonber@gnat.com>
12265 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
12266 is discrete before analyzing choices.
12268 2001-12-17 Joel Brobecker <brobecke@gnat.com>
12270 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
12271 containing the name of the Ada Main Program. This string is mainly
12272 intended for the debugger.
12273 (Gen_Output_File_C): Do the equivalent change when generating a C file.
12275 2001-12-17 Robert Dewar <dewar@gnat.com>
12277 * ali.adb: Set new Dummy_Entry field in dependency entry
12279 * ali.ads: Add Dummy_Entry field to source dependency table
12281 * bcheck.adb (Check_Consistency): Ignore dummy D lines
12283 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
12285 * lib-writ.ads: Document dummy D lines for missing files.
12287 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
12289 2001-12-17 Robert Dewar <dewar@gnat.com>
12291 * ali.adb: Type reference does not reset current file.
12293 * ali.adb: Recognize and scan renaming reference
12295 * ali.ads: Add spec for storing renaming references.
12297 * lib-xref.ads: Add documentation for handling of renaming references
12299 * lib-xref.adb: Implement output of renaming reference.
12302 (Determine_Range): Document local variables
12303 (Determine_Range): Make sure Hbound is initialized. It looks as though
12304 there could be a real problem here with an uninitialized reference
12305 to Hbound, but no actual example of failure has been found.
12307 2001-12-17 Laurent Pautet <pautet@gnat.com>
12310 Fix comment of Shutdown_Socket and Close_Socket. These functions
12311 should not fail silently because if they are called twice, this
12312 probably means that there is a race condition in the user program.
12313 Anyway, this behaviour is consistent with the rest of this unit.
12314 When an error occurs, an exception is raised with the error message
12315 as exception message.
12317 2001-12-17 Robert Dewar <dewar@gnat.com>
12319 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
12320 that it happens before modification of Sloc values for -gnatD.
12322 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
12323 so that it happens before modification of Sloc values for -gnatD.
12325 * switch.adb: Minor reformatting
12327 2001-12-15 Richard Henderson <rth@redhat.com>
12329 * sem_ch7.adb: Wrap comment.
12331 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
12333 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
12334 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
12335 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
12336 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
12337 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
12338 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
12339 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
12340 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
12341 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
12342 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
12343 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
12344 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
12345 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
12346 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
12347 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
12348 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
12349 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
12350 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
12351 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
12352 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
12353 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
12354 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
12355 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
12356 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
12359 2001-12-14 Vincent Celier <celier@gnat.com>
12361 * osint.adb(Create_Debug_File): When an object file is specified,
12362 put the .dg file in the same directory as the object file.
12364 2001-12-14 Robert Dewar <dewar@gnat.com>
12366 * osint.adb: Minor reformatting
12368 * lib-xref.adb (Output_Instantiation): New procedure to generate
12369 instantiation references.
12371 * lib-xref.ads: Add documentation of handling of generic references.
12373 * ali.adb (Read_Instantiation_Ref): New procedure to read
12374 instantiation references
12376 * ali.ads: Add spec for storing instantiation references
12378 * bindusg.adb: Minor reformatting
12380 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
12382 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
12384 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
12386 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
12390 Add 2001 to copyright date
12391 Add entry for Latin-5 (Cyrillic ISO-8859-5)
12393 2001-12-14 Matt Gingell <gingell@gnat.com>
12395 * adaint.c: mktemp is a macro on Lynx and can not be used as an
12398 2001-12-14 Richard Kenner <kenner@gnat.com>
12400 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
12401 if operand is CONSTRUCTOR.
12403 2001-12-14 Ed Schonberg <schonber@gnat.com>
12405 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
12406 before emiting check on right-hand side, so that exception information
12409 2001-12-14 Richard Kenner <kenner@gnat.com>
12411 * utils.c (create_var_decl): Throw away initializing expression
12412 if just annotating types and non-constant.
12414 2001-12-14 Vincent Celier <celier@gnat.com>
12416 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
12419 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
12421 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
12423 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
12425 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
12427 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
12429 * ChangeLog: Remove piece of diff output.
12431 2001-12-14 Geert Bosch <bosch@gnat.com>
12433 * config-lang.in: Update copyright notice
12435 * layout.adb: Remove commented out code.
12437 * mdllfile.ads: Update copyright notice. Fix header format.
12439 * sem_case.ads: Likewise.
12441 * sem_ch3.adb: Minor reformatting.
12443 2001-12-12 Geert Bosch <bosch@gnat.com>
12445 * freeze.ads: Update copyright date.
12447 * g-comlin.ads: Minor reformatting.
12449 * gnat-style.texi: Fix typo.
12451 2001-12-12 Geert Bosch <bosch@gnat.com>
12453 * einfo.h: Regenerate.
12455 2001-12-12 Ed Schonberg <schonber@gnat.com>
12457 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
12458 on known node types, rather than untyped fields. Further cleanups.
12460 2001-12-12 Robert Dewar <dewar@gnat.com>
12463 (Save_Entity_Descendant): Minor comment update.
12464 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
12465 of an N_Attribute_Reference node. As per note below, this does not
12466 eliminate need for Associated_Node in attribute ref nodes.
12467 (Associated_Node): Documentation explicitly mentions attribute
12468 reference nodes, since this field is used in such nodes.
12470 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
12472 2001-12-12 Robert Dewar <dewar@gnat.com>
12474 * s-stalib.adb: Add more comments on with statements being needed
12476 * par-ch12.adb: Minor reformatting
12478 * prj-dect.ads: Fix copyright header
12480 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
12481 inputs fit in 32 bits, but the result still overflows.
12483 * s-fatgen.ads: Minor comment improvement
12485 2001-12-12 Ed Schonberg <schonber@gnat.com>
12487 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
12488 formal derived type, look for an inherited component from the full
12489 view of the parent, if any.
12491 2001-12-12 Robert Dewar <dewar@gnat.com>
12493 * checks.ads (Apply_Alignment_Check): New procedure.
12495 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
12496 ensure that the alignment of objects with address clauses is
12497 appropriate, and raise PE if not.
12499 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
12500 Exp_Pakd.Known_Aligned_Enough
12502 * mdllfile.ads: Minor reformatting
12504 * mlib-fil.ads: Minor reformatting
12506 2001-12-12 Ed Schonberg <schonber@gnat.com>
12508 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
12509 fix to any component reference if enclosing record has non-standard
12512 2001-12-12 Vincent Celier <celier@gnat.com>
12514 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
12517 2001-12-12 Ed Schonberg <schonber@gnat.com>
12519 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
12522 2001-12-12 Robert Dewar <dewar@gnat.com>
12524 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
12526 2001-12-12 Emmanuel Briot <briot@gnat.com>
12528 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
12529 and it adds dependencies to system.io.
12531 2001-12-12 Pascal Obry <obry@gnat.com>
12533 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
12536 2001-12-11 Ed Schonberg <schonber@gnat.com>
12538 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
12539 that is the parent of other generics, the instance body replaces the
12540 instance node. Retrieve the instance of the spec, which is the one
12541 that is visible in clients and within the body.
12543 2001-12-11 Vincent Celier <celier@gnat.com>
12545 * gnatmain.adb: Initial version.
12547 * gnatmain.ads: Initial version.
12549 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
12551 * snames.adb: Updated to match snames.ads.
12553 * snames.ads: Added Gnatstub.
12555 2001-12-11 Vincent Celier <celier@gnat.com>
12557 * prj-attr.adb (Initialization_Data): Change name from
12558 Initialisation_Data.
12560 2001-12-11 Emmanuel Briot <briot@gnat.com>
12562 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
12563 + and * applied to backslashed expressions like \r.
12565 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
12567 * g-os_lib.ads: String_List type added, Argument_List type is now
12568 subtype of String_List.
12570 2001-12-11 Robert Dewar <dewar@gnat.com>
12572 * g-os_lib.ads: Change copyright to FSF
12573 Add comments for String_List type
12575 2001-12-11 Vincent Celier <celier@gnat.com>
12577 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
12578 string to the buffer).
12580 2001-12-11 Ed Schonberg <schonber@gnat.com>
12582 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
12585 * sem_attr.adb: Simplify previous fix for Address.
12586 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
12587 to avoid anomalies where the bound of the type appears to raise
12590 2001-12-11 Robert Dewar <dewar@gnat.com>
12592 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
12595 2001-12-11 Ed Schonberg <schonber@gnat.com>
12597 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
12598 renamed unit before checking for recursive instantiations.
12600 2001-12-11 Emmanuel Briot <briot@gnat.com>
12602 * prj.ads: Add comments for some of the fields.
12604 2001-12-11 Robert Dewar <dewar@gnat.com>
12606 * lib-xref.adb (Output_Refs): Don't output type references outside
12607 the main unit if they are not otherwise referenced.
12609 2001-12-11 Ed Schonberg <schonber@gnat.com>
12611 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
12612 code and diagnose additional illegal uses
12614 * sem_util.adb (Is_Object_Reference): An indexed component is an
12615 object only if the prefix is.
12617 2001-12-11 Vincent Celier <celier@gnat.com>
12619 * g-diopit.adb: Initial version.
12621 * g-diopit.ads: Initial version.
12624 (Expand_Path): Avoid use of Unbounded_String
12625 (Find, Wildcard_Iterator): Moved to child package Iteration
12627 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
12629 2001-12-11 Robert Dewar <dewar@gnat.com>
12631 * sem_attr.adb: Minor reformatting
12633 2001-12-11 Ed Schonberg <schonber@gnat.com>
12635 * sem_ch3.adb: Clarify some ???.
12637 2001-12-11 Robert Dewar <dewar@gnat.com>
12639 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
12640 Exp_Pakd.Known_Aligned_Enough
12642 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
12643 version is moved to Exp_Ch13.
12645 2001-12-11 Robert Dewar <dewar@gnat.com>
12647 * einfo.ads: Minor reformatting
12649 * exp_ch5.adb: Add comment for previous.change
12651 * ali.adb: New interface for extended typeref stuff.
12653 * ali.ads: New interface for typeref stuff.
12655 * checks.adb (Apply_Alignment_Check): New procedure.
12657 * debug.adb: Add -gnatdM for modified ALI output
12659 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
12661 * lib-xref.adb: Extend generation of <..> notation to cover
12662 subtype/object types. Note that this is a complete rewrite,
12663 getting rid of the very nasty quadratic algorithm previously
12664 used for derived type output.
12666 * lib-xref.ads: Extend description of <..> notation to cover
12667 subtype/object types. Uses {..} for these other cases.
12668 Also use (..) for pointer types.
12670 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
12672 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
12673 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
12675 2001-12-11 Vincent Celier <celier@gnat.com>
12678 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
12679 Changed /BIND_ONLY to /ACTIONS=BIND
12680 Changed /LINK_ONLY to /ACTIONS=LINK
12682 2001-12-11 Ed Schonberg <schonber@gnat.com>
12684 * sem_ch8.adb (Find_Selected_Component): improved search for a
12685 candidate package in case of error.
12687 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
12688 chain back on scope stack before reinstalling use clauses.
12690 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
12691 is enabled, do not kill the code for the condition, to preserve
12694 2001-12-11 Robert Dewar <dewar@gnat.com>
12696 * checks.adb (Insert_Valid_Check): Apply validity check to expression
12697 of conversion, not to result of conversion.
12699 2001-12-11 Ed Schonberg <schonber@gnat.com>
12701 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
12702 before freezing parent. If the declarations are mutually recursive,
12703 an access to the current record type may be frozen before the
12704 derivation is complete.
12706 2001-12-05 Vincent Celier <celier@gnat.com>
12708 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
12709 -c /COMPILE_ONLY, -l /LINK_ONLY
12712 (Bind_Only): New Flag
12713 (Link_Only): New flag
12715 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
12718 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
12721 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
12722 (Gnatmake): Set the step flags. Only perform a step if the
12723 corresponding step flag is True.
12724 (Scan_Make_Arg): Reset the bind and link step flags when -u
12725 or -gnatc has been specified.
12727 2001-12-05 Ed Schonberg <schonber@gnat.com>
12729 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
12730 get bounds from right operand.
12732 * sem_eval.adb: Minor reformatting
12734 * exp_util.adb (Make_Literal_Range): use bound of literal rather
12735 than Index'First, its lower bound may be different from 1.
12737 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
12740 2001-12-05 Vincent Celier <celier@gnat.com>
12742 * prj-nmsc.adb Minor reformatting
12744 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
12745 set and libraries are not supported.
12747 2001-12-05 Ed Schonberg <schonber@gnat.com>
12749 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
12750 private view explicitly, so the back-end can treat as a global
12753 2001-12-05 Ed Schonberg <schonber@gnat.com>
12755 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
12756 unit, always replace instance node with new body, for ASIS use.
12758 2001-12-05 Vincent Celier <celier@gnat.com>
12760 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
12761 libraries are not supported and both attributes Library_Name and
12762 Library_Dir are specified.
12764 * prj-proc.adb (Expression): Set location of Result to location of
12767 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
12768 (prj-nmsc is now importing MLib.Tgt)
12770 * prj-proc.adb: Put the change indicated above that was forgotten.
12772 2001-12-05 Robert Dewar <dewar@gnat.com>
12774 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
12776 2001-12-05 Ed Schonberg <schonber@gnat.com>
12778 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
12779 constraint, introduce explicit subtype declaration and derive from it.
12781 * sem_ch3.adb: Minor reformatting
12783 2001-12-05 Robert Dewar <dewar@gnat.com>
12785 * checks.adb (Determine_Range): Increase cache size for checks.
12788 * exp_ch6.adb: Minor reformatting
12789 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
12790 a parameter whose root type is System.Address, since treating such
12791 subprograms as pure in the code generator is almost surely a mistake
12792 that will lead to unexpected results.
12794 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
12795 change handling of conversions.
12797 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
12799 2001-12-05 Ed Schonberg <schonber@gnat.com>
12801 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
12802 aggregate with static wrong size, attach generated Raise node to
12805 2001-12-05 Robert Dewar <dewar@gnat.com>
12807 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
12808 Fixes compilation abandoned bomb in B24009B.
12810 2001-12-05 Ed Schonberg <schonber@gnat.com>
12813 Document use of Associated_Node on Selected_Components.
12814 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
12815 to clarify use of untyped descendant fields.
12817 2001-12-05 Robert Dewar <dewar@gnat.com>
12819 * prj-dect.ads: Add ??? comment
12820 Add 2001 to copyright notice (was not done in after all)
12822 * prj-part.adb: Minor reformatting. Reword one awkward error message.
12824 * prj.ads: Minor reformatting throughout, and add some ??? comments
12826 * snames.ads: Minor reformatting
12828 2001-12-05 Geert Bosch <bosch@gnat.com>
12830 * snames.adb: Autoupdate
12832 2001-12-05 Vincent Celier <celier@gnat.com>
12834 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
12836 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
12838 * prj-env.adb: Minor comment changes (modifying -> extends).
12840 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
12842 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
12845 * prj.adb (Initialize): Change Modifying to Extends.
12847 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
12849 * prj.ads: Minor comment change (Modifying -> extending).
12851 * snames.ads: Change modifying to extends.
12853 2001-12-05 Robert Dewar <dewar@gnat.com>
12855 * sem_warn.adb: Remove stuff for conditionals, we are not going to
12858 * sem_warn.ads: Remove stuff for conditionals, we are not going to
12859 do this after all. Add 2001 to copyright notice
12861 2001-12-04 Geert Bosch <bosch@gnat.com>
12863 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
12865 2001-12-04 Robert Dewar <dewar@gnat.com>
12867 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
12868 location if we already have errors. Stops some cases of cascaded
12871 * errout.adb: Improve comment.
12873 2001-12-04 Robert Dewar <dewar@gnat.com>
12876 (Analyze_Formal_Type_Definition): Defend against Error.
12877 (Analyze_Formal_Subprogram): Defend against Error.
12879 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
12880 remove following semicolon if present. Removes cascaded error.
12882 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
12885 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
12886 exceptions equals 0.
12887 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
12888 Fixes PIWG E tests (which have to be run with -gnatL).
12890 2001-12-04 Robert Dewar <dewar@gnat.com>
12892 * einfo.ads: Minor reformatting
12894 2001-12-04 Ed Schonberg <schonber@gnat.com>
12896 * einfo.ads: Block_Node points to the identifier of the block, not to
12897 the block node itself, to preserve the link when the block is
12898 rewritten, e.g. within an if-statement with a static condition.
12900 * inline.adb (Cleanup_Scopes): recover block statement from block
12901 entity using new meaning of Block_Node.
12903 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
12904 identifier of block node, rather than to node itself.
12906 2001-12-04 Gary Dismukes <dismukes@gnat.com>
12909 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
12910 (Discrimify): Go back to setting the Etypes of the selected component
12911 because the Vname component does not exist at this point and will
12912 fail name resolution. Also set Analyzed.
12913 Remove with and use of Sem_Res.
12915 2001-12-04 Arnaud Charlet <charlet@gnat.com>
12917 * Makefile.in: (HIE_SOURCES): add s-fat*.
12919 2001-12-04 Robert Dewar <dewar@gnat.com>
12922 (Compile_Time_Known_Attribute): New procedure.
12923 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
12924 proper range check.
12926 2001-12-04 Ed Schonberg <schonber@gnat.com>
12928 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
12929 processing discriminants to diagnose illegal default values.
12931 2001-12-04 Ed Schonberg <schonber@gnat.com>
12933 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
12934 access discriminant within a type extension that constrains its
12935 parent discriminants.
12937 2001-12-04 Ed Schonberg <schonber@gnat.com>
12939 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
12940 is malformed, use instance of Any_Id to allow analysis to proceed.
12942 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
12943 type definition is illegal.
12944 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
12947 2001-12-04 Ed Schonberg <schonber@gnat.com>
12949 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
12952 2001-12-04 Robert Dewar <dewar@gnat.com>
12954 * errout.adb: Minor reformatting
12956 2001-12-04 Robert Dewar <dewar@gnat.com>
12958 * exp_util.adb: Minor reformatting from last change
12960 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
12961 which is a rewriting of an expression, traverse the original
12962 expression to remove warnings that may have been posted on it.
12964 2001-12-04 Ed Schonberg <schonber@gnat.com>
12966 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
12967 record that has other packed components.
12969 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
12971 * adaint.c: Minor cleanups.
12973 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
12975 * adaint.c: Do not use utime.h on vxworks.
12977 2001-12-04 Arnaud Charlet <charlet@gnat.com>
12979 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
12980 more confusion than it solves.
12982 2001-12-04 Geert bosch <bosch@gnat.com>
12984 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
12986 2001-12-04 Geert Bosch <bosch@gnat.com>
12988 * Makefile.in (update-sources): New target.
12989 For use by gcc_release script.
12991 2001-12-04 Ed Schonberg <schonber@gnat.com>
12993 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
12994 a configuration pragma, it is now legal wherever a pragma can appear.
12996 2001-12-04 Zack Weinberg <zack@codesourcery.com>
12998 * Makefile.in: Don't set ALL. Delete @cross_defines@,
12999 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
13000 is now @CROSS@ -DIN_GCC; update comment.
13002 2001-12-04 Robert Dewar <dewar@gnat.com>
13004 * einfo.adb (Has_Pragma_Pure_Function): New flag.
13005 Fix problem that stopped ceinfo from working
13007 * einfo.ads (Has_Pragma_Pure_Function): New flag.
13009 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
13011 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
13014 (File_Time_Stamp): New procedure.
13015 (Preserve_Mode): New boolean.
13016 (Write_Unit): Pass time stamp.
13017 Implement -p switch (preserve time stamps).
13019 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
13021 * gnatchop.adb: Do usage info for -p switch
13023 * adaint.h (__gnat_set_file_time_name): New function
13025 * adaint.c (__gnat_set_file_time_name): Implement
13027 * adaint.h: Fix typo
13029 2001-12-03 Robert Dewar <dewar@gnat.com>
13031 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
13032 have Associated_Node.
13034 2001-12-03 Robert Dewar <dewar@gnat.com>
13036 * prj-proc.adb: Minor reformatting
13038 * make.adb: Minor reformatting
13040 2001-12-03 Geert Bosch <bosch@gnat.com>
13042 * make.adb: Minor reformatting.
13044 2001-12-03 Robert Dewar <dewar@gnat.com>
13046 * sem_ch12.adb: Minor reformatting
13048 2001-12-03 Ed Schonberg <schonber@gnat.com>
13050 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
13051 push Standard on the stack before analyzing the instance body,
13052 in order to have a clean visibility environment.
13054 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
13056 2001-12-03 Ed Schonberg <schonber@gnat.com>
13058 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
13059 instantiation of a body that contains an inlined body.
13061 2001-12-03 Ed Schonberg <schonber@gnat.com>
13064 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
13065 to prevent freezing within formal packages.
13066 (Freeze_Subprogram_Body): If body comes from another instance that
13067 appeared before its own body, place freeze node at end of current
13068 declarative part, to prevent a back-end crash.
13069 (Inline_Instance_Body): Handle properly a package instance within
13070 a subprogram instance that is a child unit.
13072 2001-12-01 Graham Stott <grahams@redhat.com>
13074 * Makefile.in (misc.o): Add missing $(srcdir) prefix
13075 and add optabs.h dependency.
13077 * misc.c: Include optabs.h
13078 (gnat_tree_code_type): Make static and const.
13079 (gnat_tree_code_length): Likewise.
13080 (gnat_tree_code_name): Likewise.
13081 (update_setjmp_buf): Obtain operands mode from insn_data.
13083 2001-11-29 Richard Henderson <rth@redhat.com>
13085 * init.c: Remove obsolete dwarf2 frame.h section.
13087 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
13089 * Make-lang.in (ada.generated-manpages): New dummy target.
13091 2001-11-29 Ed Schonberg <schonber@gnat.com>
13093 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
13094 into Command, an array conversion is illegal here. Uncovered by
13097 2001/11/28 Geert Bosch <bosch@gnat.com>
13099 * init.c: Minor whitespace changes.
13101 2001-11-28 Doug Rupp <rupp@gnat.com>
13103 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
13106 2001-11-28 Zack Weinberg <zack@codesourcery.com>
13108 * misc.c (gnat_expand_constant): Move declaration above
13109 definition of lang_hooks.
13110 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
13111 (gnat_init): lang_expand_constant no longer exists.
13113 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
13114 always have vprintf.
13115 (gnat_init): Always call set_internal_error_function.
13117 2001-11-27 Andreas Jaeger <aj@suse.de>
13119 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
13121 2001-11-27 Laurent Guerby <guerby@acm.org>
13123 * Makefile.in: Regenerate Ada dependencies.
13125 2001-11-26 Richard Henderson <rth@redhat.com>
13127 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
13128 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
13129 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
13131 2001-11-25 Laurent Guerby <guerby@acm.org>
13133 * sysdep.c (rts_get_*): Fix style.
13135 2001-11-19 Laurent Guerby <guerby@acm.org>
13137 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
13138 since it is of no apparent use and cause warnings.
13140 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
13142 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
13144 (gnat_init): Don't return NULL.
13145 (finish_parse): Remove.
13147 2001-11-17 Laurent Guerby <guerby@acm.org>
13149 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
13150 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
13151 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
13152 * lang-spec.h: Add missing struct field to silence warnings.
13153 * sysdep.c (rts_get_*): Provide K&R prototype.
13154 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
13155 * traceback.c (Unlock_Task, Lock_Task): Likewise.
13156 * tracebak.c (__gnat_backtrace): Remove unused variable.
13157 * utils.c (end_subprog_body): Move to K&R style.
13159 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13161 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
13163 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
13165 * misc.c (gnat_init): Change prototype. Include the
13166 functionality of the old init_parse and init_decl_processing.
13167 (gnat_init_decl_processing): New prototype.
13168 (init_parse): Remove.
13169 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
13171 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
13173 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
13174 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
13175 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
13176 set_yydebug): Remove.
13178 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
13180 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
13181 (struct lang_hooks): Constify.
13182 (language_string, lang_identify): Remove.
13183 * utils.c (init_decl_processing): Update.
13185 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
13187 * misc.c: Include langhooks-def.h.
13188 * Makefile.in: Update.
13190 2001-10-30 Robert Dewar <dewar@gnat.com>
13193 (Check_Identifier): Rewrite circuit to be compatible with use of letters
13194 in the upper half of ASCII.
13195 (Check_Identifier): Minor reformatting
13197 2001-10-30 Geert Bosch <bosch@gnat.com>
13199 * (Associated_Node, Set_Associated_Node): Do not check for
13202 2001-10-30 Robert Dewar <dewar@gnat.com>
13204 * a-reatim.ads: Minor reformatting
13206 2001-10-30 Robert Dewar <dewar@gnat.com>
13208 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
13209 undocumented declarations.
13211 2001-10-30 Pascal Obry <obry@gnat.com>
13213 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
13214 to the binder and linker.
13217 * mdll.ads: Fix layout. Update copyright notice.
13219 * mdll.adb: Fix layout. Update copyright notice.
13221 2001-10-30 Robert Dewar <dewar@gnat.com>
13223 * usage.adb: Minor fix to output for -gnaty.
13225 2001-10-30 Ed Schonberg <schonber@gnat.com>
13227 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
13228 to accommodate all its possible values.
13230 * a-reatim.adb (Split): Special-case handling of Time_Span_First
13231 and of small absolute values of T.
13233 2001-10-30 Richard Kenner <kenner@gnat.com>
13235 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
13236 set_mem_attributes since not needed and wrong if RESULT if a REG;
13237 fixes ACATS failures.
13239 2001-10-30 Geert Bosch <bosch@gnat.com>
13241 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
13242 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
13244 2001-10-30 Robert Dewar <dewar@gnat.com>
13246 * bindusg.adb: Undocument -f switch.
13248 * gnatcmd.adb: Remove /FULL_ELABORATION.
13250 * opt.ads (Force_RM_Elaboration_Order): Document that this is
13253 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
13255 * gnatbind.adb: Minor update of warning msg.
13257 2001-10-30 Vincent Celier <celier@gnat.com>
13259 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
13260 for project file switches (-P (/PROJECT_FILE=),
13261 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
13264 2001-10-30 Geert Bosch <bosch@gnat.com>
13266 * decl.c: Minor whitespace fixes.
13268 2001-10-30 Richard Kenner <kenner@gnat.com>
13270 * utils2.c (build_allocator): Test for SIZE overflow in array case too
13272 2001-10-30 Geert Bosch <bosch@gnat.com>
13274 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
13275 Found due to GCC 3.0 warning of using uninitialized value.
13278 (Get_Max_Size): Use variant record for tracking value/expression.
13279 Makes logic clearer and prevents warnings for uninitialized variables.
13280 (Layout_Array_Type): Use variant record for tracking value/expression.
13281 Makes logic clearer and prevents warnings for uninitialized variables.
13283 2001-10-30 Robert Dewar <dewar@gnat.com>
13285 * lib.adb: Minor reformatting
13287 * s-taprop.ads: Minor reformatting
13289 2001-10-29 Laurent Guerby <guerby@acm.org>
13292 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
13294 (_gnat_error_handler): Make MSG const.
13296 2001-10-29 Richard Kenner <kenner@gnat.com>
13298 * sysdep.c: Fix localtime_r problem on LynxOS.
13299 Also remove #elif to avoid warnings.
13301 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
13304 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
13306 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
13308 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
13309 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
13310 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
13311 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
13312 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
13313 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
13314 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
13315 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
13316 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
13317 types.ads, urealp.adb: Fix spelling errors.
13319 2001-10-27 Laurent Guerby <guerby@acm.org>
13321 * trans.c (gigi): Fix non determinism leading to bootstrap
13322 comparison failures for debugging information.
13324 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
13326 * gnat_rm.texi: Use @./@: where appropriate.
13328 2001-10-26 Robert Dewar <dewar@gnat.com>
13330 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
13332 2001-10-26 Richard Kenner <kenner@gnat.com>
13334 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
13336 2001-10-26 Richard Kenner <kenner@gnat.com>
13338 * decl.c (validate_size): Modify message for bad size to avoid
13339 implication that compiler is modifying the size.
13341 2001-10-26 Robert Dewar <dewar@gnat.com>
13343 * prj-util.adb: Minor reformatting. Fix bad header format.
13345 2001-10-26 Robert Dewar <dewar@gnat.com>
13347 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
13349 * sinfo.ads: Clarify use of Associated_Node (documentation only).
13351 * sem_ch12.adb: Change Node4 to Associated_Node. Change
13352 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
13353 much more narrowly in places where needed. These are cleanups.
13355 2001-10-26 Joel Brobecker <brobecke@gnat.com>
13357 * 5zosinte.ads (null_pthread): new constant.
13360 (Initialize_TCB): Initialize thread ID to null, to be able to verify
13361 later that this field has been set.
13362 (Finalize_TCB): ditto.
13363 (Suspend_Task): Verify that the thread ID is not null before using it.
13364 (Resume_Task): ditto.
13367 (Resume_All_Tasks): Lock the tasks list before using it.
13368 (Suspend_All_Tasks): ditto.
13370 2001-10-26 Richard Kenner <kenner@gnat.com>
13372 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
13373 Make constant variant of designated type for Is_Access_Constant.
13374 Call update_pointer_to with main variant.
13376 * trans.c (process_freeze_entity, process_type):
13377 Call update_pointer_to on main variant.
13379 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
13380 If main variant, update all other variants.
13382 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
13385 2001-10-26 Robert Dewar <dewar@gnat.com>
13387 * prj-util.adb: Minor reformatting
13389 2001-10-26 Robert Dewar <dewar@gnat.com>
13391 * prj-util.adb: Minor reformatting
13393 2001-10-26 Robert Dewar <dewar@gnat.com>
13395 * prj-attr.adb: Minor reformatting throughout
13397 2001-10-26 Robert Dewar <dewar@gnat.com>
13399 * prj-attr.ads: Minor reformatting
13400 Add ??? comment (this whole spec has almost no comments)
13402 2001-10-26 Vincent Celier <celier@gnat.com>
13404 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
13405 ("//") that precede the drive letter on Interix.
13407 2001-10-26 Geert Bosch <bosch@gnat.com>
13409 * gnat_rm.texi: Add GNAT Reference Manual.
13411 2001-10-25 Robert Dewar <dewar@gnat.com>
13413 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
13414 is Error. Similar change for other renaming cases.
13416 2001-10-25 Robert Dewar <dewar@gnat.com>
13418 * s-atacco.ads: Add pragma Inline_Always for functions.
13419 Fix header format. Add copyright 2001
13421 2001-10-25 Ed Schonberg <schonber@gnat.com>
13423 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
13424 return Error rather than Empty so that analysis can proceed.
13426 2001-10-25 Ed Schonberg <schonber@gnat.com>
13428 * sem_util.adb (Enter_Name): better handling of cascaded error
13429 messages when a unit appears in its own context.
13431 2001-10-25 Ed Schonberg <schonber@gnat.com>
13433 * sem_util.adb (Defining_Entity): in case of error, attach created
13434 entity to specification, so that semantic analysis can proceed.
13436 2001-10-25 Robert Dewar <dewar@gnat.com>
13439 (Defining_Entity): Deal with Error.
13440 (Process_End_Label): Deal with bad end label for.
13442 2001-10-25 Ed Schonberg <schonber@gnat.com>
13444 * sem_elab.adb (Check_A_Call): refine message when call is in an
13445 instance but callee is not declared in the generic unit.
13447 2001-10-25 Ed Schonberg <schonber@gnat.com>
13449 * sem_elab.adb (Check_A_Call): check for renaming before finding the
13450 enclosing unit, which may already be different from the calling unit.
13452 2001-10-25 Geert Bosch <bosch@gnat.com>
13454 * 4gintnam.ads: fix header format.
13456 2001-10-25 Ed Schonberg <schonber@gnat.com>
13458 * sem_res.adb (Resolve_Call): if the call is actually an indexing
13459 operation on the result of a parameterless call, perform elaboration
13460 check after the node has been properly rewritten.
13462 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
13463 inlined within the generic tree, the defining identifier is not a
13466 2001-10-25 Ed Schonberg <schonber@gnat.com>
13468 * sem_res.adb (Resolve): special-case resolution of Null in an
13469 instance or an inlined body to avoid view conflicts.
13471 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
13472 compatibility by retrieving the access type of the generic copy.
13474 2001-10-25 Robert Dewar <dewar@gnat.com>
13477 (Analyze_Number_Declaration): Handle error expression.
13478 (Signed_Integer_Type_Declaration): Handle error bound.
13479 (Analyze_Subtype_Indication): Handle error range.
13481 * sem_util.adb (Get_Index_Bounds): Check for Error.
13483 2001-10-25 Robert Dewar <dewar@gnat.com>
13485 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
13486 in no run time mode.
13488 2001-10-25 Pascal Obry <obry@gnat.com>
13490 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
13491 mode case for ALLOC case.
13493 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
13494 all platforms. Improvement of last change.
13496 2001-10-25 Robert Dewar <dewar@gnat.com>
13498 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
13500 2001-10-25 Geert Bosch <bosch@gnat.com>
13502 * osint.adb (Is_Relative): Remove duplicate.
13504 2001-10-25 Pascal Obry <obry@gnat.com>
13506 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
13507 pathnames in UNIX and DOS style with drive letter.
13508 (Is_Relative): new routine.
13510 * osint.adb: Minor reformatting
13512 * osint.adb (Is_Relative): implementation using
13513 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
13515 2001-10-25 Pascal Obry <obry@gnat.com>
13517 * g-dirope.adb (Basename): correctly compute offset between the
13518 original Path and the translated one.
13520 * g-dirope.adb: (Base_Name): add some comments.
13522 2001-10-25 Robert Dewar <dewar@gnat.com>
13524 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
13525 in HIE mode, avoids compilation abandoned message
13527 * exp_imgv.adb: Correct typo in previous change
13529 * exp_imgv.adb: Correct typo in previous change (not my day!)
13531 2001-10-25 Robert Dewar <dewar@gnat.com>
13533 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
13535 2001-10-25 Pascal Obry <obry@gnat.com>
13537 * g-awk.ads: Move all pragma inlines next to the routine
13538 declarations. This is more uniform with other GNAT spec.
13540 2001-10-22 Geert Bosch <bosch@gnat.com>
13542 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
13544 2001-10-19 Geert Bosch <bosch@gnat.com>
13546 * Makefile.in (tools, gnattools): Remove gnatmem.
13548 2001-10-17 Richard Henderson <rth@redhat.com>
13550 * Makefile.in (misc.o): Depend on langhooks.h.
13551 * misc.c: Include it.
13552 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
13553 (LANG_HOOKS_DECODE_OPTION): New.
13554 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
13556 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
13558 * trans.c (tree_transform): Adjust to recent change in
13559 expand_asm_operands to implement named asm operands.
13561 2001-10-11 Ed Schonberg <schonber@gnat.com>
13563 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
13564 renaming of discriminant for mutable record type.
13566 2001-10-11 Robert Dewar <dewar@gnat.com>
13568 * validsw.adb: Properly save -gnatVn status.
13570 2001-10-11 Robert Dewar <dewar@gnat.com>
13572 * usage.adb: Add lines for V switch.
13574 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
13575 (/VALIDITY_CHECKING).
13577 2001-10-11 Ed Schonberg <schonber@gnat.com>
13579 * sem_type.adb (Add_One_Interp): an operator for a type declared in
13580 an extension of System is known to be visible.
13582 2001-10-11 Ed Schonberg <schonber@gnat.com>
13584 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
13585 properly. Fixes regression on ACATS C34005G.
13587 2001-10-11 Robert Dewar <dewar@gnat.com>
13589 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
13590 loop in generic instance, since this is likely not very useful.
13592 2001-10-11 Robert Dewar <dewar@gnat.com>
13594 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
13595 the error message for high integrity mode.
13597 * rtsfind.adb (RTE): Give message if we try to find an entity that
13598 is not available in high integrity mode.
13601 (OK_To_Use_In_HIE_Mode): New array.
13602 (RTE): May return Empty in high integrity mode.
13604 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
13605 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
13607 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
13608 unit if not inlined always and in no runtime mode. Fixes problem
13609 caused by new Rtsfind changes.
13611 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
13614 * rtsfind.adb (RTE): Make sure we do not try to load unit after
13615 giving message for entity not available in high integrity mode.
13617 2001-10-11 Pascal Obry <obry@gnat.com>
13619 * impunit.adb: Add GNAT.CRC32.
13621 2001-10-11 Ed Schonberg <schonber@gnat.com>
13623 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
13624 properly the case where one universal operand in a non-static
13625 exponentiation of a real literal.
13627 2001-10-11 Ed Schonberg <schonber@gnat.com>
13629 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
13630 clause, return the gobal finalization list, for lack of anthing else.
13632 2001-10-11 Ed Schonberg <schonber@gnat.com>
13634 * exp_ch7.adb (Make_Transient_Block): if statement is within
13635 exception handler, always use new transient scope to place Clean
13638 2001-10-11 Pascal Obry <obry@gnat.com>
13641 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
13642 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
13643 (GNATLS_RTL_OBJS): add g-crc32.o
13644 (GNATMAKE_RTL_OBJS): add g-crc32.o
13647 (CRC_Match): new function.
13648 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
13649 instead of the previous simple checksum algorithm.
13650 (Time_Stamp_Mismatch): use CRC_Match for comparison.
13651 (Set_Source_Table): idem.
13654 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
13655 instead of simple checksum.
13656 (CRC_Match): new function.
13657 (CRC_Error): new constant.
13659 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
13660 a CRC now and not a simple checksum. A CRC uses lower-case hex
13661 letters, fixes ambiguity in parsing.
13663 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
13664 is what this variable will store.
13666 * bcheck.adb: Change reference to chechsum in comments by CRC.
13667 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
13668 rename All_Checksum_Match to All_CRC_Match. Change due to API
13669 renaming since now GNAT does not use a simple checksum but a
13670 CRC using GNAT.CRC32.
13672 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
13673 now and not anymore a simple checksum.
13675 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
13678 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
13681 (Restore_Scan_State): rename Checksum to CRC.
13682 (Save_Scan_State): idem.
13686 (Checksum): rename to CRC.
13687 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
13689 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
13690 GNAT.CRC32). Update copyright notice.
13692 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
13693 GNAT.CRC32). Update copyright notice.
13696 (Accumulate_Checksum): removed.
13697 (Update): new procedure. Add a wide-character into the CRC.
13700 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
13701 (Load_File): fix initialization of S (change Source_Checksum to
13704 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
13705 Source_CRC in S initialization.
13707 * sinput.adb (Source_Checksum): renamed to Source_CRC.
13709 * sinput.ads (Source_Checksum): renamed to Source_CRC.
13710 Update comments for the CRC.
13712 * types.adb (Hex): Use lowercase for the letter part.
13714 * types.ads (Get_Hex_String): Returns the hexadecimal representation
13715 for a word. This is currently used only for CRC. In previous version,
13716 the checksum was using a representation with all letter being
13717 upper-case. With the new implementation (using CRC) we do not remove
13718 the 32th bit of the CRC, so we can have an upper-case starting letter
13719 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
13720 It is ambigous since the CRC was optional and could be followed by
13721 options like EB, EE. So now this routines uses lower-case letter for
13722 the hexadecimal representation. Strange enough only lower case letters
13723 where checked in Scan_ALI (even if this was not a possible case).
13725 * gnatvsn.ads (Library_Version): changed to 3.15a.
13727 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
13730 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
13733 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
13734 Add 2001 to copyright notice
13735 (Accumulate_Checksum): Modify to use System.CRC32.
13737 * ali-util.ads: Redo changes of previous revision to continue to use
13738 the word Checksum. Add 2001 to copyright notice.
13740 * ali.adb: Undo some of previous changes, not needed.
13741 Keep the change for lower case letters in the checksum.
13743 * ali.ads: Undo previous change not needed.
13745 * bcheck.adb: Undo most of previous change, not needed.
13746 But do use Checksums_Match for checksum comparison.
13748 * gnatls.adb: Undo most of previous change, not needed.
13749 But do use Checksums_Match for comparing checksums.
13751 * lib-load.adb: Undo previous change, not needed.
13753 * lib-writ.adb: Undo previous change, not needed.
13755 * lib-writ.ads: Document that checksums use lower case,
13756 not upper case letters.
13758 * scans.adb: Undo previous change, not needed
13760 * scans.ads: Undo previous change, not needed.
13762 * scn-nlit.adb: Undo previous changes, not needed.
13764 * scn-slit.adb: Undo previous change, not needed. Fix header format.
13767 (Accumulate_Checksum): Use System.CRC32.
13768 (Initialize_Checksum): New procedure.
13769 Remove other changes of previous revision.
13771 * sinput-p.adb: Undo previous change, not needed.
13773 * sinput.adb: Undo previous change, not needed.
13775 * sinput-l.adb: Undo previous change, not needed.
13777 * sinput.ads: Undo previous change, not needed. Keep only comment
13778 on new checksum algorithm
13780 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
13781 Also remove a-tags and a-stream from GNAT sources.
13783 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
13785 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
13787 2001-10-11 Geert Bosch <bosch@gnat.com>
13789 * einfo.h: Regenerate.
13791 * nmake.ads: Regenerate.
13793 * nmake.adb: Regenerate.
13795 * sinfo.h: Regenerate.
13797 * treeprs.adb: Regenerate.
13799 2001-10-10 Geert Bosch <bosch@gnat.com>
13801 * gnat-style.texi: New file describing coding guidelines for Ada.
13803 2001-10-10 Ed Schonberg <schonber@gnat.com>
13805 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
13808 2001-10-10 Geert Bosch <bosch@gnat.com>
13810 * snames.ads: Add new names for project facility.
13812 * snames.adb: Update to reflect snames.ads changes.
13814 * snames.h: Update to reflect snames.ads changes.
13816 2001-10-10 Vincent Celier <celier@gnat.com>
13819 (Add_Switches): reflect the changes for the switches attributes
13820 Default_Switches indexed by the programming language,
13821 Switches indexed by the file name.
13822 (Collect_Arguments_And_Compile): Idem.
13823 Reflect the attribute name changes.
13826 (Initialisation_Data): Change the names of some packages and
13828 (Initialize): process case insensitive associative arrays.
13831 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
13834 (Parse_Attribute_Declaration): For case insensitive associative
13835 arrays, set the index string to lower case.
13838 Reflect the changes of the project attributes.
13841 Replace Check_Naming_Scheme by Ada_Check and
13842 Language_Independent_Check.
13845 Replaced Check_Naming_Scheme by 2 procedures:
13846 Ada_Check and Language_Independent_Check.
13849 (Process_Declarative_Items): For case-insensitive associative
13850 arrays, set the index string to lower case.
13851 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
13852 Prj.Nmsc.Check_Naming_Scheme.
13855 (Case_Insensitive): New function
13856 (Set_Case_Insensitive): New procedure
13859 (Case_Insensitive): New function
13860 (Set_Case_Insensitive): New procedure
13861 (Project_Node_Record): New flag Case_Insensitive.
13864 (Value_Of): new function to get the string value of a single
13865 string variable or attribute.
13868 (Value_Of): new function to get the string value of a single
13869 string variable or attribute.
13872 (Ada_Default_Spec_Suffix): New function
13873 (Ada_Default_Impl_Suffix): New function
13874 Change definitions of several constants to reflect
13875 new components of record types.
13878 (Naming_Data): Change several components to reflect new
13879 elements of naming schemes.
13880 (Project_Data): New flags Sources_Present and
13881 Language_Independent_Checked.
13882 (Ada_Default_Spec_Suffix): New function.
13883 (Ada_Default_Impl_Suffix): New function.
13886 Modification of predefined names for project manager: added
13887 Implementation, Specification_Exceptions, Implementation_Exceptions,
13888 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
13889 Default_Switches, _Languages, Builder, Cross_Reference,
13890 Finder. Removed Body_Part, Specification_Append, Body_Append,
13891 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
13894 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
13897 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
13898 not that it is Nil_Variable_Value.
13900 * prj.ads: Add ??? for uncommented declarations
13902 2001-10-10 Ed Schonberg <schonber@gnat.com>
13904 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
13905 constant, do not indicate possible modification, so that gigi can
13906 treat it as a bona fide constant.
13908 2001-10-10 Robert Dewar <dewar@gnat.com>
13910 * sem_prag.adb: Add processing for pragma External.
13912 * snames.ads: Add entry for pragma External.
13914 * par-prag.adb: Add pragma External.
13916 * snames.adb: Updated to match snames.ads.
13918 2001-10-10 Ed Schonberg <schonber@gnat.com>
13920 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
13921 a dynamic task if the allocator appears in an indexed assignment
13922 or selected component assignment.
13924 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
13925 For a dynamic task in an assignment statement, use target of
13926 assignment to generate meaningful name.
13928 2001-10-10 Ed Schonberg <schonber@gnat.com>
13930 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
13933 * einfo.ads: Body_Entity is also defined for generic package.
13934 Documentation change only
13936 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
13937 others_choice for a discriminated component initialization,
13938 convert discriminant references into the corresponding discriminals.
13940 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
13941 only if original type is private and expression has to be wrapped
13945 (Apply_Constraint_Check): Do not perform length check
13946 if expression is an aggregate with only an others_choice.
13947 (Length_N_Cond): two references to the same in_parameter
13948 (typically the discriminal in an init_proc) denote the same value.
13949 Two useful optimization uncovered by bugfixes above.
13951 2001-10-10 Robert Dewar <dewar@gnat.com>
13953 * xeinfo.adb: Change int to char in translation of enumeration types.
13954 This fixes a problem in the C representation of component alignment.
13955 Add 2001 to copyright notice
13957 2001-10-10 Richard Kenner <kenner@gnat.com>
13959 * decl.c: (validate_size): Do check size of object of integral type
13960 if it is a packed array type.
13962 2001-10-10 Richard Kenner <kenner@gnat.com>
13964 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
13965 VAR_DECL for constant if not Is_Public but -O0.
13967 2001-10-10 Richard Kenner <kenner@gnat.com>
13969 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
13971 2001-10-10 Geert Bosch <bosch@gnat.com>
13973 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
13974 use '/' as switch character, allowing for absolute file names.
13976 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
13978 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
13981 2001-10-08 Geert Bosch <bosch@gnat.com>
13983 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
13984 Automatically build utilities when files need to be regenerated.
13986 2001-10-08 Geert Bosch <bosch@gnat.com>
13988 * xsnames.adb: New utility for updating snames.ads and snames.adb
13990 2001-10-08 Zack Weinberg <zack@codesourcery.com>
13992 * Make-lang.in (ADAFLAGS): Add -W -Wall.
13993 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
13994 (gnat1): Also depend on attribs.o.
13995 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
13996 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
13997 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
13998 (ADAFLAGS): Add -W -Wall.
13999 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
14002 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
14003 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
14004 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
14005 Use $(ADAC), not $(CC), as compilation command.
14007 (gnattools): Depend directly on tools to build, don't use
14009 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
14011 * einfo.h, sinfo.h: New files (autogenerated).
14013 2001-10-08 Richard Henderson <rth@redhat.com>
14015 * comperr.adb (Abort_In_Progress): New.
14016 (Compiler_Abort): Use it to prevent recursion.
14018 2001-10-08 Robert Dewar <dewar@gnat.com>
14020 * atree.adb: Set Error_Posted in Error node, helps error recovery.
14022 * par-endh.adb (Output_End_Expected): We should also not test
14023 Error_Posted on the Error node, since now it is always set.
14025 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
14026 to help error recovery. Part of general work on 9407-004.
14028 * par.adb: Add ??? for misuse of error
14031 (Resolve): Defend against Error, fixes 9407-003.
14032 (Resolve_Discrete_Subtype_Indication): Defend against Error.
14034 * sinfo.ads (N_Error): Now has Etype field (which will be set
14035 to Any_Type to help error recovery).
14037 2001-10-08 Richard Kenner (kenner@gnat.com)
14039 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
14040 Consistently set MEM attributes from expression; fixes
14041 bootstrap failure on x86.
14043 2001-10-08 Geert Bosch (bosch@gnat.com)
14045 * 5oosinte.adb: Add 2001 to copyright notice.
14047 2001-10-08 Geert Bosch (bosch@gnat.com)
14049 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
14051 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
14053 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
14055 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
14057 2001-10-05 Geert Bosch (bosch@gnat.com)
14059 * adaint.h: Small formatting fix.
14061 2001-10-04 Geert Bosch <bosch@gnat.com>
14063 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
14064 Arg is int, not FILE *, in dummy version of functions.
14066 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
14067 Arg is int, not FILE *.
14069 2001-10-04 Geert Bosch <bosch@gnat.com>
14071 * 3lsoccon.ads: Added file, missed with initial check ins.
14073 * 4lintnam.ads: Fix header format.
14074 Change Linux to GNU/Linux.
14076 * 5iosinte.adb: Change Linux to GNU/Linux.
14078 * 5iosinte.ads: Change Linux to GNU/Linux.
14080 * 5itaprop.adb: Change Linux to GNU/Linux.
14082 * 5itaspri.ads: Change Linux to GNU/Linux.
14083 Update copyright notice.
14085 * 5lintman.adb: Change Linux to GNU/Linux.
14087 * 5lml-tgt.adb: Change Linux to GNU/Linux.
14089 * 5losinte.ads: Change Linux to GNU/Linux.
14091 * 5lsystem.ads: Change Linux to GNU/Linux.
14093 * 5qosinte.adb: Change Linux to GNU/Linux.
14095 * 5qosinte.ads: Change Linux to GNU/Linux.
14097 * 5qparame.ads: Change Linux to GNU/Linux.
14099 * 5qtaprop.adb: Change Linux to GNU/Linux.
14101 * 5qtaspri.ads: Change Linux to GNU/Linux.
14102 Add 2001 to copyright notice.
14104 * 5vintman.ads: Change Linux to GNU/Linux.
14105 Fix header format. Add 2001 to copyright notice.
14107 * g-soccon.ads: Change Linux to GNU/Linux.
14109 * g-trasym.ads: Change Linux to GNU/Linux.
14110 Add 2001 to copyright notice.
14112 * memtrack.adb: Change Linux to GNU/Linux.
14114 * s-intman.ads: Change Linux to GNU/Linux.
14115 Add 2001 to copyright notice. Fix header format.
14117 * s-stache.adb: Change Linux to GNU/Linux.
14119 * adaint.c: Change Linux to GNU/Linux.
14121 * cio.c: Change Linux to GNU/Linux.
14123 * cstreams.c: Change Linux to GNU/Linux.
14125 * init.c: Change Linux to GNU/Linux.
14127 * gmem.c: Change Linux to GNU/Linux.
14129 * tracebak.c: Change Linux to GNU/Linux.
14132 2001-10-02 Geert Bosch <bosch@gnat.com>
14134 * misc.c (insert_default_attributes): Add dummy version.