1 2005-03-07 James A. Morrison <phython@gcc.gnu.org>
2 Laurent Guerby <laurent@guerby.net>
5 * system-linux-sparc.ads: New.
6 * Makefile.in: Add sparc linux entry.
8 2005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
10 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
13 2005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
14 Partial merge from libada-gnattools-branch:
16 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
17 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
18 into code in gnattools/Makefile.in. Remove direct dependencies on
19 stamp-tools by tools clauses.
20 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
21 * config-lang.in: Add gnattools to $lang_dirs.
23 2005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
26 * utils.c (gnat_type_for_mode): Return null instead of ICE because we asked
29 2005-02-12 Richard Henderson <rth@redhat.com>
31 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
32 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
34 2005-02-10 Andreas Jaeger <aj@suse.de>
36 * init.c (__gnat_initialize): Mark parameter as unused.
38 2005-02-09 Doug Rupp <rupp@adacore.com>
40 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
41 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
43 2005-02-09 Doug Rupp <rupp@adacore.com>
45 * gnatchop.adb (dup, dup2),
46 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
48 * gnatlbr.adb (mkdir),
49 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
51 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
53 2005-02-09 Doug Rupp <rupp@adacore.com>
55 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
57 2005-02-09 Robert Dewar <dewar@adacore.com>
58 Thomas Quinot <quinot@adacore.com>
59 Javier Miranda <miranda@adacore.com>
60 Pascal Obry <obry@adacore.com>
61 Ed Schonberg <schonberg@adacore.com>
62 Doug Rupp <rupp@adacore.com>
63 Gary Dismukes <dismukes@adacore.com>
64 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
66 * g-zstspl.ads: New file.
68 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
70 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
72 Add definition of Wide_Wide_Space for AI-285
74 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
75 interface (to support Ada 95 and Ada 2005 units).
76 Add Unbounded_IO files
77 Add entries for Wide_Wide packages for AI-285
78 Add list of containers packages to Ada 2005 unit list
80 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
81 support new Unbounded_IO package cleanly.
83 * g-utf_32.ads, g-utf_32.adb: New files.
85 * Makefile.rtl: Add entry for g-utf_32
86 Add new files for Unbounded_IO
87 Adjust make file for new AI-285 wide wide packages
88 Add AI-302 containers to the run time.
90 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
91 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
92 subprograms for AI-301.
94 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
96 * a-stunau.ads: Minor comment correction
98 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
100 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
101 (Check_RPC): Update to match changes in expanded code.
102 Clean up unused entity.
104 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
105 was not taken into account.
106 This includes proper initialization with Normalize_Scalars.
107 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
108 normalize scalars cases (particularly the latter) to do a better job
109 of finding invalid representations.
111 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
113 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
116 * exp_dist.adb: Add support for wide wide character type
117 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
118 private part, generate stub bodies at the end of the private part,
119 not the visible part.
120 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
122 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
123 generic wrapper to execute final processing after completing the
124 expansion of the RPC receiver for an RACW.
126 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
127 packages and attributes.
128 (Preset_Names): Addition of the new reserved words of Ada 2005,
129 that is interface, overriding and synchronized.
130 (Get_Pragma_Id): Give support to the use of the new reserved word
131 "interface" as a pragma name.
132 (Is_Pragma_Name): Give support to the use of the new reserved word
133 "interface" as a pragma name.
134 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
135 attribute implementation.
137 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
138 checks to entities that are output parameters of Asm operations.
139 Handle the Stream_Size attribute.
140 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
142 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
144 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
145 for second parameter being 0.0.
146 Add support for wide wide character type.
147 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
149 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
150 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
151 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
152 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
153 for wide wide character cases.
155 * cstand.adb: Create entities for Wide_Wide_Character and
158 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
159 accordance with AI-258.
160 Add new declarations for 16/32 bit C character types (Part of AI285)
162 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
163 (Obsolescent_Warning): New field
164 (Rep_Clause): New local subprogram used to share code. Returns the rep
165 clause for which the name is given in parameter.
166 (Has_Stream_Size_Clause): New routine.
167 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
168 (Address_Clause): Implementation is now using Rep_Clause.
169 (Alignment_Clause): Idem.
172 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
173 entity in non-Ada 2005 mode and generate warning.
175 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
176 (Prag): Code cleanup. Remove old gnat pragma "overriding"
178 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
179 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
180 on the named unit if the pragma is not in the current compilation unit,
181 so that elaboration calls in the current unit can set up an elaboration
182 dependency on the named unit, as needed.
183 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
184 subprogram as well as for subprograms declared within a package.
185 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
188 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
189 to z) to avoid some instances of duplication for Wide_Wide packages.
191 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
194 * scn.adb: Char_Literal_Value field is now a Uint
196 * scng.adb: Significant rewrite to handle new Ada 2005 features
197 allowing wide and wide wide characters in program text, e.g. for
198 identifiers, as described in AI-285.
199 (Set_Reserved): New procedure, makes setting up keywords cleaner.
200 (Initialize_Scanner): Register the new reserved words of Ada 2005.
201 (Scan): Give support to the new reserved words.
203 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
204 warning notifying that interface, overriding, and synchronized are
206 (P_Pragma): Allow the use of the new reserved word "interface" as
209 * gnatls.adb, gnatbind.adb,
210 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
211 identifiers named "interface" to "SAL_Interface".
213 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
214 (Structured Exception handling).
218 (Gen_Main_Ada): Set the default exit code if specified.
219 (Gen_Main_C): Likewise.
221 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
222 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
224 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
227 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
228 has a collision with the new Ada 2005 "interface" reserved word.
230 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
231 generate a warning notifying that interface, overriding, and
232 synchronized are new reserved words.
234 * scans.ads (Token_Type): Addition of the tokens corresponding to the
235 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
236 and Tok_Synchronized.
238 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
239 "dispatching" rather than "primitive" operations, since dispatching
240 calls are now allowed to abstract formal subprograms (which are not
242 Char_Literal_Value field is now a Uint
243 (Resolve_Slice): If the prefix is an access to an unconstrained array,
244 compute the actual subtype of the designated object to impose the proper
246 (Resolve_Selected_Component): Do not insert an access check if the
247 prefix is an access type: such a node is expanded into an explicit
248 dereference, on which the access check is performed anyway. Removes
249 expensive duplicate checks.
250 (Resolve_Call): Use new flag Is_Obsolescent and field
251 Obsolescent_Warning so that pragma Obsolescent works on library
253 Add support for wide wide character type
254 (Resolve_Allocator): Replace the error message on wrong null-exclusion
255 value by a warning message.
256 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
257 as fixed-point, and one of the operands is non-static and universal, it
258 can only be an illegal exponentiation operation, in which case there is
259 no real value to retrieve.
261 * exp_strm.adb: Add support for wide wide character type
262 (Build_Elementary_Input_Call): Compute the size of the stream element by
263 querying the rep chain to find the Stream_Attribute attribute value.
264 (Build_Elementary_Write_Call): Ditto.
266 * sem_aggr.adb: Char_Literal_Value field is now a Uint
267 Add support for wide wide character type
268 Replace the error messages on wrong null-exclusion value by warnings
269 as described in Ada 2005.
270 (Resolve_Extension_Aggregate): Document the fact that the error
271 message on class-wide expressions in extensions aggregates.
273 * sem_case.adb: Add support for wide wide character type
275 * sem_ch13.adb: Add support for wide wide character type
276 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
278 * sem_ch3.adb: Add support for wide wide character type
279 (Process_Subtype): If constraint is illegal for the type, set Ekind of
280 now-useless Itype, to prevent cascaded errors on a compiler built
283 * sem_ch8.adb: Add with and use of Sem_Disp.
284 (Analyze_Subprogram_Renaming): Replace unclean uses of
285 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
286 of Corresponding_Spec to Empty).
287 (Attribute_Renaming): Replace use of Corresponding_Spec with
288 Corresponding_ Formal_Spec and simplify condition.
289 (Use_One_Package): Check that scope of homonym of identifier is defined,
290 before checking whether it is a wrapper package.
291 Add support for wide wide character type
293 * sem_eval.adb: Add support for wide wide character type.
294 (Eval_Arithmetic_Op): Check for compile time known signed integer
295 overflow in the non-static case.
296 (Subtypes_Statically_Match): A formal scalar type and its base type do
297 not statically match.
299 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
300 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
302 (Unit_Declaration_Node): Ditto.
303 (Is_Variable_Prefix): For the case of an indexed component whose prefix
304 has a packed array type, the prefix has been rewritten into a type
305 conversion. Determine variable-ness from the converted expression.
306 Handle wide wide character cases.
308 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
310 * stringt.ads, stringt.adb: Handle full UTF-32 range.
311 Remove ["0A"] from comment, since it can look like a line terminator.
312 Currently we don't permit this, but this is under discussion by the
313 ARG, and it is easy enough to use a different example.
315 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
316 handling UTF-32 encoding for wide wide character.
317 Implement new brackets coding ["hhhhhhhh"]
318 Add UTF-8 encodings for full UTF-32 range
320 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
322 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
323 bit range Add full UTF-32 support.
324 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
325 notify that constraint error will be raised at run-time
326 because a null value is assigned to a null-excluding object.
327 Remove some obsolete declarations and make Char_Code
330 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
331 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
334 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
335 wrong null-exclusion value by a warning message.
336 (Enable_Range_Check): Do range check if the prefix is an
337 explicit dereference whose designated object is an unconstrained array.
338 Current algorithm for removing duplicate checks is over-eager in this
341 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
342 null-exclusion value by a warning message
344 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
345 completely. Add support for Uint2 field
347 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
348 exp_prag.adb: Char_Literal_Value field is now a Uint.
350 * exp_util.adb (Insert_Actions): Replace
351 N_Formal_Subprogram_Declaration by
352 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
353 Char_Literal_Value field is now a Uint.
355 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
356 defined for subprogram renaming declarations. When set, the field
357 indicates the defining entity of a corresponding formal subprogram
358 when the renaming corresponds to a formal subprogram association in an
360 (Set_Corresponding_Formal_Spec): New procedure to return
361 Corresponding_Formal_Spec field.
362 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
363 (which is now a subtype).
364 Char_Literal_Value field is now a Uint
366 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
367 pointer to the base of the dispatch table.
368 Minor changes to comments.
369 (Controlling_Type): New function for determining the tagged type
370 associated with a tagged primitive subprogram.
371 (Expand_Dispatching_Call): Add support for a controlling actual that is
372 directly a value of type Ada.Tag rather than a tagged object.
374 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
375 describing the new layout.
376 (Dispatch_Table): The expander computes the actual array size, allocates
377 the Dispatch_Table record accordingly, and generates code that displaces
378 the base of the record after the Typeinfo_Ptr component. The access to
379 these components is done by means of local functions.
380 (Offset_To_Top): New function.
381 (Typeinfo_Ptr): New function.
382 (Get_TSD): Modified to access the new position of the TSD.
383 (Set_TSD): Modified to save the TSD in its new position.
385 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
386 case of formal abstract subprograms. Add check and message for -gnat05.
389 * sem_ch12.adb: Add with and use for Sem_Disp.
390 (Analyze_Associations): Minor change from "=" to "in" for use of
391 N_Formal_Subtype_Declaration (which is now a subtype).
392 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
393 N_Formal_Subtype_Declaration (which is now a subtype).
394 (Analyze_Formal_Subprogram): Add handling for
395 N_Formal_Abstract_Subprogram, marking the formal as abstract and
396 dispatching, setting the controlling status of the formal parameters
397 and result, and issuing an error if there is no controlling type for
398 the formal subprogram.
399 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
400 which is an unclean use of that field, we set the new field
401 Corresponding_Formal_Spec to make the formal subprogram available to
402 processing in Analyze_Subprogram_Declaration.
403 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
404 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
405 Constrained, so that it is is does not statically match its anonymous
408 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
409 abstract formal subprograms in error check for functions returning
410 abstract types. Set scope of new designator for
411 a parameterless subprogram, so that it is available when checking the
412 body for nested subprograms, before full analysis of said body.
413 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
414 subprogram only if inner one comes from source.
415 (Analyze_Function_Call): If the call is given in object notation, the
416 analysis of the name rewrites the node and analyzes it with the proper
417 argument list. After analyzing the name, if the call has been rewritten
418 and the result type is set, no further analysis is needed.
419 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
420 mark in function specification, in a context where the formals are
421 visible and hide outer homographs.
423 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
424 as the tagged type for the cases of abstract formal subprograms and
425 renamings of those. Clean up spec comments.
426 (Check_Dispatching_Context): Add error message to indicate "abstract
427 procedure", covering the case of a call to a formal abstract procedure
428 that has statically tagged operands.
429 (Check_Dispatching_Call): Check for the case of an actual given by
430 a tag-indeterminate function call whose type is an ancestor of the
431 containing call's associated tagged type. This situation can occur
432 for inherited primitives with function defaults. In this case we
433 use the tagged type's tag directly as the controlling argument for
435 (Expand_Call): Name change on call to Expand_Dispatch_Call.
437 * sprint.adb (Sprint_Node_Actual): Split
438 N_Formal_Subprogram_Declaration into two alternatives for the new
439 cases N_Formal_Abstract_Subprogram_Declaration and
440 N_Formal_Concrete_Subprogram_Declaration.
441 Char_Literal_Value field is now a Uint.
443 * trans.c: Get rid of junk Uint2 reference.
444 Char_Literal_Value field is now a Uint.
445 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
446 (gigi): Correct third arg to gimplify_body.
448 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
449 (TYPE_LANG_FLAG_0): Check for record or union.
451 * treepr.adb: Char_Literal_Value field is now a Uint
453 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
456 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
457 Add full UTF-32 support
458 Char_Code is now 32 bits
460 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
461 wide character UTF_32 line terminators.
462 Initialize Main_Source_File to avoid error when no main
465 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
466 (Main_Source_File) when no main source has been loaded, to avoid
469 2005-02-09 Robert Dewar <dewar@adacore.com>
471 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
472 Fix name of Set routine
474 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
477 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
478 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
481 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
482 forms of Get_Line subprograms for AI-301.
484 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
485 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
486 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
487 a-stwima.ads: Minor reformatting.
489 2005-02-09 Doug Rupp <rupp@adacore.com>
490 Thomas Quinot <quinot@adacore.com>
493 [VMS] (to_ptr32): New function.
494 (MAYBE_TO_PTR32): New macro.
495 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
497 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
498 [VMS] (#define fork()): Remove since unneccessary.
499 (__gnat_set_close_on_exec): New routine to support
500 GNAT.OS_Lib.Set_Close_On_Exec.
502 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
503 the parent side as close-on-exec so that they are not inherited by the
506 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
507 set or clear the FD_CLOEXEC flag on a file descriptor.
509 2005-02-09 Eric Botcazou <ebotcazou@adacore.com>
510 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
512 Fix for c330001 - PR ada/19386
515 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
516 on the field if Pragma Component_Alignment (Storage_Unit).
517 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
518 side-effects as if it were a constant; also make SAVE_EXPR to protect
520 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
522 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
523 (components_to_record): Test it.
524 Fix improper usage of REFERENCE_CLASS_P.
526 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
529 * utils2.c: Minor reformatting.
531 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
532 handle other cases like RECORD_TYPE.
534 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
536 2005-02-09 Ed Schonberg <schonberg@adacore.com>
538 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
539 component of an array of arrays in an assignment context, and the
540 aggregate has component associations that require sliding on
541 assignment, force reanalysis of the aggregate to generate a temporary
542 before the assignment.
543 (Must_Slide): Make global to the package, for use in Gen_Assign.
545 2005-02-09 Ed Schonberg <schonberg@adacore.com>
547 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
548 unchecked union with no inferable discriminants, return a
549 Raise_Program_Error node, rather than inserting it at the point the
551 (Expand_Record_Equality, Component_Equality): Handle properly the case
552 where some subcomponent is an unchecked union whose generated equality
553 code raises program error.
555 2005-02-09 Doug Rupp <rupp@adacore.com>
557 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
558 [VMS] (#define exit hack): Remove.
560 2005-02-09 Pascal Obry <obry@adacore.com>
561 Arnaud Charlet <charlet@adacore.com>
563 * init.c (__gnat_initialize): Add a new parameter eh which contains the
564 address of the exception registration. The Win32 version of this
565 routine calls __gnat_install_SEH_handler() to initialize the SEH
566 (Structured Exception Handling) handler.
567 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
568 SEH (Structured Exception Handling) now.
569 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
570 (__gnat_initialize for ppc-vxworks): Adjust comments and the
571 preprocessor condition protecting the call to the extra eh setup
572 subprogram, which is only available for the ppc target.
573 (__gnat_clear_exception_count): replaced reference to
574 variable taskIdCurrent by call to taskIdSelf(), cleaner.
576 * seh_init.c: New file.
578 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
579 (GNATBIND_OBJS): Idem.
581 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
582 routine takes a new parameter (a pointer to the exception registration
583 for the SEH (Structured Exception Handling) support.
585 * raise.h: (__gnat_install_SEH_handler): New prototype.
586 Update copyright notice.
588 * s-tassta.adb (Task_Wrapper): Declare the exception registration
589 record and initialize it by calling __gnat_install_SEH_handler.
591 2005-02-09 Vincent Celier <celier@adacore.com>
593 * make.adb (Gnatmake): Do not fail when the main project has no object
596 2005-02-09 Doug Rupp <rupp@adacore.com>
598 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
599 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
600 [VMS]: Add translations for g-enblsp.adb.
602 * s-asthan-vms.adb: Removed.
603 * s-asthan-vms-alpha.adb: Added.
605 2005-02-09 Pascal Obry <obry@adacore.com>
607 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
608 (LIBGNAT_OBJS): Add seh_init.o.
610 2005-02-09 Arnaud Charlet <charlet@adacore.com>
614 * Makefile.in: Link all gnat tools with -static-libgcc, since
615 -shared-libgcc is now used by default on some systems (e.g. linux with
617 Remove references to Makefile.prolog/generic, no longer used.
619 2005-02-09 Vincent Celier <celier@adacore.com>
621 * prj-makr.adb (Process_Directory): Put file name in canonical case
622 before matching against the patterns.
623 If gnatname has been invoked as <prefix>-gnatname
624 then invoke the compiler as <prefix>-gcc, not just "gcc".
626 2005-02-09 Ed Schonberg <schonberg@adacore.com>
628 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
629 with expansion disabled. The actual subtype is needed among other
630 places when the selected component appears in the context of a loop
631 bound, and denotes a packed array.
632 (Operator_Check): Always use the first subtype in the
633 error message, to avoid the appearance of internal base types.
634 (Transform_Object_Operation): Copy each actual in full
635 to the parameter associations of the constructed call, rather than
636 using the shallow copy mechanism of New_Copy_List. This ensures that
637 the chaining of named associations is done properly.
638 (Complete_Object_Operation): Rewrite node, rather than
639 replacing it, so that we can trace back to the original selected
642 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
643 and calls that use object notation, if the called function is not
644 declared in a withed unit, place the elaboration constraint on the
645 unit in the context that makes the function accessible.
646 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
647 imposes an elaboration constraint between two packages.
649 2005-02-09 Ed Schonberg <schonberg@adacore.com>
651 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
652 views of a private type after handling its private dependents, to
653 maintain proper stack discipline between entry and exit from the
656 2005-02-09 Cyrille Comar <comar@adacore.com>
658 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
661 2005-02-09 Arnaud Charlet <charlet@adacore.com>
663 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
664 fields for foreign threads.
666 2005-02-09 Doug Rupp <rupp@adacore.com>
668 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
669 recursion warnings when compiled with -gnatdm.
671 2005-02-09 Robert Dewar <dewar@adacore.com>
673 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
674 Slight fix to documentation of -gnaty with no parameters
676 * xr_tabls.ads: Add ??? comment for missing overall comment
678 * xsinfo.adb: Make default file name be sinfo.h, since this is what
679 we now use by default.
681 * xsnames.adb: Adjust end of file test to look for five space followed
682 by '#' instead of six spaces. The format of xsnames.adb was modified
685 * a-numeri.ads: Add reference to AI-388 for greek letter pi
688 * clean.adb: Minor reformatting.
690 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
691 gnatname.adb: Minor reformatting
692 Add 2005 to copyright output when utility is run
694 * csets.adb: Eliminate obsolete comment
696 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
699 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
701 2005-02-09 Sergey Rybin <rybin@adacore.com>
703 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
704 the difference between compact and incompact layout and add the record
705 representation clause to the example illustrating different layouts.
706 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
709 2005-02-09 Florian Villoing <villoing@adacore.com>
711 * gnat_ugn.texi: Fix typos.
712 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
714 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
715 in the generated documentation.
717 2005-02-09 Arnaud Charlet <charlet@adacore.com>
719 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
721 Update linker wrapper when linking with non GNU C++.
723 2005-02-09 Pascal Obry <obry@adacore.com>
726 Document the procedure to debug the DllMain routine on Windows.
727 Add note about -funwind-tables and mixed Ada and C/C++ programming in
729 Document new BIND qualifer /RETURN_CODES=VMS.
731 2005-02-09 Ben Brosgol <brosgol@adacore.com>
733 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
734 Edited gnatmetric chapter
736 2005-02-09 Robert Dewar <dewar@adacore.com>
739 Changes to document new wide wide character support
741 Update documentation on Normalize_Scalars and Initialize_Scalars
743 2005-02-09 Pascal Obry <obry@adacore.com>
745 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
747 2005-02-09 Jose Ruiz <ruiz@adacore.com>
749 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
750 from the VxWorks kernel) that is needed for getting the active
751 priority of the different tasks.
753 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
754 Use a pragma Elaborate_Body in the spec file instead.
755 Noticed by code reading.
757 2005-02-09 Thomas Quinot <quinot@adacore.com>
759 * exp_util.ads: Minor correction in comment.
761 2005-02-09 Arnaud Charlet <charlet@adacore.com>
763 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
764 since this procedure is now too complex to be worth inlining.
766 2005-02-09 Richard Henderson <rth@redhat.com>
768 * utils.c (gnat_define_builtin): Remove.
769 (gnat_install_builtins): Use build_common_builtin_nodes.
771 2005-02-09 Arnaud Charlet <charlet@adacore.com>
773 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
774 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
775 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
776 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
777 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
778 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
779 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
780 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
781 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
782 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
783 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
784 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
785 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
786 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
787 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
788 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
789 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
790 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
791 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
792 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
793 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
794 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
795 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
796 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
797 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
798 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
799 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
800 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
801 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
802 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
803 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
804 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
805 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
806 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
809 2005-01-27 Laurent GUERBY <laurent@guerby.net>
811 * Makefile.in: Fix a-intnam.ads from previous commit,
812 add 2005 to copyright.
813 * a-intman-rtems.ads: Renamed to...
814 * a-intnam-rtems.ads:
816 2005-01-27 Laurent GUERBY <laurent@guerby.net>
818 * Makefile.in: Rename GNAT RTEMS specific files.
819 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
820 5rosinte.ads, 5rparame.adb: Replaced by files below.
821 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
822 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
824 2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
825 Laurent GUERBY <laurent@guerby.net>
828 * 5rosinte.ads: Add No_Key constant.
829 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
830 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
832 2005-01-26 Laurent GUERBY <laurent@guerby.net>
835 * i-cobol.adb (Valid_Numeric): Handle zero length case.
837 2005-01-20 Richard Henderson <rth@redhat.com>
839 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
840 a-intnam-linux.ads and system-linux-alpha.ads.
841 * a-intnam-linux-alpha.ads: Remove file.
842 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
843 * system-linux-alpha.ads: New file.
845 2005-01-18 Jakub Jelinek <jakub@redhat.com>
848 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
849 set to the new string.
851 2005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
853 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
856 2005-01-18 Richard Henderson <rth@redhat.com>
858 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
859 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
861 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
863 2005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
865 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
866 (GCC_ZCX_Support): Likewise.
868 2005-01-11 Bastian Blank <waldi@debian.org>
870 * system-linux-s390.ads: Define Preallocated_Stacks.
871 * system-linux-s390x.ads: Likewise.
873 2005-01-04 Arnaud Charlet <charlet@adacore.com>
875 * gnat_ugn.texi: Fix texi errors with null variables.
877 2005-01-03 Thomas Quinot <quinot@adacore.com>
879 * gen-soccon.c: New utility program to generate g-soccon.ads
882 * socket.c, gsocket.h: Split inclusion of system header files into a
883 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
885 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
886 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
887 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
888 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
889 should not be edited by hand anymore, but should be regenerated using
892 2005-01-03 Robert Dewar <dewar@adacore.com>
893 Ed Schonberg <schonberg@adacore.com>
894 Vincent Celier <celier@adacore.com>
896 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
897 on/off, since this is an obsolescent feature, for which we now generate
900 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
901 warning mode is set and obsolescent usage of this attribute occurs.
902 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
903 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
904 predates, and partly motivates, the adoption of the AI.
905 Implement new Ada 2005 attribute Mod
907 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
910 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
912 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
914 New entry for Ada 2005 attribute Mod.
917 Add recognition of new pragma Restrictions No_Dependence
918 Recognize restriction No_Obsolescent_Features at parse time
920 * bcheck.adb: Add circuitry for checking for consistency of
921 No_Dependence restrictions.
923 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
926 * restrict.ads, restrict.adb: Add subprograms to deal with
927 No_Dependence restrictions.
929 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
932 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
933 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
935 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
936 dummy parameter to scng instantiation.
937 Needed for new restriction No_Obsolescent_Features
939 * scn.adb: (Obsolescent_Check): New procedure
940 Needed for new restriction No_Obsolescent_Features
942 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
943 specified by AI-285, needed for implementation of AI-388 (adding greek
945 Add new generic formal to scng, needed for new restriction
946 No_Obsolescent_Features.
948 * s-rident.ads: Add new restriction No_Obsolescent_Features.
950 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
952 (Scan_ALI): When finding an unexpected character on an R line, raise
953 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
954 Ignore_Errors is True, default restrictions are set and scanning of the
955 ALI file continues with the next line. Also, when Bad_R_Line is raised
956 and Ignore_Errors is True, skip to the end of le line.
958 * sem_ch10.adb: Check that explicit with's do not violate
959 No_Dependence restrictions.
960 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
961 illegal context clauses containing child units of instance.
963 * sem_prag.adb: Processing and checking for new No_Dependence
965 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
966 analyze and check the External argument.
968 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
970 2005-01-03 Robert Dewar <dewar@adacore.com>
972 * atree.adb: Add a fifth component to entities
973 This allows us to add 32 flags and four new fields
975 * atree.ads: Add a fifth component to entities
976 This allows us to add 32 flags and four new fields
978 * einfo.ads, einfo.adb: Document new fields and new flags now available
979 Add routines for printing new fields
981 * treepr.adb: Call routines to print out additional fields if present
983 2005-01-03 Arnaud Charlet <charlet@adacore.com>
985 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
986 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
988 * Makefile.in: Add support to build shared Ada libraries on solaris x86
989 Remove gpr2make, replaced by gprmake.
990 Remove references to gnatmem and libaddr2line.
991 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
992 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
993 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
994 a-numaux-darwin.ads and a-numaux-darwin.adb
995 Enable mlib-tgt-lynxos.adb on lynxos.
997 * Make-lang.in: Remove rules for gpr2make.
998 When generating sdefault.adb, do not call Relocate_Path
999 on S3 for function Target_Name, as it is not a path.
1000 Remove references to gnatmem and libaddr2line.
1002 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
1005 2005-01-03 Samuel Tardieu <tardieu@adacore.com>
1007 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
1008 address is incompatible with its base type alignment constraints when
1009 this can be decided statically.
1011 2005-01-03 Olivier Hainque <hainque@adacore.com>
1013 * decl.c (compatible_signatures_p): New function. The intended purpose
1014 is to check if two function signatures for a call-site and a callee are
1015 compatible enough for the call to be valid. The underlying purpose is
1016 to check if a call to a mapped builtin is using the right interface.
1017 The current code actually does not check antyhing - this a placeholder
1018 for future refinements.
1019 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
1020 builtin calls for convention Intrinsic.
1022 * gigi.h (builtin_decl_for): Declare (new function).
1024 * utils.c (gnat_install_builtins): Install the target specific builtins.
1025 (builtin_decl_for): New function, provide a dummy body for now.
1027 2005-01-03 Geert Bosch <bosch@adacore.com>
1029 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
1030 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
1031 (Pred): Implement in terms of Succ.
1033 * trans.c (convert_with_check): Reimplement conversion of float to
1036 2005-01-03 Ed Schonberg <schonberg@adacore.com>
1037 Vincent Celier <celier@adacore.com>
1039 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
1040 bounds can be negative, and must be declared Int, not Nat.
1042 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
1043 array is checked after using the index in the array.
1045 * makegpr.adb (Add_Switches): Check if there is a package for the
1046 processor. If there is no package, do not look for switches.
1048 2005-01-03 Ed Schonberg <schonberg@adacore.com>
1050 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
1051 generation of predefined stream operations (specs and bodies) should
1052 proceed. Under various restrictions these subprograms must not be
1055 2005-01-03 Thomas Quinot <quinot@adacore.com>
1058 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
1059 amount of PCS-specific code in RACW stubs generation.
1060 (Copy_Specification): Set Etype on copied formal parameter entities, as
1061 this information is needed for PolyORB stubs generation.
1062 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
1063 variable Dynamic_Async.
1064 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
1065 (Build_RPC_Receiver_Specification): Make generic again, as recent
1066 changes have allowed RPC receivers to have the same profile for both
1067 variants of the PCS.
1068 Reorganise RPC receiver generation to reduce differences between the
1069 structure of GARLIC and PolyORB RPC receivers.
1070 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
1072 Simplify elaboration code for RCI packages.
1074 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
1075 generation to reduce differences between the structure of GARLIC and
1076 PolyORB RPC receivers.
1078 * s-stratt.adb: Fix typo in comment.
1080 2005-01-03 Thomas Quinot <quinot@adacore.com>
1082 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
1083 copied from Make_Init_Call).
1085 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
1086 reads and assignments on a temporary variable declared with appropriate
1089 2005-01-03 Robert Dewar <dewar@adacore.com>
1091 * i-c.adb (To_C): Raise CE if string is null and Append_Null
1093 2005-01-03 Robert Dewar <dewar@adacore.com>
1095 * i-cstrin.adb (Update): Do not append a null in form called with a
1096 String. This avoids unintended behavior.
1098 2005-01-03 Arnaud Charlet <charlet@adacore.com>
1101 * init.c: Fix warnings on Free BSD section.
1103 2005-01-03 Arnaud Charlet <charlet@adacore.com>
1106 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
1109 2005-01-03 Vincent Celier <celier@adacore.com>
1111 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
1112 libraries when Unique_Compile is True (-u switch).
1115 2005-01-03 Robert Dewar <dewar@adacore.com>
1117 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
1118 upper case letter or underscore after W, as allowed by spec.
1120 2005-01-03 Arnaud Charlet <charlet@adacore.com>
1122 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
1123 darwin port by using proper type definitions from header files.
1124 Use SIGTERM instead of SIGABRT for SIGADAABORT.
1126 2005-01-03 Robert Dewar <dewar@adacore.com>
1128 * par.adb: Enhance error message handling for configuration file
1131 2005-01-03 Robert Dewar <dewar@adacore.com>
1133 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
1134 removed during the previous update (test properly for case of dividing
1135 largest negative number by -1, which generates overflow).
1137 2005-01-03 Ed Schonberg <schonberg@adacore.com>
1138 Sergey Rybin <rybin@adacore.com>
1140 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
1141 to use as the defining identifier for a formal package.
1142 (Remove_Parent): If the instance takes place within (an instance of)
1143 a sibling, preserve private declarations of common parent.
1145 2005-01-03 Ed Schonberg <schonberg@adacore.com>
1147 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
1148 to determine whether one of the operands is a fixed-point type for
1149 which a user-defined multiplication or division operation might be
1152 * sem_res.adb (Valid_Conversion): The legality rules for conversions
1153 of access types are symmetric in Ada 2005: either designated type can
1156 2005-01-03 Vincent Celier <celier@adacore.com>
1158 * s-fileio.adb (Temp_File_Record): Change length of string component
1159 Name from L_tmpnam + 1 to max_path_len + 1.
1161 2005-01-03 Arnaud Charlet <charlet@adacore.com>
1163 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
1164 Self_Id.Deferral_Level = 0.
1165 (Do_Pending_Action): Move this function to the spec.
1167 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
1168 Do_Pending_Action explicitely when needed, in case we're using
1169 No_Abort restrictions.
1171 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
1172 deferral level since it will not get changed by the generated code.
1173 Keeping a default value of 1 would prevent some operations (e.g.
1174 select or delay) to proceed successfully.
1176 2005-01-03 Ben Brosgol <brosgol@adacore.com>
1177 Robert Dewar <dewar@adacore.com>
1178 Cyrille Comar <comar@adacore.com>
1180 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
1181 porting guide chapter (vms version).
1182 Revised doc title (removed "for native platforms") and subtitle.
1183 Add discussion on warning flag for obsolescent features. First we
1184 note that it applies to obsolete GNAT features, which was previously
1185 omitted. Second we contrast the behavior with that of the new
1186 Ada 2005 AI-368 restriction No_Obsolescent_Features.
1187 Preliminary rewriting of GNAT & libraries chapter in order to take
1188 into account default project locations & new project manager
1191 2005-01-03 Robert Dewar <dewar@adacore.com>
1193 * cstand.adb (Create_Operators): Clean up format and documentation of
1194 unary and binary operator result tables. No change in code, just
1195 reformatting and addition of comments.
1197 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
1198 sem_ch2.adb: Minor reformatting
1200 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
1201 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
1202 comments for Tree_Read and Tree_Write.
1204 2005-01-03 Pascal Obry <obry@adacore.com>
1206 * exp_attr.ads: Minor reformatting.
1208 2005-01-03 Romain Berrendonner <berrendo@adacore.com>
1210 * comperr.adb (Compiler_Abort): Add specialized message for GAP
1213 2005-01-03 Ed Schonberg <schonberg@adacore.com>
1215 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
1216 whether the ancestor type is private, as may be the case with nested
1219 2004-12-30 Sohail Somani <sohail@sohailsomani.com>
1222 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
1224 2004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
1226 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
1227 * utils2.c (build_unary_op): Likewise.
1229 2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1231 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
1233 2004-12-19 Richard Henderson <rth@redhat.com>
1235 * trans.c (gigi): Update gimplify_body call.
1237 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
1239 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
1241 2004-12-07 Ed Falis <falis@adacore.com>
1243 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
1244 current task being suspended.
1246 * init.c (__gnat_clear_exception): added to reset VxWorks exception
1248 (__gnat_map_signal): removed test for current task being suspended.
1250 2004-12-07 Gary Dismukes <dismukes@adacore.com>
1252 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
1253 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
1254 targets (such as AAMP).
1256 2004-12-07 Ed Schonberg <schonberg@adacore.com>
1258 * atree.adb (Visit_Itype): Create a new name for the generated itype,
1259 because the back-end may otherwise treat it as a redefinition of the
1262 2004-12-07 Eric Botcazou <ebotcazou@adacore.com>
1264 * back_end.adb (Scan_Back_End_Switches): Accept --param.
1266 * lang-specs.h: Accept --param.
1268 2004-12-07 Vincent Celier <celier@adacore.com>
1270 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
1271 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
1272 Current_Body_Suffix => Ada_Body_Suffix).
1273 Take into account Externally_Built attribute.
1275 * clean.adb (In_Extension_Chain): Always return False when one of the
1276 parameter is No_Project.
1277 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
1278 Ada_Language_Index).
1279 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
1280 Process_Languages for procedure Parse).
1282 * gnatcmd.adb (Carg_Switches): New table.
1283 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
1284 Adapt to name changes in package Prj (Current_Spec_Suffix =>
1285 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
1287 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
1288 Header_Num and function Hash are now declared in package Prj,
1291 * prj.adb (Suffix_Of): New function.
1292 (Set (Suffix)): New procedure.
1293 (Hash): One function moved from Prj.Com
1294 (Is_Present, Language_Processing_Data_Of): New functions
1295 (Set): Two new procedures
1296 (Add_Language_Name, Display_Language_Name): New procedures
1298 * prj.ads: (Suffix_Of): New function
1299 (Set (Suffix)): New procedure
1300 Add several types and tables for multi-language support.
1301 (Header_Num): Type moved from Prj.Com
1302 (Hash): Two functions moved from Prj.Com
1303 (Is_Present, Language_Processing_Data_Of): New functions
1304 (Set): Two new procedures
1305 (Add_Language_Name, Display_Language_Name): New procedures
1306 (Naming): Component name changes:
1307 Current_Spec_Suffix => Ada_Spec_Suffix,
1308 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
1309 Impl_Suffixes, Supp_Suffixes.
1310 (Project_Data): New components: Externally_Built, Supp_Languages,
1311 First_Language_Processing, Supp_Language_Processing, Default_Linker,
1312 Default_Linker_Path.
1314 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
1315 new package Language_Processing with its attributes (Compiler_Driver,
1316 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
1317 Binder_Driver, Default_Linker).
1319 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
1320 (Header_Num): Type moved to package Prj
1322 * prj-env.adb: Adapt to name changes in package Prj
1323 (Current_Spec_Suffix => Ada_Spec_Suffix,
1324 Current_Body_Suffix => Ada_Body_Suffix).
1326 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
1327 default to the project path, except the "-" is one of the directories
1328 in env var ADA_PROJECT_PATH.
1329 (Current_Project_Path): Global variable, replacing Project_Path
1330 that was in the body of Prj.Part.
1331 (Project_Path): New function
1332 (Set_Project_Path): New procedure
1333 Initialize Current_Project_Path during elaboration of the package
1334 Remove dependency on Prj.Com, no longer needed
1336 * prj-ext.ads (Project_Path): New function
1337 (Set_Project_Path): New procedure
1339 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
1340 suffix is defined for language <lang>.
1341 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
1342 accessing directly the components of Naming.
1343 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
1344 Reorganise of this package.
1345 Break procedure Check in several procedures.
1347 * prj-nmsc.ads: Replace all procedures (Ada_Check,
1348 Other_Languages_Check and Language_Independent_Check) with a single
1351 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
1352 Process_Languages, no longer needed.
1354 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
1355 Current_Project_Path.
1356 Remove elaboration code, moved to the body of Prj.Ext
1357 Use new function Prj.Ext.Project_Path instead of old variable
1359 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
1360 When comparing with project paths on the stack, first put the resolved
1361 path in canonical case.
1362 (Parse_Single_Project): Set the path name of the project file in the
1363 tree to the normalized path.
1365 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
1366 parameter Process_Languages, no longer needed.
1367 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
1368 Other_Languages_Check.
1370 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
1371 to store the resolved canonical path of the project file.
1372 Remove dependency to Prj.Com, no longer needed
1374 * prj-util.adb: Adapt to name changes in package Prj
1375 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
1378 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
1379 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
1380 Externally_Built, Include_Option, Language_Processing.
1382 * makegpr.adb: Numerous changes due to changes in packages
1385 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
1386 default to the project path, except whe "-" is one of the directories
1387 in env var ADA_PROJECT_PATH.
1388 (Gnatls): In verbose mode, add the new section "Project Search Path:"
1390 2004-12-07 Robert Dewar <dewar@adacore.com>
1392 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
1394 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
1397 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
1398 flag. No longer needed now that we handle this in gnat1drv.adb.
1400 * repinfo.ads: Minor reformatting
1402 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1403 Olivier Hainque <hainque@adacore.com>
1404 Eric Botcazou <ebotcazou@adacore.com>
1406 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
1407 TYPE_SIZE_UNIT of result type if SIZE is not specified.
1408 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
1409 of a bitfield, which we know is useless and causes trouble because of
1410 alignment implications.
1412 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
1414 (process_attributes): Clear DECL_COMMON again when a section attribute
1416 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
1417 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
1418 (create_field_decl): Special case ADDRESSABLE negative to mean
1419 "no bitfield creation", to be used by make_aligning_type. Don't
1420 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
1421 fields claimed addressable still have to be bitfields. Use
1422 value_factor_p instead of a raw binop construction to check for the
1423 position's alignment.
1425 2004-12-07 Geert Bosch <bosch@adacore.com>
1427 * eval_fat.adb: Revert previous change.
1429 2004-12-07 Thomas Quinot <quinot@adacore.com>
1430 Ed Schonberg <schonberg@adacore.com>
1432 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
1433 with an implicit dereference as its prefix, use
1434 Insert_Explicit_Dereference instead of merely rewriting the prefix into
1435 an explicit dereference. This ensures that a reference to the original
1436 prefix is generated, if appropriate.
1438 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
1439 dereference is rewritten to an explicit one, generate a reference to
1440 the entity denoted by its prefix using the original prefix node, so
1441 the dereference can be properly recorded as a read of the denoted
1442 access value, if appropriate.
1444 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
1445 emitting 'assigned but never read' warning on a variable on the basis
1446 that it has an access type.
1447 (Check_References): Emit unreferenced warning when the scope is a
1450 2004-12-07 Robert Dewar <dewar@adacore.com>
1451 Ed Schonberg <schonberg@adacore.com>
1453 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
1456 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
1457 leaving call unchanged.
1458 This deals with the case where the pragma Import specified
1459 an external name, to be handled by the back end.
1461 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
1462 subprogram which is Imported with convention Intrinsic if an
1463 External_Name argument is specified.
1464 (Process_Import_Or_Interface): Properly diagnose link name argument.
1465 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
1466 with Sem_Ch6.Cannot_Inline.
1467 (Process_Inline): Provide separate warning for inapplicable inline
1469 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
1470 treatment is uniform on different targets.
1472 2004-12-07 Ed Schonberg <schonberg@adacore.com>
1474 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
1475 construct is rewritten, preserve end label to permit source navigation.
1477 2004-12-07 Thomas Quinot <quinot@adacore.com>
1479 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
1480 Specific_Build_Stub_Target): New subprograms.
1481 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
1482 the PCS implementation used, using the above PCS-customized subprograms.
1484 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
1485 for generation of DSA code targeted to the PolyORB PCS.
1486 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
1487 implementation of the partition communication subsystem in ancillary
1489 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
1490 PolyORB_Support.Build_Stub_Type): New subrograms containing the
1491 PCS-specific part of Add_Stub_Type.
1492 (Insert_Partition_Check): Use runtime library function to perform
1495 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
1496 (RE_Same_Partition): New entity, from s-parint.
1498 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
1500 2004-12-07 Gary Dismukes <dismukes@adacore.com>
1502 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
1503 Output the copyright message on a separate line from the version
1506 2004-12-07 Joel Brobecker <brobecker@adacore.com>
1508 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
1509 compile-time warning.
1511 2004-12-07 Robert Dewar <dewar@adacore.com>
1513 * g-regpat.adb: (Match): Change a misuse of or to or else
1515 2004-12-07 Ed Schonberg <schonberg@adacore.com>
1518 (Generate_Reference): Handle properly a reference to an entry formal,
1519 when an accept statement has a pragma Unreferenced for it.
1521 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
1522 and the Has_Pragma_Unreferenced flag for each formal before analyzing
1523 the body, to ensure that warnings are properly emitted for each accept
1524 statement of a given task entry.
1526 2004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
1528 * Makefile.in: Add support for foreign threads on VMS.
1530 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1532 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
1534 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
1536 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
1538 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
1540 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
1542 2004-12-07 Robert Dewar <dewar@adacore.com>
1544 * nlists.adb (Prepend_Debug): Remove parameters and nest within
1546 (Remove_Next_Debug): Same fix
1548 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
1549 maintain back pointers now, though we did not used to, and comments
1551 (Prepend): Remove pragma Inline.
1552 (Remove_Next): Same cleanup
1554 2004-12-07 Thomas Quinot <quinot@adacore.com>
1556 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
1557 used to record an implicit dereference as a read operation on its
1558 prefix when operating under -gnatc. Necessary to avoid spurious
1559 'variable assigned but never read' warnings in that mode.
1560 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
1561 is a non-overloaded implicit dereference, call the above subprogram to
1562 ensure proper recording of references.
1564 2004-12-07 Gary Dismukes <dismukes@adacore.com>
1566 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
1567 to be resolved later as part of Analyze_Iteration_Scheme's call to
1570 2004-12-07 Ed Schonberg <schonberg@adacore.com>
1572 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
1573 prefix is not a scalar type, place error message on prefix, not on
1576 2004-12-07 Bernard Banner <banner@adacore.com>
1578 * vxaddr2line.adb: Add support for x86 vxworks
1580 2004-12-07 Thomas Quinot <quinot@adacore.com>
1582 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
1583 documentation of the behaviour of these functions when passed an IP
1584 address that has no record in the system hosts database and no reverse
1587 * cstand.adb, a-tags.ads: Fix typos in comment.
1589 2004-12-07 Robert Dewar <dewar@adacore.com>
1591 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
1592 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
1593 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
1594 s-poosiz.ads: Minor reformatting
1596 * make.adb: Minor reformatting
1597 Add some ??? comments asking for more comments
1599 * s-poosiz.adb: Minor reformatting
1600 Add comments on alignment requirement
1602 * sinfo.ads: Remove obsolete comment and fix typo.
1604 2004-12-07 Vincent Celier <celier@adacore.com>
1605 Sergey Rybin <rybin@adacore.com>
1607 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
1608 Files" with the new tool and package names.
1609 Reformatting to suppress most of the warnings for line too long
1610 Document the new section "Project Search Path:" in the output of
1612 Add gnatmetric section
1614 2004-12-07 Vincent Celier <celier@adacore.com>
1616 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
1617 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
1618 and -eit to -ept. Added qualifier
1619 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
1621 2004-11-27 Andreas Schwab <schwab@suse.de>
1623 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
1625 2004-11-25 Arnaud Charlet <charlet@adacore.com>
1627 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
1628 internal implementation unit GNAT.Sockets.Thin,
1629 as their usage for sockets is non-portable (using the read and write
1630 functions from the system runtime library is fine on UNIX but won't
1631 work under Windows).
1633 * mingw32.h: Update copyright notice.
1635 2004-11-25 Arnaud Charlet <charlet@adacore.com>
1637 * ada-tree.h: Minor reformatting of previous change to avoid lines
1638 longer than 79 characters.
1640 2004-11-25 Olivier Hainque <hainque@adacore.com>
1642 * tb-gcc.c: GCC infrastructure based implementation of
1645 2004-11-24 Steven Bosscher <stevenb@suse.de>
1647 * misc.c (gnat_post_options): Don't clear
1648 flag_inline_functions.
1650 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
1653 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
1656 2004-11-21 Andreas Jaeger <aj@suse.de>
1658 * stylesw.adb: Change Style_Check_Subprogram_Order to
1659 Style_Check_Order_Subprograms.
1661 2004-11-18 Arnaud Charlet <charlet@adacore.com>
1663 * adaint.h, adaint.c
1664 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
1666 Add also a cast to kill another warning.
1667 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
1668 parameter with the priority class of the parent process instead of
1669 always using the NORMAL_PRIORITY_CLASS.
1670 (__gnat_dup): New function.
1671 (__gnat_dup2): New function.
1672 (__gnat_is_symbolic_link): Enable the effective body of this
1673 function when __APPLE__ is defined.
1675 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
1678 2004-11-18 Olivier Hainque <hainque@adacore.com>
1680 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
1681 address of which may be used to represent "others" and "all others"
1682 choices in exception tables, instead of the current harcoded
1683 (void *)0 and (void *)1.
1684 (Setup_Exception): Do nothing in the GNAT SJLJ case.
1686 * gigi.h (others_decl, all_others_decl): New decls representing the
1687 new Others_Value and All_Others_Value objects.
1688 (struct attrib): Rename "arg" component as "args", since GCC expects a
1689 list of arguments in there.
1691 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
1692 corresponding objects exported by a-exexpr, instead of hardcoded dummy
1695 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
1696 others_decl and all_others_decl instead of hardcoded dummy addresses
1697 to represent "others" and "all others" choices, which is cleaner and
1698 more flexible with respect to the possible eh pointer encoding policies.
1700 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
1701 (process_attributes): Account for the naming change of the "args"
1702 attribute list entry component.
1704 * decl.c (build_attr_list): Rename into prepend_attributes to allow
1705 cumulating attributes for different entities into a single list.
1706 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
1707 attributes for the current entity and propagate first subtype
1708 attributes to other subtypes.
1709 <E_Procedure>: Attribute arguments are attr->args and not
1711 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
1712 argument provided, as this is what GCC expects. Use NULL_TREE instead
1715 2004-11-18 Robert Dewar <dewar@adacore.com>
1717 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
1718 Minor reformatting througout (including new function specs)
1719 Add ??? comments asking for clarification.
1721 2004-11-18 Thomas Quinot <quinot@adacore.com>
1723 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
1724 incomplete duplicate implementation of this subprogram from butil.
1726 2004-11-18 Thomas Quinot <quinot@adacore.com>
1728 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
1729 procedures factors the common processing for building an RPC receiver
1730 for an RCI package or an RACW type.
1731 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
1732 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
1733 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
1735 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
1737 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
1739 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
1740 distribution subprogram identifiers that are either subprogram numbers
1742 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
1743 string distribution identifiers assigned to a given subprogram.
1744 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
1745 (Add_RAS_Dereference_TSS): Add comments.
1746 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
1747 is not referenced yet because it will be used by the PolyORB DSA
1749 (Insert_Partition_Check): Remove fossile code.
1750 (First_RCI_Subprogram_Id): Document this constant.
1751 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
1753 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
1754 replaced with calls to Get_Library_Unit_Name_String. Previously there
1755 were several instances of the same code in different locations in the
1756 compiler; this checkin completes the replacement of all of these
1757 instances with calls to a common subprogram.
1760 * sem_dist.adb: Remove comment noting that RPC receiver generation
1761 should be disabled for RACWs that implement RASs.
1762 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
1764 * sem_util.ads, sem_util.adb (Has_Stream): New function
1765 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
1766 qualified name of a library unit into the name buffer.
1767 (Note_Possible_Modification): Generate a reference only
1768 if the context comes from source.
1770 * snames.ads (PCS_Names): New subtype corresponding to names of
1771 supported implementations of the Partition Communication Subsystem
1772 (PCS) (i.e. the runtime library support modules for the distributed
1775 2004-11-18 Robert Dewar <dewar@adacore.com>
1776 Ed Schonberg <schonberg@adacore.com>
1778 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
1779 (Has_Rep_Pragma): New function
1780 (Has_Attribute_Definition_Clause): New function
1781 (Record_Rep_Pragma): Moved here from sem_ch13.adb
1782 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
1784 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
1786 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
1787 (Expand_Pragma_Psect_Object): New procedure
1788 These procedures contain the revised and cleaned up processing for
1789 these two pragmas. This processing was formerly in Sem_Prag, but
1790 is more appropriately moved here. The cleanup involves making sure
1791 that the pragmas are properly attached to the tree, and that no
1792 nodes are improperly shared.
1794 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
1795 pragmas to Exp_Prag, which is more appropriate.
1796 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
1797 check for duplicates Remove use of Is_Psected flag, no longer needed.
1798 Use new Make_String_Literal function with string.
1800 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
1801 that are functions return universal values, that have to be converted
1802 to the context type.
1803 Use new Make_String_Literal function with string.
1804 (Get_Stream_Convert_Pragma): New function, replaces the use of
1805 Get_Rep_Pragma, which had to be kludged to work in this case.
1807 * freeze.adb: Use new Has_Rep_Pragma function
1809 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
1810 function with string.
1811 Use new Has_Rep_Pragma function.
1813 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
1816 2004-11-18 Robert Dewar <dewar@adacore.com>
1818 * errout.ads, errout.adb: (First_Sloc): New function
1820 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
1821 check (-gnatyx) instead of being included as a redundant construct
1824 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
1825 Style_Check_Order_Subprograms.
1827 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
1828 stylesw.adb: Add Style_Check_Xtra_Parens
1830 * usage.adb: Add line for -gnatyx (check extra parens)
1832 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
1834 2004-11-18 Ed Schonberg <schonberg@adacore.com>
1835 Robert Dewar <dewar@adacore.com>
1837 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
1838 discriminant of a constrained subtype, analyze the copy of the
1839 corresponding constraint, because in some cases it may be only
1841 Removes long-lived ??? comments.
1843 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
1844 handled controlled or secondary-stack expressions within the
1845 iteration_scheme of a loop.
1847 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
1848 bounds that may contain functions calls, to prevent memory leaks when
1849 the bound contains a call to a function that uses the secondary stack.
1850 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
1851 generate temporaries for loop bounds that might contain function calls
1852 that require secondary stack and/or finalization actions.
1854 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
1855 selected component and the selector is overloadable (not just a
1856 function) treat as function call, Analyze_Call will disambiguate if
1858 (Analyze_Selected_Component): Do not generate an actual subtype for the
1859 selected component if expansion is disabled. The actual subtype is only
1860 needed for constraint checks.
1861 (Analyze_Allocator): If restriction No_Streams is set, then do
1862 not permit objects to be declared of a stream type, or of a
1863 composite type containing a stream.
1865 * restrict.ads: Remove the a-stream entry from Unit_Array, since
1866 No_Streams no longer prohibits with'ing this package.
1868 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
1869 discriminants, but the parent base has unknown discriminants, there is
1870 no discriminant constraint to inherit. Such a discrepancy can arise
1871 when the actual for a formal type with unknown discriminants is a
1872 similar private type whose full view has discriminants.
1873 (Analyze_Object_Declaration): If restriction No_Streams is set, then
1874 do not permit objects to be declared of a stream type, or of a
1875 composite type containing a stream.
1877 2004-11-18 Ed Schonberg <schonberg@adacore.com>
1879 * exp_dbug.ads: Update documentation to reflect simpler encoding for
1880 protected operations.
1882 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
1883 generated name, it complicates decoding in gdb and hinders debugging
1884 of protected operations.
1885 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
1886 flag for the protected entry barrier function.
1887 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
1888 flag for the protected entry function.
1890 2004-11-18 Nicolas Setton <setton@adacore.com>
1892 * expect.c: Define __unix__ when __APPLE__ is defined.
1894 * Makefile.in: Inform the value of the variable GMEM_LIB in the
1895 Darwin-specific section.
1897 * lang-specs.h: Change the placement of the %1 marker.
1898 Works around the fact that gcc adds -fPIC by default under Darwin.
1900 2004-11-18 Ed Schonberg <schonberg@adacore.com>
1902 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
1903 type of the object with the packed array type, set the Analyzed flag
1904 on the object if it is an entity or simple indexed component, to avoid
1905 spurious type errors.
1907 2004-11-18 Gary Dismukes <dismukes@adacore.com>
1909 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
1910 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
1911 separate line from the version message.
1913 2004-11-18 Ed Falis <falis@adacore.com>
1915 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
1917 (init_float): Eliminate initialization of floating point status for
1918 AE653. The instructions have no effect for vThreads.
1920 2004-11-18 Vincent Celier <celier@adacore.com>
1922 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
1923 gnatbind is invoked with -shared.
1925 2004-11-18 Jose Ruiz <ruiz@adacore.com>
1927 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
1928 for Detect_Blocking which is redundant with the check done within the
1929 procedure Protected_Single_Entry_Call.
1930 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
1931 Detect_Blocking which is redundant with the check done within the
1932 procedure Protected_Single_Entry_Call.
1934 2004-11-18 Vincent Celier <celier@adacore.com>
1936 * makegpr.adb (Compile): Put the compiling switches (in package
1937 Compiler and on the command line) immediately after "-c", instead of
1938 at the end of the command line invocation of the compiler, when
1939 compiling a non-Ada file.
1940 (Build_Global_Archive): When there is no need to rebuild the archive,
1941 set Global_Archive_Exists, so that the archive is passed to the linker
1944 2004-11-18 Robert Dewar <dewar@adacore.com>
1945 Sergey Rybin <rybin@adacore.com>
1948 Remove extra paren check from list of checks for redundant constructs
1949 Add documentation of new -gnatyx style check (check extra parens)
1950 Remove paragraph about gnatelim debug options.
1952 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
1953 objects rather than forbidding dependencies on the package Ada.Streams.
1955 * sinfo.ads: Add ??? note that we should document pragmas passed to
1958 * g-expect.ads: Fix a few typos in the comments.
1960 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
1962 * misc.c (gnat_handle_option): Use %< and %> for quoting in
1965 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1967 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
1969 2004-11-07 Andreas Schwab <schwab@suse.de>
1971 * Makefile.in (install-gnatlib): Remove spurious hyphen.
1973 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
1976 * Makefile.in (darwin): Set soext to .dylib.
1978 2004-10-26 Vincent Celier <celier@gnat.com>
1979 Thomas Quinot <quinot@act-europe.fr>
1981 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
1982 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
1983 there is no use of GNAT.Sockets.Constants.
1984 Remove remaining pragma Import for C_Write
1985 Remove C_Read and C_Write from internal implementation unit
1986 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
1987 the read and write functions from the system runtime library is fine
1988 on UNIX but won't work under Windows).
1990 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
1991 (Check_Selector): Use C_Recv instead of C_Read.
1992 Selectors are the GNAT.Sockets abstraction to perform a select()
1993 call on a set of descriptors. To allow abortion of an ongoing
1994 select operation, some data is written to a dedicated socket that
1995 is always monitored.
1996 Under Windows, the write and read library functions cannot operate
1997 on sockets, so we need to use send and recv instead, which is portable
1998 across all supported platforms.
2000 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
2001 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
2002 (using the read and write functions from the system runtime library is
2003 fine on UNIX but won't work under Windows).
2005 2004-10-26 Nicolas Setton <setton@act-europe.fr>
2007 * mlib-tgt-darwin.adb: New file.
2009 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
2010 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
2011 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
2012 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
2015 * Makefile.in: Add support for building shared libraries under Darwin.
2016 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
2017 the low level EH init subprogram to be called from __gnat_initialize.
2019 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
2020 indicates which options to pass to the archive indexer.
2022 * mlib-utl.adb: Add support for calling ranlib with additional
2023 options. This is needed for instance under Mac OS X.
2024 (Ranlib_Options): New global variable, used to store the potential
2025 options to pass to ranlib.
2026 (Ar): Use Ranlib_Options when spawning ranlib.
2027 (Initialize): Set the value of ranlib option.
2029 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
2031 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
2032 instead of 8K, to reflect the real potential needs for stack-checking
2035 2004-10-26 Pascal Obry <obry@gnat.com>
2037 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
2039 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
2040 Windows only the initial thread stack size can be set so it is good to
2041 start we a low stack size.
2042 The OS will adjust the size as needed.
2044 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
2045 Nicolas Setton <setton@act-europe.fr>
2047 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
2048 "__unix__" instead of "unix".
2049 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
2050 sections were just mistakenly ignored. The former is
2051 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
2052 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
2053 of hpux. This prevents an unwanted definition of the symbol
2054 convert_addresses in adaint.o.
2056 2004-10-26 Gary Dismukes <dismukes@gnat.com>
2058 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
2059 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
2061 2004-10-26 Cyrille Comar <comar@act-europe.fr>
2063 * a-filico.ads, a-filico.adb: fix incorrect header.
2065 2004-10-26 Javier Miranda <miranda@gnat.com>
2067 * a-ststio.ads: Fix typo in identifier
2069 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
2071 * sem_ch4.adb: Minor reformatting.
2073 2004-10-26 Ed Schonberg <schonberg@gnat.com>
2075 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
2076 enabled, check the result of unary and binary operations when the
2077 expression is the right-hand side of an assignment.
2079 2004-10-26 Vincent Celier <celier@gnat.com>
2081 * clean.adb (Delete): Do not output warnings when in quiet output and
2082 not in verbose mode.
2083 (Force_Deletions): New Boolean flag, defaulted to False
2084 (Delete): Only delete a file if it is writable, and when
2085 Force_Deletions is True.
2086 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
2087 (Usage): Line for new switch -f
2088 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
2091 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
2093 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
2094 JM type only if its size matches that of the wrapper. When a size is
2095 prescribed and the field is not aliased, remove the wrapper of a JM
2096 type only if the size is not greater than that of the packed array.
2097 (gnat_to_gnu_entity): Change the extension of packed array wrappers
2100 2004-10-26 Geert Bosch <bosch@gnat.com>
2102 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
2103 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
2104 (Pred): Implement in terms of Succ.
2106 2004-10-26 Ed Schonberg <schonberg@gnat.com>
2108 * exp_aggr.adb (Safe_Component): An aggregate component that is an
2109 unchecked conversion is safe for in-place use if the expression of the
2111 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
2112 be expandable in place even if the aggregate does not come from source.
2113 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
2114 designated object of an allocator in place, rather than building it
2115 first on the stack. The previous scheme forces a full copy of the array,
2116 and may be altogether unsusable if the size of the array is too large
2117 for stack allocation.
2119 2004-10-26 Robert Dewar <dewar@gnat.com>
2121 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
2122 compares if the component is atomic.
2124 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
2125 array assignment if the component type is atomic.
2127 2004-10-26 Ed Schonberg <schonberg@gnat.com>
2128 Eric Botcazou <ebotcazou@act-europe.fr>
2130 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
2131 is aliased and is a by_reference type, do not pass by copy.
2132 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
2133 detect whether the call is in the right side of an assignment or
2134 the expression of an object declaration. Recurse on component
2135 association within aggregates.
2136 Call it in the condition that determines whether the temporary is
2137 necessary for correct stack-checking.
2139 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
2141 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
2142 RACW_Type, used in the PolyORB version.
2143 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
2144 version and the GARLIC version.
2146 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
2147 Rename RCI_Info to RCI_Locator for better consistency between the
2148 GARLIC and PolyORB versions of the distributed systems annex.
2149 (DSA_Implementation_Name): This enumeration lists the possible
2150 implementations of the Partition Communication Subsystem for the
2151 Distributed Systems Annex (DSA). The three available implementations
2152 are the dummy stub implementation (No_DSA), and two versions based on
2153 two different distribution runtime libraries: GARLIC and PolyORB. Both
2154 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
2156 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
2159 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
2160 between the GARLIC and PolyORB versions of the distributed systems
2162 Remove RE_Unbounded_Reclaim_Pool since it is unused.
2164 2004-10-26 Gary Dismukes <dismukes@gnat.com>
2166 * gnat1drv.adb: Suppress calling the back end when
2167 Frontend_Layout_On_Target is true.
2169 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
2171 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
2172 Set_Read_Only): New subprograms.
2173 These new routines allow the user to set or unset the Owner execute
2174 and Owner write permission flags on a file.
2176 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
2177 GNAT.OS_Lib.Set_Executable instead of rolling our own.
2179 2004-10-26 Matthew Gingell <gingell@gnat.com>
2181 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
2183 2004-10-26 Pascal Obry <obry@gnat.com>
2185 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
2186 memory before the faulting page we properly test the process read
2187 access for this address using appropriate Win32 routine.
2188 (HPUX sections): guard with "__hpux__" instead of "hpux".
2190 2004-10-26 Robert Dewar <dewar@gnat.com>
2192 * lib-xref.adb (Generate_Reference): Don't complain about reference to
2193 entry parameter if pragma Unreferenced set, since we do not properly
2194 handle the case of multiple parameters.
2196 2004-10-26 Vincent Celier <celier@gnat.com>
2198 * prj-env.adb: (Contains_ALI_Files): New Boolean function
2199 (Ada_Objects_Path.Add): For a library project, add to the object path
2200 the library directory only if there is no object directory or if the
2201 library directory contains ALI files.
2202 (Set_Ada_Paths.Add.Recursive_Add): Ditto
2204 2004-10-26 Vincent Celier <celier@gnat.com>
2206 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
2207 extension of library projects.
2209 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
2210 path defaults to ".:<prefix>/lib/gnat".
2211 (Parse): For an extending all project, allow direct import of a project
2212 that is virtually extended.
2214 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
2215 the specified name is directly imported, return its ID. Otherwise, if
2216 an extension of this project is imported, return the ID of the
2219 2004-10-26 Robert Dewar <dewar@gnat.com>
2221 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
2222 (Sub3): New procedure, used by Scaled_Divide
2223 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
2224 correct more than one instance of failure to propagate carries
2226 (Double_Divide): Handle overflow case of largest negative number
2227 divided by minus one.
2229 * s-arit64.ads (Double_Divide): Document that overflow can occur in
2230 the case of a quotient value out of range.
2233 2004-10-26 Robert Dewar <dewar@gnat.com>
2235 * s-bitops.adb (Bit_Eq): Remove redundant check.
2237 * s-bitops.ads: Minor comment updates
2238 Change some occurrences of Address to System.Address
2240 * s-carsi8.ads: Fix minor cut-and-paste error in comments
2242 2004-10-26 Ed Schonberg <schonberg@gnat.com>
2244 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
2245 accessibility check to prefix that is a protected operation.
2247 2004-10-26 Ed Schonberg <schonberg@gnat.com>
2249 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
2250 empty, post message on stub.
2252 2004-10-26 Ed Schonberg <schonberg@gnat.com>
2253 Javier Miranda <miranda@gnat.com>
2255 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
2256 current instance appears within a unit that is directly in the context
2258 Used to determine whether the body of the instance should be analyzed
2259 immediately after its spec, to make its subprogram bodies available
2260 for front-end inlining.
2261 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
2262 constraint is not allowed on the component type (AARM 12.5.3(3))
2264 2004-10-26 Cyrille Comar <comar@act-europe.fr>
2266 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
2267 'Storage_Pool): enhance, document & limit detection of non-sharable
2270 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
2272 * s-pooglo.ads: Add more documentation now that this pool is properly
2275 2004-10-26 Ed Schonberg <schonberg@gnat.com>
2277 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
2278 or protected type with discriminants, do not constrain the
2279 corresponding record type if the subtype declaration has no
2280 discriminant constraints. This can be the case in source code, or in
2281 the subtype declaration created to rename an actual type within an
2284 2004-10-26 Ed Schonberg <schonberg@gnat.com>
2286 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
2287 different kind of stub (possibly wrong name for file), do not check
2289 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
2290 includes call to some function that returns an unconstrained type, do
2293 2004-10-26 Ed Schonberg <schonberg@gnat.com>
2295 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
2296 appear in the code for the main unit. Dependencies among units in the
2297 context of the main unit are established when those other units are
2298 compiled. Otherwise spurious elaboration constraints can generate
2299 incorrect elaboration circularities.
2301 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
2302 Ed Schonberg <schonberg@gnat.com>
2304 * sem_util.adb (Is_Aliased_View): Defend against the case where this
2305 subprogram is called with a parameter that is not an object name. This
2306 situation arises for some cases of illegal code, which is diagnosed
2307 later, and in this case it is wrong to call Is_Aliased, as that might
2308 cause a compiler crash.
2309 (Explain_Limited_Type): Refine previous fix to include
2310 inherited components of derived types, to provide complete information.
2312 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
2313 is the prival for a protected object.
2314 It is necessary to mark this entity as a variable, in addition to
2315 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
2316 modified to avoid checking the Aliased flag on entities that are not
2317 objects. (Checking that flag for non-objects is erroneous and could
2318 lead to a compiler crash).
2320 2004-10-26 Robert Dewar <dewar@gnat.com>
2322 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
2323 X_Frac = 0.5, then we know that the number X must be positive.
2324 (Succ): Remove the same redundant test, and also fix the primary test
2325 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
2327 (Decompose): Add fuller comments to spec
2329 2004-10-26 Pascal Obry <obry@gnat.com>
2331 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
2332 validity (process must have read access). Set to 0 in all other cases.
2333 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
2335 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
2336 segmentation violation.
2338 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
2340 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
2341 whose type is a constructed subtype of an aliased object with an
2342 unconstrained nominal subtype, convert the actual to the constructed
2343 subtype before taking its address.
2345 2004-10-26 Vincent Celier <celier@gnat.com>
2347 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
2348 (Is_Path_Name_Case_Sensitive): New function
2350 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
2351 (Base_Name, Simple_Name, Current_Directory, Compose,
2352 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
2355 2004-10-26 Cyrille Comar <comar@act-europe.fr>
2356 Vasiliy Fofanov <fofanov@act-europe.fr>
2357 Vincent Celier <celier@gnat.com>
2359 * gnat_ugn.texi: Generalize "finding memory problems" section into a
2360 "memory management issues" section and document some of the useful
2361 memory pools provided as part of the GNAT library.
2362 Remove "virtual" from declaration of A::method2 in
2363 the simple example of Ada/C++ mixed system.
2364 Library Projects may be virtually extended: their virtual extensions
2365 are not Library Projects.
2366 Added section on extending project hierarchies.
2368 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
2370 * adaint.c (__gnat_get_libraries_from_registry): Cast value
2372 (__gnat_portable_spawn): Remove const.
2374 * mingw32.h (MAXPATHLEN): Check for previous definition.
2376 2004-10-17 Matthias Klose <doko@debian.org>
2378 * gnatvsn.ads: Set gnat library version to 4.0.
2380 2004-10-05 Vincent Celier <celier@gnat.com>
2382 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
2384 2004-10-04 Laurent GUERBY <laurent@guerby.net>
2387 * Makefile.in: Define and use RANLIB_FLAGS.
2389 2004-10-04 Pascal Obry <obry@gnat.com>
2391 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
2392 other x86 platforms).
2394 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
2396 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
2397 in general and triggers stack alignment adjustment for thread entry
2398 points on targets where this is necessary.
2400 2004-10-04 Bernard Banner <banner@gnat.com>
2404 * Makefile.in: Add section for powerpc linux
2405 Add variant i-vxwork-x86.ads
2407 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
2409 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
2411 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
2412 table registration calls when need be. Ensures no reference to the crt
2413 ctors symbol are issued in the SJLJ case, which avoids possible
2414 undefined symbol errors in the case of modules to be statically linked
2417 2004-10-04 Javier Miranda <miranda@gnat.com>
2419 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
2420 in-line the code corresponding to subprogram Analyze_Actuals. In
2421 addition, analyze the actuals only in case of subprogram call.
2423 2004-10-04 Ed Falis <falis@gnat.com>
2425 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
2427 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
2429 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
2430 in the documentation.
2432 2004-10-04 Robert Dewar <dewar@gnat.com>
2434 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
2436 (Analyze_Block_Statement): Add circuitry to detect following dead code
2437 (Check_Unreachable_Code): Handle case of block exit
2439 2004-10-04 Robert Dewar <dewar@gnat.com>
2441 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
2442 (XMatchD): Avoid warning for Logic_Error call
2444 2004-10-04 Robert Dewar <dewar@gnat.com>
2446 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
2447 consider expressions buried within a procedure actual to be an actual.
2448 This caused some blowups with uses of packed slices within a procedure
2451 2004-10-04 Robert Dewar <dewar@gnat.com>
2453 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
2454 longer need to be initialized to zero.
2455 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
2456 initialized to zero.
2458 * checks.adb (Expr_Known_Valid): Packed arrays are now always
2459 considered valid, even if the representation is modular. That's correct
2460 now that we no longer initialize packed modular arrays to zero.
2462 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
2463 suffixes. These are now documented as the only cases in which the
2464 debugger ignores outer records.
2465 Previously, the spec allowed arbitrary suffixes for this purpose.
2466 Change name of LJM to JM for packed array pad records
2467 Create separate section on packed array handling, and add a whole new
2468 set of comments to this section describing the situation with packed
2469 modular types and justification requirements depending on endianness.
2471 2004-10-04 Robert Dewar <dewar@gnat.com>
2473 * a-except.adb: Add a comment for last change
2475 * einfo.ads: Minor spelling correction in comment
2477 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
2479 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
2482 * sem_util.ads: Minor comment update
2484 2004-10-04 Ed Schonberg <schonberg@gnat.com>
2486 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
2487 Inline_Always when in Configurable_Run_Time mode.
2489 * sem_prag.adb (Process_Convention): If entity is an inherited
2490 subprogram, apply convention to parent subprogram if in same scope.
2491 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
2492 when in Configurable_Run_Time mode.
2494 2004-10-04 Ed Schonberg <schonberg@gnat.com>
2496 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
2497 class_wide type after component list has been inherited.
2499 2004-10-04 Ed Schonberg <schonberg@gnat.com>
2501 * sem_ch12.adb (Check_Generic_Actuals): New predicate
2502 Denotes_Previous_Actual, to handle properly the case of a private
2503 actual that is also the component type of a subsequent array actual.
2504 The visibility status of the first actual is not affected when the
2505 second is installed.
2506 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
2507 make fully recursive the treatment of formals of packages declared
2509 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
2510 the above on exit from an instantiation.
2511 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
2512 current instantiation which is now complete.
2513 (Analyze_Package_Instantiation): No instantiated body is needed if the
2514 main unit is generic. Efficient, and avoid anomalies when a instance
2515 appears in a package accessed through rtsfind.
2517 2004-10-04 Ed Schonberg <schonberg@gnat.com>
2519 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
2520 do not generate a declaration for a temporary if the call is part of a
2521 library-level instantiation.
2523 2004-10-04 Ed Schonberg <schonberg@gnat.com>
2525 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
2526 searching for a limited component to flag.
2528 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
2529 expansion of Input, to account for the fact that the implicit call
2530 generated by the attribute reference must freeze the user-defined
2531 stream subprogram. This is only relevant to 'Input, because it can
2532 appear in an object declaration, prior to the body of the subprogram.
2534 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
2535 expansion can proceed and further errors uncovered.
2536 (Minor clean up): Fix cases of using | instead of \ for continuation
2539 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2541 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
2543 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
2544 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
2545 Use gcc_assert and gcc_unreachable.
2547 * decl.c (gnat_to_gnu_entity, case object): Check and process a
2548 specified alignment before validating size.
2549 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
2550 stripped-down declaration for the type of the inner field when making
2553 * utils.c (finish_record_type): Do not compute the size in units
2554 incrementally. Instead compute it once for the rep clause case.
2555 Use gcc_assert and gcc_unreachable.
2557 2004-10-04 Vincent Celier <celier@gnat.com>
2559 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
2561 (Is_Valid_Path_Name): Take '/' as a directory separator.
2563 2004-10-04 Vincent Celier <celier@gnat.com>
2565 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
2566 (Extended_Project) only if Extended_Project is defined, to avoid
2568 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
2570 (Parse_Single_Project): Ditto.
2572 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
2573 Add_To_Project_Path for virtual projects.
2575 2004-10-04 Vincent Celier <celier@gnat.com>
2577 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
2578 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
2579 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
2580 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
2581 parameter Options_2.
2583 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
2584 Build_Dynamic_Library with an empty Options_2.
2586 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
2589 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
2590 directory separator, if any.
2591 (Gprmake): Do not allow mains on the command line for library projects.
2592 Do not attempt to link when the project is a library project.
2593 (Library_Opts): New table to store Library_Options.
2594 (Build_Library): If Library_Options is specified, pass these options
2595 when building a shared library.
2597 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
2599 * s-tposen.adb (Service_Entry): The object must be always unlocked at
2600 the end of this procedure now that the unlock operation was inserted
2603 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
2605 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
2606 corresponding to the Preallocated_Stacks flags in System.
2607 (Get_Target_Parameters): Including the processing for
2608 Preallocated_Stacks.
2610 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
2611 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
2612 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
2613 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
2614 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
2615 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
2616 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
2617 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
2618 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
2619 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
2620 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
2621 used to signal whether the compiler creates the required stacks and
2622 descriptors for the different tasks (when True) or it is done by the
2623 underlying operating system at run time (when False).
2624 It is initially set to False in all targets.
2626 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
2627 if it is supported by the target.
2628 (Make_Task_Create_Call): Pass the stack address if it has been
2629 previously created. Otherwise pass a Null_Address.
2631 * snames.adb: Add _stack.
2633 * snames.ads: Add Name_uStack. Required to allow the expander to
2634 statically allocated task stacks.
2636 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
2637 Stack_Address argument.
2638 Check that its value is equal to Null_Address because this target does
2639 not support the static stack allocation.
2641 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
2643 * usage.adb: Change "pragma inline" to "pragma Inline" in information
2646 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
2648 * exp_dist.adb: Split declaration of asynchronous flag out of
2649 Add_RACW_Read_Attribute.
2650 Minor reformatting for better alignment with PolyORB version.
2651 Store the entity for the asynchronous flag of an RACW, rather than the
2652 expression, in the asynchronous flags table. This will allow this flag
2653 to be used in other subprograms beside Add_RACW_Read_Attribute.
2655 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
2657 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
2658 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
2659 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
2660 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
2661 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
2662 sockets constant MSG_NOSIGNAL (Linux-specific).
2663 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
2664 all Send operations.
2665 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
2666 from trigerring SIGPIPE.
2667 Rename components to avoid clash with Ada 2005 possible reserved
2669 (Check_Selector): When the select system call returns with an error
2670 condition, propagate Socket_Error to the caller.
2672 2004-10-01 Jan Hubicka <jh@suse.cz>
2674 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
2676 2004-09-23 Robert Dewar <dewar@gnat.com>
2680 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
2681 instead do this at freeze time (we won't do it if there is an address
2683 Change "pragma inline" to "pragma Inline" in information and error
2687 * freeze.adb (Check_Address_Clause): Remove previous change, not the
2688 right way of doing things after all.
2689 (Freeze_Entity): For object, set Is_Public for imported entities
2690 unless there is an address clause present.
2692 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
2694 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
2695 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
2696 ensures proper handling of types with rep clauses, which might have
2697 their TYPE_SIZE set already.
2699 2004-09-21 Robert Dewar <dewar@gnat.com>
2701 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
2702 packed array types in both little- and big-endian cases. This change
2703 ensures that we no longer count on the unused bits being initialized
2704 for such types (and in particular ensures that equality testing will
2705 only read the relevant bits).
2706 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
2707 These changes mean that we no longer need to initialize small packed
2709 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
2710 optimization to an LJM field as to its parent field.
2712 * ada-tree.h, trans.c, utils.c, utils2.c:
2713 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
2715 2004-09-20 Jan Hubicka <jh@suse.cz>
2717 * utils.c (gnat_finalize): Remove.
2718 (end_subprog_body): Directly call cgraph_finalize_function;
2719 do not lower the nested functions.
2721 2004-09-20 Robert Dewar <dewar@gnat.com>
2725 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
2726 if an address clause is present, since that means that the Import
2729 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
2731 * 5tsystem.ads: Removed, no longer used.
2733 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
2734 Zack Weinberg <zack@codesourcery.com>
2736 * ada-tree.def: Use tree_code_class enumeration constants
2737 instead of code letters.
2738 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
2739 Update for new tree-class enumeration constants.
2741 2004-09-17 Vincent Celier <celier@gnat.com>
2743 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
2744 capabilities of the general project manager.
2746 2004-09-09 Vincent Celier <celier@gnat.com>
2748 * a-direct.ads: Add pragma Ada_05
2749 (Directory_Entry_Type): Give default value to component Kind to avoid
2750 not initialized warnings.
2752 * a-direct.adb (Current_Directory): Remove directory separator at the
2754 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
2755 an existing directory.
2756 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
2757 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
2758 Convert the result to File_Size.
2760 * prj.ads: (Project_Error): New exception
2762 * prj-attr.adb: Except in procedure Initialize, Fail comes from
2763 Prj.Com, not from Osint.
2764 (Attrs, Package_Attributes): Tables moved to private part of spec
2765 (Add_Attribute, Add_Unknown_Package): Moved to new child package
2767 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
2768 Prj.Project_Error after call to Fail.
2769 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
2770 Fail. Check that package name is not already in use.
2772 * prj-attr.ads: Comment updates to indicate that all subprograms may be
2773 used by tools, not only by the project manager, and to indicate that
2774 exception Prj.Prj_Error may be raised in case of problem.
2775 (Add_Unknown_Package, Add_Attribute): Moved to new child package
2777 (Attrs, Package_Attributes): Table instantiations moved from the body to
2778 the private part to be accessible from Prj.Attr.PM body.
2780 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
2781 from new package Prj.Attr.PM.
2782 (Parse_Attribute_Declaration): Call Add_Attribute from new package
2785 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
2787 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
2788 instead of Elaboration_Checks).
2790 * a-calend.adb: Minor reformatting
2792 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2794 * gigi.h (maybe_pad_type): New declaration.
2795 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
2797 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
2799 * cuintp.c: Convert to use buildN.
2801 * decl.c (maybe_pad_type): No longer static.
2802 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
2804 Convert to use buildN.
2806 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
2807 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
2808 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
2810 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
2811 (gnat_gimplify_expr, case ADDR_EXPR): New case.
2812 Convert to use buildN.
2814 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
2815 TREE_READONLY for const.
2816 Convert to use buildN.
2818 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
2819 (create_var_decl): Refine when TREE_STATIC is set.
2820 Convert to use buildN.
2822 2004-09-09 Gary Dismukes <dismukes@gnat.com>
2824 * gnat_ugn.texi: Delete text relating to checking of ali and object
2827 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
2830 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
2832 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
2833 pragmas recognized by GNAT.
2835 * gnat_rm.texi: Document pragma Detect_Blocking.
2837 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
2838 raise Program_Error if called from a protected operation.
2840 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
2841 the protected action nesting level.
2842 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
2843 protected action nesting level.
2844 (Unlock): When pragma Detect_Blocking is active decrease the protected
2845 action nesting level.
2847 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
2848 Protected_Action_Nesting.
2850 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
2851 Common_ATCB record. It contains the dynamic level of protected action
2852 nesting for each task. It is needed for checking whether potentially
2853 blocking operations are called from protected operations.
2854 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
2855 Detect_Blocking is active or not in the partition.
2857 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
2858 raise Program_Error if called from a protected operation.
2859 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
2860 Program_Error if called from a protected operation.
2861 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
2862 Program_Error if called from a protected operation.
2864 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
2865 raise Program_Error if called from a protected operation.
2867 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
2868 raise Program_Error if called from a protected operation, and increase
2869 the protected action nesting level.
2870 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
2871 Program_Error if called from a protected operation, and increase the
2872 protected action nesting level.
2873 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
2874 protected action nesting level.
2876 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
2877 raise Program_Error if called from a protected operation, and increase
2878 the protected action nesting level.
2879 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
2880 Program_Error if called from a protected operation, and increase the
2881 protected action nesting level.
2882 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
2883 raise Program_Error if called from a protected operation.
2884 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
2885 active, raise Program_Error if called from a protected operation.
2886 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
2887 protected action nesting level.
2889 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
2890 insertion of the statement raising Program_Error. The run time
2891 contains the required machinery for handling that.
2893 * sem_util.ads: Change comment associated to procedure
2894 Check_Potentially_Blocking_Operation.
2895 This procedure does not insert a call for raising the exception because
2896 that is currently done by the run time.
2898 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
2900 * init.c: Add the global variable __gl_detect_blocking that indicates
2901 whether pragma Detect_Blocking is active (1) or not (0). Needed for
2902 making the pragma available at run time.
2903 (__gnat_set_globals): Pass and update the detect_blocking parameter.
2905 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
2906 pragma Detect_Blocking is active.
2908 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
2910 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
2911 DB is found in the ali file. Any unit compiled with pragma
2912 Detect_Blocking active forces its effect in the whole partition.
2914 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
2915 Detect_Blocking is active and delay is called from a protected
2918 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
2919 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
2920 Detect_Blocking is active (0 otherwise).
2921 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
2922 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
2925 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
2927 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
2928 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
2931 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
2932 (Register_Receiving_Stub): Add Subp_Info formal parameter.
2933 Update API in placeholder implemetation of s-parint to reflect changes
2934 in distribution runtime library.
2936 * sem_ch3.adb (Expand_Derived_Record): Rename to
2937 Expand_Record_Extension.
2939 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
2940 primitive operations of potentially distributed object types that have
2941 non-controlling anonymous access formals.
2943 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
2945 New implementation of expansion for remote access-to-subprogram types,
2946 based on the RACW infrastructure.
2947 This version of sem_dist is compatible with PolyORB/DSA as well as
2950 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
2951 Asynchrronous that applies to a remote access-to-subprogram type, mark
2952 the underlying RACW type as asynchronous.
2954 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
2955 __gnat_using_gnu_linker to 1.
2957 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
2958 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
2959 GNAT.Perfect_Hash_Generators, and remove the empty
2960 GNAT.Perfect_Hash package.
2962 * atree.adb: Minor reformatting
2964 * exp_ch3.adb (Expand_Derived_Record): Rename to
2965 Expand_Record_Extension.
2966 (Build_Record_Init_Proc.Build_Assignment): The default expression in
2967 a component declaration must remain attached at that point in the
2968 tree so New_Copy_Tree copies it if the enclosing record type is derived.
2969 It is therefore necessary to take a copy of the expression when building
2970 the corresponding assignment statement in the init proc.
2971 As a side effect, in the case of a derived record type, we now see the
2972 original expression, without any rewriting that could have occurred
2973 during expansion of the ancestor type's init proc, and we do not need
2974 to go back to Original_Node.
2976 * exp_ch3.ads (Expand_Derived_Record): Rename to
2977 Expand_Record_Extension.
2979 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
2980 Returns the RACW type used to implement a remote access-to-subprogram
2982 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
2983 New subprograms. Used to create a proxy tagged object for a remote
2984 subprogram. The proxy object is used as the designated object
2985 for RAS values on the same partition (unless All_Calls_Remote applies).
2986 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
2987 System.Partition_Interface.Get_Unique_Remote_Pointer.
2988 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
2989 Renamed from Add_RAS_*_Attribute.
2990 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
2992 New implementation of expansion for remote access-to-subprogram types,
2993 based on the RACW infrastructure.
2995 * exp_dist.ads (Copy_Specification): Update comment to note that this
2996 function can copy the specification from either a subprogram
2997 specification or an access-to-subprogram type definition.
2999 2004-09-09 Ed Schonberg <schonberg@gnat.com>
3001 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
3002 in an instance, between an explicit subprogram an one inherited from a
3003 type derived from an actual.
3005 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
3006 add a polling call if the subprogram is to be inlined by the back-end,
3007 to avoid repeated calls with multiple inlinings.
3009 * checks.adb (Apply_Alignment_Check): If the expression in the address
3010 clause is a call whose name is not a static entity (e.g. a dispatching
3011 call), treat as dynamic.
3013 2004-09-09 Robert Dewar <dewar@gnat.com>
3015 * g-trasym.ads: Minor reformatting
3017 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
3018 packed arrays, since unused bits are expected to be zero for a
3021 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
3023 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
3026 2004-09-09 Pascal Obry <obry@gnat.com>
3028 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
3029 enable map file generation. Add the right option to generate the map
3030 file if Map_File is set to True.
3032 * gnatdll.adb (Gen_Map_File): New variable.
3033 (Syntax): Add info about new -m (Map_File) option.
3034 (Parse_Command_Line): Add support for -m option.
3035 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
3038 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
3040 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
3041 new gnatdist implementation.
3042 Define a subpackage isolating the output routines specific to this
3045 2004-09-09 Joel Brobecker <brobecker@gnat.com>
3047 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
3049 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
3051 2004-09-09 Cyrille Comar <comar@act-europe.fr>
3053 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
3056 * opt.ads: Add Ada_Version_Runtime constant used to decide which
3057 version of the language is used to compile the run time.
3059 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
3061 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
3062 of variable length temporaries for function return now that the
3063 back-end and gigi support it.
3065 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3067 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
3069 * trans.c (struct stmt_group): Delete field GLOBAL.
3070 (gnat_init_stmt_group): Do not initialize it.
3071 (call_to_gnu): Use save_expr, not protect_multiple_eval.
3072 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
3073 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
3074 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
3075 (start_stmt_group): Likewise.
3076 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
3078 * utils2.c (ggc.h): Include.
3079 (build_call_raise): Call build_int_cst, not build_int_2.
3081 * utils.c (gnat_init_decl_processing): Fix arg to
3082 build_common_tree_nodes.
3083 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
3084 (gnat_define_builtin): Set built_in_decls.
3085 (init_gigi_decls): Call build_int_cst, not build_int_2.
3087 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
3088 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
3089 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
3090 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
3091 SET_TYPE_MODULE): Use them.
3092 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
3093 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
3094 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
3095 SET_TYPE_ADA_SIZE): Likewise.
3096 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
3097 (DECL_CONST_CORRESPONDING_VAR,
3098 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
3099 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
3100 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
3101 (TYPE_RM_SIZE_NUM): New macro.
3102 (TYPE_RM_SIZE): Modified to use above.
3104 * cuintp.c: (build_cst_from_int): New function.
3105 (UI_To_gnu): Use it.
3107 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
3108 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
3109 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
3110 MIN_EXPR for the size, copy it into new.
3112 2004-09-01 Robert Dewar <dewar@gnat.com>
3114 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
3115 packed indexed component where array is an IN OUT formal. This
3116 generated garbage code previously.
3118 * gnat_ugn.texi: Document -fverbose-asm
3120 * gnat-style.texi: Minor updates (note that boolean constants and
3121 variables are joined with AND/OR rather than short circuit forms).
3123 2004-09-01 Ed Schonberg <schonberg@gnat.com>
3125 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
3126 it is an upward conversion of an untagged type with no representation
3129 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
3131 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
3132 System.Partition_Interface.
3134 * checks.adb (Apply_Access_Checks): Do not generate checks when
3135 expander is not active (but check for unset reference to prefix of
3138 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
3139 pragma Debug as an if statement with a constant condition, for
3140 consistent treatment of entity references contained within the
3141 enclosed procedure call.
3143 2004-09-01 Vincent Celier <celier@gnat.com>
3145 * bindgen.adb: (Set_EA_Last): New procedure
3146 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
3148 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
3149 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
3150 linked without errors.
3151 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
3153 (Gen_Exception_Table_C): Correct same bugs
3155 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
3157 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
3158 on Windows, make sure that the drive letter is in upper case.
3160 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
3161 Windows, when the drive letter is added and Case_Sensitive is True, the
3162 drive letter is forced to upper case.
3164 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
3165 to Options_2 for the call to MLib.Utl.Gcc.
3167 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
3168 directory separator when defining BASE_DIR.
3170 2004-09-01 Pascal Obry <obry@gnat.com>
3172 * gprcmd.adb (Extend): Do not output trailing directory separator. This
3173 is not needed and it confuses Windows GNU/make which does not report
3174 directory terminated by a slash as a directory.
3175 (gprcmd): Idem for "pwd" internal command.
3177 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
3178 target names rewrite to fix regressions with recent version of
3179 GNU/make. Starting with GNU/make 3.80 the pipe character was not
3180 handled properly anymore.
3182 2004-09-01 Andreas Schwab <schwab@suse.de>
3184 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
3185 * raise.c [!IN_RTS]: Undef abort.
3187 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
3189 * utils2.c (build_allocator): Use ssize_int.
3191 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
3193 2004-08-27 Andreas Schwab <schwab@suse.de>
3195 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
3197 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
3198 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3200 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
3202 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
3204 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
3205 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
3206 * utils.c (init_gigi_decls): Likewise.
3207 * utils2.c (build_call_raise, build_allocator): Likewise.
3209 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
3211 * utils.c (gnat_init_decl_processing): Adjust
3212 build_common_tree_nodes call.
3214 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
3216 * utils2.c (build_allocator): Use build_int_cst for negative
3219 2004-08-18 Richard Henderson <rth@redhat.com>
3221 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
3223 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
3225 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
3227 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
3228 (gnat_to_gnu): Likewise.
3230 2004-08-16 Pascal Obry <obry@gnat.com>
3232 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
3233 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
3234 option and not mdll anymore. Update comment.
3236 2004-08-16 Pascal Obry <obry@gnat.com>
3238 * bld.adb (Put_Include_Project): Properly handle directory separators
3241 2004-08-16 Ed Schonberg <schonberg@gnat.com>
3243 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
3244 decreasing the number of allocated junk nodes while searching for the
3245 appropriate subprogram.
3247 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
3249 * cuintp.c (UI_To_gnu): Use build_int_cst..
3250 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
3251 * utils.c (init_gigi_decls): Likewise.
3252 * utils2.c (build_call_raise): Likewise.
3254 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
3256 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
3257 for a global aliased object with a variable size and an unconstrained
3258 nominal subtype, pretend there is no initializer if the one we have is
3259 incomplete, and avoid referencing an inexistant component in there. The
3260 part we have will be rebuilt anyway and the reference may confuse
3263 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
3265 * einfo.ads: Minor reformatting
3267 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
3268 restrictions in the ALI if we only want to warn about violations.
3270 2004-08-13 Vincent Celier <celier@gnat.com>
3272 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
3273 when creating a new Unit_Record in table Units.
3275 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
3276 that are violated, if any.
3278 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
3279 add directory separator if path already ends with a directory separator.
3281 2004-08-13 Ed Schonberg <schonberg@gnat.com>
3283 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
3284 unit, this is an attempt to inline a construct that is not available in
3285 the current restricted mode, so abort rather than trying to continue.
3287 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
3288 discriminants that rename those of the parent, recover names of
3289 original discriminants for the constraint on the full view of the
3291 (Complete_Private_Subtype): Do not create a subtype declaration if the
3292 subtype is an itype.
3294 * gnat_rm.texi: Added section on implementation of discriminated
3295 records with default values for discriminants.
3297 2004-08-13 Ed Schonberg <schonberg@gnat.com>
3300 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
3301 the second operand is overloaded.
3303 2004-08-10 Richard Henderson <rth@redhat.com>
3305 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
3306 add __builtin_alloca.
3308 2004-08-10 Richard Henderson <rth@redhat.com>
3310 * config-lang.in (boot_language): Yes.
3312 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
3314 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
3315 from complaining on potential uninitialized reference.
3316 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
3317 new specification and test explicitly for non-zero return value.
3319 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
3320 returning C.int, to avoid using a derived boolean type.
3322 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
3323 Duplicate_Subexpr_No_Checks in preference to direct use of
3324 Remove_Side_Effects and New_Copy_Tree.
3325 Clear Comes_From_Source on prefix of 'Size attribute reference.
3327 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
3328 g-socthi-vxworks.adb: Change calls to
3329 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
3330 and test explicitly for non-zero return value.
3332 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
3333 (Is_Socket_In_Set): Declare imported function as returning C.int, to
3334 avoid using a derived boolean type.
3336 2004-08-09 Albert Lee <lee@gnat.com>
3338 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
3340 2004-08-09 Pascal Obry <obry@gnat.com>
3342 * gnat_ugn.texi: Document new way to build DLLs on Windows using
3343 GCC's -shared option.
3345 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
3346 Options_2 parameter (options put after object files).
3348 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
3350 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
3351 ignore overflows on low and high bounds of an index to also account for
3352 differences in signedness between sizetype and gnu_index_subtype.
3353 These are as legitimate as the ones caused by a lower TYPE_PRECISION
3356 2004-08-09 Robert Dewar <dewar@gnat.com>
3358 * s-solita.ads, s-solita.adb: Minor reformatting
3360 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
3361 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
3363 Add note that No_Implicit_Conditionals does not suppress
3364 run time constraint checks.
3366 * vms_conv.ads: Minor reformatting
3368 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
3369 and necessary for following change).
3370 (Mark): Return new format Mark_Id containing sec stack address
3371 (Release): Use sec stack address from Mark_Id avoiding Self call
3373 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
3374 pointer (cleanup and necessary for following change).
3375 Define Mark_Id as record containing address of secondary stack, that way
3376 Release does not need to find the stack again, decreasing the number of
3377 calls to Self and improving efficiency.
3379 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
3381 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
3382 case variable into the individual case branches when possible.
3384 * sem_ch11.adb: Minor reformatting
3386 * prj.ads: Correct spelling of suffixs
3388 * prj-nmsc.adb: Minor reformatting
3389 Correct spelling suffixs throughout (also in identifiers)
3391 * freeze.adb: Minor spelling correction
3393 * exp_ch2.adb: Cleanups to handling of Current_Value
3394 (no functional effect).
3396 * bld.adb: Correct spelling of suffixs
3398 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
3400 2004-08-09 Ed Schonberg <schonberg@gnat.com>
3404 * sem_ch7.adb (Install_Private_Declarations): In the body of the
3405 package or of a child, private entities are both immediately_visible
3408 2004-08-09 Ed Schonberg <schonberg@gnat.com>
3410 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
3411 there are no range checks on the value of the literal.
3413 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
3414 wrapped is the triggering alternative of an asynchronous select, action
3415 statements mustbe inserted before the select itself.
3417 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
3418 case where the prefix is a protected function call.
3419 (Resolve_Attribute, case 'Access): The attribute reference on a
3420 subprogram is legal in a generic body if the subprogram is declared
3423 2004-08-09 Vincent Celier <celier@gnat.com>
3425 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
3426 languages, otherwise building the library may fail with unresolved
3428 (Compile_Sources): Do not build libraries if -c switch is used
3430 * gnatlink.adb (Process_Args): New switches -M and -Mmap
3431 (Write_Usage): If map file creation is supported, output new switches
3433 (Gnatlink): When -M is specified, add the necessary switch(es) to the
3434 gcc call, when supported.
3436 * Makefile.in: Added indepsw.o to the object list for gnatlink
3437 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
3439 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
3440 indepsw.adb, indepsw.ads: New files.
3442 2004-08-09 Bernard Banner <banner@gnat.com>
3444 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
3446 * Makefile.in: add section for vxworks x86
3448 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
3450 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
3451 per-object constrained components where the discriminant is of an
3453 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
3454 the parent initialization procedure for derived Unchecked_Unions.
3455 Instead, derived Unchecked_Unions build their own initialization
3457 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
3458 Check the body of the subprogram for details.
3459 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
3460 functions for derived Unchecked_Union types by introducing a condition.
3461 Allow the creation of TSS equality functions for Unchecked_Unions.
3462 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
3463 Add formal parameter Discr to function signature. Discr is used to
3464 control the generated case statement for Unchecked_Union types.
3465 (Make_Eq_If): Rename formal parameter Node to E in function signature.
3467 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
3469 Check the body of the subprogram for details.
3470 (Expand_Composite_Equality): Augment composite type equality to include
3471 correct handling of Unchecked_Union components.
3472 (Expand_N_In): Add condition to detect illegal membership tests when the
3473 subtype mark is a constrained Unchecked_Union and the expression lacks
3474 inferable discriminants, and build a Raise_Program_Error node.
3475 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
3476 to detect types that contain components of unconstrained Unchecked_Union
3477 subtype. Add condition to detect equality between types that have an
3478 unconstrained Unchecked_Union component, and build a Raise_Program_Error
3479 node. Add condition to detect equality between Unchecked_Union types
3480 that lack inferable discriminants, and build a Raise_Program_Error node.
3481 Otherwise build a TSS equality function call.
3482 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
3483 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
3484 with the operand lacking inferable discriminants, and build a Raise_
3486 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
3488 (Has_Inferable_Discriminants): Implement new predicate for objects and
3489 expressions of Unchecked_Union type. Check the body of subprogram for
3491 (Has_Unconstrained_UU_Components): Add function
3492 Component_Is_Unconstrained_UU. It is used to detect whether a single
3493 component is of an unconstrained Unchecked_Union subtype. Add function
3494 Variant_Is_Unconstrained_UU. It is used to detect whether a single
3495 component inside a variant is of an unconstrained Unchecked_Union type.
3497 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
3498 inferred discriminant values. Add condition to generate a case
3499 statement with an inferred discriminant as the switch.
3500 (Make_Component_List_Assign): Introduce a Boolean flag that determines
3501 the behaviour of the subprogram in the presence of an Unchecked_Union.
3502 Add condition to trigger the usage of the inferred discriminant value
3503 as the generated case statement switch.
3504 (Make_Field_Assign): Introduce a Boolean flag that determines the
3505 behaviour of the subprogram in the presence of an Unchecked_Union. Add
3506 condition to trigger the usage of the inferred discriminant value as
3507 the right-hand side of the generated assignment.
3509 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
3510 parameter generation when dealing with Unchecked_Unions.
3512 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
3513 checks for Unchecked_Unions.
3515 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
3517 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
3518 Raise_Program_Error nodes for the execution of Read and Write
3519 attributes of Unchecked_Union types and the execution of Input and
3520 Output attributes of Unchecked_Union types that lack default
3521 discriminant values.
3523 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
3524 Unchecked_Union. Add procedure Check_Component. It is used to inspect
3525 per-object constrained components of Unchecked_Unions for being
3526 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
3527 check individual components withing a variant.
3529 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
3530 comparison of Unchecked_Unions.
3531 (Resolve_Equality_OP): Remove guard that prevents equality between
3534 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
3535 of component subtypes for Unchecked_Union components.
3536 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
3537 since it is the actual subtype.
3539 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
3540 pass of Unchecked_Union subtypes as generic actuals to formal types
3541 that lack known_discriminant_parts or that are derived Unchecked_Union
3542 types, and do nothing. In any other case, produce an error message.
3544 * sem_ch3.adb (Analyze_Component_Declaration): Add function
3545 Contains_POC. It determines whether a constraint uses the discriminant
3546 of an enclosing record type.
3547 Add condition to detect per-object constrained component and set the
3549 (Derived_Type_Declaration): Remove guard that prevents derivation from
3550 Unchecked_Union types.
3551 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
3554 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
3555 references to Unchecked_Union discriminants.
3557 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
3558 formal generation when dealing with Unchecked_Unions.
3559 (Set_Actual_Subtypes): Add condition to prevent generation of actual
3560 subtypes for Unchecked_Unions.
3562 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
3563 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
3564 completions of discriminated partial views by Unchecked_Unions and
3565 produce an error message.
3567 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3569 * trans.c (struct stmt_group): New field, GLOBAL.
3570 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
3571 (struct elab_info): New struct.
3572 (elab_info_list, gnu_elab_proc_stack): New variables.
3573 (Compilation_Unit_to_gnu): New procedure.
3574 (gigi): Call it and also handle elaboration procs we've saved.
3575 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
3576 global field from parent.
3577 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
3578 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
3579 (start_stmt_group): Initialize global field from parent.
3580 (add_decl_expr): Set to global for current statement group.
3581 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
3584 * utils.c (global_bindings_p): True when no current_function_decl; no
3585 longer check current_binding_level.
3587 2004-08-09 Ben Brosgol <brosgol@gnat.com>
3589 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
3592 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
3594 2004-08-06 Andreas Schwab <schwab@suse.de>
3596 * utils.c (gnat_define_builtin): Remove second parameter of
3598 (begin_subprog_body): Likewise.
3600 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
3602 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
3603 optimization, not supported by the tree-ssa back-end.
3605 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
3607 * s-mastop-irix.adb: Update comments.
3609 * a-except.adb (Exception_Information): Raise Constraint_Error if
3610 exception Id is Null_Id.
3611 This is required behavior, which is more reliably and clearly checked
3612 at the top level interface level.
3614 2004-07-26 Javier Miranda <miranda@gnat.com>
3616 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
3617 call if a component has no default_expression and the box is used.
3619 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
3620 default_expression and you use box, it behaves as if you had declared a
3622 (Resolve_Record_Aggregate): If a component has no default_expression and
3623 you use box, it behaves as if you had declared a stand-alone object.
3625 * sem_ch10.adb (Install_Siblings): Do not make visible the private
3626 entities of private-with siblings.
3628 2004-07-26 Ed Schonberg <schonberg@gnat.com>
3630 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
3631 for a component of an itype, set the parent pointer for analysis,
3632 there is no list in which to insert it.
3634 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
3635 bona-fide renamings, not for inherited operations.
3637 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
3638 actual for a formal that is an access parameter, create local
3639 finalization list even if the expression is not an aggregate.
3641 2004-07-26 Ed Schonberg <schonberg@gnat.com>
3644 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
3645 Diagnose properly illegal subprogram renamings that are library units.
3647 2004-07-26 Ed Schonberg <schonberg@gnat.com>
3650 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
3651 conversion rewritten as an unchecked conversion, check that original
3652 expression is a variable.
3654 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
3655 unchecked_conversion, create new node rather than rewriting in place,
3656 to preserve original construct.
3658 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3660 * gigi.h (gnat_expand_body): Deleted.
3662 * Make-lang.in: (trans.o): Depends on function.h.
3664 * misc.c: (gnat_expand_body): Moved to here.
3666 * trans.c (gnat_expand_body_1): Deleted.
3667 (gnat_expand_body): Moved from here.
3668 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
3669 (add_stmt): Check for marked visited with global_bindings_p.
3670 (gnat_gimplify_expr, case COMPONENT_REF): New case.
3671 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
3673 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
3674 VIEW_CONVERT_EXPR if not operation type.
3676 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
3679 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
3680 changes: reformatting of negation operators, removing unneeded
3681 inequality comparison with zero, converting equality comparisons with
3682 zero to negations, changing int/0/1 to bool/false/true, replace calls
3683 to gigi_abort with abort, and various other similar changes.
3685 2004-07-26 Vincent Celier <celier@gnat.com>
3687 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
3690 * make.adb (Gnatmake): Fail when a library is not present and there is
3691 no object directory.
3693 * mlib-prj.adb (Check_Library): No need to check if the library needs
3694 to be rebuilt if there is no object directory, hence no object files
3695 to build the library.
3697 * opt.ads (Setup_Projects): New Boolean flag.
3699 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
3701 Create directory when Kind /= "" and in "gnat setup". Report error if
3702 directory cannot be created.
3703 (Ada_Check): Create library interface copy dir if it does not exist
3704 and we are in "gnat setup".
3705 (Find_Sources): No error if in "gnat setup" and no Ada sources were
3707 (Language_Independent_Check): Create object directory, exec directory
3708 and/or library directory if they do not exist and we are in
3711 * vms_conv.ads: (Command_Type): New command Setup.
3713 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
3715 * vms_data.ads: Add qualifiers/switches for new built-in command
3718 2004-07-25 Richard Henderson <rth@redhat.com>
3720 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
3721 DECL_IGNORED_P on RESULT_DECL.
3723 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
3725 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
3726 allocation and potentially overflowing update with
3727 Tailored_Exception_Information. Use the sec-stack free procedural
3728 interface to output Exception_Information instead.
3730 * a-except.adb (To_Stderr): New subprogram for character, and string
3731 version moved from a-exextr to be visible from other separate units.
3732 (Tailored_Exception_Information): Remove the procedural version,
3733 previously used by the default Last_Chance_Handler and not any more.
3734 Adjust various comments.
3736 * a-exexda.adb: Generalize the exception information procedural
3737 interface, to minimize the use of secondary stack and the need for
3738 local buffers when the info is to be output to stderr:
3739 (Address_Image): Removed.
3740 (Append_Info_Character): New subprogram, checking for overflows and
3741 outputing to stderr if buffer to fill is of length 0.
3742 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
3743 (Append_Info_Address, Append_Info_Exception_Name,
3744 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
3745 Append_Info_Basic_Exception_Traceback,
3746 Append_Info_Exception_Information): New subprograms.
3747 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
3748 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
3749 Exception_Info_Maxlength, Exception_Name_Length,
3750 Exception_Message_Length): New subprograms.
3751 (Exception_Information): Use Append_Info_Exception_Information.
3752 (Tailored_Exception_Information): Use
3753 Append_Info_Basic_Exception_Information.
3754 Export services for the default Last_Chance_Handler.
3756 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
3757 other separate units.
3759 2004-07-20 Vincent Celier <celier@gnat.com>
3761 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
3763 2004-07-20 Ed Schonberg <schonberg@gnat.com>
3765 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
3766 emit itype references for the designated types of component types that
3767 are declared outside of the full record declaration, and that may
3768 denote a partial view of that record type.
3770 2004-07-20 Ed Schonberg <schonberg@gnat.com>
3773 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
3774 which is the designated type in an access component declaration, to the
3775 list of incomplete dependents of the parent type, to avoid elaboration
3776 issues with out-of-scope subtypes.
3777 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
3778 full view of the parent.
3780 2004-07-20 Ed Schonberg <schonberg@gnat.com>
3783 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
3784 entities that are hidden, such as references to generic actuals
3785 outside an instance.
3787 2004-07-20 Javier Miranda <miranda@gnat.com>
3789 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
3790 support to the new notation.
3791 (Analyze_Selected_Component): Add call to Try_Object_Operation.
3793 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
3795 * s-taprob.adb: Adding the elaboration code required for initializing
3796 the tasking soft links that are common to the full and the restricted
3799 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
3800 restricted run time has been moved to the package
3801 System.Soft_Links.Tasking.
3803 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
3804 restricted run time has been moved to the package
3805 System.Soft_Links.Tasking.
3807 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
3809 * s-solita.ads, s-solita.adb: New files.
3811 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3813 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
3814 Case_Statement_to_gnu): Split off from gnat_to_gnu.
3815 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
3816 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
3817 Exception_Handler_to_gnu_zcx): Likewise.
3819 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
3821 * gigi.h (builtin_function): Declare.
3823 2004-07-15 Robert Dewar <dewar@gnat.com>
3825 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
3828 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
3829 access values as an example of a warning.
3831 * gnat_rm.texi: Document new attribute Has_Access_Values
3833 * gnat-style.texi: Document that box comments belong on nested
3836 * sem_util.ads (Has_Access_Values): Improved documentation
3838 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
3840 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
3841 (Process_Interface_Name): Call to this new procedure
3842 (Set_Extended_Import_Export_External_Name): Call to this new procedure
3844 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
3846 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
3848 * einfo.ads: Minor comment typo fixed
3850 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
3852 * snames.adb: Add _atcb.
3854 * snames.ads: Add Name_uATCB.
3856 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
3857 (in the expanded code) when using the restricted run time.
3859 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
3860 a in parameter in order to allow ATCBs to be preallocated (in the
3863 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
3864 order to allow ATCBs to be preallocated. In case of error, the ATCB is
3865 deallocated in System.Tasking.Stages.
3867 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
3868 order to allow ATCBs to be preallocated.
3870 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
3871 here. It was previously done in Initialize_ATCB.
3873 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
3875 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
3876 Restricted run time.
3878 * exp_ch3.adb: When using the Restricted run time, pass the
3879 preallocated Ada_Task_Control_Block when creating a task.
3881 2004-07-15 Ed Schonberg <schonberg@gnat.com>
3883 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
3884 function call that is itself an actual in an enclosing call, diagnose
3885 problem here rather than assuming that resolution will catch it.
3887 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
3888 the local copy of a generic unit for a formal package, and the generic
3889 is a child unit, install private part of ancestors before compiling
3890 private part of spec.
3892 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
3893 use scope entities rather than tree structures, to handle properly
3894 parent units that are instances rewritten as bodies for inlining
3897 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
3898 Remove_Parents): Handle properly a parent unit that is an
3899 instantiation, when the unit has been rewritten as a body for inlining
3902 * par.adb (Goto_List): Global variable to collect goto statements in a
3903 given unit, for use in detecting natural loops.
3905 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
3906 use in detecting natural loops.
3908 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
3909 backwards goto's, and rewrite as a infinite loop, to improve locality
3912 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
3913 subcomponent that includes an indexed reference, to prevent the
3914 generation of copies that would miscompile the desired assignment
3916 (Build_Task_Image_Decls): Add a numeric suffix to
3917 generated name for string variable, to avoid spurious conflicts with
3918 the name of the type of a single protected object.
3920 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
3921 loop with an explicit exit statement, to avoid generating an
3922 out-of-range value with 'Succ leading to spurious constraint_errors
3923 when compiling with -gnatVo.
3925 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
3927 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
3928 might not be analyzed yet, even if its Etype is already set (case of an
3929 unchecked conversion built using Unchecked_Convert_To, for example).
3930 If the prefix has already been analyzed, this will be a nop anyway.
3932 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
3933 controller type, or an assignment of a record type with controlled
3934 components, copy only user data, and leave the finalization chain
3937 2004-07-15 Vincent Celier <celier@gnat.com>
3939 * make.adb (Collect_Arguments): Improve error message when attempting
3940 to compile a source not part of any project, when -x is not used.
3942 * prj.ads: (Defined_Variable_Kind): New subtype
3944 * prj-attr.adb (Register_New_Package): Two new procedures to register
3945 a package with or without its attributes.
3946 (Register_New_Attribute): Mew procedure to register a new attribute in a
3948 New attribute oriented subprograms: Attribute_Node_Id_Of,
3949 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
3950 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
3952 New package oriented subprograms: Package_Node_Id_Of,
3953 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
3955 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
3957 (Package_Node_Id): Now a private, self initialized type
3958 (Register_New_Package): New procedure to register a package with its
3960 New attribute oriented subprograms: Attribute_Node_Id_Of,
3961 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
3962 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
3964 New package oriented subprograms: Package_Node_Id_Of,
3965 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
3967 * prj-dect.adb (Parse_Attribute_Declaration,
3968 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
3970 * prj-makr.adb (Make): Parse existing project file before creating
3971 other files. Fail if there was an error during parsing.
3973 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
3974 new spec of Prj.Attr.
3976 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
3977 to new spec of Prj.Attr.
3979 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3981 * utils2.c: Fix typo in comment.
3983 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3985 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
3986 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
3988 2004-07-14 Andreas Schwab <schwab@suse.de>
3990 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
3992 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3994 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
3996 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
3999 * misc.c (gnat_types_compatible_p): New function.
4000 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
4001 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
4003 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
4004 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
4005 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
4006 (mark_visited): Don't mark dummy type.
4007 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
4008 parameter, we must remove any LJM building from GNU_NAME.
4009 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
4010 (pos_to_constructor): Use int_const_binop.
4011 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
4014 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
4015 (gnat_pushlevel): Set TREE_USE on BLOCK node.
4016 (gnat_install_builtins): Add __builtin_memset.
4018 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
4020 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
4021 for a renaming, stabilize the initialization expression if we are at a
4022 local level. At the local level, uses of the renaming may be performed
4023 by a direct dereference of the initializing expression, and we don't
4024 want possible variables there to be evaluated for every use.
4026 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
4027 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
4028 them on the way. Account for the fact that we may introduce side
4029 effects in the process.
4031 2004-07-13 Richard Henderson <rth@redhat.com>
4033 * misc.c (default_pass_by_ref): Use pass_by_reference.
4035 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
4037 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
4038 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
4040 2004-07-08 Richard Henderson <rth@redhat.com>
4042 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
4045 2004-07-06 Vincent Celier <celier@gnat.com>
4047 * vms_conv.ads: Minor reformatting.
4048 Alphabetical order for enumerated values of type Command_Type, to have
4049 the command in alphabetical order for the usage.
4051 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
4052 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
4054 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
4056 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
4057 (Add_Archive_Path): Only add the global archive if there is one.
4058 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
4059 or not any object file to put in the global archive, and don't build
4060 a global archive if there is none.
4061 (X_Switches): New table
4062 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
4063 in the X_Switches table, if any.
4064 (Initialize): Make sure the X_Switches table is empty
4065 (Scan_Arg): Record -X switches in table X_Switches
4067 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
4069 * make.adb: Minor comment fix
4071 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
4072 invoked with directory information, add the directory in front of the
4075 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
4076 invoked with directory information, add the directory in front of the
4079 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
4080 when Keep_Temporary_Files is False.
4081 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
4082 directory information, add the directory in front of the path.
4083 When not on VMS, handle new switch -dn before the command to set
4084 Keep_Temporary_Files to True.
4085 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
4088 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
4089 invoked with directory information, add the directory in front of the
4092 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
4094 * snames.ads, snames.adb (Name_Stub): New name for the distributed
4097 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
4098 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
4100 * g-socket.adb (To_Timeval): Fix incorrect conversion of
4101 Selector_Duration to Timeval for the case of 0.0.
4103 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
4104 documentation from Evolve_And_Then.
4106 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
4108 * s-taprop-tru64.adb, s-taprop-os2.adb,
4109 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
4111 2004-07-06 Robert Dewar <dewar@gnat.com>
4113 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
4114 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
4115 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
4116 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
4117 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
4118 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
4119 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
4120 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
4121 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
4122 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
4123 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
4124 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
4125 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
4126 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
4127 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
4128 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
4129 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
4130 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
4131 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
4132 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
4133 vms_data.ads: Minor reformatting,
4134 Fix bad box comment format.
4136 * gnat_rm.texi: Fix minor grammatical error
4138 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
4140 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
4141 more cases of discriminated records to be recognized as not needing a
4143 (Has_Access_Values): New function.
4145 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
4147 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
4148 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
4149 with LRM terminology).
4150 Change terminology in comments primitive type => elementary type.
4152 2004-07-06 Ed Schonberg <schonberg@gnat.com>
4155 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
4156 parameters do not impose any requirements on the presence of a body.
4158 2004-07-06 Ed Schonberg <schonberg@gnat.com>
4161 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
4162 compilation unit and is in an open scope at the point of instantiation,
4163 assume that a body may be present later.
4165 2004-07-06 Ed Schonberg <schonberg@gnat.com>
4167 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
4168 Improve error message when specified size is not supported.
4170 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
4171 is never a primitive operation.
4173 2004-07-05 Andreas Schwab <schwab@suse.de>
4175 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
4176 RECORD_OR_UNION_CHECK.
4177 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
4179 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
4181 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
4182 dependency on xgnatugn, instead build it via a submake.
4183 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
4185 2004-07-04 Richard Henderson <rth@redhat.com>
4187 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
4189 2004-07-01 Richard Henderson <rth@redhat.com>
4191 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
4192 * utils.c (max_size): Likewise.
4194 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4196 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
4197 and rest_of_type_compilation; add arg to create_*_decl.
4198 (annotate_decl_with_node): Deleted.
4199 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
4200 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
4201 (get_current_block_context, gnat_pushdecl): New declarations.
4202 (gnat_init_stmt_group): Likewise.
4203 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
4204 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
4205 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
4206 (gnat_init): Call gnat_init_stmt_group.
4207 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
4208 (gnu_pending_elaboration_list): Deleted.
4209 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
4210 (gigi): Rearrange initialization calls and move some to last above.
4211 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
4212 Delete calls to add_decl_expr; add arg to create_*_decl.
4213 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
4214 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
4215 begin_subprog_body and call it.
4216 Don't push and pop ggc context.
4217 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
4218 (add_stmt): Remove handling of DECL_EXPR from here.
4219 If not in function, mark visited.
4220 (add_decl_expr): Put global at top level.
4221 Check for cases of DECL_INITIAL we have to handle here.
4222 (process_type): Add extra arg to create_type_decl.
4223 (build_unit_elab): Rework to just gimplify.
4224 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
4225 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
4226 (get_pending_elaborations, pending_elaborations_p): Likewise.
4227 (push_pending_elaborations, pop_pending_elaborations): Likewise.
4228 (get_elaboration_location, insert_elaboration_list): Likewise.
4229 (gnat_binding_level): Renamed from ada_binding_level.
4230 (init_gnat_to_gnu): Don't clear pending_elaborations.
4231 (global_bindings_p): Treat as global if no current_binding_level.
4232 (set_current_block_context): New function.
4233 (gnat_pushdecl): Renamed from pushdecl; major rework.
4234 All callers changed.
4235 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
4236 (finish_record_type): Call call pushdecl for stub decl.
4237 (function_nesting_depth): Deleted.
4238 (begin_subprog_body): Delete obsolete code.
4239 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
4241 2004-06-28 Robert Dewar <dewar@gnat.com>
4243 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
4244 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
4245 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
4246 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
4247 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
4249 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
4250 deal with problem of inefficient slices on machines with strict
4251 alignment, when the slice is a component of a composite.
4253 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
4254 machines, we need the check there as well.
4256 2004-06-28 Ed Schonberg <schonberg@gnat.com>
4258 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
4259 determine safe copying direction for overlapping slice assignments
4260 when component is controlled.
4262 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
4263 formal derived type in the actual for a formal package are visible in
4264 the enclosing instance.
4266 2004-06-28 Ed Schonberg <schonberg@gnat.com>
4269 * sem_util.adb (Trace_Components): Diagnose properly an illegal
4270 circularity involving a private type whose completion includes a
4271 self-referential component.
4272 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
4273 renaming or an instantiation from an implicit derived operation.
4275 2004-06-28 Pascal Obry <obry@gnat.com>
4277 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
4279 (Library_File_Name_For): Idem.
4281 2004-06-28 Matthew Gingell <gingell@gnat.com>
4283 * g-traceb.ads: Add explanatory note on the format of addresses
4284 expected by addr2line.
4286 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
4288 * Makefile.in: Force debugging information on s-tasdeb.adb,
4289 a-except.adb and s-assert.adb needed by the debugger.
4291 2004-06-28 Vincent Celier <celier@gnat.com>
4293 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
4297 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
4299 * prj.adb: Minor reformatting
4300 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
4302 * prj.ads: Comment updates
4304 (Project_Data): Change Flag1 to Need_To_Build_Lib.
4305 Remove Flag2: not used.
4307 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
4310 * gnat_ugn.texi: Put a "null;" declaration in one project file example
4312 * gnat_rm.texi: Document Empty declarations "null;".
4314 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
4315 front of the linker options.
4316 (Link_Foreign): Put the global archives and the libraries in front of
4319 2004-06-28 Javier Miranda <miranda@gnat.com>
4321 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
4322 (RTU_Loaded): Code cleanup
4323 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
4324 withed predefined units.
4326 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
4327 explicitly withed predefined units.
4330 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
4331 explicitly withed predefined units.
4333 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4335 * ada-tree.def (DECL_STMT): Deleted.
4336 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
4337 (DECL_STMT_VAR): Deleted.
4338 * decl.c: add_decl_stmt now add_decl_expr.
4340 * trans.c: Likewise.
4341 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
4342 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
4343 (add_stmt): Only handle padded type here.
4344 (add_stmt_with_node): Allow gnat_node to not be present.
4345 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
4346 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
4347 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
4348 make a SAVE_EXPR for the entire fat pointer.
4349 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
4350 (create_index_type): Make a DECL_EXPR.
4351 (end_subprog_body): Don't call allocate_struct_function here but
4354 2004-06-25 Pascal Obry <obry@gnat.com>
4356 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
4357 Relocatable from Build_Dynamic_Library call.
4359 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
4360 Relocatable are now synonym.
4362 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
4364 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
4365 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
4368 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
4369 Lib_Address and Relocatable.
4370 (Default_DLL_Address): Removed.
4372 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
4373 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
4374 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
4375 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
4376 (Default_DLL_Address): Removed.
4378 * mlib-tgt-mingw.adb: Ditto.
4379 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
4381 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
4382 the initial thread stack size.
4384 * a-strmap.ads: Move package L to private part as it is not used in
4385 the spec. Found while reading code.
4387 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
4389 * tracebak.c: Introduce support for a GCC infrastructure based
4390 implementation of __gnat_backtrace.
4392 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
4393 any more. Use accessors instead. This eases maintenance and relaxes
4394 some alignment constraints.
4395 (_GNAT_Exception structure): Remove the Ada specific fields
4396 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
4398 (is_handled_by, __gnat_eh_personality): Replace component references to
4399 exception structure by use of the new accessors.
4401 * init.c (__gnat_initialize): Adjust comments to match the just
4402 reverted meaning of the -static link-time option.
4404 * adaint.c (convert_addresses): Arrange not to define a stub for
4405 mips-irix any more, as we now want to rely on a real version from a
4406 recent libaddr2line.
4408 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
4409 the personality routine can use them and not have to rely on a C
4410 counterpart of the record anymore. This simplifies maintenance and
4411 relaxes the constraint of having Standard'Maximum_Alignment match
4413 Update comments, and add a section on the common header alignment issue.
4415 2004-06-25 Geert Bosch <bosch@gnat.com>
4417 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
4418 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
4420 2004-06-25 Robert Dewar <dewar@gnat.com>
4422 * gnat_rm.texi: Fix section on component clauses to indicate that the
4423 restriction on byte boundary placement still applies for bit packed
4425 Add comment on stack usage from Initialize_Scalars
4427 * gnat_ugn.texi: Add documentation for -gnatyLnnn
4429 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
4430 limiting nesting level.
4432 * usage.adb: Add line for -gnatyLnnn switch
4434 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
4435 sem_ch13.adb, exp_aggr.adb: Minor reformatting
4437 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
4438 type as well as on the subtype. This corrects a problem in freeze in
4439 setting alignments of atomic types.
4441 * sem_eval.ads: Minor comment typo fixed
4443 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
4444 level. Minor reformatting.
4446 * fname.adb (Is_Predefined_File_Name): Require a letter after the
4447 minus sign. This means that file names like a--b.adb will not be
4448 considered predefined.
4450 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
4451 record Test new flag and give diagnostic for bad component clause.
4452 (Freeze_Entity): Set alignment of array from component alignment in
4453 cases where this is safe to do.
4455 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
4458 * cstand.adb: (Create_Standard): Set alignment of String to 1
4460 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
4462 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
4463 code in the common constrained array cases.
4465 * a-storio.adb: Change implementation to avoid possible alignment
4466 problems on machines requiring strict alignment (data should be moved
4467 as type Buffer, not type Elmt).
4469 * checks.adb (Apply_Array_Size_Check): Improve these checks by
4470 killing the overflow checks which we really do not need (64-bits is
4473 2004-06-25 Vincent Celier <celier@gnat.com>
4475 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
4476 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
4477 inconditionally for the main project.
4478 (Recursive_Add_Archives.Add_Archive_Path): New procedure
4479 (Link_Executables.Check_Time_Stamps): New procedure
4480 (Link_Executables.Link_Foreign): New procedure
4481 Changes made to reduce nesting level of this package
4482 (Check): New procedure
4483 (Add_Switches): When not in quiet output, check that a switch is not
4484 the concatenation of several valid switches. If it is, issue a warning.
4485 (Build_Global_Archive): If the global archive is rebuilt, linking need
4487 (Compile_Sources): Rebuilding a library archive does not imply
4488 rebuilding the global archive.
4489 (Build_Global_Archive): New procedure
4490 (Build_Library): New name for Build_Archive, now only for library
4492 (Check_Archive_Builder): New procedure
4493 (Create_Global_Archive_Dependency_File): New procedure
4494 (Gprmake): Call Build_Global_Archive before linking
4495 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
4497 (Scan_Arg): Display the Copyright notice when -v is used
4499 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
4502 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
4504 Add new GNAT LIST qualifier /FILES=
4505 Added qualifier /DIRECTORY= to GNAT METRIC
4506 Added qualifier /FILES= to GNAT METRIC
4507 Added qualifier /FILES to GNAT PRETTY
4509 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
4510 to take into account both versions of the switch.
4512 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
4513 always be the last switch to the gcc driver. Disable switch storing so
4514 that switches automatically added by the gcc driver are not put in the
4517 * prj.adb (Project_Empty): Take into account changes in components of
4520 * prj.ads (Languages_Processed): New enumaration value All_Languages.
4522 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
4523 used. Split Boolean component Ada_Sources_Present in two Boolean
4524 components Ada_Sources_Present and Other_Sources_Present.
4527 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
4528 instead of Sources_Present.
4529 (Set_Ada_Paths.Add.Recursive_Add): Ditto
4531 * prj-nmsc.adb: Minor reformatting
4532 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
4533 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
4534 Check_Ada_Naming_Scheme.
4535 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
4538 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
4540 Make sure that all cycles where there is at least one "limited with"
4542 (Parse_Single_Project): New Boolean parameter In_Limited
4544 * prj-proc.adb (Recursive_Check): When Process_Languages is
4545 All_Languages, call first Prj.Nmsc.Ada_Check, then
4546 Prj.Nmsc.Other_Languages_Check.
4548 * prj-proc.adb (Process): Use Ada_Sources_Present or
4549 Other_Sources_Present (instead of Sources_Present) depending on
4552 * lang-specs.h: Keep -g and -m switches in the same order, and as the
4555 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
4556 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
4558 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
4561 * lib.ads (Disable_Switch_Storing): New procedure.
4563 * make.adb: Modifications to reduce nesting level of this package.
4564 (Check_Standard_Library): New procedure
4565 (Gnatmake.Check_Mains): New procedure
4566 (Gnatmake.Create_Binder_Mapping_File): New procedure
4567 (Compile_Sources.Compile): Add switch -gnatez as the last option
4568 (Display): Never display -gnatez
4571 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
4573 * gnatcmd.adb (Check_Project): New function
4574 (Process_Link): New procedure to reduce nesting depth
4575 (Check_Files): New procedure to reduce the nesting depth.
4576 For GNAT METRIC, include the inherited sources in extending projects.
4577 (GNATCmd): When GNAT LS is invoked with a project file and no files,
4578 add the list of files from the sources of the project file. If this list
4579 is too long, put it in a temp text files and use switch -files=
4580 (Delete_Temp_Config_Files): Delete the temp text file that contains
4581 a list of source for gnatpp or gnatmetric, if one has been created.
4582 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
4583 in the project file is too large, create a temporary text file that
4584 list them and pass it to the tool with "-files=<temp text file>".
4585 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
4587 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
4588 generated file is in not in Ada.
4590 * gnatls.adb: Remove all parameters And_Save that are no longer used.
4591 (Scan_Ls_Arg): Add processing for -files=
4592 (Usage): Add line for -files=
4594 * g-os_lib.adb (On_Windows): New global constant Boolean flag
4595 (Normalize_Pathname): When on Windows and the path starts with a
4596 directory separator, make sure that the resulting path will start with
4599 * clean.adb (Clean_Archive): New procedure
4600 (Clean_Project): When there is non-Ada code, delete the global archive,
4601 the archive dependency files, the object files and their dependency
4602 files, if they exist.
4603 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
4605 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
4607 * sinfo.ads: Fix typo in comment.
4609 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
4610 the TSS for remote access-to-subprogram types, since these TSS are
4611 always present once the type has been analyzed.
4612 (RAS_E_Dereference): Same.
4614 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
4615 reference raises Bad_Attribute, mark the reference as analyzed so the
4616 node (and any children resulting from rewrites that could have occurred
4617 during the analysis that ultimately failed) is not analyzed again.
4619 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
4621 * exp_dist.adb: Minor comment fix.
4623 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
4624 type is an anonymous access type, no unchecked deallocation of the
4625 allocated object can occur. If the object is controlled, attach it with
4626 a count of 1. This allows attachment to the Global_Final_List, if
4627 no other relevant list is available.
4628 (Get_Allocator_Final_List): For an anonymous access type that is
4629 the type of a discriminant or record component, the corresponding
4630 finalisation list is the one of the scope of the type.
4632 2004-06-25 Ed Schonberg <schonberg@gnat.com>
4634 * sem_ch3.adb (Replace_Type): When computing the signature of an
4635 inherited subprogram, use the first subtype if the derived type
4636 declaration has no constraint.
4638 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
4639 before applying previous optimization. Minor code cleanup.
4641 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
4642 placed at the beginning of an unpacked record without explicit
4643 alignment, a slice of it will be aligned and does not need a copy when
4646 2004-06-25 Ed Schonberg <schonberg@gnat.com>
4650 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
4651 reference is written with expressions mimicking parameters.
4653 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
4656 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
4657 STEP 2a. The constraints of a full type declaration of a derived record
4658 type are checked for conformance with those declared in the
4659 corresponding private extension declaration. The message
4660 "not conformant with previous declaration" is emitted if an error is
4663 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
4665 * g-traceb.ads: Document the need for -E binder switch in the spec.
4667 * g-trasym.ads: Document the need for -E binder switch in the spec.
4669 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
4671 * sem_prag.adb: Add handling of pragma Detect_Blocking.
4673 * snames.h, snames.ads, snames.adb: Add entry for pragma
4676 * s-rident.ads: Change reference to pragma Detect_Blocking.
4678 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
4681 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
4682 to indicate whether pragma Detect_Blocking is active.
4684 * par-prag.adb: Add entry for pragma Detect_Blocking.
4686 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
4687 of not handling WITH.
4688 Note that this replaces the previous update which was incorrect.
4690 2004-06-25 Javier Miranda <miranda@gnat.com>
4692 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
4693 use-clauses to have a clean environment.
4695 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
4696 the installation of the use-clauses to stablish a clean environment in
4697 case of compilation of a separate unit; otherwise the call to
4698 use_one_package is protected by the barrier Applicable_Use.
4700 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
4701 the installation of the use-clauses to stablish a clean environment in
4702 case of compilation of a separate unit.
4703 (End_Use_Clauses): Minor comment cleanup.
4705 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
4707 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
4709 2004-06-23 Richard Henderson <rth@redhat.com>
4711 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
4713 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4715 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
4716 now bool instead of int.
4717 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
4718 * trans.c (gnu_switch_label_stack): New function.
4719 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
4720 elaboration of renamed entity returns.
4721 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
4722 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
4723 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
4724 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
4725 DECL_SIZE_UNIT and simplify variable-sized case.
4726 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
4727 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
4728 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
4729 (build_unit_elab): Disable for now.
4730 * utils.c (mark_visited): New function.
4731 (pushdecl): Walk tree to call it for global decl.
4732 (update_pointer_to): Update all variants of pointer and ref types.
4733 Add arg to COMPONENT_REF.
4734 (convert): Likewise.
4735 Move check for converting between variants lower down.
4736 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
4737 (build_allocator): Don't force type of MODIFY_EXPR.
4738 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
4741 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4743 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
4744 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
4745 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
4747 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
4748 all callers changed.
4749 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
4750 the way that EXIT_STMT finds the loop label.
4751 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
4752 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
4753 (add_stmt): Use annotate_with_locus insted of setting directly.
4754 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
4755 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
4756 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
4757 (build_vms_descriptor): Add extra args to ARRAY_REF.
4758 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
4759 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
4761 (build_binary_op): Don't make explicit CONVERT_EXPR.
4762 Add extra rgs to ARRAY_REF.
4764 2004-06-14 Pascal Obry <obry@gnat.com>
4766 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
4767 Windows. Fix minor typo.
4769 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
4770 which is now supported on Windows. With this implementation using the
4771 Library Project feature is no different on Windows than on UNIX.
4773 2004-06-14 Vincent Celier <celier@gnat.com>
4775 * makegpr.adb (Compile_Sources): Nothing to do when there are no
4778 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
4780 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
4781 found, show the project name and the path of the previously parsed
4784 2004-06-14 Ed Schonberg <schonberg@gnat.com>
4786 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
4787 array, avoid copying the actual before the call.
4789 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
4791 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
4792 Instead, allocate memory on worst-case alignment assumptions, and then
4793 return an aligned address within the allocated zone.
4795 2004-06-14 Robert Dewar <dewar@gnat.com>
4797 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
4798 elab entities in predefined units in No_Run_Time_Mode.
4799 (Gen_Adainit_C): Same fix
4800 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
4801 units in No_Run_Time_Mode
4802 (Gen_Elab_Calls_C): Same fix
4804 * symbols-vms-alpha.adb: Minor reformatting
4806 * g-debpoo.ads: Minor reformatting
4808 * lib.adb (In_Same_Extended_Unit): Version working on node id's
4810 * lib.ads (In_Same_Extended_Unit): Version working on node id's
4812 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
4815 * make.adb: Minor reformatting
4817 * par-ch12.adb: Minor reformatting
4819 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
4821 * prj-strt.adb: Minor reformatting
4823 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
4826 * sem_attr.adb: Minor reformatting
4828 * sem_ch7.adb: Minor reformatting
4830 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
4831 for type in the same unit as the object declaration.
4833 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
4834 static string expressions and not just string literals.
4836 (Set_Warning): Reset restriction warning flag for restriction pragma
4837 Implement pragma Profile_Warnings
4838 Implement pragma Profile (Restricted)
4839 Give obolescent messages for old restrictions and pragmas
4841 * snames.h, snames.ads, snames.adb: Add new entry for pragma
4844 * s-rident.ads: Add declarations for restrictions required by profile
4845 Restricted and profile Ravenscar.
4847 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
4849 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
4850 configuration pragmas.
4852 2004-06-11 Vincent Celier <celier@gnat.com>
4854 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
4855 gnatsym, when symbol policy is Restricted.
4857 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
4858 gnatsym, when symbol policy is Restricted.
4860 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
4861 read the symbol file.
4862 (Finalize): Fail in symbol policy Restricted if a symbol in the original
4863 symbol file is not in the object files. Do not create a new symbol file
4864 when symbol policy is Restricted.
4866 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
4869 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
4871 (Usage): Line for new switch -R
4873 * make.adb (Initialize): When the platform is not VMS, add the
4874 directory where gnatmake is invoked in the front of the path, if
4875 gnatmake is invoked with directory information. Change the Scan_Args
4876 while loop to a for loop.
4877 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
4878 if Depth is equal or greater than the proposed depth, there is nothing
4880 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
4883 * prj.ads: Add new symbol policy Restricted.
4885 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
4886 with the new parameters Check_All_Labels and Case_Location.
4888 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
4889 (Library_Symbol_File needs to be defined).
4891 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
4892 and Case_Location If Check_All_Labels is True, check that all values of
4893 the string type are used, and output warning(s) if they are not.
4895 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
4898 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
4900 * gnat_ugn.texi: Update documentation about the library directory in
4903 * makegpr.adb (Display_Command): In verbose mode, also display the
4904 value of the CPATH env var, when the compiler is gcc.
4905 (Initialize): Change the Scan_Args while loop to a for loop
4906 (Compile_Individual_Sources): Change directory to object directory
4907 before compilations.
4909 * symbols.ads: New symbol policy Restricted.
4911 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
4913 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
4914 is now taken care of internally in the Exception_Propagation package
4915 and does not require clients assistance any more.
4917 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
4918 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
4919 functions. Helpers to maintain a predicate required in the handling of
4920 occurrence transfer between tasks.
4921 This is now handled internally and does not require clients assistance
4922 for the setup/propagate separation anymore.
4923 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
4924 allocation strategy, handle the Setup_And_Not_Propagated predicate and
4927 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
4928 raise_after_setup, now that everything is handled internally within the
4929 setup/propagation engine.
4931 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
4933 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
4934 Add additional conditions for the case of an actual being a simple
4935 name or literal. Improve inlining by preventing the generation
4936 of temporaries with a short lifetime (one use).
4938 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
4942 * einfo.ads: Minor comment updates for Has_Completion and
4943 E_Constant list of flags.
4945 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
4946 and constant redeclarations now set the Has_Completion flag of their
4947 defining identifiers.
4949 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
4950 Inspect_Deferred_Constant_Completion.
4951 Used to detect private deferred constants that have not been completed
4952 either by a constant redeclaration or pragma Import. Emits error message
4953 "constant declaration requires initialization expression".
4955 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
4956 completes a deferred constant.
4958 2004-06-11 Geert Bosch <bosch@gnat.com>
4960 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
4962 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
4963 calculating exponent for scaling denormal numbers.
4964 (Leading_Part): Properly raise Constraint_Error for zero or negative
4966 (Remainder): Properly raise Constraint_Error for zero divisor.
4968 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
4970 * sem_util.adb: Minor reformatting.
4972 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
4973 dereference when accessing the entry parameter record.
4974 (Check_Array_Type): Always check for possible implicit dereference.
4975 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
4976 Abort if a pointer is still present (denoting that an implicit
4977 dereference was left in the tree by the front-end).
4979 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
4980 dereference when accessing the entry parameter record.
4981 (Check_Array_Type): Always check for possible implicit dereference.
4982 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
4983 Abort if a pointer is still present (denoting that an implicit
4984 dereference was left in the tree by the front-end).
4986 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
4988 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
4989 message, like the compiler itself does. Easier to parse the output.
4991 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
4993 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
4994 be base names, and not includes directories.
4996 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
4998 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
4999 so that dependencies are properly taken into account by make.
5001 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
5004 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
5005 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
5007 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
5009 * Makefile.in (install-gnatlib): install target-specific run-time files.
5011 * Make-lang.in: Remove obsolete targets.
5013 2004-06-11 Ed Schonberg <schonberg@gnat.com>
5015 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
5016 specification, to catch misuses of program unit names.
5018 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
5019 superfluous conversions in an instance.
5021 2004-06-11 Ed Schonberg <schonberg@gnat.com>
5025 * sem_ch12.adb (Save_References): If operator node has been folded to
5026 enumeration literal, associated_node must be discarded.
5028 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
5030 * s-stchop-vxworks.adb: Add required pragma Convention to
5031 Task_Descriptor because it is updated by a C function.
5033 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
5037 * Makefile.in: Remove target specific SO_OPT on IRIX
5039 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5041 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
5042 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
5043 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
5044 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
5045 (STMT_STMT, USE_STMT): New statement codes.
5046 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
5047 * ada-tree.h: Reflect above changes.
5048 (struct tree_loop_id): Deleted.
5049 (union lang_tree_node, struct lang_decl, struct lang_type):
5050 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
5051 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
5052 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
5053 (IS_ADA_STMT): New macro.
5054 * decl.c (annotate_decl_with_node): New function.
5055 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
5056 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
5057 Call add_stmt_with_node to do needed assignments.
5058 Add call to update setjmp buffer directly, not via EXPR_STMT.
5059 (maybe_variable): Argment GNAT_NODE deleted.
5060 * gigi.h (maybe_variable): Likewise.
5061 (make_transform, add_stmt_with_node, set_block_for_group): New.
5062 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
5063 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
5064 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
5065 (set_lineno, set_lineno_from_sloc): Likewise.
5066 (record_code_position, insert_code_for): Likewise.
5067 (gnat_poplevel): Now returns void.
5068 (end_subprog_body): Now takes argument.
5069 * misc.c (cgraph.h, tree-inline.h): New includes.
5070 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
5071 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
5072 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
5073 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
5074 (gnat_parse_file): Don't set immediate_size_expand.
5075 Call cgraph functions.
5076 (gnat_expand_expr): Remove most cases.
5077 (record_code_position, insert_code_for): Remove from here.
5078 * trans.c (toplev.h, tree-gimple.h): Now included.
5079 (discard_file_names): Deleted.
5080 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
5081 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
5082 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
5083 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
5084 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
5085 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
5086 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
5087 (set_block_for_group, add_stmt_list): Likewise.
5088 (start_stmt_group): Renamed from start_block_stmt.
5089 (end_stmt_group): Likewise, from end_block_stmt.
5090 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
5091 (gigi): Don't set discard_file_names or call set_lineno.
5092 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
5093 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
5094 Numerous changes throughout to reflect new names and complete
5095 function-at-a-time implementation.
5096 (gnat_expand_stmt): Delete or comment out all cases.
5097 (process_inlined_subprograms): Use add_stmt.
5098 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
5099 call set_lineno; also remove unneeded block handling.
5100 (process_type): Remove unneeded block handling.
5101 (build_unit_elab): Remove calls to deleted functions.
5102 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
5103 (tree-dump.h): Likewise.
5104 (struct ada_binding_level): Add field jmpbuf_decl.
5105 (gnat_define_builtin, gnat_install_builtins): New.
5106 (gnat_gimplify_function, gnat_finalize): Likewise.
5107 (gnat_poplevel): No longer return BLOCK, set it instead.
5108 Remove code dealing with nested functions.
5109 (gnat_init_decl_processing): Also set size_type_node.
5110 Call gnat_install_builtins.
5111 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
5112 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
5113 Remove special-case for "main".
5114 (end_subprog_body): Add arg and rework for tree-ssa.
5115 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
5116 Add case for BOOLEAN_TYPE.
5117 * utils2.c (rtl.h): Now include.
5118 (build_call_raise): Test Debug_Flag_NN directly.
5119 (build_call_alloc_dealloc): Don't use local stack allocation for now.
5120 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
5121 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
5123 2004-06-07 Robert Dewar <dewar@gnat.com>
5125 * a-direct.ads, einfo.ads: Minor comment updates
5127 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
5128 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
5129 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
5130 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
5131 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
5133 * s-interr-sigaction.adb: Remove unreferenced variable
5134 (Attached_Interrupts). Minor reformatting.
5135 Avoid use of variable I (replace by J).
5137 * par-ch10.adb: Fix text of one error message
5139 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
5140 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
5141 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
5142 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
5143 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
5144 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
5145 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
5146 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
5147 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
5148 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
5149 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
5152 2004-06-07 Doug Rupp <rupp@gnat.com>
5154 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
5156 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
5158 * mlib-tgt-vms-ia64.adb: New file.
5160 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
5161 Add mlib-tgt-vms-ia64.adb
5162 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
5163 Move to alpha specific ifeq section.
5164 Add VMS specific versions of symbols.adb
5165 Renaming of 5q vms files.
5167 * 5qsystem.ads renamed to system-vms_64.ads.
5169 2004-06-07 Vincent Celier <celier@gnat.com>
5171 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
5172 explain that when a time of day corresponding to the non existing hour
5173 on the day switching to DST is specified, Split may return a different
5176 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
5179 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
5180 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
5182 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
5184 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
5185 the linking options.
5186 (Build_Library.Check_Libs): On VMS, if there is a dependency on
5187 g-trasym.ads, set Gtrasymobj_Needed to True.
5189 * prj-attr.adb: Add new package Metrics for gnatmetric
5191 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
5192 canonical case to take into account files with upper case characters on
5194 (Ada_Check): Load the reference symbol file name in the name buffer to
5195 check it, not the symbol file name.
5197 * snames.ads, snames.adb: Add standard name Metrics (name of project
5198 file package for gnatmetric).
5200 * vms_conv.ads: Add Metric to Comment_Type
5202 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
5204 * vms_data.ads: Add qualifiers for GNAT METRIC
5206 * makegpr.adb (Link_Executables): Take into account the switches
5207 specified in package Linker of the main project.
5209 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
5211 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
5212 the index of the last element is Units.Last, not Units.Table'Last
5213 (which is usually not a valid index within the actually allocated
5214 storage for the table).
5216 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
5217 determines whether to generate a call to a checked storage pool
5219 Generate such a call only for a dereference that either comes from
5220 source, or is the result of rewriting a dereference that comes from
5223 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
5225 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
5227 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
5229 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
5230 file level, elaborate the stride for inner dimensions in alignment
5233 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
5236 2004-06-07 Javier Miranda <miranda@gnat.com>
5238 * exp_ch6.adb: Correct wrong modification in previous patch
5240 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
5242 * g-trasym.ads: Corrected comment to properly reflect level of support
5245 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
5247 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
5248 includes case of a variable referenced on the left hand side of an
5249 assignment, therefore remove redundant code. Variables and prefixes of
5250 indexed or selected components are now marked as referenced on left
5251 hand side. Warnings are now properly emitted when variables or prefixes
5252 are assigned but not read.
5254 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
5255 left hand side referenced variables. Private access types do not
5256 produce the warning "variable ... is assigned but never read".
5257 Add also additional checks to left hand side referenced variables.
5258 Aliased, renamed objects and access types do not produce the warning
5259 "variable ... is assigned but never read" since other entities may read
5260 the memory location.
5262 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
5264 * Makefile.in: In the powerpc/vxworks-specific section, restore
5265 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
5268 2004-06-07 Ed Schonberg <schonberg@gnat.com>
5270 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
5271 predefined operators.
5272 Removes spurious type errors from g-trasym-vms.adb.
5274 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
5275 distinct from the operator appearing in the source, call appropriate
5276 routine to insert conversions when needed, and complete resolution of
5278 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
5279 interpretations for rewritten right operand.
5280 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
5281 the other operand is overloaded and the context is a type conversion.
5283 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5285 * ada-tree.def (BLOCK_STMT): Now has two operands.
5288 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
5290 * gigi.h: (gnat_poplevel): Now returns a tree.
5292 * trans.c (end_block_stmt): Add arg; all callers changed.
5293 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
5294 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
5295 (add_stmt): Set TREE_TYPE.
5296 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
5297 (gnat_expand_stmt, case BREAK_STMT): New case.
5299 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
5301 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
5303 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
5304 procedure Set_Stack_Size that is not needed.
5306 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
5308 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
5309 used for gnatpp input file and for the files upon which it depends
5311 2004-06-07 Ben Brosgol <brosgol@gnat.com>
5313 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
5315 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
5317 * gnatvsn.ads: Bump version numbers appropriately.
5320 2004-06-07 Pascal Obry <obry@gnat.com>
5322 * gnat_ugn.texi: Improve comments about imported names and link names
5323 on Windows. Add a note about the requirement to use -k gnatdll's option
5324 when working with a DLL which has stripped stdcall symbols (no @nn
5327 2004-05-27 Vincent Celier <celier@gnat.com>
5329 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
5330 COMMENTS_LAYOUT=UNTOUCHED
5332 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
5333 symbols-vms-alpha.adb
5335 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
5337 * sem.ads: Clarify documentation on checks suppression.
5339 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
5341 2004-05-27 Ed Schonberg <schonberg@gnat.com>
5343 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
5344 the case of multiple derivations.
5345 (Is_Object_Reference): For a selected component, verify that the prefix
5346 is itself an object and not a value.
5348 * sem_ch12.adb (Same_Instantiated_Constant): New name for
5349 Same_Instantiated_Entity.
5350 (Same_Instantiated_Variable): Subsidiary to
5351 Check_Formal_Package_Instance, to recognize actuals for in-out generic
5352 formals that are obtained from a previous formal package.
5353 (Instantiate_Subprogram_Body): Emit proper error when
5354 generating code and the proper body of a stub is missing.
5356 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
5357 has a universal interpretation, do the disambiguation here.
5359 * exp_ch4.adb (Expand_N_Type_Conversion,
5360 Expand_N_Unchecked_Type_Conversion): Special handling when target type
5361 is Address, to avoid typing anomalies when Address is a visible integer
5364 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
5365 to determine whether a subprogram should not be marked Pure, even when
5366 declared in a pure package.
5368 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
5370 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
5372 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
5373 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
5374 Update the documentation about the Ravenscar profile, following the
5375 definition found in AI-249.
5377 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
5378 setting the Profile (Ravenscar). This must be done in addition to
5379 setting the required restrictions.
5381 * rtsfind.ads: Add the set of operations defined in package
5384 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
5387 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
5389 lang-specs.h: Always require -c or -S and always redirect to /dev/null
5390 if -gnatc or -gnats is passed.
5392 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
5394 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
5395 a significant reference. Warnings are now properly emitted when a
5396 discriminated type is not referenced.
5398 * lib-xref.adb (Generate_Reference): A deferred constant completion,
5399 record representation clause or record type discriminant does not
5400 produce a reference to its corresponding entity. Warnings are now
5401 properly emitted when deferred constants and record types are not
5404 2004-05-27 Geert Bosch <bosch@gnat.com>
5406 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
5407 Fixes ACATS Annex G tests.
5409 2004-05-27 Robert Dewar <dewar@gnat.com>
5411 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
5414 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
5416 * s-interr.adb (Server_Task): Take into account case of early return
5417 from sigwait under e.g. linux.
5419 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
5421 * gnat_ugn.texi: Add description for the new gnatpp options:
5422 -rnb - replace the original source without creating its backup copy
5423 -c0 - do not format comments
5425 2004-05-24 Geert Bosch <bosch@gnat.com>
5427 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
5428 with 192 bits of precision, sufficient to reduce a double-extended
5429 arguments X with a maximum relative error of T'Machine_Epsilon, for X
5430 in -2.0**32 .. 2.0**32.
5431 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
5432 reduction by the processor, which only uses a 68-bit approximation of
5434 (Tan): Always reduce arguments and compute function either using
5435 the processor's fptan instruction, or by dividing sin and cos as needed.
5437 2004-05-24 Doug Rupp <rupp@gnat.com>
5439 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
5440 gcc error on 32/64 bit VMS.
5442 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
5444 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
5445 since this is what we get for stack overflows although not documented
5447 Document the issues which may require adjustments to our signal
5450 2004-05-24 Ed Schonberg <schonberg@gnat.com>
5452 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
5453 enclosing dynamic scope if the instantiation is within a generic unit.
5455 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
5457 * exp_dbug.ads: Fix typo.
5459 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
5460 Rename it to its proper name: system-linux-ia64.ads
5461 (stamp-gnatlib1): Remove extra target specific run time files when
5462 setting up the rts directory.
5464 2004-05-24 Javier Miranda <miranda@gnat.com>
5466 * einfo.ads, einfo.adb (Limited_Views): Removed.
5467 (Limited_View): New attribute that replaces the previous one. It is
5468 now a bona fide package with the limited-view list through the
5469 first_entity and first_private attributes.
5471 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
5472 limited-private-with clause.
5473 (Install_Limited_Withed_Unit): Install the private declarations of a
5474 limited-private-withed package. Update the installation of the shadow
5475 entities according to the new structure (see Build_Limited_Views)
5476 (Build_Limited_Views): Replace the previous implementation of the
5477 limited view by a package entity that references the first shadow
5478 entity plus the first shadow private entity (required for limited-
5479 private-with clause)
5480 (New_Internal_Shadow_Entity): Code cleanup.
5481 (Remove_Limited_With_Clause): Update the implementation to undo the
5482 new work carried out by Build_Limited_Views.
5483 (Build_Chain): Complete documentation.
5484 Replace Ada0Y by Ada 0Y in comments
5487 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
5488 types the level of accessibility depends on the enclosing type
5491 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
5492 entities. Complete documentation of previous change.
5494 2004-05-24 Robert Dewar <dewar@gnat.com>
5496 * namet.adb: Minor reformatting
5497 Avoid use of name I (replace by J)
5498 Minor code restructuring
5500 * sem_ch6.adb: Minor reformatting
5502 * lib-writ.adb: Do not set restriction as active if this is a
5503 Restriction_Warning case.
5505 * sem_prag.adb: Reset restriction warning flag if real pragma
5506 restriction encountered.
5508 * s-htable.adb: Minor reformatting
5509 Change rotate count to 3 in Hash (improves hash for small strings)
5511 * 5qsystem.ads: Add comments for type Address (no literals allowed).
5513 * gnat_ugn.texi: Add new section of documentation "Code Generation
5514 Control", which describes the use of -m switches.
5516 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
5518 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
5519 through the DECL_INITIAL for renamed variables.
5521 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
5523 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
5525 2004-05-19 Joel Brobecker <brobecker@gnat.com>
5527 * exp_dbug.ads: Correct comments concerning handling of overloading,
5528 since we no longer use $ anymore.
5530 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
5532 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
5533 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
5534 with illegal subunits.
5536 2004-05-19 Ed Schonberg <schonberg@gnat.com>
5538 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
5539 body with front-end inlining enabled, check whether an inline pragma
5540 appears immediately after the body and applies to it.
5542 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
5543 enabled and the pragma appears after the body of the subprogram.
5545 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5547 Part of function-at-a-time conversion
5549 * misc.c (adjust_decl_rtl): Deleted.
5550 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
5553 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
5554 (add_decl_stmt, add_stmt, block_has_vars): New functions.
5555 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
5557 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
5559 (gnat_to_gnu_entity): Likewise.
5560 Use add_stmt to update setjmp buffer.
5561 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
5563 No longer call adjust_decl_rtl.
5564 (DECL_INIT_BY_ASSIGN_P): New macro.
5565 (DECL_STMT_VAR): Likewise.
5567 * trans.c (gigi): Call start_block_stmt to make the outermost
5569 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
5570 Call start_block_stmt and end_block_stmt temporarily.
5571 Use gnat_expand_stmt instead of expand_expr_stmt.
5572 (add_decl_stmt): New function.
5573 (tree_transform): Call it.
5574 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
5575 (end_block_stmt): Set type and NULL_STMT.
5576 (gnat_expand_stmt): Make recursize call instead of calling
5578 (gnat_expand_stmt, case DECL_STMT): New case.
5579 (set_lineno_from_sloc): Do nothing if global.
5580 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
5581 (start_block_stmt, add_stmt, end_block_stmt): New functions.
5582 (build_block_stmt): Call them.
5583 (gnat_to_code): Don't expand NULL_STMT.
5584 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
5586 (tree_transform): Likewise.
5587 (tree_transform, case N_Null_Statement): Return NULL_STMT.
5588 (gnat_expand_stmt, case NULL_STMT): New case.
5589 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
5592 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
5595 * utils.c (create_var_decl): Do not call expand_decl or
5597 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
5598 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
5600 (struct e_stack): Add chain_next to GTY.
5601 (struct binding_level): Deleted.
5602 (struct ada_binding_level): New struct.
5603 (free_block_chain): New.
5604 (global_binding_level, clear_binding_level): Deleted.
5605 (global_bindings_p): Rework to see if no chain.
5606 (kept_level_p, set_block): Deleted.
5607 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
5608 new data structure and work directly on BLOCK node.
5609 (gnat_poplevel): Similarly.
5610 (get_decls): Look at BLOCK_VARS.
5611 (insert_block): Work directly on BLOCK node.
5612 (block_has_var): New function.
5613 (pushdecl): Rework for new binding structures.
5614 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
5616 (build_subprog_body): Likewise.
5617 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
5619 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
5621 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
5622 (DECL_STMT_VAR): Likewise.
5624 2004-05-17 Robert Dewar <dewar@gnat.com>
5626 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
5629 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
5630 of restriction synonyums by using
5631 Restrict.Process_Restriction_Synonyms.
5633 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
5635 * s-restri.ads (Tasking_Allowed): Correct missing comment
5637 * s-rident.ads: Add entries for restriction synonyms
5639 * ali.adb: Fix some problems with badly formatted ALI files that can
5640 result in infinite loops.
5642 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
5643 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
5644 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
5645 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
5646 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
5647 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
5648 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
5649 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
5650 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
5651 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
5652 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
5653 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
5654 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
5655 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
5656 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
5657 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
5658 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
5659 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
5660 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
5661 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
5662 to Task_Id (minor cleanup).
5664 2004-05-17 Vincent Celier <celier@gnat.com>
5666 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
5667 directory separator.
5669 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
5670 project being extended, if Languages is not declared in extending
5673 2004-05-17 Javier Miranda <miranda@gnat.com>
5675 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
5676 limited view of a visible sibling.
5678 2004-05-14 Robert Dewar <dewar@gnat.com>
5680 * gnat_ugn.texi: Minor change to -gnatS documentation
5682 * sprint.adb: Remove some instances of Assert (False) and for this
5683 purpose replace them by output of a ??? string.
5685 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
5688 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
5689 flag processing. This was suppressing required dependencies in
5690 No_Run_Time mode and is not needed since the binder does not generate
5691 references for things in libgnat anyway.
5693 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
5696 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
5698 * gnat_ugn.texi: Document AIX-specific issue with initialization of
5701 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
5702 action for the case of an actual parameter in an init proc call.
5704 2004-05-14 Ed Schonberg <schonberg@gnat.com>
5706 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
5707 subtype, check visible entities in base type.
5709 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
5710 actions if the object is a renaming.
5712 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
5713 Check_Formal_Package_Instance, to determine more precisely when the
5714 formal and the actual denote the same entity.
5716 2004-05-14 Javier Miranda <miranda@gnat.com>
5718 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
5720 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
5721 corresponding to a private_with must be removed from visibility; it
5722 will be made visible later, just before we analyze the private part of
5724 (Check_Private_Child_Unit): Allow private_with clauses in public
5726 (Install_Siblings): Make visible the private entities of private-withed
5728 (Install_Withed_Unit): Do not install the private withed unit if we
5729 are compiling a package declaration and the Private_With_OK flag was
5730 not set by the caller. These declarations will be installed later,
5731 just before we analyze the private part of the package.
5733 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
5734 during the evaluation of the expression that initializes the object,
5735 decorate it with the expected type to avoid cascade errors.
5738 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
5739 subprogram we have to install the private_with clauses after its
5740 specification has been analyzed (as documented in AI-262.TXT).
5742 * sem_ch8.adb (Has_Private_With): New function. Determines if the
5743 current compilation unit has a private with on a given entity.
5744 (Find_Direct_Name): Detect the Beaujolais problem described in
5747 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
5748 provides the functionality of the function Is_Ancestor that was
5749 previously available in sem_ch10. It has been renamed to avoid
5752 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
5754 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5756 * utils.c (build_vms_descriptor): Use SImode pointers.
5758 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
5760 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
5762 2004-05-14 GNAT Script <nobody@gnat.com>
5764 * Make-lang.in: Makefile automatically updated
5766 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
5768 Renaming of target specific files for clarity
5770 * Makefile.in: Rename GNAT target specific files.
5772 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
5773 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
5774 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
5775 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
5776 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
5777 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
5778 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
5779 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
5780 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
5781 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
5782 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
5783 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
5784 51osinte.adb, 51osinte.ads, 51system.ads,
5785 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
5786 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
5787 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
5788 56tpopsp.adb, 57system.ads, 58system.ads,
5789 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
5790 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
5791 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
5792 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
5793 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
5794 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
5795 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
5796 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
5797 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
5798 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
5799 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
5800 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
5801 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
5802 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
5803 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
5804 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
5805 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
5806 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
5807 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
5808 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
5809 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
5810 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
5811 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
5812 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
5813 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
5814 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
5815 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
5816 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
5817 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
5818 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
5819 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
5820 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
5821 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
5822 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
5823 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
5824 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
5825 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
5826 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
5827 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
5828 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
5830 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
5831 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
5832 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
5833 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
5834 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
5835 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
5836 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
5837 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
5838 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
5839 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
5840 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
5841 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
5842 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
5843 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
5844 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
5845 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
5846 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
5847 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
5848 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
5849 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
5850 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
5851 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
5852 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
5853 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
5854 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
5855 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
5856 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
5857 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
5858 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
5859 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
5860 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
5861 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
5862 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
5863 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
5864 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
5865 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
5866 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
5867 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
5868 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
5869 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
5870 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
5871 s-osinte-vms.ads, s-osinte-vxworks.adb,
5872 s-osinte-vxworks.ads, s-osprim-mingw.adb,
5873 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
5874 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
5875 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
5876 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
5877 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
5878 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
5879 s-stchop-vxworks.adb, s-taprop-dummy.adb,
5880 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
5881 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
5882 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
5883 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
5884 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
5885 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
5886 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
5887 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
5888 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
5889 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
5890 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
5891 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
5892 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
5893 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
5894 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
5895 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
5896 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
5897 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
5898 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
5899 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
5900 system-irix-o32.ads, system-linux-x86_64.ads,
5901 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
5902 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
5903 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
5904 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
5905 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
5906 system-vxworks-mips.ads, system-vxworks-ppc.ads,
5907 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
5910 2004-05-13 Zack Weinberg <zack@codesourcery.com>
5912 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
5914 2004-05-13 Diego Novillo <dnovillo@redhat.com>
5916 Merge from tree-ssa-20020619-branch.
5918 * config-lang.in (boot_language, build_by_default): Set
5920 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
5921 (max_size): Add static chain op for call_expr.
5923 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
5926 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
5928 2004-05-11 Roger Sayle <roger@eyesopen.com>
5930 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
5933 2004-05-10 Doug Rupp <rupp@gnat.com>
5935 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
5938 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
5940 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
5942 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
5943 Fixes undefined symbols in IA64 gnatlib.
5945 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
5947 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
5948 Short_Address). This will be moved to system.auxdec.
5950 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
5952 * sem_util.adb: Replace test for presence of a node that is always
5953 present with a call to Discard_Node.
5955 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
5956 Analyze on the library unit node after generation of distribution stub
5957 constructs. The call was a no-op because Unit_Node has already been
5958 Analyzed, and the tree fragments for the distribution stubs are
5959 analyzed as they are inserted in Exp_Dist.
5960 Update comment regarding to distribution stubs to reflect that we
5961 do not generate stub in separate files anymore.
5963 * einfo.ads: Clarify the fact that a tagged private type has the
5964 E_Record_Type_With_Private Ekind.
5966 * erroutc.adb: Minor reformatting
5968 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
5969 values if line length is increased using -gnatyM (noticed during code
5972 * eval_fat.adb: Minor reformatting
5973 Put spaces around exponentiation operator
5975 2004-05-10 Ed Schonberg <schonberg@gnat.com>
5978 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
5979 has been rewritten as an explicit dereference, retrieve type of
5980 original node to check for possibly unconstrained record type.
5982 2004-05-10 Ed Schonberg <schonberg@gnat.com>
5984 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
5985 overriding, use the operation of the parent unconditionally.
5987 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
5988 operation when either operand is a literal, to avoid further
5991 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
5992 overridden by a previous explicit declaration, mark the previous entity
5995 * sem_disp.adb (Check_Dispatching_Operation): New predicate
5996 Is_Visibly_Controlled, to determine whether a declaration of a
5997 primitive control operation for a derived type overrides an inherited
5998 one. Add warning if the explicit declaration does not override.
6000 2004-05-10 Vincent Celier <celier@gnat.com>
6002 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
6003 some cases when the sources are no longer present.
6005 * make.adb (Collect_Arguments): Fail if an external source, not part
6006 of any project need to be compiled, when switch -x has not been
6009 * makeusg.adb: Document new switch -x
6011 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
6014 * switch-m.adb (Scan_Make_Switches): New switch -x
6016 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
6019 * gnat_ugn.texi: Document new gnatmake switch -x
6021 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
6023 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
6025 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
6026 (process_attributes): Likewise.
6028 2004-05-10 Joel Brobecker <brobecker@gnat.com>
6030 * s-inmaop.ads: Fix spelling mistake in one of the comments.
6032 2004-05-10 Robert Dewar <dewar@gnat.com>
6034 * gnat_ugn.texi: Document that for config pragma files, the maximum
6035 line length is always 32767.
6037 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
6038 literals is now allowed.
6040 * gnat-style.texi: Remove statement about splitting long lines before
6041 an operator rather than after, since we do not follow this rule at all.
6042 Clarify rule (really lack of rule) for spaces around exponentiation
6044 * sem_elim.adb: Allow concatenation of string literals as well as a
6045 single string literal for pragma arguments.
6047 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
6049 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
6050 written for append case.
6052 * frontend.adb: Changes to avoid checking max line length in config
6055 * g-os_lib.ads: Minor reformatting
6057 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
6058 wrong in any case. Instead use standard value. Noticed during code
6061 * opt.ads (Max_Line_Length): New field, used to implement removal of
6062 limitation on length of lines when scanning config pragma files.
6064 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
6065 makeutl.ads, makeutl.adb: Minor reformatting
6067 * scn.adb: Do not check line length while scanning config pragma files
6068 Do not check line length while scanning out license information
6070 * scng.adb: Changes to avoid line length checks while parsing config
6073 2004-05-10 GNAT Script <nobody@gnat.com>
6075 * Make-lang.in: Makefile automatically updated
6077 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
6079 * osint.adb (Find_Program_Name): Fix handling of VMS version
6082 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
6084 * g-os_lib.ads (Invalid_Time): New constant
6086 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
6087 return OS_Time instead of time_t to match what is imported by Ada.
6088 Now return -1 if the file doesn't exist, instead of a random value
6090 2004-05-05 Robert Dewar <dewar@gnat.com>
6092 * usage.adb: Add line for -gnatR?s switch
6094 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
6096 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
6097 and for Match (Data_First, Data_last)
6099 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
6100 written when we are dealing with multi-unit files.
6102 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
6104 * Makefile.in: Remove unused targets and variables.
6106 2004-05-05 Vincent Celier <celier@gnat.com>
6108 * switch-m.adb: New gnatmake switch -eI
6110 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
6111 of new gnatmake switch -eInnn.
6113 * makegpr.adb: Take into account new parameters Index and Src_Index in
6116 * clean.adb: Implement support for multi-unit sources, including new
6119 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
6122 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
6123 (Extract_From_Q): New out parameter Index
6124 (Mark, Is_Marked): Subprograms moved to Makeutl
6125 (Switches_Of): New parameter Source_Index
6126 (Add_Switch): New parameter Index
6127 (Check): New parameter Source_Index
6128 (Collect_Arguments): New parameter Source_Index
6129 (Collect_Arguments_And_Compile): New parameter Source_Index
6130 (Compile): New parameter Source_Index
6131 Put subprograms in alphabetical order
6132 Add support for multi-source sources, including in project files.
6134 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
6135 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
6138 * makeusg.adb: New gnatmake switch -eInnn
6140 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
6143 * opt.ads (Main_Index): New variable, defaulted to 0.
6145 * osint.ads, osinte.adb (Add_File): New parameter Index
6146 (Current_Source_Index): New function
6148 * prj.adb: Take into account new components Index and Src_Index
6150 * prj.ads (String_Element): New component Index
6151 (Variable_Value): New component Index
6152 (Array_Element): New component Src_Index
6154 * prj-attr.adb: Indicate that optional index may be specified for
6155 attributes Main, Executable, Spec, Body and some of Switches.
6157 * prj-attr.ads (Attribute_Kind): New values for optional indexes
6158 (Attribute_Record): New component Optional_Index
6160 * prj-com.ads (File_Name_Data): New component Index
6162 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
6164 * prj-env.adb (Put): Output optional index
6166 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
6167 attributes Spec and Body.
6169 * prj-nmsc.adb: Process optional indexes
6171 * prj-pp.adb: Ouput "at" for optional indexes
6173 * prj-proc.adb: Take into account optional indexes
6175 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
6176 Optional_Index. For string literal,
6177 process optional index when Optional_Index is True.
6178 (Parse_Expresion): New Boolean parameter Optional_Index
6180 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
6181 (Set_Source_Index_Of): New procedure
6183 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
6186 * prj-util.ads (Executable_Of): New parameter Index
6187 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
6188 New parameter Src_Index, defaulted to 0.
6190 2004-05-05 Ed Schonberg <schonberg@gnat.com>
6193 * sem_ch3.adb (Access_Definition): If this is an access parameter
6194 whose designated type is imported through a limited_with clause, do
6195 not add the enclosing subprogram to the list of private dependents of
6198 2004-05-05 Ed Schonberg <schonberg@gnat.com>
6201 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
6202 a limited_with clause, and the other is its non-limited view.
6204 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
6206 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
6208 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
6209 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
6210 Stand.Boolean_Literals to produce references to entities
6211 Standard_False and Standard_True from compile-time computed boolean
6214 * stand.ads (Boolean_Literals): New variable, provides the entity
6215 values for False and True, for use by the expander.
6217 2004-05-05 Doug Rupp <rupp@gnat.com>
6219 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
6220 5vinmaop.adb: Unchecked convert Short_Address vice Address
6222 * adaint.c, raise.c: Caste CRTL function return value
6223 to avoid gcc error on 32/64 bit IVMS.
6225 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
6228 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
6230 * 5qsystem.ads (Address): Declare as Long_Integer
6231 (Short_Address): Declare as 32 bit subtype of Address
6232 Declare abstract address operations to avoid gratuitous ambiguities.
6234 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
6236 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
6237 instead of the old Boolean_Entry_Barriers.
6238 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
6240 2004-05-05 GNAT Script <nobody@gnat.com>
6242 * Make-lang.in: Makefile automatically updated
6244 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
6246 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
6248 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
6252 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
6253 alone. Replacing object references by literals is inappropriate in a
6254 so low level context.
6256 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
6258 * a-exexpr.adb: Add comments
6260 2004-05-03 Joel Brobecker <brobecker@gnat.com>
6262 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
6263 declare the Ancestor_Tags array in Type_Specific_Data with a small size
6264 without risking a bounds check error when accessing one of its
6266 (Type_Specific_Data): Define Ancestor_Tags as a small array.
6267 This prevents us from hitting a limitation during the debug info
6268 generation when using stabs.
6270 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
6272 This prevents us from hitting a limitation during the debug info
6273 generation when using stabs.
6275 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
6277 lang-specs.h: Remove -gnatz* from specs.
6279 2004-05-03 Vincent Celier <celier@gnat.com>
6281 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
6283 * Make-lang.in, Makefile.in: Add gprmake
6285 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
6287 * sem_aggr.adb: Fix typo in comment.
6289 2004-05-03 Robert Dewar <dewar@gnat.com>
6291 * make.adb: Minor reformatting
6293 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
6295 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
6296 so that it works when address is not a private type.
6298 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
6299 properly with rewritten unchecked conversions. This prevents
6300 order-of-elaboration issues that can otherwise arise.
6301 (Minimum_Size): Don't check size of access types under VMS
6303 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
6304 interpretations of integer literals as type System.Address.
6306 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
6307 (Is_Descendent_Of): New function
6309 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
6311 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
6312 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
6313 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
6315 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
6316 of the old Max_Entry_Queue_Depth.
6318 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
6319 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
6320 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
6322 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
6323 New entry for proper handling of Max_Entry_Queue_Depth.
6324 New entry for proper handling of No_Dynamic_Interrupts.
6326 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
6327 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
6328 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
6329 the GNAT specific restriction Max_Entry_Queue_Depth.
6330 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
6331 the GNAT specific restriction No_Dynamic_Interrupts.
6333 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
6334 instead of the old Boolean_Entry_Barriers.
6335 Use the new restriction No_Dynamic_Attachment instead of the old
6336 No_Dynamic_Interrupts.
6338 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
6339 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
6341 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
6342 of the old Max_Entry_Queue_Depth.
6344 2004-05-03 GNAT Script <nobody@gnat.com>
6346 * Make-lang.in: Makefile automatically updated
6348 2004-04-29 Ed Schonberg <schonberg@gnat.com>
6350 * checks.adb (Enable_Range_Check): If the prefix of an index component
6351 is an access to an unconstrained array, perform check unconditionally.
6353 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6355 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
6358 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
6360 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
6361 alternate stack setting. There was no support for the tasking cases
6362 and the changes eventually caused a number of side-effect failures in
6363 the non-tasking case too.
6365 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
6367 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
6370 2004-04-29 Vincent Celier <celier@gnat.com>
6372 * make.adb (Gnatmake): Increase max size of argument array for
6373 gnatbind for the potential addition of -F.
6374 If there are Stand-Alone Library projects, invoke gnatbind with -F to
6375 be sure that elaboration flags will be checked.
6377 * switch-c.adb: Correct call to Scan_Pos for -gnateI
6379 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
6381 * sem_warn.adb (Check_References): Move '<access-variable> may be
6382 null' warning out of under Warn_On_No_Value_Assigned.
6384 2004-04-29 Ed Falis <falis@gnat.com>
6386 * gnat_ugn.texi: Fixed texi error
6388 2004-04-29 Robert Dewar <dewar@gnat.com>
6390 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
6391 abstract operations if they come from predefined files.
6393 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
6396 * s-addope.adb: Correct obvious error in mod function
6398 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
6400 * Makefile.in: Add target pairs for powerpc darwin*
6403 * a-intnam-darwin.ads, s-osinte-darwin.adb,
6404 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
6406 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
6408 * Makefile.in: Add target macro definitions for s390*-linux*.
6409 * system-linux-s390.ads: New file.
6410 * system-linux-s390x.ads: New file.
6412 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
6414 * gnat_ugn.texi: Correct argument to @setfilename.
6416 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
6418 * a-exexpr.adb (Unwind_Word): New data type.
6419 (Unwind_Exception): Use it as type of Private1 and Private2.
6421 * raise.c (db_action_for): Fix debug printf.
6423 2004-04-27 Ed Schonberg <schonberg@gnat.com>
6425 * a-wtmoio.ads: Formal type must be a modular type, not a signed
6428 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6430 * decl.c (gnat_to_gnu_entity, case object): Call
6431 __builtin_update_setjmp_buf.
6433 * gigi.h (update_setjmp_buf): Deleted.
6434 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
6436 * misc.c: (update_setjmp_buf): Deleted.
6438 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
6439 around block of RTL.
6441 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
6443 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
6445 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
6446 subprogram for which no pragma All_Calls_Remote applies, store the
6447 address of the real subprogram in the underlying record type, so local
6448 dereferences do not go through the PCS.
6450 2004-04-26 Robert Dewar <dewar@gnat.com>
6452 * i-c.ads: Add some type qualifications to avoid ambiguities when
6453 compiling with s-auxdec.ads and a non-private address type.
6455 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
6457 * Makefile.rtl: Fix error in previous check-in:
6458 Add s-addope.o to non tasking object list (rather than tasking object
6461 2004-04-26 Javier Miranda <miranda@gnat.com>
6463 * sem_aggr.adb: Fix typo in comments
6464 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
6465 Required to check the null-exclusion attribute.
6467 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
6468 case of anonymous access types in record and array components. For a
6469 component definition the level is the same of the enclosing composite
6472 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
6473 that are anonymous access types the level of accessibility depends on
6474 the enclosing type declaration. In order to have this information, set
6475 the scope of the anonymous access type to the enclosing record type
6477 (Array_Type_Declaration): In case of components that are anonymous
6478 access types the level of accessibility depends on the enclosing type
6479 declaration. In order to have this information, set the scope of the
6480 anonymous access type to the enclosing array type declaration.
6482 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
6485 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
6486 renaming of anonymous access-to-constant types allowed if and only if
6487 the renamed object is access-to-constant.
6489 * sem_util.adb (Type_Access_Level): In case of anonymous access types
6490 that are component_definition or discriminants of a nonlimited type,
6491 the level is the same as that of the enclosing component type.
6493 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
6495 * sem_elim.adb: Some minor code reorganization from code reading. Fix
6496 misprint in the function name (File_Name_Match).
6498 2004-04-23 Laurent GUERBY <laurent@guerby.net>
6500 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
6503 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6505 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
6507 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
6509 * adaint.c (__gnat_try_lock): No longer requires that the parent
6510 directory be writable, the directory itself is enough.
6511 (gnat_is_absolute_path): Change profile, so that the call from
6512 GNAT.OS_Lib can be made more efficient.
6514 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
6515 from GNAT.OS_Lib can be made more efficient.
6517 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
6518 one copy of the file name. Found by code reading.
6520 2004-04-23 Vincent Celier <celier@gnat.com>
6522 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
6523 Correct documentation on gnatmake switches transmitted to the compiler
6525 * ali.ads: Minor comment fix
6527 2004-04-23 Javier Miranda <miranda@gnat.com>
6529 * sem_ch6.adb: (Confirming Types): Code cleanup
6531 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
6532 subprogram types: E_Anonymous_Access_Subprogram_Type and
6533 E_Anonymous_Access_Protected_Subprogram_Type.
6535 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
6537 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
6538 whether a pragma All_Calls_Remote applies to the subprogram on which
6540 No functional change is introduced by this revision; the new parameter
6541 will be used to allow calls to local RCI subprograms to be optimized
6542 to not use the PCS in the case where no pragma All_Calls_Remote applies,
6543 as is already done in the PolyORB implementation of the DSA.
6545 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
6546 whether a pragma All_Calls_Remote applies to the subprogram on which
6548 No functional change is introduced by this revision; the new parameter
6549 will be used to allow calls to local RCI subprograms to be optimized
6550 to not use the PCS in the case where no pragma All_Calls_Remote applies,
6551 as is already done in the PolyORB implementation of the DSA.
6553 2004-04-23 Robert Dewar <dewar@gnat.com>
6555 * Makefile.rtl: Add entry for s-addope.o in run time library list
6556 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
6557 * s-addope.ads, s-addope.adb: New files.
6559 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
6560 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
6561 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
6562 System.Address to be non-private and signed.
6564 * sem_elim.adb: Minor reformatting (fairly extensive)
6565 Some minor code reorganization from code reading
6566 Add a couple of ??? comments
6568 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6570 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
6571 (tree_transform, case N_If_Statement): Remove non-determinism.
6573 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
6575 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
6577 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
6580 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
6581 no longer used as a parameter name for Eliminate pragma).
6583 2004-04-22 Laurent GUERBY <laurent@guerby.net>
6585 PR optimization/14984
6586 PR optimization/14985
6587 * trans.c (gigi): Fix non determinism leading to bootstrap
6588 comparison failures.
6590 2004-04-21 Pascal Obry <obry@gnat.com>
6592 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
6593 passed to spawnvp() to properly handle program pathname with spaces on
6596 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
6598 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
6599 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
6600 unlocked in case of exceptions.
6602 2004-04-21 Joel Brobecker <brobecker@gnat.com>
6604 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
6605 This function does not exist anymore.
6607 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
6609 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
6611 * link.c: Move variables to the __gnat name space.
6613 * Makefile.in: list link.o explicitly when needed.
6615 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
6617 2004-04-21 Javier Miranda <miranda@gnat.com>
6619 * einfo.adb (Original_Access_Type): New subprogram
6620 (Set_Original_Access_Type): New subprogram
6621 (Write_Field21_Name): Write the name of the new field
6623 * einfo.ads (Original_Access_Type): New field present in access to
6625 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
6626 E_Anonymous_Access_Protected_Subprogram_Type.
6628 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
6631 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
6632 to anonymous access to subprogram types.
6634 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
6635 to subprogram types.
6637 * sem_ch3.adb (Access_Definition): Complete decoration of entities
6638 corresponding to anonymous access to subprogram types.
6639 (Analyze_Component_Declaration): Add new actual to the call to
6640 subprogram replace_anonymous_access_to_protected_subprogram.
6641 (Array_Type_Declaration): Add new actual to the call to subprogram
6642 replace_anonymous_access_to_protected_subprogram.
6643 (Process_Discriminants): Add new actual to the call to subprogram
6644 replace_anonymous_access_to_protected_subprogram.
6645 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
6647 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
6650 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
6651 access to subprogram types.
6653 * sem_util.adb (Has_Declarations): Addition of package_specification
6656 2004-04-21 Ed Schonberg <schonberg@gnat.com>
6658 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
6659 inlined flags to renamed entity only if in current unit.
6661 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
6663 * s-parint.ads: Add DSA implementation marker.
6665 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
6666 value of System.Partition_Interface.DSA_Implementation to determine
6667 what version of the distributed systems annex is available (no
6668 implementation, GLADE, or PolyORB).
6670 2004-04-21 Joel Brobecker <brobecker@gnat.com>
6672 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
6674 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6676 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
6677 with new type if alias sets differ.
6678 Fixes ACATS c41103b.
6680 2004-04-21 Vincent Celier <celier@gnat.com>
6682 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
6683 Add array Lang_Args for the language specific compiling argument
6686 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
6688 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
6690 * gnat_rm.texi: Update the descripton of the Eliminate pragma
6691 according to the recent changes in the format of the parameters of the
6692 pragma (replacing Homonym_Number with Source_Location).
6694 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
6696 * 5isystem.ads: Removed, unused.
6698 * gnat_rm.texi: Redo 1.13 change.
6700 2004-04-19 Robert Dewar <dewar@gnat.com>
6702 * s-stoele.ads: Clean up definition of Storage_Offset (the new
6703 definition is cleaner, avoids the kludge of explicit Standard operator
6704 references, and also is consistent with a visible System.Address with
6705 no visible operations.
6707 * s-geveop.adb: Add declarations to avoid assumption of visible
6708 operations on type System.Address (since these might not be available
6709 if Address is a non-private type for which the operations
6712 * sem_eval.adb: Minor reformatting
6714 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
6715 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
6716 reformatting (new function spec format).
6718 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
6719 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
6720 s-caun64.adb: Add declarations to avoid assumption of visible
6721 operations on type System.Address (since these might not be available
6722 if Address is a non-private type for which the operations are made
6725 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
6727 * exp_intr.adb: Minor comment update
6729 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
6731 * 5omastop.adb: Add declarations to avoid assumption of visible
6732 operations on type System.Address (since these might not be available
6733 if Address is a non-private type for which the operations
6736 2004-04-19 Vincent Celier <celier@gnat.com>
6738 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
6740 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
6743 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
6745 Call Check with Process_Languages.
6746 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
6747 with Process_Languages.
6748 (Recursive_Check): New Boolean parameter Process_Languages. Call
6749 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
6752 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
6754 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
6755 parameter Ada_Main, defaulted to True.
6756 Check for Ada specific characteristics only when Ada_Main is True.
6758 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
6760 * prj.adb: (Project_Empty): Add new Project_Data components.
6762 * prj.ads: New types and tables for non Ada languages.
6763 (Project_Data): New components Languages, Impl_Suffixes,
6764 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
6765 Include_Path, Include_Data_Set.
6767 * prj-env.ads, prj-env.adb: Minor reformatting
6769 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
6770 Put subprograms in alphabetical order
6772 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
6773 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
6776 * mlib-prj.adb: Back out modification in last version, as they are
6778 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
6780 * make.adb: (Mains): Moved to package Makeutl
6781 (Linker_Opts): Moved to package Makeutl
6782 (Is_External_Assignment): Moved to package Makeutl
6783 (Test_If_Relative_Path): Moved to package Makeutl
6784 (Gnatmake): Move sorting of linker options to function
6785 Makeutl.Linker_Options_Switches.
6787 * makeutl.ads, makeutl.adb: New files.
6789 * Makefile.in: Add makeutl.o to the object files for gnatmake
6791 * makeusg.adb: Add line for new switch -eL.
6793 * gnatls.adb (Image): New function.
6794 (Output_Unit): If in verbose mode, output the list of restrictions
6795 specified by pragmas Restrictions.
6797 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
6800 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
6801 needed, to put it in the range 1970 (included) - 2026 (excluded).
6802 (Time_Of): Do not shift Unix_Min_Year (1970).
6803 Shift the date by multiple of 56 years, if needed, to put it in the
6804 range 1970 (included) - 2026 (excluded).
6806 * adaint.h, adaint.c (__gnat_set_executable): New function.
6808 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6810 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
6812 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
6813 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
6814 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
6815 (tree_transform, case N_Code_Statement): Likewise.
6816 (gnat_expand_stmt, case LABEL_STMT): Don't look at
6817 LABEL_STMT_FIRST_IN_EH.
6818 (gnat_expand_stmt, case ASM_STMT): New case.
6820 * utils2.c (build_unary_op): Properly set TREE_READONLY of
6821 UNCONSTRAINED_ARRAY_REF.
6823 * utils.c (poplevel): Temporarily push/pop GC context around inline
6826 * decl.c (maybe_variable): Properly set TREE_READONLY of
6827 UNCONSTRAINED_ARRAY_REF.
6828 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
6830 * ada-tree.def: (ASM_STMT): New.
6832 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
6833 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
6834 ASM_STMT_INPUT): New.
6835 (ASM_STMT_CLOBBER): Likewise.
6837 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
6839 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
6840 general rcheck mechanism to raise Program_Error for E.4(18), instead
6841 of a custom raiser in System.Partition_Interface.
6842 Part of general cleanup work before PolyORB integration.
6844 * snames.ads, snames.adb: Add new runtime library entities and names
6847 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
6849 (Build_Subprogram_Id): New subprogram provided by exp_dist
6850 Code reorganisation in preparation for PolyORB integration.
6852 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
6854 (Build_Subprogram_Id): New subprogram provided by exp_dist
6856 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
6857 actual parameter types for call to dereference of an
6858 access-to-subprogram type.
6860 * rtsfind.ads: Add new runtime library entities and names for PolyORB
6863 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
6864 instead, which has the same behaviour here since we never pass it a
6867 * link.c (run_path_option, Solaris case): Use -Wl, as for other
6870 * Makefile.in: adjust object file lists for gnatlink and gnatmake
6871 to account for new dependency upon Interfaces.C.Strings + link.o
6872 For x86 FreeBSD, use 86numaux.
6874 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
6875 from Mlib.Tgt to Mlib.
6877 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
6880 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
6881 target-specific versions of this subprogram, now implemented as a
6882 target-independent function in Mlib.
6884 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
6885 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
6886 (Linker_Library_Path_Option): Remove target-specific versions of this
6887 subprogram, now implemented as a target-independent function in Mlib.
6889 * atree.adb: (Allocate_Initialize_Node): New subprogram.
6890 Factors out node table slots allocation.
6891 (Fix_Parents): New subprogram.
6892 Encapsulate the pattern of fixing up parent pointers for syntactic
6893 children of a rewritten node.
6894 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
6895 (Rewrite): Use New_Copy when creating saved copy of original node.
6896 (Replace): Use Copy_Node to copy nodes.
6898 2004-04-19 Javier Miranda <miranda@gnat.com>
6900 * sprint.adb (Sprint_Node_Actual): Give support to the new
6901 Access_To_Subprogram node available in Access_Definition nodes. In
6902 addition, give support to the AI-231 node fields: null-exclusion,
6903 all-present, constant-present.
6905 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
6907 * sinfo.ads, sinfo.adb:
6908 New field Access_To_Subprogram_Definition in Access_Definition nodes
6910 * sem_ch6.adb (Process_Formals): Move here the code that creates and
6911 decorates internal subtype declaration corresponding to the
6912 null-excluding formal. This code was previously in Set_Actual_Subtypes.
6913 In addition, carry out some code cleanup on this code. In case of
6914 access to protected subprogram call
6915 Replace_Anonymous_Access_To_Protected_Subprogram.
6916 (Set_Actual_Subtypes): Code cleanup.
6918 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
6919 Find_Type in case of anonymous access renamings. Add warning in case of
6920 null-excluding attribute used in anonymous access renaming.
6922 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
6925 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
6927 (Access_Definition): In case of anonymous access to subprograms call
6928 the corresponding semantic routine to decorate the node.
6929 (Access_Subprogram_Declaration): Addition of some comments indicating
6930 some code that probably should be added here. Detected by comparison
6931 with the access_definition subprogram.
6932 (Analyze_Component_Declaration): In case of access to protected
6933 subprogram call Replace_Anonymous_Access_To_Protected.
6934 (Array_Type_Declaration): In case of access to protected subprogram call
6935 Replace_Anonymous_Access_To_Protected_Subprogram.
6936 (Process_Discriminants): In case of access to protected subprogram call
6937 Replace_Anonymous_Access_To_Protected_Subprogram.
6939 * par.adb (P_Access_Definition): New formal that indicates if the
6940 null-exclusion part was present.
6941 (P_Access_Type_Definition): New formal that indicates if the caller has
6942 already parsed the null-excluding part.
6944 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
6945 (P_Identifier_Declarations): Code cleanup and give support to renamings
6946 of anonymous access to subprogram types.
6947 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
6948 (P_Array_Type_Definition): Give support to AI-254.
6949 (P_Component_Items): Give support to AI-254.
6950 (P_Access_Definition): New formal that indicates if the header was
6951 already parsed by the caller.
6952 (P_Access_Type_Definition): New formal that indicates if the caller has
6953 already parsed the null-excluding part.
6955 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
6956 call to P_Access_Definition.
6958 2004-04-19 Geert Bosch <bosch@gnat.com>
6960 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
6961 the delicate semantics of floating-point to integer conversion.
6962 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
6964 * eval_fat.adb (Machine_Mantissa): Moved to spec.
6965 (Machine_Radix): New function.
6967 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
6969 (Machine_Radix): New function also for use in conversion checks.
6971 2004-04-19 Ed Schonberg <schonberg@gnat.com>
6973 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
6975 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
6976 to decorate the access-to-protected subprogram and the equivalent type.
6978 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
6979 to anonymous access to subprogram types.
6981 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
6982 constant-folding, for legality checks in contexts that require an RM
6985 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
6986 temporary but stack checking is not enabled, increment serial number
6987 to so that symbol generation is consistent with and without stack
6990 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
6991 independent on whether stack checking is enabled, caller must check
6992 the corresponding flag.
6994 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
6996 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
6997 parent if it has discriminants.
6998 (Build_Derived_Private_Type): Constructed full view does
6999 not come from source.
7000 (Process_Discriminants): Default discriminants on a tagged type are
7001 legal if this is the internal completion of a private untagged
7004 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
7005 no constraint checks, because it corresponds to an existing object.
7007 * sem_prag.adb (Process_Convention): Pragma applies
7008 only to subprograms in the same declarative part, i.e. the same unit,
7011 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
7012 ignore type mismatch on a numeric conversion if expression comes from
7015 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
7017 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
7018 Homonym_Number parameter, add processing for Source_Location parameter
7020 (Check_Eliminated): Remove the check for homonym numbers, add the check
7021 for source location traces.
7023 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
7024 with Arg_Source_Location corresponding to the changes in the format of
7027 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
7028 Eliminate pragma corresponding to the changes in the format of the
7029 pragma: Homonym_Number is replaced with Source_Location, two ways of
7030 distinguishing homonyms are mutially-exclusive.
7032 2004-04-19 Joel Brobecker <brobecker@gnat.com>
7034 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
7036 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
7037 No_Dollar_In_Label, no longer necessary, as it is always True.
7038 (Strip_Suffixes): Likewise.
7040 2004-04-19 Gary Dismukes <dismukes@gnat.com>
7042 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
7043 modulus for compatibility with size clause on targets with 16-bit
7046 * layout.adb (Discrimify): In the case of private types, set Vtyp to
7047 full type to fix type mismatches on calls to size functions for
7048 discriminant-dependent array components.
7050 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
7052 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
7055 2004-04-19 Pascal Obry <obry@gnat.com>
7057 * mdll-utl.adb (Locate): New version is idempotent.
7059 2004-04-17 Laurent Guerby <laurent@guerby.net>
7061 PR ada/14988 (partial)
7062 * impunit.adb: Fix typo.
7064 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
7066 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
7067 and install-rts-cert targets. Remove all gnatlib and gnattools
7068 targets and all other rts-* targets (moved to libada). Remove (now)
7069 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
7070 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
7072 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7074 * trans.c (tree_transform): Shortcut returning error_mark_node for
7075 statements in annotate_only_mode.
7076 (tree_transform, case N_Label, case N_Return_Statement,
7077 N_Goto_Statement): Make statement tree instead of generating code.
7078 (tree_transform, case N_Assignment_Statement): No longer check
7080 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
7082 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
7084 (gnat_to_gnu): Collect any RTL generated and deal with it.
7085 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
7086 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
7087 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
7089 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
7091 * ada-tree.def (EXPR_STMT): Fix typo in name.
7092 (BLOCK_STMT, IF_STMT): New nodes.
7094 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
7095 LABEL_STMT_FIRST_IN_EH): New macros.
7096 (RETURN_STMT_EXPR): Likewise.
7098 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
7099 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
7101 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
7103 * atree.ads: Correct documentation on extended nodes.
7105 * link.c: Set run_path_option for FreeBSD.
7107 2004-04-08 Vincent Celier <celier@gnat.com>
7109 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
7110 one of the ALI file, do not link with DEC lib.
7112 * par.adb Remove the last two characters ("%s" or "%b") when checking
7113 if a language defined unit may be recompiled.
7115 2004-04-08 Ed Schonberg <schonberg@gnat.com>
7117 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
7118 removal of abstract operation leaves no possible interpretation for
7121 * sem_eval.adb (Eval_Qualified_Expression): Use
7122 Set_Raises_Constraint_Error on node when needed, so that it does not
7123 get optimized away by subsequent optimizations.
7125 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
7126 operands even when they are not wrapped in a type conversion.
7128 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
7130 * sem_prag.adb (Set_Exported): Warn about making static as result of
7131 export only when the export is coming from source. This may be not
7132 be true e.g. on VMS where we expand export pragmas for exception codes
7133 together with imported or exported exceptions, and we don't want the
7134 user to be warned about something he didn't write.
7136 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
7138 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
7139 duplication between normal entities and those declared as renamings.
7140 No functional change.
7142 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
7143 inline functions returning an unconstrained result.
7145 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
7147 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
7148 conform to what other front-ends do.
7150 2004-04-08 Doug Rupp <rupp@gnat.com>
7152 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
7155 2004-04-06 Pascal Obry <obry@gnat.com>
7157 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
7159 * osint.adb (Program_Name): Do not look past a directory separator.
7161 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
7163 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
7165 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
7166 requirement for preserving a copy of the original assignment node.
7168 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
7170 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
7172 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
7175 2004-04-06 Ed Schonberg <schonberg@gnat.com>
7177 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
7178 operator calls in functional notation, and apply
7179 Universal_Interpretation to operands, not to their type.
7181 2004-04-06 Robert Dewar <dewar@gnat.com>
7183 * 5wdirval.adb: Minor reformatting
7185 2004-04-06 Ed Falis <falis@gnat.com>
7187 * gnat_rm.texi: Improve a reference to the GCC manual
7189 2004-04-05 Vincent Celier <celier@gnat.com>
7191 * adaint.h, adaint.c: Add function __gnat_named_file_length
7193 * impunit.adb: Add Ada.Directories to the list
7195 * Makefile.in: Add VMS and Windows versions of
7196 Ada.Directories.Validity package body.
7198 * Makefile.rtl: Add a-direct and a-dirval
7200 * mlib-tgt.ads: Minor comment update.
7202 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
7203 a-direct.ads, a-direct.adb: New files.
7205 2004-04-05 Vincent Celier <celier@gnat.com>
7208 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
7209 just to the compiler.
7211 2004-04-05 Robert Dewar <dewar@gnat.com>
7213 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
7214 returned string is 1.
7216 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
7218 * eval_fat.ads: Minor reformatting
7220 * g-curexc.ads: Document that lower bound of returned string values
7223 * gnatlink.adb: Add ??? comment for previous change
7224 (need to document why this is VMS specific)
7226 * s-stoele.ads: Minor reformatting
7228 * tbuild.ads: Minor reformatting throughout (new function specs)
7230 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
7233 * scng.adb: Minor reformatting
7235 2004-04-05 Geert Bosch <bosch@gnat.com>
7237 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
7238 (Leading_Part): Still perform truncation to machine number if the
7239 specified radix_digits is greater or equal to machine_mantissa.
7241 2004-04-05 Javier Miranda <miranda@gnat.com>
7243 * par-ch3.adb: Complete documentation of previous change
7244 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
7245 (aliased must appear before constant).
7247 * par-ch4.adb: Complete documentation of previous change.
7249 * par-ch6.adb: Complete documentation of previous change.
7251 * sinfo.ads: Fix typo in commment.
7253 2004-04-05 Ed Schonberg <schonberg@gnat.com>
7255 * sem_ch3.adb (Inherit_Components): If derived type is private and has
7256 stored discriminants, use its discriminants to constrain parent type,
7257 as is done for non-private derived record types.
7259 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
7260 Ada 2005 AI-310: an abstract non-dispatching operation is not a
7261 candidate interpretation in an overloaded call.
7263 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
7264 expression is Null and target type is not an access type (e.g. a
7265 non-private address type).
7267 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
7269 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
7270 statement whose right-hand side is an inlined call, save a copy of the
7271 original assignment subtree to preserve enough consistency for
7272 Analyze_Assignment to proceed.
7274 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
7275 complete assignment subtree which is now unnecessary, as the expansion
7276 of inlined call has been improved to preserve a consistent assignment
7277 tree. Note_Possible_Modification must be called only
7278 after checks have been applied, or else unnecessary checks will
7281 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
7282 of explicit dereferences that do not Come_From_Source:
7283 - be selective on cases where we must go back to the dereferenced
7284 pointer (an assignment to an implicit dereference must not be
7285 recorded as modifying the pointer);
7286 - do not rely on Original_Node being present (Analyze_Assignment
7287 calls Note_Possible_Modification on a copied tree).
7289 * sem_warn.adb (Check_References): When an unset reference to a pointer
7290 that is never assigned is encountered, prefer '<pointer> may be null'
7291 warning over '<pointer> is never assigned a value'.
7293 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
7295 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
7298 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
7300 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
7301 libexc. We currently don't reference anything in this library and
7302 linking it in triggers linker warnings we don't want to see.
7304 * init.c: Update comments.
7306 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7308 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
7309 * utils.c (create_field_decl): Likewise.
7310 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
7312 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
7314 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
7315 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
7316 Add info directory entry and category.
7318 2004-04-02 Jan Hubicka <jh@suse.cz>
7320 * utils.c: Include function.h
7321 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
7323 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
7326 * Make-lang.in: Clean up generation of documentation
7328 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
7330 * xgnatug.adb: Removed, replaced by xgnatugn.adb
7332 * xgnatugn.adb: Replaces xgnatug.adb
7334 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
7336 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
7338 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
7339 gnat_ug_wnt.texi: Removed.
7341 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
7343 * utils2.c: Update copyright notice.
7345 2004-04-01 Robert Dewar <dewar@gnat.com>
7347 * checks.adb: Minor reformatting throughout
7348 Note that prev checkin added RM reference to alignment warning
7350 2004-04-01 Ed Schonberg <schonberg@gnat.com>
7352 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
7353 non-static when building aggregate for bit-packed array.
7355 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
7356 function call that is itself the actual in a procedure call, build
7359 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
7360 a string literal, create a temporary for it, constant folding only
7361 handles scalars here.
7363 2004-04-01 Vincent Celier <celier@gnat.com>
7365 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
7366 Error_Msg_SP): New empty procedures to instantiate the Scanner.
7367 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
7369 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
7370 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
7371 and get the checksum.
7373 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
7375 Increase the Marking_Label at the end of the Multiple_Main_Loop,
7376 instead of at the beginning.
7378 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
7380 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
7383 * osint.ads (Multi_Unit_Index_Character): New Character global variable
7385 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
7388 * par.adb: Remove test on file name to detect language defined units.
7389 Add test on unit name, after parsing, to detect language defined units
7390 that are not compiled with -gnatg (except System.RPC and its children)
7392 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
7393 following units without style checking.
7395 * switch-c.adb: Change -gnatC to -gnateI
7397 * usage.adb: Document new switch -gnateInnn
7399 * scng.adb (Accumulate_Token_Checksum): New procedure
7400 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
7401 word or literal number.
7402 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
7405 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
7408 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
7409 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
7410 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
7411 5vtpopde.adb: Add missing 'constant' keywords.
7413 2004-04-01 Javier Miranda <miranda@gnat.com>
7415 * par-ch4.adb: (P_Allocator): Code cleanup
7417 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
7420 * sinfo.ads: Complete documentation of previous change
7422 2004-04-01 Pascal Obry <obry@gnat.com>
7424 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
7425 only on VMS. This special handling was done because an old GNU/ld bug
7426 on Windows which has been fixed.
7428 2004-04-01 GNAT Script <nobody@gnat.com>
7430 * Make-lang.in: Makefile automatically updated
7432 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7434 * decl.c (gnat_to_gnu_entity, make_type_from_size):
7435 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
7436 * trans.c (tree_transform, convert_with_check): Likewise.
7437 * utils.c (gnat_signed_or_unsigned_type): Likewise.
7438 (build_vms_descriptor, unchecked_convert): Likewise.
7439 * utils2.c (nonbinary_modular_operation): Likewise.
7441 2004-03-29 Javier Miranda <miranda@gnat.com>
7443 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
7444 (Install_Null_Excluding_Check): Local subprogram that determines whether
7445 an access node requires a runtime access check and if so inserts the
7446 appropriate run-time check.
7447 (Apply_Access_Check): Call Install_Null_Excluding check if required
7448 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
7450 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
7452 * einfo.ads: Fix typo in comment
7454 * exp_ch3.adb (Build_Assignment): Generate conversion to the
7455 null-excluding type to force the corresponding run-time check.
7456 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
7457 type to force the corresponding run-time check.
7459 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
7460 the null-excluding type to force the corresponding run-time check.
7462 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
7463 case of access types unless they have the null-excluding attribute.
7465 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
7468 * exp_util.ads: Fix typo in comment
7470 * par.adb (P_Null_Exclusion): New subprogram
7471 (P_Subtype_Indication): New formal that indicates if the null-excluding
7472 part has been scanned-out and it was present
7474 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
7476 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
7477 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
7478 type to force the corresponding run-time check
7479 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
7481 (Resolve_Array_Aggregate): Carry out some static checks
7482 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
7484 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
7485 attribute must be set only if specified by means of the null-excluding
7486 part. In addition, we must also propagate the access-constant attribute
7488 (Access_Subprogram_Declaration, Access_Type_Declaration,
7489 Analyze_Component_Declaration, Analyze_Object_Declaration,
7490 Array_Type_Declaration, Process_Discriminants,
7491 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
7492 and carry out some static checks.
7493 (Build_Derived_Access_Type): Set the null-excluding attribute
7494 (Derived_Type_Declaration, Process_Subtype): Carry out some static
7497 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
7499 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
7501 * sem_ch6.adb (Process_Formals): Carry out some static checks.
7502 (Set_Actual_Subtypes): Generate null-excluding subtype if the
7503 null-excluding part was present; it is not required to be done here in
7504 case of anonymous access types.
7505 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
7508 * sem_res.adb (Resolve_Actuals): Carry out some static check
7509 (Resolve_Null): Allow null in anonymous access
7511 * sinfo.adb: New subprogram Null_Exclusion_Present
7512 All_Present and Constant_Present available on access_definition nodes
7514 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
7515 object_declaration, derived_type_definition, component_definition,
7516 discriminant_specification, access_to_object_definition,
7517 access_function_definition, allocator, access_procedure_definition,
7518 access_definition, parameter_specification, All_Present and
7519 Constant_Present flags available on access_definition nodes.
7521 2004-03-29 Robert Dewar <dewar@gnat.com>
7523 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
7524 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
7525 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
7526 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
7527 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
7528 sem_prag.adb: Updates to handle multiple units/file
7530 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
7532 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
7533 sem_util.adb: Minor reformatting
7535 * sem_ch12.adb: Add comment for previous change
7537 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
7539 * osint.adb (Executable_Prefix): Set Exec_Name to the current
7540 executable name when not initialized. Otherwise, use its current value.
7542 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
7543 initialize it to another executable name than the current one. This
7544 allows to configure paths for an executable name (gnatmake) different
7545 from the current one (gnatdist).
7547 2004-03-29 Ed Schonberg <schonberg@gnat.com>
7549 * exp_ch6.adb (Expand_Call): A call to a function declared in the
7550 current unit cannot be inlined if it appears in the body of a withed
7551 unit, to avoid order of elaboration problems in gigi.
7553 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
7554 information for protected (wrapper) operation as well, to simplify gdb
7557 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
7558 protected body, indicate that the entity for the generated spec comes
7559 from source, to ensure that references are properly generated for it.
7560 (Build_Body_To_Inline): Do not inline a function that returns a
7563 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
7564 apply convention to homonyms that are declared explicitly.
7566 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
7567 that renames an equality operator and the operands are overloaded,
7568 resolve them with the declared formal types, before rewriting as an
7571 2004-03-29 GNAT Script <nobody@gnat.com>
7573 * Make-lang.in: Makefile automatically updated
7575 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
7577 * memtrack.adb: Log realloc calls, which are treated as free followed
7580 2004-03-25 Vincent Celier <celier@gnat.com>
7582 * prj-makr.adb (Process_Directories): Detect when a file contains
7583 several units. Do not include such files in the config pragmas or
7584 in the naming scheme.
7586 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
7587 Resolve links only when not in Trusted_Mode.
7588 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
7589 Do not resolve links for the display names.
7591 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
7592 resolve links when computing the display names.
7594 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
7596 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
7597 attribute reference does not denote a subtype, it can be any
7598 expression that has a classwide type, potentially after an implicit
7599 dereference. In particular, the prefix can be a view conversion for
7600 a classwide type (for which Is_Object_Reference holds), but it can
7601 also be a value conversion for an access-to-classwide type. In the
7602 latter case, there is an implicit dereference, and the original node
7603 for the prefix does not verify Is_Object_Reference.
7605 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
7606 conversion of a discriminant-dependent component of a mutable object
7609 2004-03-25 Ed Schonberg <schonberg@gnat.com>
7611 * freeze.adb (Freeze_Entity): When an inherited subprogram is
7612 inherited, has convention C, and has unconstrained array parameters,
7613 place the corresponding warning on the derived type declaration rather
7614 than the original subprogram.
7616 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
7617 indication on renaming declaration, if formal has a box and actual
7620 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
7621 determine whether to generate an implicit or explicit reference to
7624 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
7625 subprogram renaming comes from a defaulted formal subprogram in an
7628 2004-03-25 Gary Dismukes <dismukes@gnat.com>
7630 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
7631 value expressions to ensure that calls within a component definition
7632 will be checked (since those are evaluated during the record type's
7635 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
7637 * s-tpobop.adb: Code clean up:
7638 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
7640 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
7642 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
7644 * Makefile.in: Clean up in the ravenscar run time.
7646 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7648 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
7649 of No_Strict_Aliasing to build_pointer_type_for_mode.
7650 * utils.c (update_pointer_to): Walk pointer and ref chains.
7652 2004-03-22 Cyrille Comar <comar@act-europe.fr>
7654 * ali.ads: Fix Comment about Dynamic_Elab.
7656 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
7657 Has_RACW, Is_Generic, etc.)
7658 (Output_Object, Gnatls): Take into account ALI files not attached to
7661 2004-03-22 Vincent Celier <celier@gnat.com>
7663 * gprep.adb: Change all String_Access to Name_Id
7664 (Is_ASCII_Letter): new function
7665 (Double_File_Name_Buffer): New procedure
7666 (Preprocess_Infile_Name): New procedure
7667 (Process_Files): New procedure
7668 (Gnatprep): Check if output and input are existing directories.
7669 Call Process_Files to do the real job.
7671 2004-03-22 Robert Dewar <dewar@gnat.com>
7673 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
7674 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
7676 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
7678 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
7679 case when the source contains only comments.
7681 2004-03-22 Ed Schonberg <schonberg@gnat.com>
7683 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
7684 declaration for a child subprogram body that acts as a spec, indicate
7685 that the entity in the declaration needs debugging information.
7687 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
7688 full view if the subtype is created for a constrained record component;
7689 gigi has enough information to construct the record, and there is no
7690 place in the tree for the declaration.
7692 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
7693 serial number for the dummy body that is built for analysis, to avoid
7694 inconsistencies in the generation of internal names when compiling
7697 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
7699 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
7702 2004-03-22 GNAT Script <nobody@gnat.com>
7704 * Make-lang.in: Makefile automatically updated
7706 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7708 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
7709 * trans.c (tree_transform, emit_index_check): Likewise.
7710 * utils.c (build_template): Likewise.
7711 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
7712 (maybe_unconstrained_array, unchecked_convert): Likewise.
7713 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
7714 (build_unary_op): Likewise.
7715 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
7716 (fill_vms_descriptor): Likewise.
7717 (build_call_alloc_dealloc): Likewise.
7719 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
7721 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
7724 * gnat_ug.texi: Add info directory category and entry.
7725 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
7726 gnat_ug_wnt.texi: Regenerate.
7728 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
7730 * ada-tree.h: Update copyright notice.
7733 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
7735 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
7736 as regular exception objects and not as mere integers representing the
7737 condition code. The latter approach required some dynamics to mask off
7738 severity bits, which did not fit well into the GCC table based model.
7739 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
7740 exception data objects. We don't it and it would conflict with the other
7741 external symbol we have to generate for such exceptions.
7743 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
7744 the special code for VMS exceptions, since these are now represented
7745 as regular exceptions objects.
7747 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7749 * decl.c (debug_no_type_hash): Remove.
7750 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
7751 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
7753 2004-03-19 Laurent Guerby <laurent@guerby.net>
7755 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
7756 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
7758 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7760 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
7761 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
7762 (TYPE_RM_SIZE_INT): Directly use type.values.
7763 (TREE_LOOP_ID): Clean up check.
7764 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
7765 TYPE_VALUES, not TYPE_FIELDS.
7766 * trans.c (convert_with_check): Delay access of bounds of basetype
7767 until sure is numeric.
7769 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
7771 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
7774 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
7775 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
7776 Specific.Set instead of direct call to e.g pthread_setspecific.
7778 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
7780 * adaint.c: Update comments.
7782 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
7783 GNATLIB_SHARED for FreeBSD.
7785 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
7787 * init.c [VxWorks]: Do not fix the stack size for the environment task.
7788 When needed (stack checking) the stack size is retrieved
7789 from the VxWorks kernel.
7791 * Makefile.in: Flag -nostdinc is required when building the run time
7792 for avoiding looking for files in the base compiler.
7793 Add the VxWorks specific version of the package body for
7794 System.Stack_checking.Operations (5zstchop.adb).
7796 * Make-lang.in: Add the object file for
7797 System.Stack_Checking.Operations.
7799 * Makefile.rtl: Add object file for the package
7800 System.Stack_Checking.Operations.
7802 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
7804 * s-stache.ads, s-stache.adb: Move the operations related to stack
7805 checking from this package to package System.Stack_Checking.Operations.
7806 This way, stack checking operations are only linked in the final
7807 executable when using the -fstack-check flag.
7809 2004-03-18 Doug Rupp <rupp@gnat.com>
7811 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
7814 * 5qsystem.ads, 5xcrtl.ads: New files.
7816 2004-03-18 Vincent Celier <celier@gnat.com>
7818 * prj.adb (Reset): Reset hash table Files_Htable
7820 * prj-env.adb (Source_Paths, Object_Paths): New tables.
7821 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
7822 the procedures Add_To_Path_File.
7823 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
7824 making sure that each directory is present only once and, for object
7825 dirs, when a directory already present is added, the duplicate is
7826 removed and the directory is always put as the last in the table.
7827 Write the path files at the end of these accumulations.
7829 * prj-nmsc.adb (Record_Source): Add source file name in hash table
7830 Files_Htable for all sources.
7832 * prj-proc.adb (Process): Remove restrictions between not directly
7833 related extending projects.
7835 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
7837 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
7838 (Find_Sources): Minor speed optimization.
7840 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
7841 parameter Trusted_Mode.
7843 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
7845 * scn.adb (Determine_License): Take into account a degenerated case
7846 when the source contains only comments.
7848 2004-03-18 Ed Schonberg <schonberg@gnat.com>
7850 * sem_warn.adb (Check_References): For a warning on a selected
7851 component that does not come from source, locate an uninitialized
7852 component of the record type to produce a more precise error message.
7854 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
7856 * 3zsoccon.ads: Fix multicast options.
7858 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
7861 2004-03-15 Robert Dewar <dewar@gnat.com>
7863 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
7864 pragma used for a private type.
7866 * lib-xref.adb (Generate_Reference): Do not generate warning if
7867 reference is in a different unit from the pragma Unreferenced.
7869 * 5vtpopde.adb: Minor reformatting
7870 Fix casing of To_Task_ID
7872 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
7873 flag if we have an unchecked conversion to an access type in the same
7876 2004-03-15 Geert Bosch <bosch@gnat.com>
7878 * a-ngcoty.adb (Modulus): In alternate formula for large real or
7879 imaginary parts, use Double precision throughout.
7881 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
7882 we want to be able to compile run-time with -gnata for testing, but
7883 this may also be instantiated in user code that is compiled with -gnata.
7885 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
7887 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
7888 codes. Having a separate type for this is useful to enforce consistency
7889 throughout the various run-time units.
7890 (Exception_Data): Use Exception_Code for Import_Code.
7892 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
7893 Natural and Integer in various places.
7894 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
7895 with the severity bits masked off.
7896 (Register_VMS_Exception): Handle the additional exception data pointer
7899 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
7900 component, now reflected by an exported accessor.
7901 (is_handled_by): New routine to compute whether the propagated
7902 occurrence matches some handler choice specification. Extracted out of
7903 get_action_description_for, and expanded to take care of the VMS
7905 (get_action_description_for): Use is_handled_by instead of an explicit
7906 complex condition to decide if the current choice at hand catches the
7907 propagated occurrence.
7909 * raise.h (Exception_Code): New type for C.
7911 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
7912 System.Standard_Library.Exception_Code, to allow references from the
7913 pragma import/export expander.
7915 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
7916 New accessors to allow easy access to GNAT exception data
7918 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
7919 redundant Handled_By_Others component, helper for the personality
7920 routine which will now be able to call the appropriate exception data
7923 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
7924 component of Standard_Exception_Type to be the closest possible to
7925 Exception_Code in System.Standard_Library, that we cannot get at this
7926 point. Expand a ??? comment to notify that this type node should
7927 probably be rewritten later on.
7929 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
7930 registration call to include a pointer to the exception object in the
7933 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
7934 instead of int and explicit bitmasks.
7936 2004-03-15 Vincent Celier <celier@gnat.com>
7938 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
7939 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
7941 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
7942 longer needed now that it is in the spec of
7943 System.Tasking.Task_Attributes.
7945 * adaint.h, adaint.c: (__gnat_create_output_file): New function
7947 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
7949 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
7951 * make.adb (Gnatmake): Do not check the executable suffix; it is being
7952 taken care of in Scan_Make_Arg.
7953 (Scan_Make_Arg): Add the executable suffix only if the argument
7954 following -o, in canonical case, does not end with the executable
7955 suffix. When in verbose mode and executable file name does not end
7956 with executable suffix, output the executable name, in canonical case.
7958 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
7959 to avoid warnings when instantiating Ada.Task_Attributes.
7962 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
7963 in the correct order.
7965 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
7966 redirect standard output and error to a file for the invocation of the
7967 compiler, then read the file.
7969 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
7970 directory, instead of the Value.
7971 (Find_Source_Dirs): Remove useless code & comments.
7973 2004-03-15 Ed Schonberg <schonberg@gnat.com>
7975 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
7976 tagged type is inherited, and the parent operation is not frozen yet,
7977 force generation of a freeze node for the inherited operation, so the
7978 corresponding dispatch entry is properly initialized.
7979 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
7980 when looking for user-defined equality operation.
7982 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
7983 boolean when locating primitive equality of tagged component.
7985 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
7986 bit-aligned field and the right-hand side a string literal, introduce
7987 a temporary before expanding assignment into a loop.
7989 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
7990 priority in full, to ensure that any expanded subepxressions of it are
7991 elaborated in the scope of the init_proc.
7993 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
7994 after object declaration, skipping over code that may have been
7995 generated for validity checks.
7997 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
7998 discriminants, ignore the known discriminants of its full view, if
7999 any, to check legality.
8001 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
8002 component if type has unknown discriminants.
8003 (Analyze_Private_Extension_Declaration): Discriminant constraint is
8004 null if type has unknown discriminants.
8006 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
8007 for end label when present.
8009 * s-fileio.adb (Open): When called with a C_Stream, use given name for
8010 temporary file, rather than an empty string.
8012 2004-03-15 Ed Falis <falis@gnat.com>
8014 * s-thread.adb: Removed, no longer used.
8016 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8018 * decl.c (target.h): Now include.
8019 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
8020 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
8021 (validate_size): For POINTER_TYPE, get smallest size permitted on
8024 * fe.h: Sort Einfo decls and add Set_Mechanism.
8026 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
8027 (ada/decl.o): Depends on target.h.
8029 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
8030 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
8032 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
8034 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
8036 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
8037 Insert_Dereference_Action when rewriting an implicit dereference into
8038 an explicit one, this will be taken care of during expansion of the
8039 explicit dereference.
8040 (Expand_N_Slice): Same. Always do the rewriting, even for the case
8041 of non-packed slices, since the dereference action generated by
8042 expansion of the explicit dereference is needed in any case.
8043 (Expand_N_Selected_Component): When rewriting an implicit dereference,
8044 analyze and resolve the rewritten explicit dereference so it is seen
8046 (Insert_Dereference_Action): This procedure is now called only for the
8047 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
8048 dereferences that do not come from source (including explicit
8049 dereferences resulting from rewriting implicit ones), but do not
8050 recursively insert a check for the dereference nodes contained within
8052 (Insert_Dereference_Action): Clarify and correct comment.
8054 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
8057 Move language detection to the top level.
8058 * config-lang.in: Build by default.
8060 2004-03-05 Robert Dewar <dewar@gnat.com>
8062 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
8064 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
8065 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
8066 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
8067 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
8068 unchecked conversion to spec to avoid warnings.
8070 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
8073 * 7stpopsp.adb: Correct casing in To_Task_ID call
8075 * a-strsea.ads, a-strsea.adb: Minor reformatting
8077 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
8079 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
8080 Adjust Max_Msg_Length to be clearly large enough.
8082 * fe.h: Define In_Same_Source_Unit
8084 * osint.adb: Add pragma Warnings Off to suppress warnings
8085 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
8088 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
8090 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
8092 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
8094 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
8096 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
8098 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
8099 node. We now do generate them for gcc back end.
8101 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
8104 * sinput-c.adb: Fix bad name in header.
8105 Add pragma Warnings Off to suppress aliasing warning.
8107 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
8109 * snames.h, snames.ads, snames.adb: Add entry for pragma
8112 2004-03-05 Vincent Celier <celier@gnat.com>
8114 * prj-com.ads: Add hash table Files_Htable to check when a file name
8115 is already a source of another project.
8117 * prj-nmsc.adb (Record_Source): Before recording a new source, check
8118 if its file name is not already a source of another project. Report an
8121 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
8122 source file name, call gnatpp with all the sources of the main project.
8124 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
8127 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
8128 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
8129 /RUNTIME_SYSTEM=, converted to --RTS=
8130 /NOTABS, converted to -notabs
8132 2004-03-05 Pascal Obry <obry@gnat.com>
8134 * make.adb: Minor reformatting.
8136 2004-03-05 Ed Schonberg <schonberg@gnat.com>
8138 Part of implemention of AI-262.
8139 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
8141 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
8144 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
8145 when component type is a partially constrained class-wide subtype.
8146 (Constrain_Discriminated_Type): If parent type has unknown
8147 discriminants, a constraint is illegal, even if full view has
8149 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
8150 with unknown discriminants whose full view is a discriminated record.
8152 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
8153 flag, to handle properly derivations of tagged types with unknown
8155 (Analyze_Package_Spec, Analyze_Package_Body): Install
8156 Private_With_Clauses before analyzing private part or body.
8158 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
8159 Has_Discriminants can be true for a given type (documentation).
8161 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
8163 * s-restri.ads: Fix license (GPL->GMGPL).
8165 * s-tassta.adb: Minor reformatting.
8167 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
8168 by calls to Exit_One_ATC_Level, since additional clean up is performed
8171 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
8172 by calls to Exit_One_ATC_Level, since additional clean up is performed
8175 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8177 * trans.c: Reflect GCC changes to fix bootstrap problem.
8178 Add warning for suspicious aliasing unchecked conversion.
8180 2004-03-05 GNAT Script <nobody@gnat.com>
8182 * Make-lang.in: Makefile automatically updated
8184 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
8186 * ali.adb (Read_Instantiation_Instance): Do not modify the
8187 current_file_num when reading information about instantiations, since
8188 this corrupts files in later references.
8190 2004-03-02 Vincent Celier <celier@gnat.com>
8192 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
8193 before checking if it is read-only.
8195 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
8196 of SRC_DIRS and eliminate duplicates.
8198 * gprcmd.adb: Replace command "path" with command "path_sep" to return
8200 (Usage): Document path_sep
8202 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
8203 C++ compiler. No need for a script.
8204 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
8205 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
8208 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
8209 where there are Ada sources.
8210 (Set_Ada_Paths): Only add to the include path the source dirs of project
8212 (Add_To_Path): Add the Display_Values of the directories, not their
8215 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
8218 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
8220 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
8221 Value is canonicalized.
8222 (Language_Independent_Check): Do not copy Value to Display_Value when
8223 canonicalizing Value.
8225 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
8226 path to find limited with cycles.
8227 (Parse_Single_Project): Use canonical cased path to find the end of a
8230 2004-03-02 Ed Schonberg <schonberg@gnat.com>
8232 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
8233 and not a child unit.
8235 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
8236 appear in a with_clause.
8238 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
8239 only happen in type_annotate mode, do not try to elaborate it.
8241 * exp_util.adb (Force_Evaluation): If expression is a selected
8242 component on the left of an assignment, use a renaming rather than a
8243 temporary to remove side effects.
8245 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
8246 inlined instance body, which is analyzed before the end of the
8249 2004-03-02 Robert Dewar <dewar@gnat.com>
8251 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
8252 sem_ch4.adb: Use new feature for substitution of keywords in VMS
8254 * errout.ads, errout.adb: Implement new circuit for substitution of
8257 * sem_case.adb (Analyze_Choices): Place message properly when case is
8258 a subtype reference rather than an explicit range.
8260 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
8262 2004-03-02 Doug Rupp <rupp@gnat.com>
8264 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
8266 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
8268 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
8270 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8272 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
8275 2004-02-25 Robert Dewar <dewar@gnat.com>
8277 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
8278 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
8279 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
8280 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
8281 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
8282 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
8283 the defining instance of the type to avoid aliasing problems.
8284 Fix copyright header. Fix bad comments in package header.
8286 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
8288 2004-02-25 Ed Schonberg <schonberg@gnat.com>
8290 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
8291 rewritten as references when aliased through an address clause.
8293 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
8294 whether call can be interpreted as an indirect call to the result of a
8295 parameterless function call returning an access subprogram.
8297 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
8300 * exp_ch7.adb (Make_Clean): Remove generation of calls to
8301 Unlock[_Entries], since this is now done by Service_Entries directly.
8303 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
8305 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
8306 Requeue_Call for better code readability. Change spec and update calls:
8307 PO_Service_Entries now unlock the PO on exit.
8308 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
8311 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
8313 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
8315 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
8317 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
8318 protected subprogram call and analyzing the result of such expanding
8319 in case when the called protected subprogram is eliminated.
8321 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
8324 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
8326 * Makefile.in: Clean ups.
8328 2004-02-23 Ed Schonberg <schonberg@gnat.com>
8330 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
8331 protected operations if original subprogram is flagged as eliminated.
8332 (Expand_N_Subprogram_Body): For a protected operation, create
8333 discriminals for next operation before checking whether the operation
8336 * exp_ch9.adb (Expand_N_Protected_Body,
8337 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
8338 for internal protected operations if the original subprogram is
8341 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
8342 declared in a single protected object.
8344 2004-02-23 Vincent Celier <celier@gnat.com>
8346 * prj-attr.adb: Make attribute Builder'Executable an associative array,
8347 case insensitive if file names are case insensitive, instead of a
8348 standard associative array.
8350 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
8351 them as case insensitive on platforms where the file names are case
8354 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
8355 project file has already been parsed that canonical path are compared.
8357 2004-02-23 Robert Dewar <dewar@gnat.com>
8359 * sinput-c.ads: Correct bad unit title in header
8361 * freeze.adb: Minor reformatting
8363 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8365 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
8366 nonaddressable COMPONENT_REF that is removing padding that we are
8367 taking the address of, take the address of the padded record instead
8368 if item is variable size.
8370 2004-02-20 Robert Dewar <dewar@gnat.com>
8372 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
8374 2004-02-20 Ed Schonberg <schonberg@gnat.com>
8376 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
8377 itype references for the constrained designated type of a component
8378 whose base type is already frozen.
8380 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
8382 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
8385 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
8387 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
8388 identifier for a phantom package that rewrites the formal package
8389 declaration with a box. The Add semantic decorations for the defining
8390 identifier from the original node (that represents the formal package).
8392 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
8394 * Make-lang.in (ada/stamp-sdefault): Use the top level
8397 2004-02-19 Richard Henderson <rth@redhat.com>
8399 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
8401 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
8403 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
8404 Scan_ALI can be used for multiple ALI files without reinitializing
8407 2004-02-18 Robert Dewar <dewar@gnat.com>
8409 * debug.adb: Minor reformatting.
8411 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8413 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
8414 to zero if there is an address clause.
8416 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
8418 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
8420 2004-02-18 Gary Dismukes <dismukes@gnat.com>
8422 * layout.adb (Layout_Component_List): Revise generation of call to
8423 discriminant-checking function to pass selections of all of the type's
8424 discriminants rather than just the variant-controlling discriminant.
8426 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
8428 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
8429 fail in the current setup and triggers spurious system error messages.
8430 Pretend it occurred and failed instead.
8432 2004-02-18 Vincent Celier <celier@gnat.com>
8434 * bld.adb: Mark FLDFLAGS as saved
8435 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
8436 it is not the root project. Put each directory to be
8437 extended between double quotes to prevent it to be expanded on Windows.
8438 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
8439 the project file. Set them back to their initial values if they have not
8440 been set in the project file.
8442 * gprcmd.adb: (Gprdebug, Debug): New global variables
8443 (Display_Command): New procedure
8444 (Usage): Document new command "linkopts"
8445 Call Display_Command when env var GPRDEBUG has the value "TRUE"
8446 Implement new command "linkopts"
8447 Remove quotes that may be around arguments for "extend"
8448 Always call Normalize_Pathname with arguments formatted for the platform
8450 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
8451 Change @echo to @$(display) in target clean to be able to clean silently
8453 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
8455 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
8458 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
8459 = Extending_All when current project is an extending all project.
8461 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
8462 set to True only for LINK command, after Unix switch -o.
8463 (Process_Arguments): Set Output_File_Expected to True for LINK command
8464 after Unix switch -o. When Output_File_Expected is True, never add an
8465 extension to a file name.
8467 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
8468 option file name, only to the --for-linker= switch.
8469 (Option_File_Name): If option file name do not end with ".opt", append
8472 2004-02-18 GNAT Script <nobody@gnat.com>
8474 * Make-lang.in: Makefile automatically updated
8476 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
8478 * Make-lang.in (stamp-sdefault): Do not depend on
8481 2004-02-12 Zack Weinberg <zack@codesourcery.com>
8483 * config-lang.in: Disable Ada by default until probe logic for
8484 a bootstrap Ada compiler can be moved to the top level configure
8487 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
8489 * decl.c (components_to_record): Don't claim that the internal fields
8490 we make to hold the variant parts are semantically addressable, because
8493 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
8494 adjust the comment describing the modular type form when we can use it.
8495 (Install_PAT): Account for the Esiz renaming.
8497 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
8498 sc_onstack context indication before raising the exception to which
8499 the signal is mapped. Allows better handling of later signals possibly
8500 triggered by the resumed user code if the exception is handled.
8502 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
8504 * 5zinit.adb: Removed, no longer used.
8506 2004-02-12 Robert Dewar <dewar@gnat.com>
8508 * ali.adb: Remove separating space between parameters on R line. Makes
8509 format consistent with format used by the binder for Set_Globals call.
8511 * atree.ads, atree.adb: Minor reformatting (new function header format)
8513 * bindgen.adb: Add Run-Time Globals documentation section containing
8514 detailed documentation of the globals passed from the binder file to
8517 * gnatls.adb: Minor reformatting
8519 * init.c (__gnat_set_globals): Add note pointing to documentation in
8522 * lib-writ.ads, lib-writ.adb: Remove separating space between
8523 parameters on R line.
8524 Makes format consistent with format used by the binder for Set_Globals
8527 * osint.ads: Add 2004 to copyright notice
8530 * snames.ads: Correct capitalization of FIFO_Within_Priorities
8531 Noticed during code reading, documentation issue only
8533 * usage.adb: Remove junk line for obsolete C switch
8534 Noticed during code reading
8536 2004-02-12 Vincent Celier <celier@gnat.com>
8538 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
8539 extend for each directory, so that multiple /** directories are
8540 extended individually.
8541 (Recursive_Process): Set the default for LANGUAGES to ada
8543 * gprcmd.adb: Define new command "ignore", to do nothing.
8544 Implement new comment "path".
8546 * Makefile.generic: Suppress output when SILENT is set
8547 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
8548 used, so that the correct compiler is invoked.
8549 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
8550 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
8552 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
8554 * Makefile.in: Clean ups and remove obsolete targets.
8556 2004-02-12 Ed Schonberg <schonberg@gnat.com>
8558 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
8559 predicate declared in exp_util.
8561 * exp_util.adb: Add comments.
8563 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
8564 visibility before compiling context of the subunit.
8566 * sem_res.adb (Check_Parameterless_Call): If the context expects a
8567 value but the name is a procedure, do not attempt to analyze as a call,
8568 in order to obtain more telling diagnostics.
8570 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
8571 'Access on parameterless function calls.
8572 (Normalize_Actuals): For a parameterless function call with missing
8573 actuals, defer diagnostic until resolution of enclosing call.
8575 * sem_util.adb (Wrong_Type): If the context type is an access to
8576 subprogram and the expression is a procedure name, suggest a missing
8579 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
8580 Nathanael Nerode <neroden@gcc.gnu.org>
8582 PR ada/6637, PR ada/5911
8583 Merge with libada-branch:
8584 * config-lang.in: Build libada only when ada is built.
8586 2004-02-09 Ed Schonberg <schonberg@gnat.com>
8588 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
8589 for a tagged type, verify that both formals have the same type.
8591 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
8592 temporary when the formal is an in-parameter and the actual a possibly
8595 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
8596 when expansion is disabled, to ensure proper name capture with
8597 overloaded literals. Condition can be of any boolean type, resolve
8600 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
8601 renaming is for a formal subprogram with a default operator name, and
8602 there is a usable operator that is visible at the point of
8605 2004-02-09 Robert Dewar <dewar@gnat.com>
8607 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
8608 rewrite to ignore errors in ali files, intended to allow tools downward
8609 compatibility with new versions of ali files.
8611 * ali.ads: Add new parameter Ignore_Errors
8613 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
8614 duplicating the error message giving the file with restrictions.
8616 * debug.adb: Add debug flag I for gnatbind
8618 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
8619 operators for the case where the operator is a defining operator.
8621 * exp_ch3.adb: Minor reformatting (new function spec format).
8623 * exp_ch4.adb: Add comment for previous change, and make minor
8624 adjustment to loop to always check for improper loop termination.
8625 Minor reformatting throughout (new function spec format).
8627 * gnatbind.adb: Implement -di debug flag for gnatbind
8629 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
8631 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
8633 * lib-load.adb: Fix bad assertion.
8634 Found by testing and code reading.
8637 * lib-load.ads: Minor reformatting.
8639 * lib-writ.adb: There is only one R line now.
8641 * lib-writ.ads: Add documentation on making downward compatible changes
8642 to ali files so old tools work with new ali files.
8643 There is only one R line now.
8644 Add documentation on format incompatibilities (with special GPS note)
8646 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
8648 * par-load.adb: Minor reformatting
8650 * sem_ch8.adb: Fix to error message from last update
8651 Minor reformatting and restructuring of code from last update
8653 * par-prag.adb, snames.adb, snames.ads, snames.h,
8654 sem_prag.adb: Implement pragma Profile.
8656 * stylesw.adb: Implement -gnatyN switch to turn off all style check
8659 * usage.adb: Add line for -gnatyN switch
8661 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
8663 2004-02-09 Albert Lee <lee@gnat.com>
8665 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
8667 2004-02-09 Ed Schonberg <schonberg@gnat.com>
8669 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
8672 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
8673 is nested in an instance that is not frozen yet, to avoid
8674 order-of-elaboration problems in gigi.
8676 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
8677 body the attribute is legal.
8679 2004-02-09 Robert Dewar <dewar@gnat.com>
8681 * s-rident.ads: Minor comment correction
8683 * targparm.adb: Remove dependence on uintp completely. There was
8684 always a bug in Make in that it called Targparm before initializing
8685 the Uint package. The old code appeared to get away with this, but
8686 the new code did not! This caused an assertion error in gnatmake.
8688 * targparm.ads: Fix bad comment, restriction pragmas with parameters
8689 are indeed fully supported.
8691 2004-02-06 Alan Modra <amodra@bigpond.net.au>
8693 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
8695 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
8697 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
8698 with targetm.calls.promote_prototypes.
8700 2004-02-04 Robert Dewar <dewar@gnat.com>
8702 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
8703 ali.ads, gprcmd.adb: Minor reformatting
8705 * bindgen.adb: Output restrictions string for new style restrictions
8708 * impunit.adb: Add s-rident.ads (System.Rident) and
8709 s-restri (System.Restrictions)
8711 * lib-writ.adb: Fix bug in writing restrictions string (last few
8714 * s-restri.ads, s-restri.adb: Change name Restrictions to
8715 Run_Time_Restrictions to avoid conflict with package name.
8716 Add circuit to read and acquire run time restrictions.
8718 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
8720 * restrict.ads, restrict.adb: Use the new restriction
8721 No_Task_Attributes_Package instead of the old No_Task_Attributes.
8723 * sem_prag.adb: No_Task_Attributes is a synonym of
8724 No_Task_Attributes_Package.
8726 * snames.ads, snames.adb: New entry for proper handling of
8729 * s-rident.ads: Adding restriction No_Task_Attributes_Package
8730 (AI-00249) that supersedes the GNAT specific restriction
8733 2004-02-04 Ed Schonberg <schonberg@gnat.com>
8736 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
8737 body, an identifier may be wrapped in an unchecked conversion.
8739 2004-02-04 Vincent Celier <celier@gnat.com>
8741 * lib-writ.ads: Comment update for the W lines
8743 * bld.adb: (Expression): An empty string list is static
8745 * fname-uf.adb: Minor comment update
8747 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
8749 * gnatbind.adb: Initialize Cumulative_Restrictions with the
8750 restrictions on the target.
8752 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
8754 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
8757 2004-02-02 Arnaud Charlet <charlet@gnat.com>
8759 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
8761 2004-02-02 Vincent Celier <celier@gnat.com>
8763 * gprcmd.adb (Check_Args): If condition is false, print the invoked
8764 comment before the usage.
8765 Gprcmd: Fail when command is not recognized.
8766 (Usage): Document command "prefix"
8768 * g-md5.adb (Digest): Process last block.
8769 (Update): Do not process last block. Store remaining characters and
8772 * g-md5.ads (Update): Document that several call to update are
8773 equivalent to one call with the concatenated string.
8774 (Context): Add fields to allow new Update behaviour.
8776 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
8778 When May_Fail is True and no existing file can be found, return No_File.
8780 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
8783 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
8784 spec file name instead on the W line.
8786 2004-02-02 Robert Dewar <dewar@gnat.com>
8788 * ali.adb: Read and acquire info from new format restrictions lines
8790 * bcheck.adb: Add circuits for checking restrictions with parameters
8792 * bindgen.adb: Output dummy restrictions data
8795 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
8796 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
8797 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
8798 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
8799 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
8801 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
8802 the warning message on access to possibly uninitialized variable S)
8803 Minor changes for new restrictions handling.
8805 * gnatbind.adb: Minor reformatting
8806 Minor changes for new restrictions handling
8807 Move circuit for -r processing here from bcheck (cleaner)
8809 * gnatcmd.adb, gnatlink.adb: Minor reformatting
8811 * lib-writ.adb: Output new format restrictions lines
8813 * lib-writ.ads: Document new R format lines for new restrictions
8816 * s-restri.ads/adb: New files
8818 * Makefile.rtl: Add entry for s-restri.ads/adb
8820 * par-ch3.adb: Fix bad error messages starting with upper case letter
8823 * restrict.adb: Major rewrite throughout for new restrictions handling
8824 Major point is to handle restrictions with parameters
8826 * restrict.ads: Major changes in interface to handle restrictions with
8827 parameters. Also generally simplifies setting of restrictions.
8829 * snames.ads/adb: New entry for proper handling of No_Requeue
8831 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
8832 restriction counting.
8833 Other minor changes for new restrictions handling
8835 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
8836 Restriction_Warnings now allows full parameter notation
8837 Major rewrite of Restrictions for new restrictions handling
8839 2004-02-02 Javier Miranda <miranda@gnat.com>
8841 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
8842 syntax rule for object renaming declarations.
8843 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
8844 component definitions.
8846 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
8848 (Array_Type_Declaration): Give support to access components. In addition
8849 it was also modified to reflect the name of the object in anonymous
8850 array types. The old code did not take into account that it is possible
8851 to have an unconstrained anonymous array with an initial value.
8852 (Check_Or_Process_Discriminants): Allow access discriminant in
8854 (Process_Discriminants): Allow access discriminant in non-limited types
8855 Initialize the new Access_Definition field in N_Object_Renaming_Decl
8856 node. Change Ada0Y to Ada 0Y in comments
8858 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
8860 Change Ada0Y to Ada 0Y in comments
8862 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
8863 renamings Change Ada0Y to Ada 0Y in comments
8865 * sem_type.adb (Find_Unique_Type): Give support to the equality
8866 operators for universal access types
8867 Change Ada0Y to Ada 0Y in comments
8869 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
8871 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
8873 (N_Object_Renaming_Declaration): Addition of Access_Definition field
8874 Change Ada0Y to Ada 0Y in comments
8876 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
8877 component definition and object renaming nodes
8878 Change Ada0Y to Ada 0Y in comments
8880 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
8882 * restrict.adb: Use the new restriction identifier
8883 No_Requeue_Statements instead of the old No_Requeue for defining the
8886 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
8887 No_Requeue_Statements.
8889 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
8890 that supersedes the GNAT specific restriction No_Requeue. The later is
8891 kept for backward compatibility.
8893 2004-02-02 Ed Schonberg <schonberg@gnat.com>
8895 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
8896 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
8897 pragma and fix incorrect ones.
8899 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
8900 warning if the pragma is redundant.
8902 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
8904 * 5staprop.adb: Add missing 'constant' keywords.
8906 * Makefile.in: use consistent value for SYMLIB on
8907 platforms where libaddr2line is supported.
8909 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8911 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
8914 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
8916 * init.c (__gnat_install_handler): Setup an alternate stack for signal
8917 handlers in the environment thread. This allows proper propagation of
8918 an exception on stack overflows in this thread even when the builtin
8919 ABI stack-checking scheme is used without support for a stack reserve
8922 * utils.c (create_field_decl): Augment the head comment about bitfield
8923 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
8924 here, because the former is not accurate enough at this point.
8925 Let finish_record_type decide instead.
8926 Don't make a bitfield if the field is to be addressable.
8927 Always set a size for the field if the record is packed, to ensure the
8928 checks for bitfield creation are triggered.
8929 (finish_record_type): During last pass over the fields, clear
8930 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
8931 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
8932 from DECL_BIT_FIELD.
8934 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
8936 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
8937 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
8938 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
8940 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8942 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
8944 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
8945 (ZCX_By_Default): Likewise.
8946 (Front_End_ZCX_Support): Likewise.
8948 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
8949 (Initialize_Lock): Mark Level unreferenced.
8950 (Sleep): Mark Reason unreferenced.
8951 (Timed_Sleep): Likewise.
8953 (Exit_Task): Use Result.
8954 (Check_No_Locks): Mark Self_ID unreferenced.
8956 * 5gtasinf.adb (New_Sproc): Make Attr constant.
8957 (Bound_Thread_Attributes): Make Sproc constant.
8958 (New_Bound_Thread_Attributes): Likewise.
8960 2004-01-26 Ed Schonberg <schonberg@gnat.com>
8962 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
8963 one-dimensional array an slice assignments, when component type is
8966 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
8967 component type is controlled, and control_actions are in effect, use
8968 TSS procedure rather than generating inline code.
8970 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
8971 arrays with controlled components.
8973 2004-01-26 Vincent Celier <celier@gnat.com>
8975 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
8976 command line for the non VMS case.
8978 * gnatlink.adb (Process_Binder_File): When building object file, if
8979 GNU linker is used, put all object paths between quotes, to prevent ld
8980 error when there are unusual characters (such as '!') in the paths.
8982 * Makefile.generic: When there are sources in Ada and the main is in
8983 C/C++, invoke gnatmake with -B, instead of -z.
8985 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
8986 from VMS_Conversion.
8987 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
8988 specification of argument file on the command line.
8990 2004-01-26 Bernard Banner <banner@gnat.com>
8992 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
8994 2004-01-26 Ed Schonberg <schonberg@gnat.com>
8996 * snames.adb: Update copyright notice.
8997 Add info on slice assignment for controlled arrays.
8999 2004-01-23 Robert Dewar <dewar@gnat.com>
9001 * exp_aggr.adb: Minor reformatting
9003 * exp_ch9.adb: Minor code clean up
9005 Fix bad character in comment
9008 * targparm.adb (Get_Target_Parameters): Give clean abort error on
9009 unexpected end of file, along with more detailed message.
9011 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9013 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
9016 * decl.c (copy_alias_set): New function.
9017 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
9019 2004-01-23 Doug Rupp <rupp@gnat.com>
9021 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
9022 lib$${file} in case subsequent character is not a separator.
9024 2004-01-23 Vincent Celier <celier@gnat.com>
9026 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
9027 when the GCC version is at least 3.
9029 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
9030 Remove all "Opt.", to prepare for opt split
9032 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
9033 Extends_All. Set to True when the project parsed is an extending all
9034 project. Fails for importing an extending all project only when the
9035 imported project is an extending all project.
9036 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
9037 depending on the value of Extends_All returned.
9039 * prj-proc.adb (Process): Check that no project shares its object
9040 directory with a project that extends it, directly or indirectly,
9041 including a virtual project.
9042 Check that no project extended by another project shares its object
9043 directory with another also extended project.
9045 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
9046 Kind = N_With_Clause
9048 * prj-tree.ads: Minor reformatting
9049 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
9051 2004-01-23 Ed Schonberg <schonberg@gnat.com>
9053 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
9054 applies to a type with an incomplete view, use full view in Name of
9055 clause, for consistency with uses of Get_Attribute_Definition_Clause.
9057 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
9059 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
9060 SCHED_RR, since other values are not supported by this policy.
9061 (Initialize): Move initialization of mutex attribute to package
9062 elaboration, to prevent early access to this variable.
9064 * Makefile.in: Remove mention of Makefile.adalib, unused.
9066 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
9067 1ssecsta.ads: Removed, unused.
9069 2004-01-21 Javier Miranda <miranda@gnat.com>
9071 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
9072 entity if already built in the current scope.
9074 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
9075 reminder in internal scopes. Required for nested limited aggregates.
9077 2004-01-21 Doug Rupp <rupp@gnat.com>
9079 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
9080 VMS. Replace all occurences of libgnat- and libgnarl- with
9081 libgnat$(hyphen) and libgnarl$(hyphen).
9082 Fixed shared library build problem on VMS.
9084 2004-01-21 Robert Dewar <dewar@gnat.com>
9086 * mlib-prj.adb: Minor reformatting
9088 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
9090 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
9091 'constant' keywords for declaration of pointers that are not modified.
9093 * exp_pakd.adb: Fix English in comment.
9095 2004-01-21 Ed Schonberg <schonberg@gnat.com>
9098 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
9099 copy all attributes of the parent, including the foreign language
9102 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
9105 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
9106 for 'delay until' statement.
9108 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
9110 * Make-lang.in: Replace $(docdir) with doc.
9111 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
9112 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
9113 to use consistent MAKEINFO rule.
9114 (ada.man, ada.srcman): Dummy entry.
9115 (ADA_INFOFILES): Define.
9116 (ada.info, ada.srcinfo): New rules.
9118 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
9120 * utils.c: Update copyright notice, missed in previous change.
9122 2004-01-19 Vincent Celier <celier@gnat.com>
9124 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
9125 args if Bind is True. Set First_ALI, if not already done.
9126 (Build_Library): For Stand Alone Libraries, extract from one ALI file
9127 an eventual --RTS switch, for gnatbind, and all backend switches +
9130 2004-01-19 Robert Dewar <dewar@gnat.com>
9132 * sem_attr.adb, memtrack.adb: Minor reformatting
9134 2004-01-19 Ed Schonberg <schonberg@gnat.com>
9136 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
9137 that rename enumeration literals. This is properly done in sem_eval.
9139 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
9140 to functions that rename enumeration literals.
9142 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
9143 functions that rename enumeration literals.
9145 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
9147 * Make-lang.in (utils.o): Depend on target.h.
9148 * utils.c: Include target.h.
9149 (process_attributes): Use targetm.have_named_sections instead
9150 of ASM_OUTPUT_SECTION_NAME.
9152 2004-01-16 Andreas Jaeger <aj@suse.de>
9154 * Makefile.in: Add $(DESTDIR).
9156 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
9158 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
9159 also when not defining if a Size clause applies. That information is
9162 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
9164 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
9165 symbolic links for the shared gnat run time when needed.
9167 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
9169 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
9170 for writing, and terminate with an error message if not.
9172 2004-01-15 Ed Schonberg <schonberg@gnat.com>
9174 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
9175 warning on an access to subprogram in an instance, when the target
9176 type is declared in the same generic unit.
9177 (Eval_Attribute): If 'access is known to fail accessibility check,
9178 rewrite as a raise statement.
9180 2004-01-15 GNAT Script <nobody@gnat.com>
9182 * Make-lang.in: Makefile automatically updated
9184 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
9186 * Make-lang.in (ada.srcextra): Dummy entry.
9188 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
9190 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
9192 2004-01-13 Ed Schonberg <schonberg@gnat.com>
9194 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
9195 components that are initialized with aggregates.
9197 2004-01-13 Vincent Celier <celier@gnat.com>
9199 * gnatlink.adb (Process_Binder_File): To find directory of shared
9200 libgcc, if "gcc-lib" is not a subdirectory, look for the last
9201 subdirectory "lib" in the path of the shared libgnat or libgnarl.
9203 * make.adb (Gnatmake): If GCC version is at least 3, link with
9204 -shared-libgcc, when there is at least one shared library project.
9206 * opt.ads (GCC_Version): New integer constant.
9208 * adaint.c (get_gcc_version): New function.
9210 2004-01-13 Robert Dewar <dewar@gnat.com>
9212 * sem_dist.adb, sem_res.adb, sem_util.adb,
9213 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
9214 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
9216 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
9218 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
9219 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
9222 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
9224 * misc.c: Remove trailing spaces.
9225 Update copyright notice missed in previous change.
9228 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
9231 * Makefile.generic: Update copyright.
9234 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
9235 of prefix/share/make.
9237 * Makefile.prolog: Update copyright.
9240 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
9242 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
9243 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
9244 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
9247 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
9250 2004-01-12 Javier Miranda <miranda@gnat.com>
9252 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
9253 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
9254 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
9255 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
9256 Component_Definition node.
9258 2004-01-12 Ed Falis <falis@gnat.com>
9260 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
9262 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
9264 * link.c: Change default libgnat kind to STATIC for FreeBSD.
9266 2004-01-12 Bernard Banner <banner@gnat.com>
9268 * Makefile.in: map 86numaux to a-numaux for x86_64
9270 2004-01-12 Ed Schonberg <schonberg@gnat.com>
9272 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
9273 generated to rename a generic actual, go to the actual itself, the
9274 subtype is not a user-visible entity.
9276 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
9277 part is a private subtype, reset the visibility of its full view, if
9278 any, to be consistent.
9281 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
9282 to use a generic package G as a formal package for another generic
9285 2004-01-12 Robert Dewar <dewar@gnat.com>
9287 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
9289 * usage.adb: Remove mention of obsolete -gnatwb switch
9290 Noticed during code reading
9292 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
9294 * 1ssecsta.adb: Minor changes for -gnatwa warnings
9296 2004-01-12 GNAT Script <nobody@gnat.com>
9298 * Make-lang.in: Makefile automatically updated
9300 2004-01-09 Mark Mitchell <mark@codesourcery.com>
9302 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
9304 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9306 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
9308 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
9310 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
9311 Update comment and copyright date.
9312 * stamp-xgnatug: Delete.
9314 2004-01-05 Robert Dewar <dewar@gnat.com>
9316 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
9317 be modified by the binder generated main program if the -D switch is
9320 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
9321 imported functions (since now we expect this to be done for imported
9324 * 5vtaprop.adb: Add several ??? for sections requiring more comments
9325 Minor reformatting throughout
9327 * 5zinit.adb: Minor reformatting
9328 Add 2004 to copyright date
9329 Minor changes to avoid -gnatwa warnings
9330 Correct some instances of using OR instead of OR ELSE (noted while
9333 * sprint.adb: Minor updates to avoid -gnatwa warnings
9335 * s-secsta.ads, s-secsta.adb:
9336 (SS_Get_Max): New function to obtain high water mark for ss stack
9337 Default_Secondary_Stack is not a constant since it may be modified by
9338 the binder generated main program if the -D switch is used.
9340 * switch-b.adb: New -Dnnn switch for binder
9343 Make -gnatg imply all warnings currently in -gnatwa
9345 * vms_conv.adb: Minor reformatting
9346 Add 2004 to copyright notice
9347 Add 2004 to printed copyright notice
9349 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
9350 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
9351 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
9352 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
9353 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
9354 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
9355 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
9356 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
9357 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
9358 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
9359 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
9360 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
9361 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
9362 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
9363 checks.adb, clean.adb, cstand.adb, einfo.ads,
9364 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
9365 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
9366 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
9367 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
9368 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
9369 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
9370 Minor reformatting and code clean ups.
9371 Minor changes to prevent -gnatwa warnings
9373 * ali.adb: Minor reformatting and cleanup of code
9374 Acquire new SS indication of secondary stack use from ali files
9376 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
9377 (since now we expect this to be done for imported functions)
9379 * bindgen.adb: Generate call to modify default secondary stack size if
9382 * bindusg.adb: Add line for new -D switch
9384 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
9385 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
9386 Add circuitry for both records and arrays to avoid gigi
9387 processing if the type involved has non-bit-aligned components
9389 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
9390 N_String_Literal node always references an E_String_Literal_Subtype
9391 entity. This may not be true in the future.
9392 (Possible_Bit_Aligned_Component): Move processing of
9393 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
9395 * exp_ch6.adb (Expand_Thread_Body): Pick up
9396 Default_Secondary_Stack_Size as variable so that we get value modified
9397 by possible -Dnnn binder parameter.
9399 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
9400 (Type_May_Have_Bit_Aligned_Components): New function.
9402 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
9403 (Type_May_Have_Bit_Aligned_Components): New function.
9405 * fe.h: (Set_Identifier_Casing): Fix prototype.
9406 Add declaration for Sem_Elim.Eliminate_Error_Msg.
9409 * freeze.adb (Freeze_Entity): Add RM reference to error message about
9410 importing constant atomic/volatile objects.
9411 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
9412 unless explicit Pure_Function pragma given, to avoid insidious bug of
9413 call to non-pure imported function getting eliminated.
9415 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
9416 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
9417 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
9418 Add 2004 to printed copyright notice
9420 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
9423 * Makefile.rtl: Add entry for g-sestin.o
9424 g-sestin.ads: New file.
9426 * mdll.adb: Minor changes to avoid -gnatwa warnings
9428 * mlib-tgt.adb: Minor reformatting
9430 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
9431 New switch Sec_Stack_Used (GNAT, GNATBIND)
9432 Make Default_Secondary_Stack_Size a variable instead of a constant,
9433 so that it can be modified by the new -Dnnn bind switch.
9435 * rtsfind.adb (Load_Fail): Give full error message in configurable
9436 run-time mode if all_errors mode is set. This was not done in the case
9437 of a file not found, which was an oversight.
9438 Note if secondary stack unit is used by compiler.
9440 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
9441 ineffective elaborate all pragmas on non-visible packages (this
9442 happened when a renamed subprogram was called). Now the elaborate all
9443 always goes on the package containing the renaming rather than the one
9444 containing the renamed subprogram.
9446 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
9447 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
9449 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
9450 has an Etype that references an E_String_Literal.
9451 (Eval_String_Literal): Avoid assumption that N_String_Literal node
9452 always references an E_String_Literal_Subtype entity. This may not
9453 be true in the future.
9455 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
9458 * sem_res.adb (Resolve): Specialize msg for function name used in proc
9461 2004-01-05 Ed Falis <falis@gnat.com>
9463 * g-debuti.adb: Replaced direct boolean operator with short-circuit
9466 2004-01-05 Vincent Celier <celier@gnat.com>
9468 * bld.adb: Minor comment updates
9469 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
9472 * make.adb (Gnatmake): Special process for files to compile/check when
9473 -B is specified. Fail when there are only foreign mains in attribute
9474 Main of the project file and -B is not specified. Do not skip bind/link
9475 steps when -B is specified.
9477 * makeusg.adb: Document new switch -B
9479 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
9481 * switch-m.adb: (Scan_Make_Switches): Process -B switch
9483 * vms_data.ads: Add new GNAT PRETTY qualifier
9484 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
9486 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9488 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
9491 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
9492 Set_Identifier_Casing.
9494 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
9495 has size that overflows.
9497 2004-01-05 Gary Dismukes <dismukes@gnat.com>
9499 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
9500 -gnatwa warning on static condition.
9502 2004-01-05 Doug Rupp <rupp@gnat.com>
9504 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
9506 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
9508 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
9509 all attributes, including read-only attribute.
9511 2004-01-05 Pascal Obry <obry@gnat.com>
9513 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
9514 library naming scheme.
9516 * mlib-prj.adb (Build_Library): Generate different names for the static
9517 or dynamic version of the GNAT runtime. This is needed to support the
9518 new shared library naming scheme.
9519 (Process_Binder_File): Add detection of shared library in binder file
9520 based on the new naming scheme.
9522 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
9523 scheme for the shared runtime libraries.
9526 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
9528 (install-gnatlib): Do not create symlinks for shared libraries.
9529 (gnatlib-shared-default): Idem.
9530 (gnatlib-shared-dual-win32): New target. Not used for now as the
9531 auto-import feature does not support arrays/records.
9532 (gnatlib-shared-win32): Do not create copy for the shared libraries.
9533 (gnatlib-shared-vms): Fix shared runtime libraries names.
9535 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
9536 dependent runtime shared library name.
9538 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
9540 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
9543 2004-01-05 Ed Schonberg <schonberg@gnat.com>
9545 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
9546 protected objects when allocator has a subtype indication, not a
9547 qualified expression. Note that qualified expressions may have to be
9548 checked when limited aggregates are implemented.
9550 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
9552 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
9553 subprogram is imported, remove warning.
9555 2004-01-05 Geert Bosch <bosch@gnat.com>
9557 * s-poosiz.adb: Update copyright notice.
9558 (Allocate): Use Task_Lock to protect against concurrent access.
9559 (Deallocate): Likewise.
9561 2004-01-05 Joel Brobecker <brobecker@gnat.com>
9563 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
9566 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
9568 * gnat_ug.texi: Force a CVS commit by updating copyright.
9569 * gnat_ug_vxw.texi: Regenerate.
9570 * gnat_ug_wnt.texi: Regenerate.
9571 * gnat_ug_vms.texi: Regenerate.
9572 * gnat_ug_unx.texi: Regenerate.
9574 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
9576 * trans.c: Remove uses of "register" specifier in
9577 declarations of local variables.
9579 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
9581 * stamp-xgnatug: New stamp file.
9582 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
9583 (ada/doctools/xgnatug): Add $(build_exeext).
9584 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
9585 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
9587 2003-12-17 Ed Falis <falis@gnat.com>
9589 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
9592 * a-exextr.adb: Add context clause for
9593 Ada.Exceptions.Last_Chance_Handler.
9595 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
9597 * cstand.adb (Create_Standard): Change the way how the declaration of
9598 the Duration type is created (making it the same way as it is for all
9599 the other standard types).
9601 2003-12-17 Robert Dewar <dewar@gnat.com>
9603 * s-crtl.ads: Fix header format
9604 Change Pure to Preelaborate
9606 2003-12-17 Ed Schonberg <schonberg@gnat.com>
9608 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
9609 the expression type only if it is declared in the current unit.
9611 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
9612 are universal and already analyzed, as can occur in constrained
9613 subcomponents that depend on discriminants, when one constraint is a
9616 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
9617 type Any_Fixed is legal as the argument of a conversion, if only one
9618 fixed-point type is in context.
9620 2003-12-17 GNAT Script <nobody@gnat.com>
9622 * Make-lang.in: Makefile automatically updated
9624 2003-12-15 Robert Dewar <dewar@gnat.com>
9626 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
9629 2003-12-15 Vincent Celier <celier@gnat.com>
9631 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
9632 (Gnatchop): Do not set failure status when reporting the number of
9635 2003-12-15 Doug Rupp <rupp@gnat.com>
9637 * s-ctrl.ads: New file.
9639 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
9641 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
9642 (GNATBIND_OBJS): Add ada/s-crtl.o.
9644 * Makefile.in [VMS]: Clean up ifeq rules.
9646 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
9647 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
9648 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
9649 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
9650 s-tasdeb.adb: Update copyright.
9652 Make minor modifications to use System.CRTL declared functions instead
9653 of importing locally.
9655 2003-12-15 GNAT Script <nobody@gnat.com>
9657 * Make-lang.in: Makefile automatically updated
9659 2003-12-11 Ed Falis <falis@gnat.com>
9661 * 5zinit.adb: Clean up.
9663 * 5zintman.adb (Notify_Exception): replaced case statement with a call
9664 to __gnat_map_signal, imported from init.c to support
9665 signal -> exception mappings that depend on the vxWorks version.
9668 Created and exported __gnat_map_signal to support signal -> exception
9669 mapping that is dependent on the VxWorks version.
9670 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
9672 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
9674 * 5wosinte.ads: Link with -mthreads switch.
9676 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
9678 * init.c (__gnat_install_handler [NetBSD]): Set
9679 __gnat_handler_installed, as done on all other platforms.
9680 Remove duplicated code.
9682 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
9684 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
9686 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
9688 * sinfo.ads: Fix inconsistent example code in comment.
9690 2003-12-11 Robert Dewar <dewar@gnat.com>
9692 * a-tiinau.adb: Add a couple of comments
9694 * sem_ch3.adb: Minor reformatting
9697 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
9698 Minor reformatting throughout
9700 2003-12-11 Ed Schonberg <schonberg@gnat.com>
9702 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
9703 bounds of a loop, create a separate block in order to generate proper
9704 cleanup actions to prevent memory leaks.
9706 * sem_res.adb (Resolve_Call): After a call to
9707 Establish_Transient_Scope, the call may be rewritten and relocated, in
9708 which case no further processing is needed.
9710 * sem_util.adb: (Wrong_Type): Refine previous fix.
9711 Fixes ACATS regressions.
9715 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
9718 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
9720 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
9721 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
9724 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
9727 2003-12-08 Robert Dewar <dewar@gnat.com>
9729 * 7sintman.adb: Minor reformatting
9731 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
9732 standard linker options to get standard libraries linked. We now plan
9733 to provide dummy versions of these libraries to match the appropriate
9734 configurable run-time (e.g. if a library is not needed at all, provide
9735 a dummy empty library).
9737 * targparm.ads: Configurable_Run_Time mode no longer affects linker
9738 options (-L parameters and standard libraries). What we plan to do is
9739 to provide dummy libraries where the libraries are not required.
9741 * gnatbind.adb: Minor comment improvement
9743 2003-12-08 Javier Miranda <miranda@gnat.com>
9745 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
9746 aggregate in the parent. Otherwise constants with limited aggregates
9747 are not supported. Add new formal to pass the component type (Ctype).
9748 It is required to call the corresponding IP subprogram in case of
9749 default initialized components.
9750 (Gen_Assign): In case of default-initialized component, generate a
9751 call to the IP subprogram associated with the component.
9752 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
9753 of aggregate with default initialized components.
9754 (Has_Default_Init_Comps): Improve implementation to recursively check
9755 all the present expressions.
9757 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
9758 to indicate that the initialization call corresponds to a
9759 default-initialized component of an aggregate.
9760 In case of default initialized aggregate with tasks this parameter is
9761 used to generate a null string (this is just a workaround that must be
9762 improved later). In case of discriminants, this parameter is used to
9763 generate a selected component node that gives access to the discriminant
9766 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
9767 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
9768 allocated aggregates with default-initialized components.
9770 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
9771 the box notation is used in positional aggregates.
9773 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
9775 * lib.ads: Fix typo in comment
9777 2003-12-08 Vincent Celier <celier@gnat.com>
9779 * prj.adb (Project_Empty): New component Unkept_Comments
9780 (Scan): Remove procedure; moved to Prj.Err.
9782 * prj.ads (Project_Data): New Boolean component Unkept_Comments
9783 (Scan): Remove procedure; moved to Prj.Err.
9785 * prj-dect.adb: Manage comments for the different declarations.
9787 * prj-part.adb (With_Record): New component Node
9788 (Parse): New Boolean parameter Store_Comments, defaulted to False.
9789 Set the scanner to return ends of line and comments as tokens, if
9790 Store_Comments is True.
9791 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
9792 comments are associated with these nodes. Store the node IDs in the
9794 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
9796 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
9797 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
9798 current project. Call Tree.Restore afterwards. Set the various nodes
9799 for comment storage (Next_End, End_Of_Line, Previous_Line,
9802 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
9805 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
9806 to False. When Truncated is True, truncate the string, never go to the
9808 (Write_End_Of_Line_Comment): New procedure
9809 (Print): Process comments for nodes N_With_Clause,
9810 N_Package_Declaration, N_String_Type_Declaration,
9811 N_Attribute_Declaration, N_Typed_Variable_Declaration,
9812 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
9813 Process nodes N_Comment.
9815 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
9816 without comments and there are some comments, set the flag
9817 Unkept_Comments to True.
9818 (Scan): If there are comments, set the flag Unkept_Comments to True and
9820 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
9821 (Next_End_Nodes: New table
9822 (Comment_Zones_Of): New function
9823 (Scan): New procedure; moved from Prj. Accumulate comments in the
9824 Comments table and set end of line comments, comments after, after end
9826 (Add_Comments): New procedure
9827 (Save, Restore, Seset_State): New procedures
9828 (There_Are_Unkept_Comments): New function
9829 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
9830 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
9832 (First_Comment_After, First_Comment_After_End): New functions
9833 (First_Comment_Before, First_Comment_Before_End): New functions
9834 (Next_Comment): New function
9835 (End_Of_Line_Comment, Follows_Empty_Line,
9836 Is_Followed_By_Empty_Line): New functions
9837 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
9838 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
9839 (Set_Next_Comment): New procedure
9840 (Default_Project_Node): Associate comment before if the node can store
9843 * scans.ads (Token_Type): New enumeration value Tok_Comment
9844 (Comment_Id): New global variable
9846 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
9848 (Scan): Store position of start of comment. If comments are tokens, set
9849 Comment_Id and set Token to Tok_Comment when scanning a comment.
9850 (Set_Comment_As_Token): New procedure
9852 * sinput-p.adb: Update Copyright notice
9853 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
9854 that no longer exists.
9856 2003-12-08 Javier Miranda <miranda@gnat.com>
9858 * sem_aggr.adb: Add dependence on Exp_Tss package
9859 Correct typo in comment
9860 (Resolve_Aggregate): In case of array aggregates set the estimated
9861 type of the aggregate before calling resolve. This is needed to know
9862 the name of the corresponding IP in case of limited array aggregates.
9863 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
9864 in case of default initialized array components.
9866 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
9867 types. Required to give support to limited aggregates in generic
9870 2003-12-08 Ed Schonberg <schonberg@gnat.com>
9872 * sem_ch3.adb (Check_Initialization): For legality purposes, an
9873 inlined body functions like an instantiation.
9874 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
9875 until bounds are analyzed, to diagnose premature use of type.
9877 * sem_util.adb (Wrong_Type): Improve error message when the type of
9878 the expression is used prematurely.
9880 2003-12-08 GNAT Script <nobody@gnat.com>
9882 * Make-lang.in: Makefile automatically updated
9884 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
9886 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
9887 they are automatically generated by Make-lang.in and cause nothing but
9888 maintenance troubles.
9890 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
9892 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
9893 version of this unit).
9895 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
9897 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
9898 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
9899 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
9900 the body of System.Interrupt_Management common to several targets.
9901 Update copyright notice when appropriate.
9903 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
9906 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
9907 to ensure that the kernel fills in the interrupted context structure
9908 before calling a signal handler, which is necessary to be able to
9909 unwind past it. Update the copyright notice.
9911 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
9913 * a-elchha.ads: New file.
9915 * a-elchha.adb: New default last chance handler. Contents taken from
9916 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
9918 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
9919 is moved to a-elchha.adb to provide a target-independent default last
9922 * Makefile.rtl: Add a-elchha.o
9924 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
9926 2003-12-05 Ed Schonberg <schonberg@gnat.com>
9928 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
9929 declared in an instance, do not inline the call if the instance is not
9930 frozen yet, to prevent order of elaboration problems.
9932 * sem_prag.adb: Add comments for previous fix.
9934 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
9936 * g-table.adb: Use the right variable in Set_Item.
9937 Update copyright notice.
9939 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
9941 * Makefile.in: Remove unused rules.
9943 2003-12-05 Vincent Celier <celier@gnat.com>
9945 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
9946 -nostdlib. Not needed here after all.
9948 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
9952 * adaint.h, adaint.c, g-os_lib.ads:
9953 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
9954 on some platforms (including FreeBSD), it is a 64 bit value.
9955 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
9957 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
9959 * gnatvsn.ads (Library_Version): Now contain only the relevant
9961 (Verbose_Library_Version): New constant.
9963 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
9964 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
9965 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
9967 * gnatlbr.adb: Clean up: replace Library_Version by
9968 Verbose_Library_Version.
9970 * make.adb, lib-writ.adb, exp_attr.adb:
9971 Clean up: replace Library_Version by Verbose_Library_Version.
9973 * 5lintman.adb: Removed.
9976 Update and simplify computation of LIBRARY_VERSION.
9977 Fix computation of GSMATCH_VERSION.
9978 5lintman.adb is no longer used: replaced by 7sintman.adb.
9980 2003-12-03 Robert Dewar <dewar@gnat.com>
9983 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
9984 name. Modified to consider small non-bit-packed arrays as troublesome
9985 and in need of component-by-component assigment expansion.
9987 2003-12-03 Vincent Celier <celier@gnat.com>
9989 * lang-specs.h: Process nostdlib as nostdinc
9991 * back_end.adb: Update Copyright notice
9992 (Scan_Compiler_Arguments): Process -nostdlib directly.
9994 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
9997 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
9998 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
9999 included in HIE_NONE_TARGET_PAIRS.
10001 2003-12-03 Ed Schonberg <schonberg@gnat.com>
10004 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
10005 is legal in an instance, because legality is cheched in the template.
10008 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
10009 appplied to an unchecked conversion of a formal parameter.
10012 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
10015 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
10017 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
10018 routines. The second one is new functionality to deal with backtracing
10019 through signal handlers.
10020 (unwind): Split into the two separate subroutines above.
10021 Update the documentation, and deal properly with sizeof (REG) different
10022 from sizeof (void*).
10024 2003-12-01 Nicolas Setton <setton@act-europe.fr>
10026 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
10027 so that the debugger can reliably access the value of the parameter,
10028 and therefore is able to display the exception name when an exception
10029 breakpoint is reached.
10031 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
10033 * fmap.adb: Fix typo in warning message.
10035 * g-socket.ads, g-socket.adb: Make Free a visible instance of
10036 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
10038 2003-12-01 Vincent Celier <celier@gnat.com>
10040 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
10042 (Build_Library): Get the switches only if Default_Switches is declared
10045 2003-12-01 Ed Schonberg <schonberg@gnat.com>
10047 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
10048 actuals that are indexed components, reanalyze actual to ensure that
10049 packed array references are properly expanded.
10051 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
10052 attempted assignment to a discriminant.
10054 2003-12-01 Robert Dewar <dewar@gnat.com>
10056 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
10059 * switch-c.adb: Minor reformatting of comments
10061 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
10063 * Makefile.in: Clean ups.
10065 2003-12-01 GNAT Script <nobody@gnat.com>
10067 * Make-lang.in: Makefile automatically updated
10069 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
10071 * 5wsystem.ads: Disable zero cost exception, not ready yet.
10073 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
10075 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
10076 to force serialization.
10078 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
10080 * g-socket.ads, g-socket.adb:
10081 Clarify documentation of function Stream. Introduce a Free procedure
10082 to release the returned Stream once it becomes unused.
10084 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
10086 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
10088 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
10089 since NT 4 cannot handle timeout values that are too large,
10090 e.g. DWORD'Last - 1.
10092 2003-11-26 Ed Schonberg <schonberg@gnat.com>
10095 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
10096 in procedure calls and whose expansion must be deferred.
10098 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
10102 (Build_Derived_Array_Type): Create operator for unconstrained type
10103 if ancestor is unconstrained.
10105 2003-11-26 Vincent Celier <celier@gnat.com>
10107 * make.adb (Project_Object_Directory): New global variable
10108 (Change_To_Object_Directory): New procedure
10109 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
10110 of Change_Dir directly. Do not change working directory to object
10111 directory of main project after each compilation.
10112 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
10114 Change to object directory of main project before binding step.
10115 (Initialize): Initialize Project_Object_Directory to No_Project
10118 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
10119 binding a Stand-Alone Library.
10121 * output.adb: Update Copyright notice
10122 (Write_Char): Output buffer when full
10124 2003-11-26 Robert Dewar <dewar@gnat.com>
10126 * sem_ch13.adb: (Check_Size): Reset size if size is too small
10129 (Check_Size): Fix documentation to include bit-packed array case
10131 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
10133 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
10135 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
10137 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
10140 * utils.c (init_gigi_decls): Change name of built-in setjmp to
10141 __builtin_setjmp, since this is apparently needed by recent
10144 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10146 * adadecode.c: Only include ctype.h if not IN_GCC.
10147 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
10149 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
10152 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
10153 signals and interrupts.
10155 * 5zintman.ads: New File.
10157 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
10158 add exception signals to the set of unmasked signals.
10161 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
10162 between signals and interrupts.
10163 Add to Unblocked_Signal_Mask the set of signals that are in
10167 Adding a check to see whether the Interrupt_ID we want to unmask is in
10168 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
10169 reason is that the index type of the Keep_Unmasked array is not always
10170 Interrupt_ID; it may be a subtype of Interrupt_ID.
10172 2003-11-24 Gary Dismukes <dismukes@gnat.com>
10175 (Remove_Side_Effects): Condition constantness of object created for a
10176 an unchecked type conversion on the constantness of the expression
10177 to ensure the correct value for 'Constrained when passing components
10178 of view-converted class-wide objects.
10180 2003-11-24 Robert Dewar <dewar@gnat.com>
10182 * par-load.adb (Load): Improve handling of misspelled and missing units
10183 Removes several cases of compilation abandoned messages
10185 * lib.adb: (Remove_Unit): New procedure
10187 * lib.ads: (Remove_Unit): New procedure
10189 * lib-load.adb: Minor reformatting
10191 2003-11-24 Vincent Celier <celier@gnat.com>
10194 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
10195 (Marking_Label): Label to mark processed source files. Incremented for
10197 (Gnatmake): Increase Marking_Labet for each executable
10198 (Is_Marked): Compare against marking label
10199 (Mark): Mark with marking label
10201 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
10204 Move the declaration of the TSD for System.Threads to System.Soft_Links.
10207 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
10208 (rts-cert): build a single relocatable object for the run-time lib.
10211 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
10214 Use gnatls rather than gcc to obtain the location of GNAT RTL for
10217 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
10219 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
10220 can not use it as before (that is, as a variable) when dumping it into
10221 the tree file. Add a local variable to store the result of this
10222 function and to be used as the string to be written into the tree.
10224 * scn.adb (Initialize_Scanner): Add comments explaining the recent
10227 * sinput.adb (Source_First, Source_Last): In case of
10228 Internal_Source_File, replace returning attributes of
10229 Internal_Source_Ptr (which is wrong) with returning attributes of
10232 2003-11-24 Ed Schonberg <schonberg@gnat.com>
10235 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
10236 used for implicit concatenation operators.
10240 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
10241 task bodies that are in the scope of a Suppress pragma.
10242 (Check_A Call): Use the flag to prevent spurious elaboration checks.
10244 * sinfo.ads, sinfo.adb:
10245 New flag No_Elaboration_Check on function/procedure calls, to properly
10246 suppress checks on calls in task bodies that are within a local suppress
10250 (Expand_Concatenate_Other): Use the proper integer type for the
10251 expression for the upper bound, to avoid universal_integer computations
10254 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
10256 * .cvsignore: Delete.
10258 2003-11-21 Andreas Schwab <schwab@suse.de>
10260 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
10262 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
10264 * 5wsystem.ads: Enable zero cost exception.
10266 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
10268 * 5ztiitho.adb: Remove an unreferenced variable.
10270 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
10272 * adaint.c: For FreeBSD, use mkstemp.
10274 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
10276 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
10278 2003-11-21 Robert Dewar <dewar@gnat.com>
10280 * bld.adb: Remove useless USE of gnatvsn
10282 * gnatchop.adb: Minor reformatting
10283 Clean up version handling to be more consistent
10285 * gnatxref.adb: Minor reformatting
10287 * gprcmd.adb: Minor reformatting
10288 Fix output of copyright to be more consistent with other tools
10290 2003-11-21 Vincent Celier <celier@gnat.com>
10292 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
10294 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
10296 * atree.adb (Initialize): Add initializations for global variables
10297 used in New_Copy_Tree.
10299 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
10300 Internal_Source_File as the actual).
10301 Put the set of statements creating Any_Character before the set of
10302 statements creating Any_Array to have Any_Character fully initialized
10303 when it is used in creating Any_Array.
10305 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
10306 not call Scan in case if the actual is Internal_Source_File
10307 Add 2003 to copyright note.
10309 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
10310 processing Internal_Source_File.
10312 * types.ads: Add the constant Internal_Source_File representing the
10313 source buffer for artificial source-code-like strings created within
10314 the compiler (the definition of Source_File_Index is changed).
10316 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
10318 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
10319 56system.ads: New file, FreeBSD version.
10321 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
10323 * Make-lang.in (ada.extraclean): Delete.
10325 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
10327 * gnatmem.adb: Clean up verbose output.
10329 * gprcmd.adb: Change copyright to FSF.
10331 2003-11-19 Vincent Celier <celier@gnat.com>
10333 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
10334 and Version (ignored).
10336 * symbols.ads: (Policy): New type
10337 (Initialize): New parameter Reference, Symbol_Policy and
10339 Remove parameter Force.
10340 Minor reformatting.
10342 * snames.ads, snames.adbadb: New standard names
10343 Library_Reference_Symbol_File and Library_Symbol_Policy
10346 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
10350 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
10352 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
10354 * prj.adb: (Project_Empty): New component Symbol_Data
10356 * prj.ads: (Policy, Symbol_Record): New types
10357 (Project_Data): New component Symbol_Data
10360 New attributes Library_Symbol_File, Library_Symbol_Policy and
10361 Library_Reference_Symbol_File.
10364 (Ada_Check): When project is a Stand-Alone library project, process
10365 attribute Library_Symbol_File, Library_Symbol_Policy and
10366 Library_Reference_Symbol_File.
10368 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
10369 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
10370 5sml-tgt.adb (Build_Dynamic_Library): New parameter
10371 Symbol_Data (ignored).
10373 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
10374 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
10375 functions Option_File_Name and Version_String. Set new options of
10376 gnatsym related to symbol file, symbol policy and reference symbol
10380 Extensive modifications to take into account the reference symbol file,
10381 the symbol policy, the library version and to put in the symbol file the
10382 minor and major IDs.
10384 * bld.adb (Process_Declarative_Items): Put second argument of
10385 gprcmd to_absolute between single quotes, to avoid problems with
10388 * bld-io.adb: Update Copyright notice.
10389 (Flush): Remove last character of a line, if it is a back slash, to
10390 avoid make problems.
10393 Implement new scheme with reference symbol file and symbol policy.
10395 * g-os_lib.ads: (Is_Directory): Clarify comment
10397 2003-11-19 Robert Dewar <dewar@gnat.com>
10399 * atree.adb: Move New_Copy_Tree global variables to head of package
10401 * errout.adb: Minor reformatting
10403 2003-11-19 Javier Miranda <miranda@gnat.com>
10405 * sem_ch4.adb: (Diagnose_Call): Improve error message.
10406 Add reference to Ada0Y (AI-50217)
10408 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
10409 sem_util.adb: Add reference to AI-50217
10411 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
10413 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
10415 * sem_aggr.adb: Complete documentation of AI-287 changes
10417 * par-ch4.adb: Document previous changes.
10419 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
10420 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
10423 * exp_aggr.adb: Add references to AI-287 in previous changes
10425 2003-11-19 Ed Schonberg <schonberg@gnat.com>
10428 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
10429 in the rewriting is the result of an inlined call.
10431 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
10432 parameter is a type conversion, use original node to construct the
10433 post-call assignment, because expression may have been rewritten, e.g.
10434 if it is a packed array.
10437 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
10438 body, just as it is in an instance.
10439 Categorization routines
10441 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
10442 Instantiate_Object): Set proper sloc reference for message on missing
10445 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
10447 * Makefile.in: Add FreeBSD libgnat pairs.
10449 * usage.adb: Fix typo in usage message.
10451 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
10453 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
10454 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
10455 pragma Thread_Body.
10456 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
10458 * s-thread.adb: This file is now a dummy implementation of
10461 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
10463 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
10465 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
10467 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
10468 instanciation references in the parent type description.
10470 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10472 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
10474 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
10475 TYPE_PRECISION directly from esize.
10477 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
10480 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
10482 * init.c: Initialization routines for FreeBSD
10484 * link.c: Link info for FreeBSD
10486 * sysdep.c: Add the case of FreeBSD
10488 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
10490 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
10491 already called in System.Threads.
10493 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
10494 environment task, as it has been moved to System.Threads.Initialization.
10496 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
10498 * adaint.c (__gnatlib_install_locks): Only reference
10499 __gnat_install_locks on VMS, since other platforms can avoid using
10500 --enable-threads=gnat
10502 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10504 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
10506 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
10507 TYPE_PACKED_ARRAY_TYPE_P.
10508 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
10510 Part of PR ada/12806
10511 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
10512 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
10514 2003-11-17 Vincent Celier <celier@gnat.com>
10516 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
10518 Do not set exit status to Failure when Warning is True.
10519 (Gnatchop): Make errors "no compilation units found" and
10520 "no source files written" warnings only.
10522 * make.adb (Gnatmake): When using a project file, set
10523 Look_In_Primary_Dir to False.
10524 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
10525 and Local_Configuration_Pragmas in the project where they are declared
10526 not an extending project which might have inherited them.
10528 * osint.adb (Locate_File): If Name is already an absolute path, do not
10529 look for a directory.
10531 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
10532 -gnats (Check_Syntax) is used, issue only a warning, not an error.
10534 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
10535 in objects of type Variable_Value.
10537 * prj.ads: (Variable_Value): New component Project
10539 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
10540 is in a project extended by Project.
10542 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
10543 Project of Variable_Values to this new parameter value.
10544 (Expression): Set component Project of Variable_Values.
10545 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
10546 Set the component Project in array elements.
10548 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
10550 * errout.adb: (Initialize): Add initialization for error nodes.
10552 * sem_ch12.adb (Initialize): Add missing initializations for
10553 Exchanged_Views and Hidden_Entities.
10555 2003-11-17 Ed Schonberg <schonberg@gnat.com>
10557 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
10558 already instantiated tree for use in subsequent inlining.
10559 (Analyze_Associations, Instantiate_Formal_Subprogram,
10560 Instantiate_Object): improve error message for mismatch in
10563 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
10564 instantiations of subprograms declared in instances.
10566 2003-11-17 Javier Miranda <miranda@gnat.com>
10568 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
10569 executed only under the Extensions_Allowed flag.
10571 2003-11-17 Robert Dewar <dewar@gnat.com>
10573 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
10575 (Address_Image): Fix bug of returning 0x instead of 0x0
10576 Minor reformatting (function specs).
10578 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
10579 (missed case of 33-63)
10581 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
10583 * s-thread.adb: Add comments for pragma Restriction
10585 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
10586 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
10588 2003-11-17 Ed Falis <falis@gnat.com>
10590 * s-thread.adb: Added No_Tasking restriction for this implementation.
10592 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
10594 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
10595 instanciation references in the parent type description.
10597 2003-11-17 GNAT Script <nobody@gnat.com>
10599 * Make-lang.in: Makefile automatically updated
10601 2003-11-16 Jason Merrill <jason@redhat.com>
10603 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
10604 and TAGS files that include them for each front end.
10606 2003-11-14 Andreas Jaeger <aj@suse.de>
10608 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
10609 is the canonical version.
10610 * misc.c (gnat_handle_option): Likewise.
10612 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
10614 * 5nsystem.ads: New file for x86_64-linux-gnu.
10616 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
10618 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
10620 * comperr.adb: Fix logic in previous change.
10622 2003-11-13 Vincent Celier <celier@gnat.com>
10624 * 5bml-tgt.adb (Build_Dynamic_Library): Use
10625 Osint.Include_Dir_Default_Prefix instead of
10626 Sdefault.Include_Dir_Default_Name.
10628 * gnatlbr.adb: Update Copyright notice
10629 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
10630 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
10631 instead of Sdefault.Object_Dir_Default_Name
10634 (Process_Binder_File): Never suppress the option following -Xlinker
10637 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
10638 Sdefault.Object_Dir_Default_Name.
10640 * osint.ads, osint.adb:
10641 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
10642 Minor reformatting.
10644 * vms_conv.ads: Minor reformating
10645 Remove GNAT STANDARD and GNAT PSTA
10648 Allow GNAT MAKE to have several files on the command line.
10649 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
10650 Sdefault.Object_Dir_Default_Name.
10652 Remove data for GNAT STANDARD
10655 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
10656 Remove data for GNAT STANDARD
10657 Remove options and documentation for -gnatwb/-gnatwB: these warning
10658 options no longer exist.
10660 2003-11-13 Ed Falis <falis@gnat.com>
10662 * 5zthrini.adb: (Init_RTS): Made visible
10665 (Register): Removed unnecessary call to taskVarGet that checked whether
10666 an ATSD was already set as a task var for the argument thread.
10669 Updated comment to reflect that this is a VxWorks version
10670 Added context clause for System.Threads.Initialization
10671 Added call to System.Threads.Initialization.Init_RTS
10673 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
10676 (Init_RTS): New procedure, for the initialization of the run-time lib.
10679 Remove dependancy on System.Init, so that this file can be used in the
10680 AE653 sequential run-time lib.
10682 2003-11-13 Robert Dewar <dewar@gnat.com>
10684 * bindgen.adb: Minor reformatting
10686 2003-11-13 Ed Schonberg <schonberg@gnat.com>
10689 (Apply_Discriminant_Check): Do no apply check if target type is derived
10690 from source type with no applicable constraint.
10693 (Ensure_System_Dependency): Do not apply the style checks that may have
10694 been specified for the main unit.
10697 (Find_Selected_Component): Further improvement in error message, with
10701 (Resolve): Handle properly the case of an illegal overloaded protected
10704 2003-11-13 Javier Miranda <miranda@gnat.com>
10707 (Has_Default_Init_Comps): New function to check the presence of
10708 default initialization in an aggregate.
10709 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
10710 extension aggregate of a limited record. In addition, a new formal
10711 was added to do not initialize the record controller (if any) during
10712 this recursive expansion of ancestors.
10713 (Init_Controller): Add support for limited record components.
10714 (Expand_Record_Aggregate): In case of default initialized components
10715 convert the aggregate into a set of assignments.
10717 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
10718 describing the new syntax.
10719 Nothing else needed to be done because this subprogram delegates part of
10720 its work to P_Precord_Or_Array_Component_Association.
10721 (P_Record_Or_Array_Component_Association): Give support to the new
10722 syntax for default initialization of components.
10725 (Resolve_Aggregate): Relax the strictness of the frontend in case of
10726 limited aggregates.
10727 (Resolve_Record_Aggregate): Give support to default initialized
10729 (Get_Value): In case of default initialized components, duplicate
10730 the corresponding default expression (from the record type
10731 declaration). In case of default initialization in the *others*
10732 choice, do not check that all components have the same type.
10733 (Resolve_Extension_Aggregate): Give support to limited extension
10737 (Check_Initialization): Relax the strictness of the front-end in case
10738 of aggregate and extension aggregates. This test is now done in
10739 Get_Value in a per-component manner.
10741 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
10742 expression corresponds to a limited aggregate. This test is now done
10745 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
10748 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
10749 present in an N_Component_Association node
10751 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
10753 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
10754 type-conformant entry only if they are homographs.
10756 2003-11-13 GNAT Script <nobody@gnat.com>
10758 * Make-lang.in: Makefile automatically updated
10760 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10762 * adadecode.c: Use <> form of include for ctype.h.
10763 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
10765 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10767 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
10768 Works around PR middle-end/6552.
10770 2003-11-10 Ed Falis <falis@gnat.com>
10772 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
10774 * 5zinit.adb: (Install_Handler): Moved back to spec
10775 (Install_Signal_Handlers): Deleted
10777 * 5zthrini.adb: Added context clause for System.Storage_Elements
10778 (Register): Only handles creation of taskVar; initialization moved to
10780 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
10781 Added declaration of environment task secondary stack and
10784 * s-thread.adb: Implement bodies for thread body processing
10787 Added comment identifying supported targets for pragma Thread_Body.
10789 2003-11-10 Pascal Obry <obry@gnat.com>
10791 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
10795 (Open): Properly check for string length before copying into the buffer.
10796 Raises Name_Error if buffer is too small. Note that this was a potential
10799 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
10801 * bindgen.adb, comperr.adb: Code clean ups.
10802 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
10804 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
10806 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
10808 2003-11-10 Vincent Celier <celier@gnat.com>
10811 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
10814 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
10816 * prj.adb: (Project_Empty): Add new boolean component Virtual
10818 * prj.ads: (Virtual_Prefix): New constant string
10819 (Project_Data): New boolean component Virtual
10821 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
10822 a library project is extended by a virtual extending project.
10825 Modifications throughout to implement extending-all project, including:
10826 (Virtual_Hash, Processed_Hash): New hash tables
10827 (Create_Virtual_Extending_Project): New procedure
10828 (Look_For_Virtual_Projects_For): New procedure
10831 (Process): After checking the projects, if main project is an
10832 extending-all project, set the object directory of all virtual extending
10833 project to the object directory of the main project.
10834 Adjust error message when a virtual extending project has the same
10835 object directory as an project being extended.
10836 (Recursive_Process): If name starts with the virtual prefix, set Virtual
10837 to True in the project data.
10840 (Default_Project_Node): Add new boolean component Extending_All
10841 (Is_Extending_All): New function
10842 (Set_Is_Extending_All): New procedure
10844 * prj-tree.ads: (Is_Extending_All): New function
10845 (Set_Is_Extending_All): New procedure
10846 (Project_Node_Record): New boolean component Extending_All
10848 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
10851 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
10853 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
10854 "gprcmd prefix" to define it.
10856 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
10858 * einfo.ads: Fix a typo and remove an extraneous word in comments.
10861 (Create_Dummy_Package_Unit): Set the scope of the entity for the
10862 created dummy package to Standard_Standard, not to itself, to
10863 defend other parts of the front-end against encoutering a cycle in
10867 (Analyze_With_Clause): When setting the entities for the successive
10868 N_Expanded_Names that constitute the name of a child unit, do not
10869 attempt to go further than Standard_Standard in the chain of scopes.
10870 This case arises from the placeholder units created by
10871 Create_Dummy_Package_Unit in the case of a with_clause for a
10872 nonexistent child unit.
10874 2003-11-10 Ed Schonberg <schonberg@gnat.com>
10877 (Expand_Thread_Body): Place subprogram on scope stack, so that new
10878 declarations are given the proper scope.
10881 (Check_Expr_Constants): Reject an expression that contains a constant
10882 created during expansion, and that appears after the object to which
10883 the address clause applies.
10885 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
10886 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
10887 that uses 'Range of a function call with controlled components, so
10888 that the function result can be finalized before starting the loop.
10891 (Find_Selected_Component): Improve error message when prefix is
10892 an implicit dereference of an incomplete type.
10894 2003-11-10 Robert Dewar <dewar@gnat.com>
10896 * opt.ads: New Print_Standard flag for -gnatS switch
10898 * sem_ch13.adb: Remove some additional checks for unaligned arrays
10900 * cstand.adb (Create_Standard): Print out package standard if -gnatS
10903 * debug.adb: Update doc for -gnatds to discuss relationship with new
10906 * sinfo.adb: Add new field Entity_Or_Associated_Node
10908 * sinfo.ads: Add new field Entity_Or_Associated_Node
10909 Update documentation for Associated_Node and Entity fields to clarify
10910 relationship and usage.
10913 (Write_Id): Properly process Associated_Node field in generic template
10916 Recognize new -gnatS switch for printing package Standard
10917 This replaces gnatpsta
10920 Add line for new -gnatS switch for printing package Standard
10921 This replaces gnatpsta
10923 2003-11-10 Andreas Jaeger <aj@suse.de>
10925 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
10928 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
10930 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
10933 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
10935 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
10938 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
10940 * sysdep.c: Add handling of cygwin.
10942 2003-11-10 GNAT Script <nobody@gnat.com>
10944 * Make-lang.in: Makefile automatically updated
10946 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
10949 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
10950 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
10951 Replace GNAT_ROOT by GCC_ROOT.
10953 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
10955 2003-11-06 Zack Weinberg <zack@codesourcery.com>
10957 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
10958 and update for changed meaning of GET_MODE_BITSIZE.
10960 2003-11-04 Doug Rupp <rupp@gnat.com>
10962 * sysdep.c: Problem discovered during IA64 VMS port.
10963 [VMS] #include <unixio.h> to get proper prototypes.
10966 Issues discovered/problems fixed during IA64 VMS port.
10967 [VMS] #define _POSIX_EXIT for proper semantics.
10968 [VMS] #include <unixio.h> for proper prototypes.
10969 [VMS] (fork): #define IA64 version.
10970 (__gnat_os_exit): Remove unnecessary VMS specific code.
10972 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10974 Part of PR ada/12806
10976 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
10980 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
10983 * targtyps.c, decl.c, misc.c,
10984 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
10985 routines to work around change in FP sizing semantics in GCC.
10988 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
10990 * gigi.h: (enumerate_modes): New function.
10992 * Make-lang.in: (ada/misc.o): Add real.h.
10994 * misc.c: (enumerate_modes): New function.
10996 2003-11-04 Robert Dewar <dewar@gnat.com>
10998 * 3vtrasym.adb: Minor reformatting
10999 Use terminology encoded/decoded name, rather than C++ specific notion
11000 of mangling (this is the terminology used throughout GNAT).
11002 * einfo.h: Regenerated
11004 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
11007 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
11009 * par-prag.adb: Add dummy entry for Thread_Body pragma
11012 Add entries for System.Threads entities for thread body processing
11015 (Analyze_Pragma, Access attributes): Check these are not applied to a
11016 thread body, since this is not permitted
11018 * sem_prag.adb: Add processing for Thread_Body pragma.
11022 (Resolve_Call): Check for incorrect attempt to call a thread body
11023 procedure with a direct call.
11025 * snames.ads, snames.adb: Add entry for Thread_Body pragma
11026 Add names associated with thread body expansion
11028 * snames.h: Add entry for Thread_Body pragma
11030 * s-thread.adb: Add entries for thread body processing
11031 These are dummy bodies so far
11033 * s-thread.ads: Add documentation on thread body handling.
11034 Add entries for thread body processing.
11036 2003-11-04 Javier Miranda <miranda@gnat.com>
11039 (Build_Limited_Views): Return after posting an error in case of limited
11040 with_clause on subprograms, generics, instances or generic renamings
11041 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
11042 on subprograms, generics, instances or generic renamings
11044 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
11046 * raise.c (setup_to_install): Correct mistake in last revision; two
11047 arguments out of order.
11049 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
11050 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
11051 notice, missed in previous change.
11052 Remove trailing blanks and other style errors introduced in previous
11055 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
11057 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
11058 rid of the wrapper for a LJM type, ensuring we don't do that if the
11059 field is addressable. This avoids potential low level type view
11060 mismatches later on, for instance in a by-reference argument passing
11063 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11065 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
11066 aligned at byte boundary.
11068 2003-11-04 Joel Brobecker <brobecker@gnat.com>
11070 * decl.c (components_to_record): Do not delete the empty variants from
11071 the end of the union type.
11073 2003-11-04 Ed Schonberg <schonberg@gnat.com>
11075 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
11076 operation for a derived type, an explicit declaration may use a local
11077 subtype of Boolean.
11079 2003-11-04 Vincent Celier <celier@gnat.com>
11081 * make.adb (Gnatmake): Allow main sources on the command line with a
11082 library project when it is only for compilation (no binding or
11085 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11087 * Makefile.in: Remove many duplicate variables.
11089 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
11091 * Make-lang.in (dvi): Move targets to $(docobjdir).
11092 (gnat_ug_vms.dvi): Simplify rule and adjust target.
11093 (gnat_ug_wnt.dvi): Likewise.
11094 (gnat_ug_unx.dvi): Likewise.
11095 (gnat_ug_vxw.dvi): Likewise.
11096 (gnat_rm.dvi): Likewise.
11097 (gnat-style.dvi): Likewise.
11099 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
11101 * gigi.h: Missed commit from update for C90.
11103 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
11105 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
11107 2003-10-31 Andreas Schwab <schwab@suse.de>
11109 * raise.c (get_action_description_for): Fix typo in last change.
11111 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
11114 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
11115 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
11117 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
11119 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
11120 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
11121 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
11122 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
11123 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
11125 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
11128 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
11129 numbers when symbol name is too long.
11131 2003-10-30 Ed Falis <falis@gnat.com>
11133 * g-signal.ads, g-signal.adb: New files
11135 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
11137 * Makefile.rtl: Introduce GNAT.Signals
11139 2003-10-30 Robert Dewar <dewar@gnat.com>
11141 * freeze.adb: Minor reformatting
11143 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
11145 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
11146 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
11147 New handling of Id_Check parameter to improve recognition of keywords
11148 used as identifiers.
11149 Update copyright notice to include 2003
11151 2003-10-29 Robert Dewar <dewar@gnat.com>
11153 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
11154 sem_ch10.adb: Minor reformatting
11156 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
11157 (Expand_Assign_Record): Test right hand side for bit unaligned as well
11159 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
11161 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
11162 Support for TBK$SYMBOLIZE-based symbolic traceback.
11164 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
11167 Revert previous change, that did not work well when pragma No_Run_Time
11168 was used in conjunction with a run-time other than ZFP.
11170 2003-10-29 Vincent Celier <celier@gnat.com>
11173 (Gnatmake): When there are no Ada mains in attribute Main, disable the
11174 bind and link steps only is switch -z is not used.
11176 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
11178 * Makefile.generic: Remove duplicated setting of CC.
11180 * Makefile.prolog: Set CC to gcc by default, to override make's
11183 * einfo.h: Regenerated.
11185 2003-10-29 Ed Schonberg <schonberg@gnat.com>
11187 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
11188 current body, after compiling subunit.
11190 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
11191 when in deleted code, because gigi needs properly ordered freeze
11192 actions to annotate types.
11194 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
11195 prevent the premature freezing of record type that contains
11196 subcomponents with a private type that does not yet have a completion.
11198 2003-10-29 Javier Miranda <miranda@gnat.com>
11201 (Analyze_Package_Instantiation): Check that instances can not be used in
11202 limited with_clauses.
11205 (Analyze_Package_Renaming): Check that limited withed packages cannot
11206 be renamed. Improve text on error messages related to limited
11209 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
11211 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
11212 Update copyright notice.
11214 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
11215 (Install_Limited_Context_Clauses): New subprogram that isolates all the
11216 checks required for limited context_clauses and installs the limited
11218 (Install_Limited_Withed_Unit): Complete its documentation.
11219 (Analyze_Context): Check that limited with_clauses are only allowed in
11221 (Install_Context): Call Install_Limited_Context_Clauses after the
11222 parents have been installed.
11223 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
11224 package as 'From_With_Type'; this mark indicates that the limited view
11225 is installed. Used to check bad usages of limited with_clauses.
11226 (Build_Limited_Views): Do not add shadow entities to the scope's list
11227 of entities. Do not add real entities to the Non_Limited_Views chain.
11228 Improve error notification.
11229 (Remove_Context_Clauses): Remove context clauses in two phases:
11230 limited views first and regular views later (to maintain the
11232 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
11233 its visible entities.
11235 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
11237 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
11238 with any type that Is_Fixed_Point_Type.
11240 * sinfo.ads: Fix documentation for Associated_Node attribute.
11242 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
11244 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
11245 both '-gnatc' and '-gnatt' are specified.
11247 * atree.adb (Initialize): Add initialization for Node_Count (set to
11250 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11252 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
11253 do not consider as Pure.
11255 Part of implementation of function-at-a-time:
11257 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
11258 (tree_transform): Add new argument to build_component_ref.
11259 (tree_transform, case N_Assignment_Statement): Make and return an
11261 (tree_transform): If result IS_STMT, set flags and return it.
11262 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
11264 * utils2.c (build_simple_component_ref, build_component_ref): Add new
11266 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
11267 (build_allocator): Likewise.
11269 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
11270 Add new arg to build_component_ref.
11271 (maybe_unconstrained_array, unchecked_convert): Likewise.
11273 * ada-tree.def (EXPR_STMT): New code.
11275 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
11277 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
11278 build_component_ref calls.
11280 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
11282 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
11283 (build_component_ref): Add new argument, NO_FOLD_P.
11285 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
11287 * Makefile.generic: Add missing substitution on object_deps handling.
11290 * Make-lang.in (check-ada): Enable ACATS test suite.
11292 2003-10-27 Robert Dewar <dewar@gnat.com>
11295 (Freeze_Array_Type): We do not need an initialization routine for types
11296 derived from String or Wide_String. They should be treated the same
11297 as String and Wide_String themselves. This caused problems with the
11298 use of Initialize_Scalars.
11301 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
11302 composites. This allows use of component clauses that are not byte
11306 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
11307 is an attempt to pack an array of atomic objects.
11309 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
11311 2003-10-27 Pascal Obry <obry@gnat.com>
11314 (Basename): Check for drive letters in a pathname only on DOS based OS.
11316 2003-10-27 Vincent Celier <celier@gnat.com>
11319 (Gnatmake): When unable to change dir to the object dir, display the
11320 content of the parent dir of the obj dir, to try to understand why this
11323 2003-10-27 GNAT Script <nobody@gnat.com>
11325 * Make-lang.in: Makefile automatically updated
11327 2003-10-27 Ed Schonberg <schonberg@gnat.com>
11330 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
11331 should not be done in Save/Restore_Scope_Stack, because it is performed
11335 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
11336 whether use clauses should be removed/restored.
11339 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
11340 whether use clauses should be removed/restored.
11342 2003-10-26 Andreas Jaeger <aj@suse.de>
11344 * Makefile.in: Remove duplicated lines.
11346 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
11348 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
11349 minimize the differences with ACT tree.
11351 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
11352 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
11353 Gnatvsn.Gnat_Static_Version_String to reduce differences between
11356 2003-10-24 Pascal Obry <obry@gnat.com>
11358 * adadecode.c (ostrcpy): New function.
11359 (__gnat_decode): Use ostrcpy of strcpy.
11360 (has_prefix): Set first parameter a const.
11361 (has_suffix): Set first parameter a const.
11362 Update copyright notice. Fix source name in header.
11363 Removes a trailing space.
11366 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
11369 Remove the test against being in No_Run_Time_Mode before generating a
11370 call to Register_Tag. It is redundant with the test against the
11371 availability of the function Register_Tag.
11373 2003-10-24 Vincent Celier <celier@gnat.com>
11375 * g-catiio.adb: (Month_Name): Correct spelling of February
11377 * make.adb: (Mains): New package
11378 (Initialize): Call Mains.Delete
11379 (Gnatmake): Check that each main on the command line is a source of a
11380 project file and, if there are several mains, each of them is a source
11381 of the same project file.
11382 (Gnatmake): When a foreign language is specified in attribute Languages,
11383 no main is specified on the command line and attribute Mains is not
11384 empty, only build the Ada main. If there is no Ada main, just compile
11385 the Ada sources and their closure.
11386 (Gnatmake): If a main is specified on the command line with directory
11387 information, check that the source exists and, if it does, that the path
11388 is the actual path of a source of a project.
11391 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
11392 Full_Path is True, return the full path instead of the simple file name.
11393 (Project_Of): New function
11396 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
11397 defaulted to False.
11398 (Project_Of): New function
11400 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
11402 * Makefile.generic:
11403 Ensure objects of main project are always checked and rebuilt if needed.
11404 Set CC to gcc by default.
11405 Prepare new handling of link by creating a global archive (not activated
11408 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
11409 stringt.h: Update copyright notice. Remove trailing blanks.
11410 Fix source name in header.
11412 2003-10-24 Robert Dewar <dewar@gnat.com>
11414 * sem_ch12.adb: Minor reformatting
11417 Minor reformatting (including new function return style throughout)
11420 Minor reformatting (including new function return style throughout)
11422 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
11424 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
11425 stringt.h: Update copyright notice. Remove trailing blanks.
11426 Fix source name in header.
11428 2003-10-24 GNAT Script <nobody@gnat.com>
11430 * Make-lang.in: Makefile automatically updated
11432 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
11434 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
11435 stringt.h: Convert to ISO C90 declarations and definitions.
11437 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
11440 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
11441 External_Tag attribute definition clauses.
11443 2003-10-23 Ed Schonberg <schonberg@gnat.com>
11446 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
11447 child unit, generate a fully qualified name to avoid spurious errors
11448 when the context contains renamings of different child units with
11449 the same simple name.
11451 * exp_dbug.ads: Add documentation on name qualification for renamings
11454 2003-10-23 Robert Dewar <dewar@gnat.com>
11456 * g-regpat.ads, g-regpat.adb: Minor reformatting
11458 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
11460 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
11462 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11464 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
11467 * urealp.h: (Machine): Update to proper definition.
11469 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
11471 * init.c, adaint.c: Minor reformatting.
11473 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
11475 * adaint.c (w32_epoch_offset): Define static const at file level.
11476 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
11477 rather than t_create, t_access in call to GetFileTime. Use union
11478 to convert between FILETIME and unsigned long long.
11479 (__gnat_file_time_name): Test for invalid file handle.
11480 (__gnat_set_filetime_name): Support win32 targets using
11481 w32api SetFileTime.
11483 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
11485 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
11487 * ctrl_c.c (__gnat_int_handler): Remove declaration.
11489 * decl.c (creat_concat_name): Const-ify prefix.
11491 * adaint.c: Include ctype.h if __MINGW32__.
11492 (__gnat_readlink): Mark arguments as possibly unused.
11493 (__gnat_symlink): Likewise.
11494 (__gnat_is_symbolic_link): Likewise.
11495 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
11497 (__gnat_file_time_name): Don't declare struct stat statbuf when
11499 (__gnat_is_absolute_path): Add parenthesis around condition of
11500 'if' statement to avoid warning.
11501 (__gnat_plist_init): Specify void as parameter.
11502 (plist_enter): Likewise.
11503 (plist_leave): Likewise.
11504 (remove_handle): Make static. Initialize prev.
11506 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
11508 * Makefile.in: Disable build of gnatpsta. PR ada/10110.
11509 * cstreams.c (__gnat_full_name): Minor improvements and clean up
11510 of previous change.
11512 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11514 * tracebak.c (MAX): Avoid redefinition warning.
11516 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
11517 Change msg to const char *.
11518 (__gnat_install_handler): Remove ss, unused.
11519 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
11521 * cstreams.c (__gnat_full_name): Declare p only when used.
11522 (__gnat_full_name) [sgi] Return buffer.
11524 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
11526 * mingw32.h: New file.
11527 * gnat_wrapper.adb: New file.
11529 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
11531 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
11532 string match a pre compiled regular expression (the corresponding
11533 version of the function working on a raw regular expression)
11534 Fix typos in various comments
11535 Update copyright notice in spec
11537 2003-10-21 Gary Dismukes <dismukes@gnat.com>
11540 (Component_Needs_Simple_Initialization): Return False when the type is a
11541 packed bit array. Revise spec comments to document this case.
11544 (Expand_Pragma_Import): Set any expression on the imported object to
11545 empty to avoid initializing imported objects (in particular this
11546 covers the case of zero-initialization of bit arrays).
11547 Update copyright notice.
11549 2003-10-21 Ed Schonberg <schonberg@gnat.com>
11552 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
11553 a subunit is missing.
11554 (Instantiate_Subprogram_Body): If body of function is missing, set type
11555 of return expression explicitly in dummy body, to prevent cascaded
11556 errors when a subunit is missing.
11560 (Access_Subprogram_Declaration): Verify that return type is valid.
11564 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
11569 (Corresponding_Discriminant): If the scope of the discriminant is a
11570 private type without discriminant, use its full view.
11573 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
11575 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
11576 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
11577 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
11578 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
11579 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
11580 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
11581 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
11582 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
11583 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
11584 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
11585 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
11586 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
11587 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
11588 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
11589 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
11590 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
11591 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
11592 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
11593 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
11594 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
11595 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
11596 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
11597 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
11598 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
11599 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
11600 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
11601 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
11602 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
11603 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
11604 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
11605 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
11606 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
11607 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
11608 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
11609 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
11610 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
11611 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
11612 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
11613 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
11614 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
11615 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
11616 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
11617 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
11618 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
11619 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
11620 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
11621 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
11622 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
11623 vms_conv.ads, vms_conv.adb, vms_data.ads,
11624 vxaddr2line.adb: Files added. Merge with ACT tree.
11626 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
11627 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
11628 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
11629 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
11630 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
11631 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
11632 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
11633 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
11634 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
11635 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
11637 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
11638 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
11639 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
11640 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
11641 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
11642 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
11643 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
11644 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
11645 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
11646 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
11647 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
11648 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
11649 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
11650 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
11651 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
11652 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
11653 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
11654 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
11655 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
11656 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
11657 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
11658 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
11659 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
11660 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
11661 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
11662 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
11663 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
11664 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
11665 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
11666 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
11667 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
11668 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
11669 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
11670 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
11671 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
11672 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
11673 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
11674 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
11675 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
11676 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
11677 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
11678 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
11679 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
11680 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
11681 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
11682 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
11683 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
11684 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
11685 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
11686 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
11687 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
11688 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
11689 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
11690 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
11691 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
11692 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
11693 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
11694 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
11695 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
11696 checks.adb, checks.ads, cio.c, comperr.adb,
11697 comperr.ads, csets.adb, cstand.adb, cstreams.c,
11698 debug_a.adb, debug_a.ads, debug.adb, decl.c,
11699 einfo.adb, einfo.ads, errout.adb, errout.ads,
11700 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
11701 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
11702 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
11703 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
11704 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
11705 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
11706 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
11707 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
11708 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
11709 fe.h, fmap.adb, fmap.ads, fname.adb,
11710 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
11711 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
11712 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
11713 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
11714 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
11715 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
11716 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
11717 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
11718 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
11719 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
11720 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
11721 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
11722 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
11723 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
11724 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
11725 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
11726 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
11727 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
11728 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
11729 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
11730 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
11731 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
11732 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
11733 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
11734 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
11735 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
11736 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
11737 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
11738 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
11739 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
11740 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
11741 layout.adb, lib.adb, lib.ads, lib-list.adb,
11742 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
11743 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
11744 link.c, live.adb, make.adb, make.ads,
11745 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
11746 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
11747 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
11748 misc.c, mkdir.c, mlib.adb, mlib.ads,
11749 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
11750 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
11751 namet.adb, namet.ads, namet.h, nlists.ads,
11752 nlists.h, nmake.adt, opt.adb, opt.ads,
11753 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
11754 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
11755 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
11756 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
11757 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
11758 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
11759 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
11760 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
11761 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
11762 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
11763 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
11764 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
11765 prj-util.adb, prj-util.ads, raise.c, raise.h,
11766 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
11767 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
11768 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
11769 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
11770 scans.ads, scn.adb, scn.ads, s-crc32.adb,
11771 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
11772 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
11773 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
11774 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
11775 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
11776 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
11777 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
11778 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
11779 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
11780 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
11781 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
11782 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
11783 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
11784 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
11785 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
11786 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
11787 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
11788 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
11789 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
11790 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
11791 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
11792 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
11793 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
11794 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
11795 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
11796 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
11797 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
11798 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
11799 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
11800 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
11801 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
11802 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
11803 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
11804 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
11805 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
11806 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
11807 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
11808 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
11809 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
11810 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
11811 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
11812 stringt.adb, stringt.ads, stringt.h, style.ads,
11813 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
11814 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
11815 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
11816 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
11817 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
11818 table.adb, table.ads, targparm.adb, targparm.ads,
11819 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
11820 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
11821 ttypes.ads, types.ads, types.h, uintp.adb,
11822 uintp.ads, uintp.h, uname.adb, urealp.adb,
11823 urealp.ads, urealp.h, usage.adb, utils2.c,
11824 utils.c, validsw.adb, validsw.ads, widechar.adb,
11825 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
11826 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
11827 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
11828 gnatvsn.ads: Merge with ACT tree.
11830 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
11832 2003-10-20 Mark Mitchell <mark@codesourcery.com>
11834 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
11835 (gnat_ug_vmx.info): Likewise.
11836 (gnat_ug_vxw.info): Likewise.
11837 (gnat_ug_wnt.info): Likewise.
11838 (gnat_rm.info): Likewise.
11839 (gnat-style.info): Likewise.
11841 * Make-lang.in (ada.install-info): Remove target.
11842 (info): New target.
11843 (install-info): Likewise.
11844 (gnat_ug_unx.info): Simplify rule.
11845 (gnat_ug_vmx.info): Likewise.
11846 (gnat_ug_vxw.info): Likewise.
11847 (gnat_ug_wnt.info): Likewise.
11848 (gnat_rm.info): Likewise.
11849 (gnat-style.info): Likewise.
11851 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
11853 * Make-lang.in: Replace uses of $(target_alias) with
11854 $(target_noncanonical).
11855 * ada/Makefile.in: Remove unused mention of $(target_alias).
11857 2003-10-06 Mark Mitchell <mark@codesourcery.com>
11859 * Make-lang.in (ada.info): Replace with ...
11861 (ada.dvi): Replace with ...
11864 2003-09-29 Zack Weinberg <zack@codesourcery.com>
11866 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
11867 initialize dconstp5 and dconstmp5.
11869 2003-09-28 Richard Henderson <rth@redhat.com>
11871 * trans.c (tree_transform): Update call to expand_asm_operands.
11873 2003-09-21 Richard Henderson <rth@redhat.com>
11875 * trans.c, utils.c: Revert.
11877 2003-09-21 Richard Henderson <rth@redhat.com>
11879 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
11882 2003-09-04 Michael Matz <matz@suse.de>
11884 * misc.c: Include "target.h".
11885 * Make-lang.in (misc.o): Add dependency on target.h.
11887 2003-09-03 DJ Delorie <dj@redhat.com>
11889 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
11892 2003-08-30 Zack Weinberg <zack@codesourcery.com>
11894 * Makefile.in: Update substitutions to match changes to
11895 configure. Use include directives instead of @-insertions
11896 to read in host and target fragments. Add a rule to
11897 regenerate ada/Makefile.
11899 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
11901 * lang-options.h: Remove.
11902 * lang.opt: Add help text.
11904 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
11906 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
11909 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
11911 * misc.c (gnat_handle_option): Don't handle filenames.
11913 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
11915 * Make-lang.in: Replace PWD with PWD_COMMAND.
11916 * Makefile.adalib: Likewise.
11917 * Makefile.in: Likewise.
11919 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
11921 * misc.c (gnat_argv): Revert last change.
11922 (gnat_handle_option, gnat_init_options): Copy arguments.
11924 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
11926 * misc.c (gnat_argv): Make const.
11928 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
11930 * misc.c (save_argc, save_argv): Keep non-static!
11932 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
11934 * misc.c (save_argc, save_argv): Make static.
11935 (gnat_init_options): New prototype.
11936 (gnat_init_options): Update.
11938 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
11940 * gnat_ug.texi: Remove unlikely characters from @vars.
11941 * gnat_ug_vms.texi: Regenerate.
11943 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
11945 * misc.c (record_code_position): Adjust emit_note call.
11947 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
11949 * misc.c (gnat_handle_option): Don't check for missing arguments.
11951 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
11953 * utils.c (end_subprog_body): Adjust expand_function_end call.
11955 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
11957 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
11960 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
11962 * lang.opt: Declare Ada.
11963 * misc.c (gnat_init_options): Update.
11965 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
11967 * utils.c (begin_subprog_body): Adjust init_function_start call.
11969 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
11971 * Make-lang.in: Update to use options.c and options.h.
11972 * misc.c: Include options.h not aoptions.h.
11973 (gnat_handle_option): Abort on unrecognized switch.
11974 (gnat_init_options): Request Ada switches.
11976 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
11978 * lang.opt: Add -Wall.
11979 * misc.c (gnat_handle_option): Handle it.
11981 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
11983 * misc.c (gnat_handle_option): Fix warnings.
11985 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
11987 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
11989 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
11991 * Make-lang.in: Update to handle command-line options.
11992 * lang.opt: New file.
11993 * misc.c: Include aoptions.h.
11994 (cl_options_count, cl_options): Remove.
11995 (gnat_handle_option): New.
11996 (gnat_decode_option): Remove.
11997 (LANG_HOOKS_DECODE_OPTION): Remove.
11998 (LANG_HOOKS_HANDLE_OPTION): Override.
12000 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
12002 * init.c, misc.c, trans.c, utils.c: Remove dead code.
12004 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
12006 * Makefile.in: Replace "host_canonical" with "host" for autoconf
12009 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
12011 * Make-lang.in: Update.
12012 * misc.c: Include opts.h. Define cl_options_count and cl_options.
12014 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
12016 * misc.c (gnat_init_options): Update.
12018 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
12020 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
12021 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
12022 __attribute__ ((__unused__)).
12024 2003-06-05 Jan Hubicka <jh@suse.cz>
12026 * Make-lang.in: Add support for stageprofile and stagefeedback
12028 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
12030 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
12031 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
12033 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
12035 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
12036 Remove non-VMS directive.
12037 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
12039 (Examples of gnatls Usage): Remove VMS alternative.
12041 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
12044 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
12045 and turn ZCX_By_Default back to False since the underlying support
12046 is not quite there yet.
12048 2003-06-01 Andreas Jaeger <aj@suse.de>
12050 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
12051 and ROUND_TYPE_SIZE_UNIT.
12053 2003-05-22 Geert Bosch <bosch@gnat.com>
12055 * gnat_rm.texi : Remove reference to Ada Core Technologies.
12057 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
12059 * trans.c (tree_transform): Use location_t and input_location
12061 (build_unit_elab): Likewise.
12062 * utils.c (create_label_decl): Likewise.
12064 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
12066 * trans.c (tree_transform, build_unit_elab,
12067 set_lineno): Rename lineno to input_line.
12068 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
12069 end_subprog_body): Likewise.
12070 * utils2.c (build_call_raise): Likewise.
12072 2003-05-01 Laurent Guerby <guerby@acm.org>
12075 * 5iosinte.ads: Increase pthread_cond_t size to match recent
12076 LinuxThread and NPTL version, merge from ACT.
12078 2003-04-28 Zack Weinberg <zack@codesourcery.com>
12080 * utils.c (convert): No need to clear TREE_CST_RTL.
12082 2003-04-23 Geert Bosch <bosch@gnat.com>
12084 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
12085 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
12086 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
12087 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
12088 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
12089 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
12090 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
12091 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
12092 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
12093 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
12094 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
12095 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
12096 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
12097 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
12098 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
12099 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
12100 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
12101 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
12102 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
12103 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
12104 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
12105 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
12106 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
12107 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
12108 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
12109 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
12110 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
12111 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
12112 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
12113 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
12114 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
12115 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
12116 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
12117 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
12118 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
12119 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
12120 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
12121 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
12122 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
12123 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
12124 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
12125 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
12126 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
12127 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
12128 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
12129 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
12130 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
12131 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
12132 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
12133 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
12134 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
12135 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
12136 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
12137 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
12138 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
12139 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
12140 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
12141 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
12142 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
12143 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
12144 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
12145 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
12146 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
12147 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
12148 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
12149 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
12150 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
12151 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
12152 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
12153 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
12154 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
12155 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
12156 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
12157 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
12158 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
12159 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
12160 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
12161 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
12162 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
12163 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
12164 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
12165 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
12166 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
12167 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
12168 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
12169 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
12170 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
12171 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
12172 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
12173 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
12174 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
12175 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
12176 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
12177 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
12178 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
12179 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
12180 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
12181 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
12182 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
12183 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
12184 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
12185 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
12186 ali.adb, ali.ads, alloc.ads, argv.c,
12187 atree.adb, atree.ads, atree.h, aux-io.c,
12188 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
12189 binde.adb, binde.ads, binderr.adb, binderr.ads,
12190 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
12191 butil.adb, butil.ads, cal.c, calendar.ads,
12192 casing.adb, casing.ads, ceinfo.adb, checks.adb,
12193 checks.ads, cio.c, comperr.adb, comperr.ads,
12194 config-lang.in, csets.adb, csets.ads, csinfo.adb,
12195 cstand.adb, cstand.ads, cuintp.c, debug.adb,
12196 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
12197 dec-io.ads, dec.ads, deftarg.c, directio.ads,
12198 einfo.adb, einfo.ads, elists.adb, elists.ads,
12199 elists.h, errno.c, errout.adb, errout.ads,
12200 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
12201 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
12202 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
12203 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
12204 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
12205 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
12206 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
12207 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
12208 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
12209 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
12210 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
12211 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
12212 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
12213 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
12214 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
12215 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
12216 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
12217 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
12218 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
12219 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
12220 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
12221 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
12222 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
12223 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
12224 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
12225 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
12226 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
12227 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
12228 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
12229 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
12230 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
12231 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
12232 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
12233 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
12234 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
12235 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
12236 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
12237 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
12238 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
12239 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
12240 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
12241 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
12242 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
12243 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
12244 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
12245 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
12246 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
12247 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
12248 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
12249 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
12250 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
12251 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
12252 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
12253 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
12254 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
12255 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
12256 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
12257 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
12258 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
12259 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
12260 lib.adb, lib.ads, live.adb, live.ads,
12261 machcode.ads, make.adb, make.ads, makeusg.adb,
12262 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
12263 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
12264 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
12265 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
12266 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
12267 mlib.ads, namet.adb, namet.ads, nlists.adb,
12268 nlists.ads, opt.adb, opt.ads, osint-b.adb,
12269 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
12270 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
12271 osint.ads, output.adb, output.ads, par-ch10.adb,
12272 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
12273 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
12274 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
12275 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
12276 par-tchk.adb, par-util.adb, par.adb, par.ads,
12277 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
12278 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
12279 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
12280 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
12281 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
12282 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
12283 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
12284 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
12285 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
12286 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
12287 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
12288 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
12289 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
12290 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
12291 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
12292 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
12293 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
12294 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
12295 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
12296 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
12297 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
12298 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
12299 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
12300 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
12301 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
12302 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
12303 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
12304 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
12305 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
12306 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
12307 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
12308 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
12309 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
12310 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
12311 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
12312 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
12313 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
12314 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
12315 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
12316 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
12317 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
12318 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
12319 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
12320 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
12321 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
12322 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
12323 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
12324 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
12325 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
12326 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
12327 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
12328 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
12329 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
12330 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
12331 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
12332 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
12333 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
12334 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
12335 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
12336 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
12337 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
12338 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
12339 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
12340 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
12341 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
12342 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
12343 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
12344 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
12345 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
12346 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
12347 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
12348 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
12349 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
12350 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
12351 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
12352 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
12353 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
12354 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
12355 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
12356 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
12357 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
12358 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
12359 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
12360 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
12361 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
12362 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
12363 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
12364 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
12365 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
12366 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
12367 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
12368 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
12369 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
12370 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
12371 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
12372 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
12373 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
12374 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
12375 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
12376 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
12377 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
12378 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
12379 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
12380 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
12381 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
12382 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
12383 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
12384 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
12385 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
12386 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
12387 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
12388 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
12389 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
12390 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
12391 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
12392 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
12393 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
12394 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
12395 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
12396 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
12397 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
12398 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
12399 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
12400 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
12401 snames.ads, sprint.adb, sprint.ads, stand.adb,
12402 stand.ads, stringt.adb, stringt.ads, style.adb,
12403 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
12404 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
12405 switch-m.ads, switch.adb, switch.ads, system.ads,
12406 table.adb, table.ads, targparm.adb, targparm.ads,
12407 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
12408 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
12409 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
12410 ttypef.ads, ttypes.ads, types.adb, types.ads,
12411 uintp.adb, uintp.ads, uname.adb, uname.ads,
12412 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
12413 usage.adb, usage.ads, validsw.adb, validsw.ads,
12414 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
12415 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
12416 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
12417 formatting and other trivial changes from ACT.
12419 2003-04-12 Zack Weinberg <zack@codesourcery.com>
12421 * gigi.h, utils2.c (build_constructor):
12422 Rename gnat_build_constructor. Use build_constructor.
12423 * decl.c (gnat_to_gnu_entity)
12424 * trans.c (tree_transform, pos_to_constructor, extract_values)
12425 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
12426 (unchecked_convert)
12427 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
12428 (fill_vms_descriptor):
12431 2003-04-06 Zack Weinberg <zack@codesourcery.com>
12433 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
12434 * misc.c (gnat_tree_size): New function.
12435 (LANG_HOOKS_TREE_SIZE): Override.
12437 2003-04-03 Jason Merrill <jason@redhat.com>
12439 * misc.c (gnat_adjust_rli): #if 0.
12441 2003-03-31 Geert Bosch <bosch@gnat.com>
12444 * link.c : Fix misspelled "const" keyword
12446 2003-03-23 Mark Mitchell <mark@codesourcery.com>
12449 * utils2.c: Adjust calls to put_var_into_stack.
12451 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
12453 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
12455 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
12457 * misc.c (gnat_init): Update for new prototype.
12459 2003-03-05 Olivier Hainque <hainque@gnat.com>
12462 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
12463 warning, and fix return type for the IN_RTS && !SJLJ case.
12465 2003-03-04 Tom Tromey <tromey@redhat.com>
12467 * Make-lang.in (ada.tags): New target.
12469 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
12472 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
12473 wrapper, which name remains constant whatever underlying GCC
12476 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
12477 the stable interface needed for a-except.
12479 2003-03-02 Andreas Jaeger <aj@suse.de>
12481 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
12482 gnat_ug_wnt.texi: Regenerate.
12484 2003-03-02 Laurent Guerby <guerby@acm.org>
12486 * Makefile.in (install-gnatlib): Match previous change there
12489 2003-02-28 Andreas Schwab <schwab@suse.de>
12491 * Make-lang.in (install-gnatlib): Change to ada directory before
12492 running make instead of using ada/Makefile directly.
12494 2003-02-18 Ben Elliston <bje@redhat.com>
12496 Part of fix for PR ada/9406
12497 * gnat_ug.texi (Binder output file): Grammar fix.
12499 2003-02-18 Ben Elliston <bje@redhat.com>
12502 * 5qtaprop.adb (Sleep): Fix typo in comment.
12504 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
12506 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
12507 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
12508 gnat_ug_wnt.texi: Regenerate.
12510 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
12512 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
12513 be created if necessary.
12514 (ada.install-common): Let $(DESTDIR)$(bindir) be created
12515 if necessary. Remove erroneous and redundant gnatchop
12516 installation commands. Test for gnatdll before attempting
12518 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
12519 and gnatdll from all plausible locations.
12521 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
12523 * utils2.c (build_unary_op): Don't check flag_volatile.
12524 * gnat_ug.texi: Remove -fvolatile from example.
12525 * gnat_ug_vxw.texi: Likewise.
12527 2003-01-29 Laurent Guerby <guerby@acm.org>
12530 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
12531 * Makefile.in: match previous change.
12532 * Make-lang.in: match previous change.
12534 2003-01-29 Joel Sherrill <joel@OARcorp.com>
12536 * 5rosinte.ads: Add SIGXCPU.
12537 * 5rtpopsp.adb: New file.
12538 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
12539 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
12540 specific file 5rtpopsp.adb.
12541 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
12542 is likely needed for all newlib targets.
12543 * init.c: Add RTEMS specific version of __gnat_initialize().
12545 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12547 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
12549 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12551 * init.c (__gnat_error_handler): Make msg const.
12553 * gmem.c (convert_addresses): Move declaration ...
12554 * adaint.h: ... here.
12555 * adaint.c (convert_addresses): Adapt addrs type to match
12558 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
12560 2003-01-24 Andreas Schwab <schwab@suse.de>
12562 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
12563 size_t to avoid warning.
12565 2003-01-21 Zack Weinberg <zack@codesourcery.com>
12567 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
12569 2003-01-09 Geoffrey Keating <geoffk@apple.com>
12571 * gnat_rm.texi: Remove RCS version number.
12573 * ada-tree.h (union lang_tree_node): Add chain_next option.
12575 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
12577 * Make-lang.in (ada.install-info, ada.install-common,
12578 ada.uninstall): Prepend $(DESTDIR) to the destination
12579 directory in all (un)installation commands.
12580 * Makefile.in (install-gnatlib, install-rts): Ditto.
12582 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
12584 * gnat_rm.texi, gnat_ug.texi: Use @copying.
12585 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
12586 gnat_ug_wnt.texi: Regenerate.
12588 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
12590 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
12592 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
12593 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
12594 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
12595 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
12596 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
12597 $(srcdir)/doc/include/gcc-common.texi.
12599 2002-12-15 Geert Bosch <bosch@gnat.com>
12601 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
12603 2002-12-14 Geert Bosch <bosch@gnat.com>
12605 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
12606 case of a body created for a Renaming_As_Body, on which
12607 conformance checks are not performed. Fixes PR ada/5690.
12609 2002-11-30 Zack Weinberg <zack@codesourcery.com>
12611 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
12612 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
12613 not already included.
12614 * Make-lang.in: Update dependencies.
12616 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
12617 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
12618 solution to buffer overflow bug on GNU/Linux.
12620 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
12621 Closes PR ada/5856 and PR ada/6919 !
12622 * bindgen.adb: Remove all references to Public_Version.
12623 * comperr.adb: Remove all references to Public_Version and
12624 GNATPRO_Version; correct bug reporting instructions.
12625 * comperr.ads: Change to match bug box.
12626 * gnatvsn.ads: Remove all references to Public version and
12629 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
12631 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
12635 * config-lang.in: Remove diff_excludes.
12637 2002-11-05 Graham Stott <graham.stott@btinternet.com>
12639 * trans.c (gnu_pending_elaboration_lists): New GC root.
12640 (build_unit_elab): Use..
12642 2002-10-30 Geert Bosch <bosch@gnat.com>
12644 * misc.c : Include optabs.h
12646 * Make-lang.in (misc.o): Add dependency on optabs.h
12648 2002-10-29 Geert Bosch <bosch@gnat.com>
12650 * Make-lang.in (gnatbind): Depend on CONFIG_H
12652 2002-10-29 Geert bosch <bosch@gnat.com>
12654 * misc.c: Unrevert misc.c (1.13)
12656 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
12658 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
12659 maintainership comments.
12661 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
12663 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
12664 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
12665 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
12666 7staprop.adb: Correct statements in comments about
12667 maintainership of GNAT.
12670 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
12671 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
12672 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
12673 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
12674 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
12675 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
12676 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
12677 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
12678 comments about maintainership of GNAT.
12680 PR ada/6919 (forward port of patch for PR ada/5904)
12681 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
12682 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
12683 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
12684 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
12685 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
12686 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
12687 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
12688 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
12689 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
12690 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
12691 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
12692 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
12693 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
12694 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
12695 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
12696 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
12697 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
12698 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
12699 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
12700 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
12701 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
12702 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
12703 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
12704 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
12705 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
12706 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
12707 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
12708 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
12709 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
12710 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
12711 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
12712 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
12713 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
12714 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
12715 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
12716 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
12717 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
12718 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
12719 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
12720 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
12721 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
12722 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
12723 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
12724 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
12725 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
12726 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
12727 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
12728 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
12729 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
12730 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
12731 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
12732 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
12733 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
12734 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
12735 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
12736 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
12737 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
12738 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
12739 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
12740 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
12741 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
12742 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
12743 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
12744 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
12745 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
12746 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
12747 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
12748 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
12749 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
12750 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
12751 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
12752 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
12753 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
12754 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
12755 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
12756 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
12757 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
12758 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
12759 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
12760 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
12761 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
12762 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
12763 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
12764 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
12765 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
12766 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
12767 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
12768 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
12769 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
12770 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
12771 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
12772 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
12773 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
12774 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
12775 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
12776 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
12777 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
12778 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
12779 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
12780 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
12781 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
12782 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
12783 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
12784 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
12785 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
12786 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
12787 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
12788 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
12789 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
12790 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
12791 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
12792 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
12793 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
12794 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
12795 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
12796 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
12797 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
12798 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
12799 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
12800 par-endh.adb par-labl.adb par-load.adb par-prag.adb
12801 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
12802 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
12803 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
12804 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
12805 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
12806 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
12807 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
12808 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
12809 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
12810 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
12811 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
12812 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
12813 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
12814 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
12815 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
12816 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
12817 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
12818 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
12819 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
12820 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
12821 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
12822 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
12823 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
12824 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
12825 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
12826 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
12827 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
12828 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
12829 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
12830 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
12831 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
12832 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
12833 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
12834 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
12835 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
12836 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
12837 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
12838 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
12839 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
12840 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
12841 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
12842 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
12843 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
12844 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
12845 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
12846 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
12847 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
12848 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
12849 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
12850 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
12851 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
12852 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
12853 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
12854 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
12855 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
12856 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
12857 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
12858 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
12859 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
12860 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
12861 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
12862 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
12863 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
12864 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
12865 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
12866 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
12867 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
12868 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
12869 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
12870 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
12871 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
12872 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
12873 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
12874 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
12875 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
12876 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
12877 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
12878 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
12879 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
12880 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
12881 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
12882 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
12883 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
12884 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
12885 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
12886 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
12887 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
12888 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
12889 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
12890 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
12891 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
12892 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
12893 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
12894 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
12895 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
12896 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
12897 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
12898 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
12899 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
12900 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
12901 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
12902 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
12903 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
12904 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
12905 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
12906 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
12907 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
12908 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
12909 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
12910 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
12911 stringt.ads stringt.h style.adb style.ads stylesw.adb
12912 stylesw.ads switch.adb switch.ads sysdep.c system.ads
12913 table.adb table.ads targparm.adb targparm.ads targtyps.c
12914 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
12915 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
12916 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
12917 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
12918 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
12919 usage.ads utils.c utils2.c validsw.adb validsw.ads
12920 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
12921 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
12922 xtreeprs.adb: Correct statements in comments about maintainership
12925 2002-09-23 Zack Weinberg <zack@codesourcery.com>
12927 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
12928 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
12929 * gnatvsn.ads: Gnat_Version_String is now a function.
12930 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
12931 copy the C version_string into a String and return it.
12932 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
12933 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
12934 Remove pragma Ident (Gnat_Version_String). If this was the
12935 sole use of package Gnatvsn, remove the with statement too.
12936 * gnat1drv.adb: Tweak -gnatv output.
12938 2002-09-17 Richard Henderson <rth@redhat.com>
12940 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
12941 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
12942 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
12943 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
12944 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
12945 and real_2expN instead of a loop.
12946 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
12947 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
12949 2002-08-25 Andre Leis <a.leis@gmx.net>
12950 David Billinghurst (David.Billinghurst@riotinto.com>
12952 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
12954 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12956 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
12957 Remove $(CONFIG_H) dependency.
12959 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
12961 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
12963 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12965 * adadecode.c (ada_demangle): Use xstrdup in lieu of
12967 * misc.c (gnat_decode_option): Likewise.
12969 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
12971 * make.adb (Add_Switch): Make Generic_Position a procedure. The
12972 function approach did not work well because of a side effect (the
12973 function call could reallocate the table which was being indexed
12974 using its result). Fixes ada/4851. [RESURRECTED]
12976 2002-07-01 Roger Sayle <roger@eyesopen.com>
12978 * ada/utils.c (builtin_function): Accept an additional parameter.
12980 2002-06-28 Andreas Jaeger <aj@suse.de>
12983 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
12986 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12988 * Makefile.in (SHELL): Set to @SHELL@.
12990 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12992 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
12993 array size calculation.
12995 2002-06-04 Andreas Jaeger <aj@suse.de>
12997 * Make-lang.in (gnatbind): Readd rule that has been lost in last
13000 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
13002 Merge from pch-branch:
13004 * config-lang.in (gtfiles): Add ada-tree.h.
13005 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
13006 (SET_TYPE_MODULUS): New.
13007 (SET_TYPE_INDEX): New.
13008 (SET_TYPE_DIGITS_VALUE): New.
13009 (SET_TYPE_RM_SIZE): New.
13010 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
13011 (SET_TYPE_ADA_SIZE): New.
13012 (SET_TYPE_ACTUAL_BOUNDS): New.
13013 (SET_DECL_CONST_CORRESPONDING_VAR): New.
13014 (SET_DECL_ORIGINAL_FIELD): New.
13015 (TREE_LOOP_ID): Correct typo.
13016 * decl.c: Use new macros.
13017 * utils.c: Include debug.h, use new macros.
13018 * utils2.c: Use new macros.
13020 * ada-tree.h: Update all macros for new tree description.
13021 (struct tree_loop_id): New.
13022 (union lang_tree_node): New.
13023 (struct lang_decl): New.
13024 (struct lang_type): New.
13025 * misc.c (gnat_mark_tree): Delete.
13026 (LANG_HOOKS_MARK_TREE): Delete.
13027 * trans.c (tree_transform): No longer any need to cast
13030 * utils.c (struct language_function): New dummy structure.
13032 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
13033 (misc.o): Likewise.
13034 (utils.o): Likewise; also gtype-ada.h.
13035 * Make-lang.in (gnat1): Add dependency on s-gtype.
13036 (gnatbind): Add dependency on $(CONFIG_H).
13037 * utils.c: Correct last #include.
13038 (stuct e_stack): Remove unnecessary 'static'.
13039 (mark_e_stack): Remove unused prototype.
13041 * scn-nlit.adb: Remove whitespace after version number to
13042 keep lines under 80 chars.
13043 * snames.adb: Likewise.
13044 * treepr.ads: Likewise.
13046 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
13047 (misc.o): Likewise.
13048 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
13049 * config-lang.in (gtfiles): New.
13050 * decl.c: Use gengtype for roots.
13051 * gigi.h: Use gengtype for roots.
13052 * trans.c: Use gengtype for roots.
13053 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
13055 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
13057 * misc.c (gnat_init): Adjust setting of internal_error_function.
13059 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
13061 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
13062 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
13063 gnat_ug_wnt.texi: Regenerate.
13065 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
13067 * 5ntaprop.adb (with System.OS_Primitives): Remove.
13069 * cstreams.c (max_path_len): Move from here ...
13070 * adaint.c (__gnat_max_path_len): ... to here.
13071 * adaint.c (__gnat_max_path_len): Declare.
13072 * g-dirope.adb (Max_Path): Adjust.
13073 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
13074 * i-cstrea.ads (max_path_len): Adjust.
13075 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
13076 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
13078 * Makefile.in, Make-lang.in: Documentation is now built in
13079 Make-lang.in. Store Info and generated Texinfo files in the
13081 * gnat_ug.texi: Remove CVS keywords, correct version number.
13082 Set file name correctly.
13084 * gnat_ug_*.texi: Add.
13085 * .cvsignore: Ignore generated Texinfo files.
13087 2002-05-30 Zack Weinberg <zack@codesourcery.com>
13089 * ada.h: Add MI guard macro.
13090 (SUBTYPE): Define constants with an anonymous enum, not static
13092 (IN): Cast constants to appropriate type before use.
13094 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
13096 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
13099 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13101 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
13102 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
13103 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
13104 (ALL_ADA_CFLAGS): Likewise.
13105 (ADA_INCLUDES): Likewise.
13106 Adapt for new working dir.
13107 (GNATBIND): Use Makefile.in version.
13108 (.SUFFIXES): Copy from Makefile.in.
13109 (ada-warn): Define.
13110 (.adb.o, .ads.o): Copy from Makefile.in.
13111 Added $(OUTPUT_OPTION).
13112 (GNAT1_C_OBJS): Moved from Makefile.in.
13113 Prefix with ada subdir.
13114 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
13115 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
13116 Adapt for new working dir.
13117 (EXTRA_GNATBIND_OBJS): Likewise.
13118 (ADA_BACKEND): Moved from Makefile.in.
13119 Renamed to avoid conflict with global BACKEND.
13121 (TARGET_ADA_SRCS): Moved from Makefile.in.
13122 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
13124 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
13125 (ada_extra_files): Moved from Makefile.in.
13126 Prefix with ada subdir.
13127 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
13128 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
13129 (ada/nmake.ads): Likewise.
13130 (update-sources): Moved from Makefile.in.
13131 Prefix with ada subdir.
13132 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
13133 (ADA_TREE_H): Likewise.
13134 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
13135 (ada/memtrack.o): Likewise.
13136 (ada/adadecode.o): Likewise.
13137 Update dependencies.
13138 (ada/adaint.o): New.
13139 (ada/argv.o): Moved from Makefile.in.
13140 Prefix with ada subdir.
13141 Update dependencies.
13142 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
13143 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
13144 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
13145 Prefix with ada subdir.
13146 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
13147 (GNAT DEPENDENCIES): Regenerate.
13148 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
13149 toplevel Makefile.in.
13150 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
13151 (TARGET_ADA_SRCS): Removed.
13152 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
13153 (GNATBIND_OBJS): Likewise.
13154 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
13155 (BACKEND): Removed.
13156 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
13157 (TREE_H): Likewise.
13158 (ada_extra_files): Likewise.
13159 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
13160 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
13161 (update-sources): Likewise.
13162 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
13163 (ADA_TREE_H): Likewise.
13164 (adadecoce.o): Likewise.
13165 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
13166 (GNAT DEPENDENCIES): Likewise.
13168 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13170 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
13171 * Makefile.in: Likewise.
13173 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13175 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
13176 Restore $(CONFIG_H) and prefix.o dependencies.
13177 (ada.stage[1-4]): Depend on stage?-start.
13179 * Makefile.in (b_gnatb.c): Depend on interfac.o.
13181 2002-05-02 Jim Wilson <wilson@redhat.com>
13183 * utils.c (finish_record_type): Change record_size to record_type.
13185 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
13187 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
13188 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
13189 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
13191 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
13193 * misc.c (gnat_parse_file): Update.
13195 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
13197 * misc.c (gnat_init): Don't set lang_attribute_common.
13199 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
13201 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
13203 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
13205 * gnat_ug.texi: New file.
13207 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
13208 instead of gfdl.texi
13210 * xgnatug.adb, ug_words: New files.
13212 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
13213 gnat_rm and gnat-style manuals.
13215 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
13217 * gigi.h (incomplete_type_error): Remove.
13218 * utils.c (incomplete_type_error): Remove.
13220 2002-04-16 Mark Mitchell <mark@codesourcery.com>
13222 * trans.c (tree_transform): Add has_scope argument to
13223 expand_start_stmt_expr.
13225 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
13227 * gigi.h (truthvalue_conversion): Rename.
13228 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
13229 * trans.c (tree_transform): Update.
13230 * utils2.c (truthvalue_conversion): Rename, update.
13231 (build_binary_op, build_unary_op): Update.
13233 2002-04-04 Laurent Guerby <guerby@acm.org>
13235 * make.adb: Implement -margs, remove restriction about file name placement.
13236 * makeusg.adb: Documentation update.
13237 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
13238 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
13240 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
13242 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
13243 (builtin_function): Similarly.
13245 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
13247 * decl.c (gnat_to_gnu_entity): Update.
13248 * gigi.h (mark_addressable): Rename.
13249 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
13250 * trans.c (tree_transform): Update.
13251 * utils.c (create_var_decl): Update.
13252 * util2.c (build_binary_op, build_unary_op,
13253 fill_vms_descriptor): Update.
13254 (mark_addressable): Rename, update.
13256 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
13258 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
13260 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
13261 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
13262 * trans.c (tree_transform, convert_with_check): Update.
13263 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
13266 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
13268 * gigi.h (finish_incomplete_decl): Rename.
13269 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
13270 * utils.c (gnat_init_decl_processing): Don't set hook.
13271 (finish_incomplete_decl): Rename.
13273 2002-03-29 Andreas Schwab <schwab@suse.de>
13275 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
13278 2001-03-28 Robert Dewar <dewar@gnat.com>
13281 (Remove_Checks): New procedure
13284 (Remove_Checks): New procedure
13287 Use new Duplicate_Subexpr functions
13288 (Duplicate_Subexpr_No_Checks): New procedure
13289 (Duplicate_Subexpr_No_Checks_Orig): New procedure
13290 (Duplicate_Subexpr): Restore original form (checks duplicated)
13291 (Duplicate_Subexpr): Call Remove_Checks
13294 (Duplicate_Subexpr_No_Checks): New procedure
13295 (Duplicate_Subexpr_No_Checks_Orig): New procedure
13296 Add 2002 to copyright notice
13298 * sem_util.adb: Use new Duplicate_Subexpr functions
13301 (Eval_Indexed_Component): This is the place to call
13302 Constant_Array_Ref and to replace the value. We simply merge
13303 the code of this function in here, since it is now no longer
13304 used elsewhere. This fixes the problem of the back end not
13305 realizing we were clever enough to see that this was
13307 (Expr_Val): Remove call to Constant_Array_Ref
13308 (Expr_Rep_Val): Remove call to Constant_Array_Ref
13310 (Constant_Array_Ref): Deal with string literals (patch
13311 suggested by Zack Weinberg on the gcc list)
13313 2001-03-28 Ed Schonberg <schonber@gnat.com>
13315 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
13316 Duplicate_Subexpr_Move_Checks.
13318 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
13319 Duplicate_Subexpr_Move_Checks.
13321 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
13322 value of array exists before retrieving it (it may a private
13323 protected component in a function).
13325 2002-03-28 Geert Bosch <bosch@gnat.com>
13327 * prj-pp.adb : New file.
13329 * prj-pp.ads : New file.
13331 2002-03-28 Andreas Jaeger <aj@suse.de>
13333 * Makefile.in (stamp-sdefault): Fix path for Makefile.
13335 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
13337 * misc.c (gnat_expand_expr): Move prototype.
13339 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
13341 * misc.c (insert_default_attributes): Remove.
13343 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
13345 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
13346 (gnat_init): Don't set hook.
13347 (gnat_expand_expr): Fix prototype.
13349 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
13351 * misc.c (ggc_p): Remove.
13353 2002-03-27 Geert Bosch <bosch@gnat.com>
13355 * prj-makr.ads, prj-makr.adb : New files.
13357 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
13359 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
13360 (lang_mark_tree): Make static, rename.
13362 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
13364 * misc.c (maybe_build_cleanup): Remove.
13366 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
13368 * gigi.h (yyparse): Remove.
13370 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
13372 * gnat_rm.texi: Sync with ACT version.
13373 (From Ben Brosgol <brosgol@gnat.com>)
13375 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
13377 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
13378 (gnat_init): Remove old hook.
13380 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
13382 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
13383 (yyparse): Rename gnat_parse_file.
13385 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
13387 Delete all lines containing "$Revision:".
13388 * xeinfo.adb: Don't look for revision numbers.
13389 * xnmake.adb: Likewise.
13390 * xsinfo.adb: Likewise.
13391 * xsnames.adb: Likewise.
13392 * xtreeprs.adb: Likewise.
13394 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13396 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
13397 gnat_tree_code_name): Delete.
13398 (tree_code_type, tree_code_length, tree_code_name): Define.
13399 (gnat_init): Don't try to copy into the various tree_code
13402 2002-03-11 Richard Henderson <rth@redhat.com>
13404 * Makefile.in (.NOTPARALLEL): Add fake tag.
13406 2002-03-07 Geert Bosch <bosch@gnat.com>
13408 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
13409 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
13410 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
13411 switch-m.adb, switch-m.ads : New files.
13413 2002-03-07 Geert Bosch <bosch@gnat.com>
13415 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
13416 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
13417 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
13418 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
13419 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
13420 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
13421 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
13422 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
13423 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
13424 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
13425 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
13426 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
13427 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
13428 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
13429 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
13430 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
13431 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
13432 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
13433 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
13434 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
13435 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
13436 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
13437 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
13438 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
13439 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
13440 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
13441 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
13442 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
13443 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
13444 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
13445 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
13446 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
13447 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
13448 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
13449 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
13450 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
13451 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
13452 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
13453 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
13454 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
13455 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
13456 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
13457 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
13458 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
13459 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
13460 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
13461 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
13462 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
13463 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
13464 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
13465 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
13466 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
13467 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
13468 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
13469 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
13470 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
13471 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
13472 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
13473 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
13474 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
13475 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
13476 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
13477 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
13478 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
13479 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
13480 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
13481 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
13482 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
13483 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
13484 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
13485 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
13486 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
13487 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
13488 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
13489 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
13490 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
13491 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
13492 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
13493 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
13494 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
13495 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
13496 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
13497 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
13498 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
13499 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
13500 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
13501 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
13502 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
13503 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
13504 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
13505 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
13506 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
13507 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
13508 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
13509 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
13510 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
13511 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
13513 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
13514 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
13515 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
13516 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
13518 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
13519 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
13521 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
13522 to mdll-fil.ad[bs] and mdll-util.ad[bs]
13524 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
13525 from mdllfile.ad[bs] and mdlltool.ad[bs]
13527 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13529 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
13530 lieu of explicit sizeof/sizeof.
13532 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
13534 * misc.c (copy_lang_decl): Remove.
13536 2002-02-27 Zack Weinberg <zack@codesourcery.com>
13538 * misc.c: Delete traditional-mode-related code copied from the
13539 C front end but not used, or used only to permit the compiler
13542 2002-02-07 Richard Henderson <rth@redhat.com>
13544 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
13545 * adaint.h (__gnat_to_gm_time): Update prototype.
13547 2002-01-30 Richard Henderson <rth@redhat.com>
13549 * trans.c (tree_transform) [N_Loop_Statement]: Use
13550 expand_exit_loop_top_cond.
13552 2001-12-23 Richard Henderson <rth@redhat.com>
13554 * utils.c (end_subprog_body): Push GC context around
13555 rest_of_compilation for nested functions.
13557 2001-12-23 Richard Henderson <rth@redhat.com>
13559 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
13561 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
13563 * gnat-style.texi (Declarations and Types): Remove ancient style
13564 rule which was mandated by code generation issues.
13566 * gnat-style.texi (header): Add @dircategory, @direntry.
13567 (title page): Remove date.
13568 (general) Add @./@: where approriate, and two spaces after the
13569 full stop at the end of a sentence. Use @samp markup when
13570 referring concrete lexical entities (keywords, attribute names
13571 etc.), and @syntax for ARM grammar elements. Use @r for English
13572 text in comments. Use @emph for emphasis. Change "if-statements"
13573 etc. to "if statements" (without @samp). Break long lines. Make
13574 casing of section names consistent.
13575 (Identifiers): Use @samp markup for variable names.
13576 (Comments): Use @samp markup for comment characters. Line-end
13577 comments may follow any Ada code, not just statements. Fix
13578 misspelling of "Integer" as "integer".
13579 (Loop statements): Do not use variable name "I", use "J".
13580 (Subprogram Declarations): Document alignment.
13581 (Subprogram Bodies, Block statements): Document empty line before
13584 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
13586 * make.adb (Add_Switch): Make Generic_Position a procedure. The
13587 function approach did not work well because of a side effect (the
13588 function call could reallocate the table which was being indexed
13589 using its result). Fixes ada/4851.
13591 2001-12-19 Robert Dewar <dewar@gnat.com>
13593 * bindgen.adb: Minor reformatting
13595 * cstand.adb: Minor reformatting
13597 * fmap.adb: Minor reformatting
13598 Change name from Add for Add_To_File_Map (Add is much too generic)
13599 Change Path_Name_Of to Mapped_Path_Name
13600 Change File_Name_Of to Mapped_File_Name
13601 Fix copyright dates in header
13604 Change name from Add for Add_To_File_Map (Add is much too generic)
13605 Change Path_Name_Of to Mapped_Path_Name
13606 Change File_Name_Of to Mapped_File_Name
13607 Fix copyright dates in header
13609 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
13610 Add use clause for Fmap.
13612 * make.adb: Minor reformatting
13614 * osint.adb: Minor reformatting. Change of names in Fmap.
13615 Add use clause for Fmap.
13617 * prj-env.adb: Minor reformatting
13619 * prj-env.ads: Minor reformatting
13621 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
13622 error found (there were odd exceptions to this general rule in
13623 -gnatec/-gnatem processing)
13625 2001-12-19 Olivier Hainque <hainque@gnat.com>
13627 * raise.c (__gnat_eh_personality): Exception handling personality
13628 routine for Ada. Still in rough state, inspired from the C++ version
13629 and still containing a bunch of debugging artifacts.
13630 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
13631 inspired from the C++ library.
13633 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
13634 exception handling integration.
13636 2001-12-19 Arnaud Charlet <charlet@gnat.com>
13638 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
13639 (HIE_SOURCES): Add s-secsta.ad{s,b}.
13640 (HIE_OBJS): Add s-fat*.o
13641 (RAVEN_SOURCES): Remove files that are no longer required. Add
13642 interrupt handling files.
13643 (RAVEN_MOD): Removed, no longer needed.
13645 2001-12-19 Robert Dewar <dewar@gnat.com>
13647 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
13648 Add 2001 to copyright date
13650 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
13651 need to force universal inlining for these cases.
13653 2001-12-19 Arnaud Charlet <charlet@gnat.com>
13655 * s-taprob.adb: Minor clean ups so that this unit can be used in
13658 * exp_ch7.adb: Allow use of secondary stack in HI mode.
13659 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
13661 2001-12-19 Vincent Celier <celier@gnat.com>
13663 * prj-tree.ads (Project_Node_Record): Add comments for components
13664 Pkg_Id and Case_Insensitive.
13666 2001-12-19 Pascal Obry <obry@gnat.com>
13668 * g-socket.adb: Minor reformatting. Found while reading code.
13670 2001-12-19 Robert Dewar <dewar@gnat.com>
13672 * prj-tree.ads: Minor reformatting
13674 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
13676 * config-lang.in (diff_excludes): Remove.
13678 2001-12-17 Ed Schonberg <schonber@gnat.com>
13680 * sem_res.adb (Resolve_Selected_Component): do not generate a
13681 discriminant check if the selected component is a component of
13682 the argument of an initialization procedure.
13684 * trans.c (tree_transform, case of arithmetic operators): If result
13685 type is private, the gnu_type is the base type of the full view,
13686 given that the full view itself may be a subtype.
13688 2001-12-17 Robert Dewar <dewar@gnat.com>
13690 * sem_res.adb: Minor reformatting
13692 * trans.c (tree_transform, case N_Real_Literal): Add missing third
13693 parameter in call to Machine (unknown horrible effects from this
13696 * urealp.h: Add definition of Round_Even for call to Machine
13697 Add third parameter for Machine
13699 2001-12-17 Ed Schonberg <schonber@gnat.com>
13701 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
13702 predefined units in No_Run_Time mode.
13704 2001-12-17 Richard Kenner <kenner@gnat.com>
13706 * misc.c (insn-codes.h): Now include.
13708 2001-12-17 Olivier Hainque <hainque@gnat.com>
13710 * a-except.adb: Preparation work for future integration of the GCC 3
13711 exception handling mechanism
13712 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
13713 to factorize previous code sequences and make them externally callable,
13714 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
13715 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
13716 Use the new notification routines.
13718 2001-12-17 Emmanuel Briot <briot@gnat.com>
13720 * prj-tree.ads (First_Choice_Of): Document the when others case
13722 2001-12-17 Arnaud Charlet <charlet@gnat.com>
13724 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
13725 HI-E mode, in order to support Ravenscar profile properly.
13727 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
13728 mode on 32 bits targets.
13730 2001-12-17 Vincent Celier <celier@gnat.com>
13732 * fmap.adb: Initial version.
13734 * fmap.ads: Initial version.
13736 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
13737 If search is successfully done, add to mapping.
13739 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
13742 (Gnatmake): Add new local variable Mapping_File_Name.
13743 Create mapping file when using project file(s).
13744 Delete mapping file before exiting.
13746 * opt.ads (Mapping_File_Name): New variable
13748 * osint.adb (Find_File): Use path name found in mapping, if any.
13750 * prj-env.adb (Create_Mapping_File): New procedure
13752 * prj-env.ads (Create_Mapping_File): New procedure.
13754 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
13757 * usage.adb: Add entry for new switch -gnatem.
13759 * Makefile.in: Add dependencies for fmap.o.
13761 2001-12-17 Ed Schonberg <schonber@gnat.com>
13763 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
13764 is a package instantiation rewritten as a package body.
13765 (Install_Withed_Unit): Undo previous change, now redundant.
13767 2001-12-17 Gary Dismukes <dismukes@gnat.com>
13770 (Compute_Length): Move conversion to Unsigned to callers.
13771 (Get_Max_Size): Convert Len expression to Unsigned after calls to
13772 Compute_Length and Determine_Range.
13773 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
13774 Compute_Length and Determine_Range.
13775 Above changes fix problem with length computation for supernull arrays
13776 where Max (Len, 0) wasn't getting applied due to the Unsigned
13777 conversion used by Compute_Length.
13779 2001-12-17 Arnaud Charlet <charlet@gnat.com>
13782 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
13783 System.Secondary_Stack.
13784 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
13786 Remove unused entity RE_Exception_Data.
13788 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
13790 * rident.ads (No_Secondary_Stack): New restriction.
13792 2001-12-17 Joel Brobecker <brobecke@gnat.com>
13794 * gnat_rm.texi: Fix minor typos. Found while reading the section
13795 regarding "Bit_Order Clauses" that was sent to a customer.
13796 Very interesting documentation!
13798 2001-12-17 Robert Dewar <dewar@gnat.com>
13800 * sem_case.adb (Choice_Image): Avoid creating improper character
13801 literal names by using the routine Set_Character_Literal_Name. This
13802 fixes bombs in certain error message cases.
13804 2001-12-17 Arnaud Charlet <charlet@gnat.com>
13806 * a-reatim.adb: Minor reformatting.
13808 2001-12-17 Ed Schonberg <schonber@gnat.com>
13810 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
13811 case where the formal is an extension of another formal in the current
13812 unit or in a parent generic unit.
13814 2001-12-17 Arnaud Charlet <charlet@gnat.com>
13816 * s-tposen.adb: Update comments. Minor reformatting.
13817 Minor code clean up.
13819 * s-tarest.adb: Update comments. Minor code reorganization.
13821 2001-12-17 Gary Dismukes <dismukes@gnat.com>
13823 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
13826 2001-12-17 Robert Dewar <dewar@gnat.com>
13828 * exp_attr.adb: Minor reformatting
13830 2001-12-17 Ed Schonberg <schonber@gnat.com>
13832 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
13833 derivations nested within a child unit: verify that the parent
13834 type is declared in an outer scope.
13836 2001-12-17 Robert Dewar <dewar@gnat.com>
13838 * sem_ch12.adb: Minor reformatting
13840 2001-12-17 Ed Schonberg <schonber@gnat.com>
13842 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
13843 warning if current unit is a predefined one, from which bodies may
13846 2001-12-17 Robert Dewar <dewar@gnat.com>
13848 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
13849 Fix header format. Add 2001 to copyright date.
13851 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
13852 which caused CE during compilation if checks were enabled.
13854 2001-12-17 Vincent Celier <celier@gnat.com>
13857 (Switches_Of): New function
13858 (Test_If_Relative_Path): New procedure
13859 (Add_Switches): Use new function Switches_Of
13860 (Collect_Arguments_And_Compile): Use new function Switches_Of.
13861 When using a project file, test if there are any relative
13862 search path. Fail if there are any.
13863 (Gnatmake): Only add switches for the primary directory when not using
13864 a project file. When using a project file, change directory to the
13865 object directory of the main project file. When using a project file,
13866 test if there are any relative search path. Fail if there are any.
13867 When using a project file, fail if specified executable is relative
13868 path with directory information, and prepend executable, if not
13869 specified as an absolute path, with the exec directory. Make sure
13870 that only one -o switch is transmitted to the linker.
13872 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
13875 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
13876 when using a non standard naming scheme.
13877 (Check_Ada_Naming_Scheme): Make sure that error messages
13878 do not raise exceptions.
13879 (Is_Illegal_Append): Return True if there is no dot in the suffix.
13880 (Language_Independent_Check): Check the exec directory.
13882 * prj.adb (Project_Empty): Add new component Exec_Directory
13885 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
13886 (Project_Data): Add component Exec_Directory
13888 * snames.adb: Updated to match snames.ads revision 1.215
13890 * snames.ads: Added Exec_Dir
13892 2001-12-17 Robert Dewar <dewar@gnat.com>
13894 * make.adb: Minor reformatting
13896 * prj-nmsc.adb: Minor reformatting
13898 * snames.adb: Updated to match snames.ads
13900 * snames.ads: Alphebetize entries for project file
13902 2001-12-17 Ed Schonberg <schonber@gnat.com>
13904 * trans.c (process_freeze_entity): Do nothing if the entity is a
13905 subprogram that was already elaborated.
13907 2001-12-17 Richard Kenner <kenner@gnat.com>
13909 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
13910 and Esize if object is referenced via pointer.
13912 2001-12-17 Ed Schonberg <schonber@gnat.com>
13914 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
13915 is discrete before analyzing choices.
13917 2001-12-17 Joel Brobecker <brobecke@gnat.com>
13919 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
13920 containing the name of the Ada Main Program. This string is mainly
13921 intended for the debugger.
13922 (Gen_Output_File_C): Do the equivalent change when generating a C file.
13924 2001-12-17 Robert Dewar <dewar@gnat.com>
13926 * ali.adb: Set new Dummy_Entry field in dependency entry
13928 * ali.ads: Add Dummy_Entry field to source dependency table
13930 * bcheck.adb (Check_Consistency): Ignore dummy D lines
13932 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
13934 * lib-writ.ads: Document dummy D lines for missing files.
13936 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
13938 2001-12-17 Robert Dewar <dewar@gnat.com>
13940 * ali.adb: Type reference does not reset current file.
13942 * ali.adb: Recognize and scan renaming reference
13944 * ali.ads: Add spec for storing renaming references.
13946 * lib-xref.ads: Add documentation for handling of renaming references
13948 * lib-xref.adb: Implement output of renaming reference.
13951 (Determine_Range): Document local variables
13952 (Determine_Range): Make sure Hbound is initialized. It looks as though
13953 there could be a real problem here with an uninitialized reference
13954 to Hbound, but no actual example of failure has been found.
13956 2001-12-17 Laurent Pautet <pautet@gnat.com>
13959 Fix comment of Shutdown_Socket and Close_Socket. These functions
13960 should not fail silently because if they are called twice, this
13961 probably means that there is a race condition in the user program.
13962 Anyway, this behaviour is consistent with the rest of this unit.
13963 When an error occurs, an exception is raised with the error message
13964 as exception message.
13966 2001-12-17 Robert Dewar <dewar@gnat.com>
13968 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
13969 that it happens before modification of Sloc values for -gnatD.
13971 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
13972 so that it happens before modification of Sloc values for -gnatD.
13974 * switch.adb: Minor reformatting
13976 2001-12-15 Richard Henderson <rth@redhat.com>
13978 * sem_ch7.adb: Wrap comment.
13980 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
13982 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
13983 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
13984 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
13985 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
13986 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
13987 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
13988 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
13989 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
13990 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
13991 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
13992 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
13993 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
13994 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
13995 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
13996 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
13997 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
13998 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
13999 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
14000 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
14001 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
14002 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
14003 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
14004 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
14005 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
14008 2001-12-14 Vincent Celier <celier@gnat.com>
14010 * osint.adb(Create_Debug_File): When an object file is specified,
14011 put the .dg file in the same directory as the object file.
14013 2001-12-14 Robert Dewar <dewar@gnat.com>
14015 * osint.adb: Minor reformatting
14017 * lib-xref.adb (Output_Instantiation): New procedure to generate
14018 instantiation references.
14020 * lib-xref.ads: Add documentation of handling of generic references.
14022 * ali.adb (Read_Instantiation_Ref): New procedure to read
14023 instantiation references
14025 * ali.ads: Add spec for storing instantiation references
14027 * bindusg.adb: Minor reformatting
14029 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
14031 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
14033 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
14035 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
14039 Add 2001 to copyright date
14040 Add entry for Latin-5 (Cyrillic ISO-8859-5)
14042 2001-12-14 Matt Gingell <gingell@gnat.com>
14044 * adaint.c: mktemp is a macro on Lynx and can not be used as an
14047 2001-12-14 Richard Kenner <kenner@gnat.com>
14049 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
14050 if operand is CONSTRUCTOR.
14052 2001-12-14 Ed Schonberg <schonber@gnat.com>
14054 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
14055 before emiting check on right-hand side, so that exception information
14058 2001-12-14 Richard Kenner <kenner@gnat.com>
14060 * utils.c (create_var_decl): Throw away initializing expression
14061 if just annotating types and non-constant.
14063 2001-12-14 Vincent Celier <celier@gnat.com>
14065 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
14068 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
14070 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
14072 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
14074 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
14076 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
14078 * ChangeLog: Remove piece of diff output.
14080 2001-12-14 Geert Bosch <bosch@gnat.com>
14082 * config-lang.in: Update copyright notice
14084 * layout.adb: Remove commented out code.
14086 * mdllfile.ads: Update copyright notice. Fix header format.
14088 * sem_case.ads: Likewise.
14090 * sem_ch3.adb: Minor reformatting.
14092 2001-12-12 Geert Bosch <bosch@gnat.com>
14094 * freeze.ads: Update copyright date.
14096 * g-comlin.ads: Minor reformatting.
14098 * gnat-style.texi: Fix typo.
14100 2001-12-12 Geert Bosch <bosch@gnat.com>
14102 * einfo.h: Regenerate.
14104 2001-12-12 Ed Schonberg <schonber@gnat.com>
14106 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
14107 on known node types, rather than untyped fields. Further cleanups.
14109 2001-12-12 Robert Dewar <dewar@gnat.com>
14112 (Save_Entity_Descendant): Minor comment update.
14113 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
14114 of an N_Attribute_Reference node. As per note below, this does not
14115 eliminate need for Associated_Node in attribute ref nodes.
14116 (Associated_Node): Documentation explicitly mentions attribute
14117 reference nodes, since this field is used in such nodes.
14119 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
14121 2001-12-12 Robert Dewar <dewar@gnat.com>
14123 * s-stalib.adb: Add more comments on with statements being needed
14125 * par-ch12.adb: Minor reformatting
14127 * prj-dect.ads: Fix copyright header
14129 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
14130 inputs fit in 32 bits, but the result still overflows.
14132 * s-fatgen.ads: Minor comment improvement
14134 2001-12-12 Ed Schonberg <schonber@gnat.com>
14136 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
14137 formal derived type, look for an inherited component from the full
14138 view of the parent, if any.
14140 2001-12-12 Robert Dewar <dewar@gnat.com>
14142 * checks.ads (Apply_Alignment_Check): New procedure.
14144 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
14145 ensure that the alignment of objects with address clauses is
14146 appropriate, and raise PE if not.
14148 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
14149 Exp_Pakd.Known_Aligned_Enough
14151 * mdllfile.ads: Minor reformatting
14153 * mlib-fil.ads: Minor reformatting
14155 2001-12-12 Ed Schonberg <schonber@gnat.com>
14157 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
14158 fix to any component reference if enclosing record has non-standard
14161 2001-12-12 Vincent Celier <celier@gnat.com>
14163 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
14166 2001-12-12 Ed Schonberg <schonber@gnat.com>
14168 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
14171 2001-12-12 Robert Dewar <dewar@gnat.com>
14173 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
14175 2001-12-12 Emmanuel Briot <briot@gnat.com>
14177 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
14178 and it adds dependencies to system.io.
14180 2001-12-12 Pascal Obry <obry@gnat.com>
14182 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
14185 2001-12-11 Ed Schonberg <schonber@gnat.com>
14187 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
14188 that is the parent of other generics, the instance body replaces the
14189 instance node. Retrieve the instance of the spec, which is the one
14190 that is visible in clients and within the body.
14192 2001-12-11 Vincent Celier <celier@gnat.com>
14194 * gnatmain.adb: Initial version.
14196 * gnatmain.ads: Initial version.
14198 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
14200 * snames.adb: Updated to match snames.ads.
14202 * snames.ads: Added Gnatstub.
14204 2001-12-11 Vincent Celier <celier@gnat.com>
14206 * prj-attr.adb (Initialization_Data): Change name from
14207 Initialisation_Data.
14209 2001-12-11 Emmanuel Briot <briot@gnat.com>
14211 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
14212 + and * applied to backslashed expressions like \r.
14214 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
14216 * g-os_lib.ads: String_List type added, Argument_List type is now
14217 subtype of String_List.
14219 2001-12-11 Robert Dewar <dewar@gnat.com>
14221 * g-os_lib.ads: Change copyright to FSF
14222 Add comments for String_List type
14224 2001-12-11 Vincent Celier <celier@gnat.com>
14226 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
14227 string to the buffer).
14229 2001-12-11 Ed Schonberg <schonber@gnat.com>
14231 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
14234 * sem_attr.adb: Simplify previous fix for Address.
14235 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
14236 to avoid anomalies where the bound of the type appears to raise
14239 2001-12-11 Robert Dewar <dewar@gnat.com>
14241 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
14244 2001-12-11 Ed Schonberg <schonber@gnat.com>
14246 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
14247 renamed unit before checking for recursive instantiations.
14249 2001-12-11 Emmanuel Briot <briot@gnat.com>
14251 * prj.ads: Add comments for some of the fields.
14253 2001-12-11 Robert Dewar <dewar@gnat.com>
14255 * lib-xref.adb (Output_Refs): Don't output type references outside
14256 the main unit if they are not otherwise referenced.
14258 2001-12-11 Ed Schonberg <schonber@gnat.com>
14260 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
14261 code and diagnose additional illegal uses
14263 * sem_util.adb (Is_Object_Reference): An indexed component is an
14264 object only if the prefix is.
14266 2001-12-11 Vincent Celier <celier@gnat.com>
14268 * g-diopit.adb: Initial version.
14270 * g-diopit.ads: Initial version.
14273 (Expand_Path): Avoid use of Unbounded_String
14274 (Find, Wildcard_Iterator): Moved to child package Iteration
14276 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
14278 2001-12-11 Robert Dewar <dewar@gnat.com>
14280 * sem_attr.adb: Minor reformatting
14282 2001-12-11 Ed Schonberg <schonber@gnat.com>
14284 * sem_ch3.adb: Clarify some ???.
14286 2001-12-11 Robert Dewar <dewar@gnat.com>
14288 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
14289 Exp_Pakd.Known_Aligned_Enough
14291 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
14292 version is moved to Exp_Ch13.
14294 2001-12-11 Robert Dewar <dewar@gnat.com>
14296 * einfo.ads: Minor reformatting
14298 * exp_ch5.adb: Add comment for previous.change
14300 * ali.adb: New interface for extended typeref stuff.
14302 * ali.ads: New interface for typeref stuff.
14304 * checks.adb (Apply_Alignment_Check): New procedure.
14306 * debug.adb: Add -gnatdM for modified ALI output
14308 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
14310 * lib-xref.adb: Extend generation of <..> notation to cover
14311 subtype/object types. Note that this is a complete rewrite,
14312 getting rid of the very nasty quadratic algorithm previously
14313 used for derived type output.
14315 * lib-xref.ads: Extend description of <..> notation to cover
14316 subtype/object types. Uses {..} for these other cases.
14317 Also use (..) for pointer types.
14319 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
14321 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
14322 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
14324 2001-12-11 Vincent Celier <celier@gnat.com>
14327 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
14328 Changed /BIND_ONLY to /ACTIONS=BIND
14329 Changed /LINK_ONLY to /ACTIONS=LINK
14331 2001-12-11 Ed Schonberg <schonber@gnat.com>
14333 * sem_ch8.adb (Find_Selected_Component): improved search for a
14334 candidate package in case of error.
14336 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
14337 chain back on scope stack before reinstalling use clauses.
14339 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
14340 is enabled, do not kill the code for the condition, to preserve
14343 2001-12-11 Robert Dewar <dewar@gnat.com>
14345 * checks.adb (Insert_Valid_Check): Apply validity check to expression
14346 of conversion, not to result of conversion.
14348 2001-12-11 Ed Schonberg <schonber@gnat.com>
14350 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
14351 before freezing parent. If the declarations are mutually recursive,
14352 an access to the current record type may be frozen before the
14353 derivation is complete.
14355 2001-12-05 Vincent Celier <celier@gnat.com>
14357 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
14358 -c /COMPILE_ONLY, -l /LINK_ONLY
14361 (Bind_Only): New Flag
14362 (Link_Only): New flag
14364 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
14367 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
14370 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
14371 (Gnatmake): Set the step flags. Only perform a step if the
14372 corresponding step flag is True.
14373 (Scan_Make_Arg): Reset the bind and link step flags when -u
14374 or -gnatc has been specified.
14376 2001-12-05 Ed Schonberg <schonber@gnat.com>
14378 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
14379 get bounds from right operand.
14381 * sem_eval.adb: Minor reformatting
14383 * exp_util.adb (Make_Literal_Range): use bound of literal rather
14384 than Index'First, its lower bound may be different from 1.
14386 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
14389 2001-12-05 Vincent Celier <celier@gnat.com>
14391 * prj-nmsc.adb Minor reformatting
14393 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
14394 set and libraries are not supported.
14396 2001-12-05 Ed Schonberg <schonber@gnat.com>
14398 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
14399 private view explicitly, so the back-end can treat as a global
14402 2001-12-05 Ed Schonberg <schonber@gnat.com>
14404 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
14405 unit, always replace instance node with new body, for ASIS use.
14407 2001-12-05 Vincent Celier <celier@gnat.com>
14409 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
14410 libraries are not supported and both attributes Library_Name and
14411 Library_Dir are specified.
14413 * prj-proc.adb (Expression): Set location of Result to location of
14416 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
14417 (prj-nmsc is now importing MLib.Tgt)
14419 * prj-proc.adb: Put the change indicated above that was forgotten.
14421 2001-12-05 Robert Dewar <dewar@gnat.com>
14423 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
14425 2001-12-05 Ed Schonberg <schonber@gnat.com>
14427 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
14428 constraint, introduce explicit subtype declaration and derive from it.
14430 * sem_ch3.adb: Minor reformatting
14432 2001-12-05 Robert Dewar <dewar@gnat.com>
14434 * checks.adb (Determine_Range): Increase cache size for checks.
14437 * exp_ch6.adb: Minor reformatting
14438 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
14439 a parameter whose root type is System.Address, since treating such
14440 subprograms as pure in the code generator is almost surely a mistake
14441 that will lead to unexpected results.
14443 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
14444 change handling of conversions.
14446 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
14448 2001-12-05 Ed Schonberg <schonber@gnat.com>
14450 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
14451 aggregate with static wrong size, attach generated Raise node to
14454 2001-12-05 Robert Dewar <dewar@gnat.com>
14456 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
14457 Fixes compilation abandoned bomb in B24009B.
14459 2001-12-05 Ed Schonberg <schonber@gnat.com>
14462 Document use of Associated_Node on Selected_Components.
14463 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
14464 to clarify use of untyped descendant fields.
14466 2001-12-05 Robert Dewar <dewar@gnat.com>
14468 * prj-dect.ads: Add ??? comment
14469 Add 2001 to copyright notice (was not done in after all)
14471 * prj-part.adb: Minor reformatting. Reword one awkward error message.
14473 * prj.ads: Minor reformatting throughout, and add some ??? comments
14475 * snames.ads: Minor reformatting
14477 2001-12-05 Geert Bosch <bosch@gnat.com>
14479 * snames.adb: Autoupdate
14481 2001-12-05 Vincent Celier <celier@gnat.com>
14483 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
14485 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
14487 * prj-env.adb: Minor comment changes (modifying -> extends).
14489 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
14491 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
14494 * prj.adb (Initialize): Change Modifying to Extends.
14496 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
14498 * prj.ads: Minor comment change (Modifying -> extending).
14500 * snames.ads: Change modifying to extends.
14502 2001-12-05 Robert Dewar <dewar@gnat.com>
14504 * sem_warn.adb: Remove stuff for conditionals, we are not going to
14507 * sem_warn.ads: Remove stuff for conditionals, we are not going to
14508 do this after all. Add 2001 to copyright notice
14510 2001-12-04 Geert Bosch <bosch@gnat.com>
14512 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
14514 2001-12-04 Robert Dewar <dewar@gnat.com>
14516 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
14517 location if we already have errors. Stops some cases of cascaded
14520 * errout.adb: Improve comment.
14522 2001-12-04 Robert Dewar <dewar@gnat.com>
14525 (Analyze_Formal_Type_Definition): Defend against Error.
14526 (Analyze_Formal_Subprogram): Defend against Error.
14528 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
14529 remove following semicolon if present. Removes cascaded error.
14531 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
14534 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
14535 exceptions equals 0.
14536 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
14537 Fixes PIWG E tests (which have to be run with -gnatL).
14539 2001-12-04 Robert Dewar <dewar@gnat.com>
14541 * einfo.ads: Minor reformatting
14543 2001-12-04 Ed Schonberg <schonber@gnat.com>
14545 * einfo.ads: Block_Node points to the identifier of the block, not to
14546 the block node itself, to preserve the link when the block is
14547 rewritten, e.g. within an if-statement with a static condition.
14549 * inline.adb (Cleanup_Scopes): recover block statement from block
14550 entity using new meaning of Block_Node.
14552 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
14553 identifier of block node, rather than to node itself.
14555 2001-12-04 Gary Dismukes <dismukes@gnat.com>
14558 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
14559 (Discrimify): Go back to setting the Etypes of the selected component
14560 because the Vname component does not exist at this point and will
14561 fail name resolution. Also set Analyzed.
14562 Remove with and use of Sem_Res.
14564 2001-12-04 Arnaud Charlet <charlet@gnat.com>
14566 * Makefile.in: (HIE_SOURCES): add s-fat*.
14568 2001-12-04 Robert Dewar <dewar@gnat.com>
14571 (Compile_Time_Known_Attribute): New procedure.
14572 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
14573 proper range check.
14575 2001-12-04 Ed Schonberg <schonber@gnat.com>
14577 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
14578 processing discriminants to diagnose illegal default values.
14580 2001-12-04 Ed Schonberg <schonber@gnat.com>
14582 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
14583 access discriminant within a type extension that constrains its
14584 parent discriminants.
14586 2001-12-04 Ed Schonberg <schonber@gnat.com>
14588 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
14589 is malformed, use instance of Any_Id to allow analysis to proceed.
14591 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
14592 type definition is illegal.
14593 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
14596 2001-12-04 Ed Schonberg <schonber@gnat.com>
14598 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
14601 2001-12-04 Robert Dewar <dewar@gnat.com>
14603 * errout.adb: Minor reformatting
14605 2001-12-04 Robert Dewar <dewar@gnat.com>
14607 * exp_util.adb: Minor reformatting from last change
14609 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
14610 which is a rewriting of an expression, traverse the original
14611 expression to remove warnings that may have been posted on it.
14613 2001-12-04 Ed Schonberg <schonber@gnat.com>
14615 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
14616 record that has other packed components.
14618 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
14620 * adaint.c: Minor cleanups.
14622 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
14624 * adaint.c: Do not use utime.h on vxworks.
14626 2001-12-04 Arnaud Charlet <charlet@gnat.com>
14628 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
14629 more confusion than it solves.
14631 2001-12-04 Geert bosch <bosch@gnat.com>
14633 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
14635 2001-12-04 Geert Bosch <bosch@gnat.com>
14637 * Makefile.in (update-sources): New target.
14638 For use by gcc_release script.
14640 2001-12-04 Ed Schonberg <schonber@gnat.com>
14642 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
14643 a configuration pragma, it is now legal wherever a pragma can appear.
14645 2001-12-04 Zack Weinberg <zack@codesourcery.com>
14647 * Makefile.in: Don't set ALL. Delete @cross_defines@,
14648 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
14649 is now @CROSS@ -DIN_GCC; update comment.
14651 2001-12-04 Robert Dewar <dewar@gnat.com>
14653 * einfo.adb (Has_Pragma_Pure_Function): New flag.
14654 Fix problem that stopped ceinfo from working
14656 * einfo.ads (Has_Pragma_Pure_Function): New flag.
14658 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
14660 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
14663 (File_Time_Stamp): New procedure.
14664 (Preserve_Mode): New boolean.
14665 (Write_Unit): Pass time stamp.
14666 Implement -p switch (preserve time stamps).
14668 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
14670 * gnatchop.adb: Do usage info for -p switch
14672 * adaint.h (__gnat_set_file_time_name): New function
14674 * adaint.c (__gnat_set_file_time_name): Implement
14676 * adaint.h: Fix typo
14678 2001-12-03 Robert Dewar <dewar@gnat.com>
14680 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
14681 have Associated_Node.
14683 2001-12-03 Robert Dewar <dewar@gnat.com>
14685 * prj-proc.adb: Minor reformatting
14687 * make.adb: Minor reformatting
14689 2001-12-03 Geert Bosch <bosch@gnat.com>
14691 * make.adb: Minor reformatting.
14693 2001-12-03 Robert Dewar <dewar@gnat.com>
14695 * sem_ch12.adb: Minor reformatting
14697 2001-12-03 Ed Schonberg <schonber@gnat.com>
14699 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
14700 push Standard on the stack before analyzing the instance body,
14701 in order to have a clean visibility environment.
14703 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
14705 2001-12-03 Ed Schonberg <schonber@gnat.com>
14707 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
14708 instantiation of a body that contains an inlined body.
14710 2001-12-03 Ed Schonberg <schonber@gnat.com>
14713 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
14714 to prevent freezing within formal packages.
14715 (Freeze_Subprogram_Body): If body comes from another instance that
14716 appeared before its own body, place freeze node at end of current
14717 declarative part, to prevent a back-end crash.
14718 (Inline_Instance_Body): Handle properly a package instance within
14719 a subprogram instance that is a child unit.
14721 2001-12-01 Graham Stott <grahams@redhat.com>
14723 * Makefile.in (misc.o): Add missing $(srcdir) prefix
14724 and add optabs.h dependency.
14726 * misc.c: Include optabs.h
14727 (gnat_tree_code_type): Make static and const.
14728 (gnat_tree_code_length): Likewise.
14729 (gnat_tree_code_name): Likewise.
14730 (update_setjmp_buf): Obtain operands mode from insn_data.
14732 2001-11-29 Richard Henderson <rth@redhat.com>
14734 * init.c: Remove obsolete dwarf2 frame.h section.
14736 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
14738 * Make-lang.in (ada.generated-manpages): New dummy target.
14740 2001-11-29 Ed Schonberg <schonber@gnat.com>
14742 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
14743 into Command, an array conversion is illegal here. Uncovered by
14746 2001/11/28 Geert Bosch <bosch@gnat.com>
14748 * init.c: Minor whitespace changes.
14750 2001-11-28 Doug Rupp <rupp@gnat.com>
14752 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
14755 2001-11-28 Zack Weinberg <zack@codesourcery.com>
14757 * misc.c (gnat_expand_constant): Move declaration above
14758 definition of lang_hooks.
14759 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
14760 (gnat_init): lang_expand_constant no longer exists.
14762 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
14763 always have vprintf.
14764 (gnat_init): Always call set_internal_error_function.
14766 2001-11-27 Andreas Jaeger <aj@suse.de>
14768 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
14770 2001-11-27 Laurent Guerby <guerby@acm.org>
14772 * Makefile.in: Regenerate Ada dependencies.
14774 2001-11-26 Richard Henderson <rth@redhat.com>
14776 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
14777 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
14778 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
14780 2001-11-25 Laurent Guerby <guerby@acm.org>
14782 * sysdep.c (rts_get_*): Fix style.
14784 2001-11-19 Laurent Guerby <guerby@acm.org>
14786 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
14787 since it is of no apparent use and cause warnings.
14789 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
14791 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
14793 (gnat_init): Don't return NULL.
14794 (finish_parse): Remove.
14796 2001-11-17 Laurent Guerby <guerby@acm.org>
14798 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
14799 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
14800 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
14801 * lang-spec.h: Add missing struct field to silence warnings.
14802 * sysdep.c (rts_get_*): Provide K&R prototype.
14803 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
14804 * traceback.c (Unlock_Task, Lock_Task): Likewise.
14805 * tracebak.c (__gnat_backtrace): Remove unused variable.
14806 * utils.c (end_subprog_body): Move to K&R style.
14808 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14810 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
14812 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
14814 * misc.c (gnat_init): Change prototype. Include the
14815 functionality of the old init_parse and init_decl_processing.
14816 (gnat_init_decl_processing): New prototype.
14817 (init_parse): Remove.
14818 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
14820 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
14822 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
14823 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
14824 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
14825 set_yydebug): Remove.
14827 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
14829 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
14830 (struct lang_hooks): Constify.
14831 (language_string, lang_identify): Remove.
14832 * utils.c (init_decl_processing): Update.
14834 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
14836 * misc.c: Include langhooks-def.h.
14837 * Makefile.in: Update.
14839 2001-10-30 Robert Dewar <dewar@gnat.com>
14842 (Check_Identifier): Rewrite circuit to be compatible with use of letters
14843 in the upper half of ASCII.
14844 (Check_Identifier): Minor reformatting
14846 2001-10-30 Geert Bosch <bosch@gnat.com>
14848 * (Associated_Node, Set_Associated_Node): Do not check for
14851 2001-10-30 Robert Dewar <dewar@gnat.com>
14853 * a-reatim.ads: Minor reformatting
14855 2001-10-30 Robert Dewar <dewar@gnat.com>
14857 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
14858 undocumented declarations.
14860 2001-10-30 Pascal Obry <obry@gnat.com>
14862 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
14863 to the binder and linker.
14866 * mdll.ads: Fix layout. Update copyright notice.
14868 * mdll.adb: Fix layout. Update copyright notice.
14870 2001-10-30 Robert Dewar <dewar@gnat.com>
14872 * usage.adb: Minor fix to output for -gnaty.
14874 2001-10-30 Ed Schonberg <schonber@gnat.com>
14876 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
14877 to accommodate all its possible values.
14879 * a-reatim.adb (Split): Special-case handling of Time_Span_First
14880 and of small absolute values of T.
14882 2001-10-30 Richard Kenner <kenner@gnat.com>
14884 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
14885 set_mem_attributes since not needed and wrong if RESULT if a REG;
14886 fixes ACATS failures.
14888 2001-10-30 Geert Bosch <bosch@gnat.com>
14890 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
14891 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
14893 2001-10-30 Robert Dewar <dewar@gnat.com>
14895 * bindusg.adb: Undocument -f switch.
14897 * gnatcmd.adb: Remove /FULL_ELABORATION.
14899 * opt.ads (Force_RM_Elaboration_Order): Document that this is
14902 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
14904 * gnatbind.adb: Minor update of warning msg.
14906 2001-10-30 Vincent Celier <celier@gnat.com>
14908 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
14909 for project file switches (-P (/PROJECT_FILE=),
14910 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
14913 2001-10-30 Geert Bosch <bosch@gnat.com>
14915 * decl.c: Minor whitespace fixes.
14917 2001-10-30 Richard Kenner <kenner@gnat.com>
14919 * utils2.c (build_allocator): Test for SIZE overflow in array case too
14921 2001-10-30 Geert Bosch <bosch@gnat.com>
14923 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
14924 Found due to GCC 3.0 warning of using uninitialized value.
14927 (Get_Max_Size): Use variant record for tracking value/expression.
14928 Makes logic clearer and prevents warnings for uninitialized variables.
14929 (Layout_Array_Type): Use variant record for tracking value/expression.
14930 Makes logic clearer and prevents warnings for uninitialized variables.
14932 2001-10-30 Robert Dewar <dewar@gnat.com>
14934 * lib.adb: Minor reformatting
14936 * s-taprop.ads: Minor reformatting
14938 2001-10-29 Laurent Guerby <guerby@acm.org>
14941 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
14943 (_gnat_error_handler): Make MSG const.
14945 2001-10-29 Richard Kenner <kenner@gnat.com>
14947 * sysdep.c: Fix localtime_r problem on LynxOS.
14948 Also remove #elif to avoid warnings.
14950 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
14953 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
14955 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
14957 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
14958 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
14959 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
14960 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
14961 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
14962 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
14963 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
14964 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
14965 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
14966 types.ads, urealp.adb: Fix spelling errors.
14968 2001-10-27 Laurent Guerby <guerby@acm.org>
14970 * trans.c (gigi): Fix non determinism leading to bootstrap
14971 comparison failures for debugging information.
14973 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
14975 * gnat_rm.texi: Use @./@: where appropriate.
14977 2001-10-26 Robert Dewar <dewar@gnat.com>
14979 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
14981 2001-10-26 Richard Kenner <kenner@gnat.com>
14983 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
14985 2001-10-26 Richard Kenner <kenner@gnat.com>
14987 * decl.c (validate_size): Modify message for bad size to avoid
14988 implication that compiler is modifying the size.
14990 2001-10-26 Robert Dewar <dewar@gnat.com>
14992 * prj-util.adb: Minor reformatting. Fix bad header format.
14994 2001-10-26 Robert Dewar <dewar@gnat.com>
14996 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
14998 * sinfo.ads: Clarify use of Associated_Node (documentation only).
15000 * sem_ch12.adb: Change Node4 to Associated_Node. Change
15001 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
15002 much more narrowly in places where needed. These are cleanups.
15004 2001-10-26 Joel Brobecker <brobecke@gnat.com>
15006 * 5zosinte.ads (null_pthread): new constant.
15009 (Initialize_TCB): Initialize thread ID to null, to be able to verify
15010 later that this field has been set.
15011 (Finalize_TCB): ditto.
15012 (Suspend_Task): Verify that the thread ID is not null before using it.
15013 (Resume_Task): ditto.
15016 (Resume_All_Tasks): Lock the tasks list before using it.
15017 (Suspend_All_Tasks): ditto.
15019 2001-10-26 Richard Kenner <kenner@gnat.com>
15021 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
15022 Make constant variant of designated type for Is_Access_Constant.
15023 Call update_pointer_to with main variant.
15025 * trans.c (process_freeze_entity, process_type):
15026 Call update_pointer_to on main variant.
15028 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
15029 If main variant, update all other variants.
15031 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
15034 2001-10-26 Robert Dewar <dewar@gnat.com>
15036 * prj-util.adb: Minor reformatting
15038 2001-10-26 Robert Dewar <dewar@gnat.com>
15040 * prj-util.adb: Minor reformatting
15042 2001-10-26 Robert Dewar <dewar@gnat.com>
15044 * prj-attr.adb: Minor reformatting throughout
15046 2001-10-26 Robert Dewar <dewar@gnat.com>
15048 * prj-attr.ads: Minor reformatting
15049 Add ??? comment (this whole spec has almost no comments)
15051 2001-10-26 Vincent Celier <celier@gnat.com>
15053 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
15054 ("//") that precede the drive letter on Interix.
15056 2001-10-26 Geert Bosch <bosch@gnat.com>
15058 * gnat_rm.texi: Add GNAT Reference Manual.
15060 2001-10-25 Robert Dewar <dewar@gnat.com>
15062 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
15063 is Error. Similar change for other renaming cases.
15065 2001-10-25 Robert Dewar <dewar@gnat.com>
15067 * s-atacco.ads: Add pragma Inline_Always for functions.
15068 Fix header format. Add copyright 2001
15070 2001-10-25 Ed Schonberg <schonber@gnat.com>
15072 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
15073 return Error rather than Empty so that analysis can proceed.
15075 2001-10-25 Ed Schonberg <schonber@gnat.com>
15077 * sem_util.adb (Enter_Name): better handling of cascaded error
15078 messages when a unit appears in its own context.
15080 2001-10-25 Ed Schonberg <schonber@gnat.com>
15082 * sem_util.adb (Defining_Entity): in case of error, attach created
15083 entity to specification, so that semantic analysis can proceed.
15085 2001-10-25 Robert Dewar <dewar@gnat.com>
15088 (Defining_Entity): Deal with Error.
15089 (Process_End_Label): Deal with bad end label for.
15091 2001-10-25 Ed Schonberg <schonber@gnat.com>
15093 * sem_elab.adb (Check_A_Call): refine message when call is in an
15094 instance but callee is not declared in the generic unit.
15096 2001-10-25 Ed Schonberg <schonber@gnat.com>
15098 * sem_elab.adb (Check_A_Call): check for renaming before finding the
15099 enclosing unit, which may already be different from the calling unit.
15101 2001-10-25 Geert Bosch <bosch@gnat.com>
15103 * 4gintnam.ads: fix header format.
15105 2001-10-25 Ed Schonberg <schonber@gnat.com>
15107 * sem_res.adb (Resolve_Call): if the call is actually an indexing
15108 operation on the result of a parameterless call, perform elaboration
15109 check after the node has been properly rewritten.
15111 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
15112 inlined within the generic tree, the defining identifier is not a
15115 2001-10-25 Ed Schonberg <schonber@gnat.com>
15117 * sem_res.adb (Resolve): special-case resolution of Null in an
15118 instance or an inlined body to avoid view conflicts.
15120 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
15121 compatibility by retrieving the access type of the generic copy.
15123 2001-10-25 Robert Dewar <dewar@gnat.com>
15126 (Analyze_Number_Declaration): Handle error expression.
15127 (Signed_Integer_Type_Declaration): Handle error bound.
15128 (Analyze_Subtype_Indication): Handle error range.
15130 * sem_util.adb (Get_Index_Bounds): Check for Error.
15132 2001-10-25 Robert Dewar <dewar@gnat.com>
15134 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
15135 in no run time mode.
15137 2001-10-25 Pascal Obry <obry@gnat.com>
15139 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
15140 mode case for ALLOC case.
15142 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
15143 all platforms. Improvement of last change.
15145 2001-10-25 Robert Dewar <dewar@gnat.com>
15147 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
15149 2001-10-25 Geert Bosch <bosch@gnat.com>
15151 * osint.adb (Is_Relative): Remove duplicate.
15153 2001-10-25 Pascal Obry <obry@gnat.com>
15155 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
15156 pathnames in UNIX and DOS style with drive letter.
15157 (Is_Relative): new routine.
15159 * osint.adb: Minor reformatting
15161 * osint.adb (Is_Relative): implementation using
15162 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
15164 2001-10-25 Pascal Obry <obry@gnat.com>
15166 * g-dirope.adb (Basename): correctly compute offset between the
15167 original Path and the translated one.
15169 * g-dirope.adb: (Base_Name): add some comments.
15171 2001-10-25 Robert Dewar <dewar@gnat.com>
15173 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
15174 in HIE mode, avoids compilation abandoned message
15176 * exp_imgv.adb: Correct typo in previous change
15178 * exp_imgv.adb: Correct typo in previous change (not my day!)
15180 2001-10-25 Robert Dewar <dewar@gnat.com>
15182 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
15184 2001-10-25 Pascal Obry <obry@gnat.com>
15186 * g-awk.ads: Move all pragma inlines next to the routine
15187 declarations. This is more uniform with other GNAT spec.
15189 2001-10-22 Geert Bosch <bosch@gnat.com>
15191 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
15193 2001-10-19 Geert Bosch <bosch@gnat.com>
15195 * Makefile.in (tools, gnattools): Remove gnatmem.
15197 2001-10-17 Richard Henderson <rth@redhat.com>
15199 * Makefile.in (misc.o): Depend on langhooks.h.
15200 * misc.c: Include it.
15201 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
15202 (LANG_HOOKS_DECODE_OPTION): New.
15203 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
15205 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
15207 * trans.c (tree_transform): Adjust to recent change in
15208 expand_asm_operands to implement named asm operands.
15210 2001-10-11 Ed Schonberg <schonber@gnat.com>
15212 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
15213 renaming of discriminant for mutable record type.
15215 2001-10-11 Robert Dewar <dewar@gnat.com>
15217 * validsw.adb: Properly save -gnatVn status.
15219 2001-10-11 Robert Dewar <dewar@gnat.com>
15221 * usage.adb: Add lines for V switch.
15223 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
15224 (/VALIDITY_CHECKING).
15226 2001-10-11 Ed Schonberg <schonber@gnat.com>
15228 * sem_type.adb (Add_One_Interp): an operator for a type declared in
15229 an extension of System is known to be visible.
15231 2001-10-11 Ed Schonberg <schonber@gnat.com>
15233 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
15234 properly. Fixes regression on ACATS C34005G.
15236 2001-10-11 Robert Dewar <dewar@gnat.com>
15238 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
15239 loop in generic instance, since this is likely not very useful.
15241 2001-10-11 Robert Dewar <dewar@gnat.com>
15243 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
15244 the error message for high integrity mode.
15246 * rtsfind.adb (RTE): Give message if we try to find an entity that
15247 is not available in high integrity mode.
15250 (OK_To_Use_In_HIE_Mode): New array.
15251 (RTE): May return Empty in high integrity mode.
15253 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
15254 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
15256 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
15257 unit if not inlined always and in no runtime mode. Fixes problem
15258 caused by new Rtsfind changes.
15260 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
15263 * rtsfind.adb (RTE): Make sure we do not try to load unit after
15264 giving message for entity not available in high integrity mode.
15266 2001-10-11 Pascal Obry <obry@gnat.com>
15268 * impunit.adb: Add GNAT.CRC32.
15270 2001-10-11 Ed Schonberg <schonber@gnat.com>
15272 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
15273 properly the case where one universal operand in a non-static
15274 exponentiation of a real literal.
15276 2001-10-11 Ed Schonberg <schonber@gnat.com>
15278 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
15279 clause, return the gobal finalization list, for lack of anthing else.
15281 2001-10-11 Ed Schonberg <schonber@gnat.com>
15283 * exp_ch7.adb (Make_Transient_Block): if statement is within
15284 exception handler, always use new transient scope to place Clean
15287 2001-10-11 Pascal Obry <obry@gnat.com>
15290 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
15291 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
15292 (GNATLS_RTL_OBJS): add g-crc32.o
15293 (GNATMAKE_RTL_OBJS): add g-crc32.o
15296 (CRC_Match): new function.
15297 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
15298 instead of the previous simple checksum algorithm.
15299 (Time_Stamp_Mismatch): use CRC_Match for comparison.
15300 (Set_Source_Table): idem.
15303 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
15304 instead of simple checksum.
15305 (CRC_Match): new function.
15306 (CRC_Error): new constant.
15308 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
15309 a CRC now and not a simple checksum. A CRC uses lower-case hex
15310 letters, fixes ambiguity in parsing.
15312 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
15313 is what this variable will store.
15315 * bcheck.adb: Change reference to chechsum in comments by CRC.
15316 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
15317 rename All_Checksum_Match to All_CRC_Match. Change due to API
15318 renaming since now GNAT does not use a simple checksum but a
15319 CRC using GNAT.CRC32.
15321 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
15322 now and not anymore a simple checksum.
15324 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
15327 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
15330 (Restore_Scan_State): rename Checksum to CRC.
15331 (Save_Scan_State): idem.
15335 (Checksum): rename to CRC.
15336 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
15338 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
15339 GNAT.CRC32). Update copyright notice.
15341 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
15342 GNAT.CRC32). Update copyright notice.
15345 (Accumulate_Checksum): removed.
15346 (Update): new procedure. Add a wide-character into the CRC.
15349 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
15350 (Load_File): fix initialization of S (change Source_Checksum to
15353 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
15354 Source_CRC in S initialization.
15356 * sinput.adb (Source_Checksum): renamed to Source_CRC.
15358 * sinput.ads (Source_Checksum): renamed to Source_CRC.
15359 Update comments for the CRC.
15361 * types.adb (Hex): Use lowercase for the letter part.
15363 * types.ads (Get_Hex_String): Returns the hexadecimal representation
15364 for a word. This is currently used only for CRC. In previous version,
15365 the checksum was using a representation with all letter being
15366 upper-case. With the new implementation (using CRC) we do not remove
15367 the 32th bit of the CRC, so we can have an upper-case starting letter
15368 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
15369 It is ambigous since the CRC was optional and could be followed by
15370 options like EB, EE. So now this routines uses lower-case letter for
15371 the hexadecimal representation. Strange enough only lower case letters
15372 where checked in Scan_ALI (even if this was not a possible case).
15374 * gnatvsn.ads (Library_Version): changed to 3.15a.
15376 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
15379 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
15382 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
15383 Add 2001 to copyright notice
15384 (Accumulate_Checksum): Modify to use System.CRC32.
15386 * ali-util.ads: Redo changes of previous revision to continue to use
15387 the word Checksum. Add 2001 to copyright notice.
15389 * ali.adb: Undo some of previous changes, not needed.
15390 Keep the change for lower case letters in the checksum.
15392 * ali.ads: Undo previous change not needed.
15394 * bcheck.adb: Undo most of previous change, not needed.
15395 But do use Checksums_Match for checksum comparison.
15397 * gnatls.adb: Undo most of previous change, not needed.
15398 But do use Checksums_Match for comparing checksums.
15400 * lib-load.adb: Undo previous change, not needed.
15402 * lib-writ.adb: Undo previous change, not needed.
15404 * lib-writ.ads: Document that checksums use lower case,
15405 not upper case letters.
15407 * scans.adb: Undo previous change, not needed
15409 * scans.ads: Undo previous change, not needed.
15411 * scn-nlit.adb: Undo previous changes, not needed.
15413 * scn-slit.adb: Undo previous change, not needed. Fix header format.
15416 (Accumulate_Checksum): Use System.CRC32.
15417 (Initialize_Checksum): New procedure.
15418 Remove other changes of previous revision.
15420 * sinput-p.adb: Undo previous change, not needed.
15422 * sinput.adb: Undo previous change, not needed.
15424 * sinput-l.adb: Undo previous change, not needed.
15426 * sinput.ads: Undo previous change, not needed. Keep only comment
15427 on new checksum algorithm
15429 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
15430 Also remove a-tags and a-stream from GNAT sources.
15432 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
15434 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
15436 2001-10-11 Geert Bosch <bosch@gnat.com>
15438 * einfo.h: Regenerate.
15440 * nmake.ads: Regenerate.
15442 * nmake.adb: Regenerate.
15444 * sinfo.h: Regenerate.
15446 * treeprs.adb: Regenerate.
15448 2001-10-10 Geert Bosch <bosch@gnat.com>
15450 * gnat-style.texi: New file describing coding guidelines for Ada.
15452 2001-10-10 Ed Schonberg <schonber@gnat.com>
15454 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
15457 2001-10-10 Geert Bosch <bosch@gnat.com>
15459 * snames.ads: Add new names for project facility.
15461 * snames.adb: Update to reflect snames.ads changes.
15463 * snames.h: Update to reflect snames.ads changes.
15465 2001-10-10 Vincent Celier <celier@gnat.com>
15468 (Add_Switches): reflect the changes for the switches attributes
15469 Default_Switches indexed by the programming language,
15470 Switches indexed by the file name.
15471 (Collect_Arguments_And_Compile): Idem.
15472 Reflect the attribute name changes.
15475 (Initialisation_Data): Change the names of some packages and
15477 (Initialize): process case insensitive associative arrays.
15480 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
15483 (Parse_Attribute_Declaration): For case insensitive associative
15484 arrays, set the index string to lower case.
15487 Reflect the changes of the project attributes.
15490 Replace Check_Naming_Scheme by Ada_Check and
15491 Language_Independent_Check.
15494 Replaced Check_Naming_Scheme by 2 procedures:
15495 Ada_Check and Language_Independent_Check.
15498 (Process_Declarative_Items): For case-insensitive associative
15499 arrays, set the index string to lower case.
15500 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
15501 Prj.Nmsc.Check_Naming_Scheme.
15504 (Case_Insensitive): New function
15505 (Set_Case_Insensitive): New procedure
15508 (Case_Insensitive): New function
15509 (Set_Case_Insensitive): New procedure
15510 (Project_Node_Record): New flag Case_Insensitive.
15513 (Value_Of): new function to get the string value of a single
15514 string variable or attribute.
15517 (Value_Of): new function to get the string value of a single
15518 string variable or attribute.
15521 (Ada_Default_Spec_Suffix): New function
15522 (Ada_Default_Impl_Suffix): New function
15523 Change definitions of several constants to reflect
15524 new components of record types.
15527 (Naming_Data): Change several components to reflect new
15528 elements of naming schemes.
15529 (Project_Data): New flags Sources_Present and
15530 Language_Independent_Checked.
15531 (Ada_Default_Spec_Suffix): New function.
15532 (Ada_Default_Impl_Suffix): New function.
15535 Modification of predefined names for project manager: added
15536 Implementation, Specification_Exceptions, Implementation_Exceptions,
15537 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
15538 Default_Switches, _Languages, Builder, Cross_Reference,
15539 Finder. Removed Body_Part, Specification_Append, Body_Append,
15540 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
15543 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
15546 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
15547 not that it is Nil_Variable_Value.
15549 * prj.ads: Add ??? for uncommented declarations
15551 2001-10-10 Ed Schonberg <schonber@gnat.com>
15553 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
15554 constant, do not indicate possible modification, so that gigi can
15555 treat it as a bona fide constant.
15557 2001-10-10 Robert Dewar <dewar@gnat.com>
15559 * sem_prag.adb: Add processing for pragma External.
15561 * snames.ads: Add entry for pragma External.
15563 * par-prag.adb: Add pragma External.
15565 * snames.adb: Updated to match snames.ads.
15567 2001-10-10 Ed Schonberg <schonber@gnat.com>
15569 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
15570 a dynamic task if the allocator appears in an indexed assignment
15571 or selected component assignment.
15573 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
15574 For a dynamic task in an assignment statement, use target of
15575 assignment to generate meaningful name.
15577 2001-10-10 Ed Schonberg <schonber@gnat.com>
15579 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
15582 * einfo.ads: Body_Entity is also defined for generic package.
15583 Documentation change only
15585 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
15586 others_choice for a discriminated component initialization,
15587 convert discriminant references into the corresponding discriminals.
15589 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
15590 only if original type is private and expression has to be wrapped
15594 (Apply_Constraint_Check): Do not perform length check
15595 if expression is an aggregate with only an others_choice.
15596 (Length_N_Cond): two references to the same in_parameter
15597 (typically the discriminal in an init_proc) denote the same value.
15598 Two useful optimization uncovered by bugfixes above.
15600 2001-10-10 Robert Dewar <dewar@gnat.com>
15602 * xeinfo.adb: Change int to char in translation of enumeration types.
15603 This fixes a problem in the C representation of component alignment.
15604 Add 2001 to copyright notice
15606 2001-10-10 Richard Kenner <kenner@gnat.com>
15608 * decl.c: (validate_size): Do check size of object of integral type
15609 if it is a packed array type.
15611 2001-10-10 Richard Kenner <kenner@gnat.com>
15613 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
15614 VAR_DECL for constant if not Is_Public but -O0.
15616 2001-10-10 Richard Kenner <kenner@gnat.com>
15618 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
15620 2001-10-10 Geert Bosch <bosch@gnat.com>
15622 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
15623 use '/' as switch character, allowing for absolute file names.
15625 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
15627 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
15630 2001-10-08 Geert Bosch <bosch@gnat.com>
15632 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
15633 Automatically build utilities when files need to be regenerated.
15635 2001-10-08 Geert Bosch <bosch@gnat.com>
15637 * xsnames.adb: New utility for updating snames.ads and snames.adb
15639 2001-10-08 Zack Weinberg <zack@codesourcery.com>
15641 * Make-lang.in (ADAFLAGS): Add -W -Wall.
15642 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
15643 (gnat1): Also depend on attribs.o.
15644 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
15645 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
15646 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
15647 (ADAFLAGS): Add -W -Wall.
15648 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
15651 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
15652 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
15653 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
15654 Use $(ADAC), not $(CC), as compilation command.
15656 (gnattools): Depend directly on tools to build, don't use
15658 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
15660 * einfo.h, sinfo.h: New files (autogenerated).
15662 2001-10-08 Richard Henderson <rth@redhat.com>
15664 * comperr.adb (Abort_In_Progress): New.
15665 (Compiler_Abort): Use it to prevent recursion.
15667 2001-10-08 Robert Dewar <dewar@gnat.com>
15669 * atree.adb: Set Error_Posted in Error node, helps error recovery.
15671 * par-endh.adb (Output_End_Expected): We should also not test
15672 Error_Posted on the Error node, since now it is always set.
15674 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
15675 to help error recovery. Part of general work on 9407-004.
15677 * par.adb: Add ??? for misuse of error
15680 (Resolve): Defend against Error, fixes 9407-003.
15681 (Resolve_Discrete_Subtype_Indication): Defend against Error.
15683 * sinfo.ads (N_Error): Now has Etype field (which will be set
15684 to Any_Type to help error recovery).
15686 2001-10-08 Richard Kenner (kenner@gnat.com)
15688 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
15689 Consistently set MEM attributes from expression; fixes
15690 bootstrap failure on x86.
15692 2001-10-08 Geert Bosch (bosch@gnat.com)
15694 * 5oosinte.adb: Add 2001 to copyright notice.
15696 2001-10-08 Geert Bosch (bosch@gnat.com)
15698 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
15700 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
15702 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
15704 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
15706 2001-10-05 Geert Bosch (bosch@gnat.com)
15708 * adaint.h: Small formatting fix.
15710 2001-10-04 Geert Bosch <bosch@gnat.com>
15712 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
15713 Arg is int, not FILE *, in dummy version of functions.
15715 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
15716 Arg is int, not FILE *.
15718 2001-10-04 Geert Bosch <bosch@gnat.com>
15720 * 3lsoccon.ads: Added file, missed with initial check ins.
15722 * 4lintnam.ads: Fix header format.
15723 Change Linux to GNU/Linux.
15725 * 5iosinte.adb: Change Linux to GNU/Linux.
15727 * 5iosinte.ads: Change Linux to GNU/Linux.
15729 * 5itaprop.adb: Change Linux to GNU/Linux.
15731 * 5itaspri.ads: Change Linux to GNU/Linux.
15732 Update copyright notice.
15734 * 5lintman.adb: Change Linux to GNU/Linux.
15736 * 5lml-tgt.adb: Change Linux to GNU/Linux.
15738 * 5losinte.ads: Change Linux to GNU/Linux.
15740 * 5lsystem.ads: Change Linux to GNU/Linux.
15742 * 5qosinte.adb: Change Linux to GNU/Linux.
15744 * 5qosinte.ads: Change Linux to GNU/Linux.
15746 * 5qparame.ads: Change Linux to GNU/Linux.
15748 * 5qtaprop.adb: Change Linux to GNU/Linux.
15750 * 5qtaspri.ads: Change Linux to GNU/Linux.
15751 Add 2001 to copyright notice.
15753 * 5vintman.ads: Change Linux to GNU/Linux.
15754 Fix header format. Add 2001 to copyright notice.
15756 * g-soccon.ads: Change Linux to GNU/Linux.
15758 * g-trasym.ads: Change Linux to GNU/Linux.
15759 Add 2001 to copyright notice.
15761 * memtrack.adb: Change Linux to GNU/Linux.
15763 * s-intman.ads: Change Linux to GNU/Linux.
15764 Add 2001 to copyright notice. Fix header format.
15766 * s-stache.adb: Change Linux to GNU/Linux.
15768 * adaint.c: Change Linux to GNU/Linux.
15770 * cio.c: Change Linux to GNU/Linux.
15772 * cstreams.c: Change Linux to GNU/Linux.
15774 * init.c: Change Linux to GNU/Linux.
15776 * gmem.c: Change Linux to GNU/Linux.
15778 * tracebak.c: Change Linux to GNU/Linux.
15781 2001-10-02 Geert Bosch <bosch@gnat.com>
15783 * misc.c (insert_default_attributes): Add dummy version.